lightning-sdk 0.2.15__py3-none-any.whl → 0.2.17__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 +1 -1
  2. lightning_sdk/api/base_studio_api.py +7 -1
  3. lightning_sdk/api/cluster_api.py +83 -1
  4. lightning_sdk/api/llm_api.py +27 -5
  5. lightning_sdk/api/studio_api.py +64 -0
  6. lightning_sdk/api/teamspace_api.py +127 -1
  7. lightning_sdk/api/utils.py +4 -0
  8. lightning_sdk/base_studio.py +14 -1
  9. lightning_sdk/cli/create.py +21 -1
  10. lightning_sdk/cli/deploy/__init__.py +0 -0
  11. lightning_sdk/cli/deploy/_auth.py +189 -0
  12. lightning_sdk/cli/deploy/devbox.py +157 -0
  13. lightning_sdk/cli/{serve.py → deploy/serve.py} +11 -322
  14. lightning_sdk/cli/download.py +44 -16
  15. lightning_sdk/cli/entrypoint.py +1 -1
  16. lightning_sdk/cli/open.py +21 -2
  17. lightning_sdk/cli/start.py +12 -3
  18. lightning_sdk/cli/upload.py +2 -4
  19. lightning_sdk/lightning_cloud/openapi/__init__.py +19 -0
  20. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +126 -1
  21. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +97 -0
  22. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
  23. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  24. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +752 -106
  25. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
  26. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  27. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  28. lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
  29. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +357 -0
  31. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +331 -0
  32. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +79 -1
  33. lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +105 -1
  35. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +79 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +409 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
  57. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +105 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +29 -3
  65. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -53
  71. lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
  72. lightning_sdk/llm/llm.py +54 -8
  73. lightning_sdk/studio.py +40 -1
  74. lightning_sdk/teamspace.py +68 -0
  75. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/RECORD +80 -58
  77. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.2.15.dist-info → lightning_sdk-0.2.17.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,357 @@
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 DeploymentIdAlertingpoliciesBody(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
+ 'description': 'str',
45
+ 'frequency': 'V1DeploymentAlertingPolicyFrequency',
46
+ 'id': 'str',
47
+ 'limit': 'float',
48
+ 'name': 'str',
49
+ 'operation': 'V1DeploymentAlertingPolicyOperation',
50
+ 'recipients': 'V1DeploymentAlertingRecipients',
51
+ 'severity': 'V1DeploymentAlertingPolicySeverity',
52
+ 'type': 'V1DeploymentAlertingPolicyType',
53
+ 'value': 'float'
54
+ }
55
+
56
+ attribute_map = {
57
+ 'description': 'description',
58
+ 'frequency': 'frequency',
59
+ 'id': 'id',
60
+ 'limit': 'limit',
61
+ 'name': 'name',
62
+ 'operation': 'operation',
63
+ 'recipients': 'recipients',
64
+ 'severity': 'severity',
65
+ 'type': 'type',
66
+ 'value': 'value'
67
+ }
68
+
69
+ def __init__(self, description: 'str' =None, frequency: 'V1DeploymentAlertingPolicyFrequency' =None, id: 'str' =None, limit: 'float' =None, name: 'str' =None, operation: 'V1DeploymentAlertingPolicyOperation' =None, recipients: 'V1DeploymentAlertingRecipients' =None, severity: 'V1DeploymentAlertingPolicySeverity' =None, type: 'V1DeploymentAlertingPolicyType' =None, value: 'float' =None): # noqa: E501
70
+ """DeploymentIdAlertingpoliciesBody - a model defined in Swagger""" # noqa: E501
71
+ self._description = None
72
+ self._frequency = None
73
+ self._id = None
74
+ self._limit = None
75
+ self._name = None
76
+ self._operation = None
77
+ self._recipients = None
78
+ self._severity = None
79
+ self._type = None
80
+ self._value = None
81
+ self.discriminator = None
82
+ if description is not None:
83
+ self.description = description
84
+ if frequency is not None:
85
+ self.frequency = frequency
86
+ if id is not None:
87
+ self.id = id
88
+ if limit is not None:
89
+ self.limit = limit
90
+ if name is not None:
91
+ self.name = name
92
+ if operation is not None:
93
+ self.operation = operation
94
+ if recipients is not None:
95
+ self.recipients = recipients
96
+ if severity is not None:
97
+ self.severity = severity
98
+ if type is not None:
99
+ self.type = type
100
+ if value is not None:
101
+ self.value = value
102
+
103
+ @property
104
+ def description(self) -> 'str':
105
+ """Gets the description of this DeploymentIdAlertingpoliciesBody. # noqa: E501
106
+
107
+
108
+ :return: The description of this DeploymentIdAlertingpoliciesBody. # noqa: E501
109
+ :rtype: str
110
+ """
111
+ return self._description
112
+
113
+ @description.setter
114
+ def description(self, description: 'str'):
115
+ """Sets the description of this DeploymentIdAlertingpoliciesBody.
116
+
117
+
118
+ :param description: The description of this DeploymentIdAlertingpoliciesBody. # noqa: E501
119
+ :type: str
120
+ """
121
+
122
+ self._description = description
123
+
124
+ @property
125
+ def frequency(self) -> 'V1DeploymentAlertingPolicyFrequency':
126
+ """Gets the frequency of this DeploymentIdAlertingpoliciesBody. # noqa: E501
127
+
128
+
129
+ :return: The frequency of this DeploymentIdAlertingpoliciesBody. # noqa: E501
130
+ :rtype: V1DeploymentAlertingPolicyFrequency
131
+ """
132
+ return self._frequency
133
+
134
+ @frequency.setter
135
+ def frequency(self, frequency: 'V1DeploymentAlertingPolicyFrequency'):
136
+ """Sets the frequency of this DeploymentIdAlertingpoliciesBody.
137
+
138
+
139
+ :param frequency: The frequency of this DeploymentIdAlertingpoliciesBody. # noqa: E501
140
+ :type: V1DeploymentAlertingPolicyFrequency
141
+ """
142
+
143
+ self._frequency = frequency
144
+
145
+ @property
146
+ def id(self) -> 'str':
147
+ """Gets the id of this DeploymentIdAlertingpoliciesBody. # noqa: E501
148
+
149
+
150
+ :return: The id of this DeploymentIdAlertingpoliciesBody. # noqa: E501
151
+ :rtype: str
152
+ """
153
+ return self._id
154
+
155
+ @id.setter
156
+ def id(self, id: 'str'):
157
+ """Sets the id of this DeploymentIdAlertingpoliciesBody.
158
+
159
+
160
+ :param id: The id of this DeploymentIdAlertingpoliciesBody. # noqa: E501
161
+ :type: str
162
+ """
163
+
164
+ self._id = id
165
+
166
+ @property
167
+ def limit(self) -> 'float':
168
+ """Gets the limit of this DeploymentIdAlertingpoliciesBody. # noqa: E501
169
+
170
+
171
+ :return: The limit of this DeploymentIdAlertingpoliciesBody. # noqa: E501
172
+ :rtype: float
173
+ """
174
+ return self._limit
175
+
176
+ @limit.setter
177
+ def limit(self, limit: 'float'):
178
+ """Sets the limit of this DeploymentIdAlertingpoliciesBody.
179
+
180
+
181
+ :param limit: The limit of this DeploymentIdAlertingpoliciesBody. # noqa: E501
182
+ :type: float
183
+ """
184
+
185
+ self._limit = limit
186
+
187
+ @property
188
+ def name(self) -> 'str':
189
+ """Gets the name of this DeploymentIdAlertingpoliciesBody. # noqa: E501
190
+
191
+
192
+ :return: The name of this DeploymentIdAlertingpoliciesBody. # noqa: E501
193
+ :rtype: str
194
+ """
195
+ return self._name
196
+
197
+ @name.setter
198
+ def name(self, name: 'str'):
199
+ """Sets the name of this DeploymentIdAlertingpoliciesBody.
200
+
201
+
202
+ :param name: The name of this DeploymentIdAlertingpoliciesBody. # noqa: E501
203
+ :type: str
204
+ """
205
+
206
+ self._name = name
207
+
208
+ @property
209
+ def operation(self) -> 'V1DeploymentAlertingPolicyOperation':
210
+ """Gets the operation of this DeploymentIdAlertingpoliciesBody. # noqa: E501
211
+
212
+
213
+ :return: The operation of this DeploymentIdAlertingpoliciesBody. # noqa: E501
214
+ :rtype: V1DeploymentAlertingPolicyOperation
215
+ """
216
+ return self._operation
217
+
218
+ @operation.setter
219
+ def operation(self, operation: 'V1DeploymentAlertingPolicyOperation'):
220
+ """Sets the operation of this DeploymentIdAlertingpoliciesBody.
221
+
222
+
223
+ :param operation: The operation of this DeploymentIdAlertingpoliciesBody. # noqa: E501
224
+ :type: V1DeploymentAlertingPolicyOperation
225
+ """
226
+
227
+ self._operation = operation
228
+
229
+ @property
230
+ def recipients(self) -> 'V1DeploymentAlertingRecipients':
231
+ """Gets the recipients of this DeploymentIdAlertingpoliciesBody. # noqa: E501
232
+
233
+
234
+ :return: The recipients of this DeploymentIdAlertingpoliciesBody. # noqa: E501
235
+ :rtype: V1DeploymentAlertingRecipients
236
+ """
237
+ return self._recipients
238
+
239
+ @recipients.setter
240
+ def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
241
+ """Sets the recipients of this DeploymentIdAlertingpoliciesBody.
242
+
243
+
244
+ :param recipients: The recipients of this DeploymentIdAlertingpoliciesBody. # noqa: E501
245
+ :type: V1DeploymentAlertingRecipients
246
+ """
247
+
248
+ self._recipients = recipients
249
+
250
+ @property
251
+ def severity(self) -> 'V1DeploymentAlertingPolicySeverity':
252
+ """Gets the severity of this DeploymentIdAlertingpoliciesBody. # noqa: E501
253
+
254
+
255
+ :return: The severity of this DeploymentIdAlertingpoliciesBody. # noqa: E501
256
+ :rtype: V1DeploymentAlertingPolicySeverity
257
+ """
258
+ return self._severity
259
+
260
+ @severity.setter
261
+ def severity(self, severity: 'V1DeploymentAlertingPolicySeverity'):
262
+ """Sets the severity of this DeploymentIdAlertingpoliciesBody.
263
+
264
+
265
+ :param severity: The severity of this DeploymentIdAlertingpoliciesBody. # noqa: E501
266
+ :type: V1DeploymentAlertingPolicySeverity
267
+ """
268
+
269
+ self._severity = severity
270
+
271
+ @property
272
+ def type(self) -> 'V1DeploymentAlertingPolicyType':
273
+ """Gets the type of this DeploymentIdAlertingpoliciesBody. # noqa: E501
274
+
275
+
276
+ :return: The type of this DeploymentIdAlertingpoliciesBody. # noqa: E501
277
+ :rtype: V1DeploymentAlertingPolicyType
278
+ """
279
+ return self._type
280
+
281
+ @type.setter
282
+ def type(self, type: 'V1DeploymentAlertingPolicyType'):
283
+ """Sets the type of this DeploymentIdAlertingpoliciesBody.
284
+
285
+
286
+ :param type: The type of this DeploymentIdAlertingpoliciesBody. # noqa: E501
287
+ :type: V1DeploymentAlertingPolicyType
288
+ """
289
+
290
+ self._type = type
291
+
292
+ @property
293
+ def value(self) -> 'float':
294
+ """Gets the value of this DeploymentIdAlertingpoliciesBody. # noqa: E501
295
+
296
+
297
+ :return: The value of this DeploymentIdAlertingpoliciesBody. # noqa: E501
298
+ :rtype: float
299
+ """
300
+ return self._value
301
+
302
+ @value.setter
303
+ def value(self, value: 'float'):
304
+ """Sets the value of this DeploymentIdAlertingpoliciesBody.
305
+
306
+
307
+ :param value: The value of this DeploymentIdAlertingpoliciesBody. # noqa: E501
308
+ :type: float
309
+ """
310
+
311
+ self._value = value
312
+
313
+ def to_dict(self) -> dict:
314
+ """Returns the model properties as a dict"""
315
+ result = {}
316
+
317
+ for attr, _ in six.iteritems(self.swagger_types):
318
+ value = getattr(self, attr)
319
+ if isinstance(value, list):
320
+ result[attr] = list(map(
321
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
322
+ value
323
+ ))
324
+ elif hasattr(value, "to_dict"):
325
+ result[attr] = value.to_dict()
326
+ elif isinstance(value, dict):
327
+ result[attr] = dict(map(
328
+ lambda item: (item[0], item[1].to_dict())
329
+ if hasattr(item[1], "to_dict") else item,
330
+ value.items()
331
+ ))
332
+ else:
333
+ result[attr] = value
334
+ if issubclass(DeploymentIdAlertingpoliciesBody, dict):
335
+ for key, value in self.items():
336
+ result[key] = value
337
+
338
+ return result
339
+
340
+ def to_str(self) -> str:
341
+ """Returns the string representation of the model"""
342
+ return pprint.pformat(self.to_dict())
343
+
344
+ def __repr__(self) -> str:
345
+ """For `print` and `pprint`"""
346
+ return self.to_str()
347
+
348
+ def __eq__(self, other: 'DeploymentIdAlertingpoliciesBody') -> bool:
349
+ """Returns true if both objects are equal"""
350
+ if not isinstance(other, DeploymentIdAlertingpoliciesBody):
351
+ return False
352
+
353
+ return self.__dict__ == other.__dict__
354
+
355
+ def __ne__(self, other: 'DeploymentIdAlertingpoliciesBody') -> bool:
356
+ """Returns true if both objects are not equal"""
357
+ return not self == other
@@ -0,0 +1,331 @@
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 DeploymentIdAlertingpoliciesBody1(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
+ 'description': 'str',
45
+ 'frequency': 'V1DeploymentAlertingPolicyFrequency',
46
+ 'limit': 'float',
47
+ 'name': 'str',
48
+ 'operation': 'V1DeploymentAlertingPolicyOperation',
49
+ 'recipients': 'V1DeploymentAlertingRecipients',
50
+ 'severity': 'V1DeploymentAlertingPolicySeverity',
51
+ 'type': 'V1DeploymentAlertingPolicyType',
52
+ 'value': 'float'
53
+ }
54
+
55
+ attribute_map = {
56
+ 'description': 'description',
57
+ 'frequency': 'frequency',
58
+ 'limit': 'limit',
59
+ 'name': 'name',
60
+ 'operation': 'operation',
61
+ 'recipients': 'recipients',
62
+ 'severity': 'severity',
63
+ 'type': 'type',
64
+ 'value': 'value'
65
+ }
66
+
67
+ def __init__(self, description: 'str' =None, frequency: 'V1DeploymentAlertingPolicyFrequency' =None, limit: 'float' =None, name: 'str' =None, operation: 'V1DeploymentAlertingPolicyOperation' =None, recipients: 'V1DeploymentAlertingRecipients' =None, severity: 'V1DeploymentAlertingPolicySeverity' =None, type: 'V1DeploymentAlertingPolicyType' =None, value: 'float' =None): # noqa: E501
68
+ """DeploymentIdAlertingpoliciesBody1 - a model defined in Swagger""" # noqa: E501
69
+ self._description = None
70
+ self._frequency = None
71
+ self._limit = None
72
+ self._name = None
73
+ self._operation = None
74
+ self._recipients = None
75
+ self._severity = None
76
+ self._type = None
77
+ self._value = None
78
+ self.discriminator = None
79
+ if description is not None:
80
+ self.description = description
81
+ if frequency is not None:
82
+ self.frequency = frequency
83
+ if limit is not None:
84
+ self.limit = limit
85
+ if name is not None:
86
+ self.name = name
87
+ if operation is not None:
88
+ self.operation = operation
89
+ if recipients is not None:
90
+ self.recipients = recipients
91
+ if severity is not None:
92
+ self.severity = severity
93
+ if type is not None:
94
+ self.type = type
95
+ if value is not None:
96
+ self.value = value
97
+
98
+ @property
99
+ def description(self) -> 'str':
100
+ """Gets the description of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
101
+
102
+
103
+ :return: The description of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._description
107
+
108
+ @description.setter
109
+ def description(self, description: 'str'):
110
+ """Sets the description of this DeploymentIdAlertingpoliciesBody1.
111
+
112
+
113
+ :param description: The description of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
114
+ :type: str
115
+ """
116
+
117
+ self._description = description
118
+
119
+ @property
120
+ def frequency(self) -> 'V1DeploymentAlertingPolicyFrequency':
121
+ """Gets the frequency of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
122
+
123
+
124
+ :return: The frequency of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
125
+ :rtype: V1DeploymentAlertingPolicyFrequency
126
+ """
127
+ return self._frequency
128
+
129
+ @frequency.setter
130
+ def frequency(self, frequency: 'V1DeploymentAlertingPolicyFrequency'):
131
+ """Sets the frequency of this DeploymentIdAlertingpoliciesBody1.
132
+
133
+
134
+ :param frequency: The frequency of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
135
+ :type: V1DeploymentAlertingPolicyFrequency
136
+ """
137
+
138
+ self._frequency = frequency
139
+
140
+ @property
141
+ def limit(self) -> 'float':
142
+ """Gets the limit of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
143
+
144
+
145
+ :return: The limit of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
146
+ :rtype: float
147
+ """
148
+ return self._limit
149
+
150
+ @limit.setter
151
+ def limit(self, limit: 'float'):
152
+ """Sets the limit of this DeploymentIdAlertingpoliciesBody1.
153
+
154
+
155
+ :param limit: The limit of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
156
+ :type: float
157
+ """
158
+
159
+ self._limit = limit
160
+
161
+ @property
162
+ def name(self) -> 'str':
163
+ """Gets the name of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
164
+
165
+
166
+ :return: The name of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
167
+ :rtype: str
168
+ """
169
+ return self._name
170
+
171
+ @name.setter
172
+ def name(self, name: 'str'):
173
+ """Sets the name of this DeploymentIdAlertingpoliciesBody1.
174
+
175
+
176
+ :param name: The name of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
177
+ :type: str
178
+ """
179
+
180
+ self._name = name
181
+
182
+ @property
183
+ def operation(self) -> 'V1DeploymentAlertingPolicyOperation':
184
+ """Gets the operation of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
185
+
186
+
187
+ :return: The operation of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
188
+ :rtype: V1DeploymentAlertingPolicyOperation
189
+ """
190
+ return self._operation
191
+
192
+ @operation.setter
193
+ def operation(self, operation: 'V1DeploymentAlertingPolicyOperation'):
194
+ """Sets the operation of this DeploymentIdAlertingpoliciesBody1.
195
+
196
+
197
+ :param operation: The operation of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
198
+ :type: V1DeploymentAlertingPolicyOperation
199
+ """
200
+
201
+ self._operation = operation
202
+
203
+ @property
204
+ def recipients(self) -> 'V1DeploymentAlertingRecipients':
205
+ """Gets the recipients of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
206
+
207
+
208
+ :return: The recipients of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
209
+ :rtype: V1DeploymentAlertingRecipients
210
+ """
211
+ return self._recipients
212
+
213
+ @recipients.setter
214
+ def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
215
+ """Sets the recipients of this DeploymentIdAlertingpoliciesBody1.
216
+
217
+
218
+ :param recipients: The recipients of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
219
+ :type: V1DeploymentAlertingRecipients
220
+ """
221
+
222
+ self._recipients = recipients
223
+
224
+ @property
225
+ def severity(self) -> 'V1DeploymentAlertingPolicySeverity':
226
+ """Gets the severity of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
227
+
228
+
229
+ :return: The severity of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
230
+ :rtype: V1DeploymentAlertingPolicySeverity
231
+ """
232
+ return self._severity
233
+
234
+ @severity.setter
235
+ def severity(self, severity: 'V1DeploymentAlertingPolicySeverity'):
236
+ """Sets the severity of this DeploymentIdAlertingpoliciesBody1.
237
+
238
+
239
+ :param severity: The severity of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
240
+ :type: V1DeploymentAlertingPolicySeverity
241
+ """
242
+
243
+ self._severity = severity
244
+
245
+ @property
246
+ def type(self) -> 'V1DeploymentAlertingPolicyType':
247
+ """Gets the type of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
248
+
249
+
250
+ :return: The type of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
251
+ :rtype: V1DeploymentAlertingPolicyType
252
+ """
253
+ return self._type
254
+
255
+ @type.setter
256
+ def type(self, type: 'V1DeploymentAlertingPolicyType'):
257
+ """Sets the type of this DeploymentIdAlertingpoliciesBody1.
258
+
259
+
260
+ :param type: The type of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
261
+ :type: V1DeploymentAlertingPolicyType
262
+ """
263
+
264
+ self._type = type
265
+
266
+ @property
267
+ def value(self) -> 'float':
268
+ """Gets the value of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
269
+
270
+
271
+ :return: The value of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
272
+ :rtype: float
273
+ """
274
+ return self._value
275
+
276
+ @value.setter
277
+ def value(self, value: 'float'):
278
+ """Sets the value of this DeploymentIdAlertingpoliciesBody1.
279
+
280
+
281
+ :param value: The value of this DeploymentIdAlertingpoliciesBody1. # noqa: E501
282
+ :type: float
283
+ """
284
+
285
+ self._value = value
286
+
287
+ def to_dict(self) -> dict:
288
+ """Returns the model properties as a dict"""
289
+ result = {}
290
+
291
+ for attr, _ in six.iteritems(self.swagger_types):
292
+ value = getattr(self, attr)
293
+ if isinstance(value, list):
294
+ result[attr] = list(map(
295
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
296
+ value
297
+ ))
298
+ elif hasattr(value, "to_dict"):
299
+ result[attr] = value.to_dict()
300
+ elif isinstance(value, dict):
301
+ result[attr] = dict(map(
302
+ lambda item: (item[0], item[1].to_dict())
303
+ if hasattr(item[1], "to_dict") else item,
304
+ value.items()
305
+ ))
306
+ else:
307
+ result[attr] = value
308
+ if issubclass(DeploymentIdAlertingpoliciesBody1, dict):
309
+ for key, value in self.items():
310
+ result[key] = value
311
+
312
+ return result
313
+
314
+ def to_str(self) -> str:
315
+ """Returns the string representation of the model"""
316
+ return pprint.pformat(self.to_dict())
317
+
318
+ def __repr__(self) -> str:
319
+ """For `print` and `pprint`"""
320
+ return self.to_str()
321
+
322
+ def __eq__(self, other: 'DeploymentIdAlertingpoliciesBody1') -> bool:
323
+ """Returns true if both objects are equal"""
324
+ if not isinstance(other, DeploymentIdAlertingpoliciesBody1):
325
+ return False
326
+
327
+ return self.__dict__ == other.__dict__
328
+
329
+ def __ne__(self, other: 'DeploymentIdAlertingpoliciesBody1') -> bool:
330
+ """Returns true if both objects are not equal"""
331
+ return not self == other