lightning-sdk 0.2.16__py3-none-any.whl → 0.2.18__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 (30) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/llm_api.py +6 -2
  3. lightning_sdk/api/studio_api.py +61 -0
  4. lightning_sdk/lightning_cloud/openapi/__init__.py +1 -0
  5. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
  6. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +97 -0
  7. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  8. lightning_sdk/lightning_cloud/openapi/models/__init__.py +1 -0
  9. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
  10. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  11. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +27 -1
  12. lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +27 -1
  13. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  14. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  16. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_recipients.py +175 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +1 -27
  22. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +1 -27
  23. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +53 -27
  24. lightning_sdk/studio.py +8 -0
  25. {lightning_sdk-0.2.16.dist-info → lightning_sdk-0.2.18.dist-info}/METADATA +1 -1
  26. {lightning_sdk-0.2.16.dist-info → lightning_sdk-0.2.18.dist-info}/RECORD +30 -29
  27. {lightning_sdk-0.2.16.dist-info → lightning_sdk-0.2.18.dist-info}/LICENSE +0 -0
  28. {lightning_sdk-0.2.16.dist-info → lightning_sdk-0.2.18.dist-info}/WHEEL +0 -0
  29. {lightning_sdk-0.2.16.dist-info → lightning_sdk-0.2.18.dist-info}/entry_points.txt +0 -0
  30. {lightning_sdk-0.2.16.dist-info → lightning_sdk-0.2.18.dist-info}/top_level.txt +0 -0
@@ -42,6 +42,7 @@ class V1CloudSpace(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'auto_switch_machine': 'bool',
45
+ 'cache_data_connection_id': 'str',
45
46
  'can_download_source_code': 'bool',
46
47
  'cluster_id': 'str',
47
48
  'code_config': 'V1CloudSpaceInstanceConfig',
@@ -98,6 +99,7 @@ class V1CloudSpace(object):
98
99
 
99
100
  attribute_map = {
100
101
  'auto_switch_machine': 'autoSwitchMachine',
102
+ 'cache_data_connection_id': 'cacheDataConnectionId',
101
103
  'can_download_source_code': 'canDownloadSourceCode',
102
104
  'cluster_id': 'clusterId',
103
105
  'code_config': 'codeConfig',
@@ -152,9 +154,10 @@ class V1CloudSpace(object):
152
154
  'web_path': 'webPath'
153
155
  }
154
156
 
155
- def __init__(self, auto_switch_machine: 'bool' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
157
+ def __init__(self, auto_switch_machine: 'bool' =None, cache_data_connection_id: 'str' =None, can_download_source_code: 'bool' =None, cluster_id: 'str' =None, code_config: 'V1CloudSpaceInstanceConfig' =None, code_status: 'V1GetCloudSpaceInstanceStatusResponse' =None, code_url: 'str' =None, created_at: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, description: 'str' =None, display_name: 'str' =None, engagement_counts: 'dict(str, str)' =None, env: 'list[V1EnvVar]' =None, environment_config: 'V1CloudSpaceEnvironmentConfig' =None, environment_template_id: 'str' =None, featured: 'bool' =None, hide_files: 'bool' =None, id: 'str' =None, image_status: 'V1ImageState' =None, is_cloudspace_private: 'bool' =None, is_code_private: 'bool' =None, is_favorite: 'bool' =None, is_published: 'bool' =None, license: 'str' =None, license_url: 'str' =None, lock_out: 'bool' =None, machine_image_version: 'str' =None, max_run_duration: 'str' =None, message: 'str' =None, multi_user_edit: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, operating_cost: 'str' =None, paper_authors: 'str' =None, paper_org: 'str' =None, paper_org_avatar_url: 'str' =None, paper_url: 'str' =None, project_id: 'str' =None, publications: 'list[V1CloudSpaceVersionPublication]' =None, published_at: 'datetime' =None, published_to_org_at: 'datetime' =None, state: 'V1CloudSpaceState' =None, switch_to_default_machine_on_idle: 'bool' =None, sync_duration: 'str' =None, sync_percentage: 'str' =None, tags: 'list[V1ResourceTag]' =None, thumbnail_file_type: 'str' =None, thumbnail_updated_at: 'datetime' =None, thumbnail_url: 'str' =None, total_size_bytes: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None, user_metadata: 'str' =None, web_path: 'str' =None): # noqa: E501
156
158
  """V1CloudSpace - a model defined in Swagger""" # noqa: E501
157
159
  self._auto_switch_machine = None
160
+ self._cache_data_connection_id = None
158
161
  self._can_download_source_code = None
159
162
  self._cluster_id = None
160
163
  self._code_config = None
@@ -210,6 +213,8 @@ class V1CloudSpace(object):
210
213
  self.discriminator = None
211
214
  if auto_switch_machine is not None:
212
215
  self.auto_switch_machine = auto_switch_machine
216
+ if cache_data_connection_id is not None:
217
+ self.cache_data_connection_id = cache_data_connection_id
213
218
  if can_download_source_code is not None:
214
219
  self.can_download_source_code = can_download_source_code
215
220
  if cluster_id is not None:
@@ -336,6 +341,27 @@ class V1CloudSpace(object):
336
341
 
337
342
  self._auto_switch_machine = auto_switch_machine
338
343
 
344
+ @property
345
+ def cache_data_connection_id(self) -> 'str':
346
+ """Gets the cache_data_connection_id of this V1CloudSpace. # noqa: E501
347
+
348
+
349
+ :return: The cache_data_connection_id of this V1CloudSpace. # noqa: E501
350
+ :rtype: str
351
+ """
352
+ return self._cache_data_connection_id
353
+
354
+ @cache_data_connection_id.setter
355
+ def cache_data_connection_id(self, cache_data_connection_id: 'str'):
356
+ """Sets the cache_data_connection_id of this V1CloudSpace.
357
+
358
+
359
+ :param cache_data_connection_id: The cache_data_connection_id of this V1CloudSpace. # noqa: E501
360
+ :type: str
361
+ """
362
+
363
+ self._cache_data_connection_id = cache_data_connection_id
364
+
339
365
  @property
340
366
  def can_download_source_code(self) -> 'bool':
341
367
  """Gets the can_download_source_code of this V1CloudSpace. # noqa: E501
@@ -45,6 +45,7 @@ class V1CloudSpaceEnvironmentTemplate(object):
45
45
  'created_at': 'datetime',
46
46
  'disabled': 'bool',
47
47
  'id': 'str',
48
+ 'managed': 'bool',
48
49
  'name': 'str',
49
50
  'org_id': 'str',
50
51
  'updated_at': 'datetime',
@@ -56,18 +57,20 @@ class V1CloudSpaceEnvironmentTemplate(object):
56
57
  'created_at': 'createdAt',
57
58
  'disabled': 'disabled',
58
59
  'id': 'id',
60
+ 'managed': 'managed',
59
61
  'name': 'name',
60
62
  'org_id': 'orgId',
61
63
  'updated_at': 'updatedAt',
62
64
  'user_id': 'userId'
63
65
  }
64
66
 
65
- def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, disabled: 'bool' =None, id: 'str' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
67
+ def __init__(self, config: 'V1CloudSpaceEnvironmentTemplateConfig' =None, created_at: 'datetime' =None, disabled: 'bool' =None, id: 'str' =None, managed: 'bool' =None, name: 'str' =None, org_id: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
66
68
  """V1CloudSpaceEnvironmentTemplate - a model defined in Swagger""" # noqa: E501
67
69
  self._config = None
68
70
  self._created_at = None
69
71
  self._disabled = None
70
72
  self._id = None
73
+ self._managed = None
71
74
  self._name = None
72
75
  self._org_id = None
73
76
  self._updated_at = None
@@ -81,6 +84,8 @@ class V1CloudSpaceEnvironmentTemplate(object):
81
84
  self.disabled = disabled
82
85
  if id is not None:
83
86
  self.id = id
87
+ if managed is not None:
88
+ self.managed = managed
84
89
  if name is not None:
85
90
  self.name = name
86
91
  if org_id is not None:
@@ -174,6 +179,27 @@ class V1CloudSpaceEnvironmentTemplate(object):
174
179
 
175
180
  self._id = id
176
181
 
182
+ @property
183
+ def managed(self) -> 'bool':
184
+ """Gets the managed of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
185
+
186
+
187
+ :return: The managed of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
188
+ :rtype: bool
189
+ """
190
+ return self._managed
191
+
192
+ @managed.setter
193
+ def managed(self, managed: 'bool'):
194
+ """Sets the managed of this V1CloudSpaceEnvironmentTemplate.
195
+
196
+
197
+ :param managed: The managed of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
198
+ :type: bool
199
+ """
200
+
201
+ self._managed = managed
202
+
177
203
  @property
178
204
  def name(self) -> 'str':
179
205
  """Gets the name of this V1CloudSpaceEnvironmentTemplate. # noqa: E501
@@ -53,6 +53,7 @@ class V1CreateDeploymentRequest(object):
53
53
  'parameter_spec': 'V1ParameterizationSpec',
54
54
  'parent_template_id': 'str',
55
55
  'project_id': 'str',
56
+ 'recipients': 'V1DeploymentAlertingRecipients',
56
57
  'replicas': 'int',
57
58
  'spec': 'V1JobSpec',
58
59
  'strategy': 'V1DeploymentStrategy'
@@ -71,12 +72,13 @@ class V1CreateDeploymentRequest(object):
71
72
  'parameter_spec': 'parameterSpec',
72
73
  'parent_template_id': 'parentTemplateId',
73
74
  'project_id': 'projectId',
75
+ 'recipients': 'recipients',
74
76
  'replicas': 'replicas',
75
77
  'spec': 'spec',
76
78
  'strategy': 'strategy'
77
79
  }
78
80
 
79
- def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_litserve: 'bool' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, project_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
81
+ def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_litserve: 'bool' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, project_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
80
82
  """V1CreateDeploymentRequest - a model defined in Swagger""" # noqa: E501
81
83
  self._api_standard = None
82
84
  self._apis = None
@@ -90,6 +92,7 @@ class V1CreateDeploymentRequest(object):
90
92
  self._parameter_spec = None
91
93
  self._parent_template_id = None
92
94
  self._project_id = None
95
+ self._recipients = None
93
96
  self._replicas = None
94
97
  self._spec = None
95
98
  self._strategy = None
@@ -118,6 +121,8 @@ class V1CreateDeploymentRequest(object):
118
121
  self.parent_template_id = parent_template_id
119
122
  if project_id is not None:
120
123
  self.project_id = project_id
124
+ if recipients is not None:
125
+ self.recipients = recipients
121
126
  if replicas is not None:
122
127
  self.replicas = replicas
123
128
  if spec is not None:
@@ -377,6 +382,27 @@ class V1CreateDeploymentRequest(object):
377
382
 
378
383
  self._project_id = project_id
379
384
 
385
+ @property
386
+ def recipients(self) -> 'V1DeploymentAlertingRecipients':
387
+ """Gets the recipients of this V1CreateDeploymentRequest. # noqa: E501
388
+
389
+
390
+ :return: The recipients of this V1CreateDeploymentRequest. # noqa: E501
391
+ :rtype: V1DeploymentAlertingRecipients
392
+ """
393
+ return self._recipients
394
+
395
+ @recipients.setter
396
+ def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
397
+ """Sets the recipients of this V1CreateDeploymentRequest.
398
+
399
+
400
+ :param recipients: The recipients of this V1CreateDeploymentRequest. # noqa: E501
401
+ :type: V1DeploymentAlertingRecipients
402
+ """
403
+
404
+ self._recipients = recipients
405
+
380
406
  @property
381
407
  def replicas(self) -> 'int':
382
408
  """Gets the replicas of this V1CreateDeploymentRequest. # noqa: E501
@@ -53,6 +53,7 @@ class V1DataConnection(object):
53
53
  'gcs_folder': 'V1GCSFolderDataConnection',
54
54
  'id': 'str',
55
55
  'index': 'V1Index',
56
+ 'is_cache': 'bool',
56
57
  'is_managed': 'bool',
57
58
  'lock_out': 'bool',
58
59
  'name': 'str',
@@ -83,6 +84,7 @@ class V1DataConnection(object):
83
84
  'gcs_folder': 'gcsFolder',
84
85
  'id': 'id',
85
86
  'index': 'index',
87
+ 'is_cache': 'isCache',
86
88
  'is_managed': 'isManaged',
87
89
  'lock_out': 'lockOut',
88
90
  'name': 'name',
@@ -100,7 +102,7 @@ class V1DataConnection(object):
100
102
  'writable': 'writable'
101
103
  }
102
104
 
103
- def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, r2: 'V1R2DataConnection' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
105
+ def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_cache: 'bool' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, r2: 'V1R2DataConnection' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
104
106
  """V1DataConnection - a model defined in Swagger""" # noqa: E501
105
107
  self._access_cluster_ids = None
106
108
  self._accessible = None
@@ -114,6 +116,7 @@ class V1DataConnection(object):
114
116
  self._gcs_folder = None
115
117
  self._id = None
116
118
  self._index = None
119
+ self._is_cache = None
117
120
  self._is_managed = None
118
121
  self._lock_out = None
119
122
  self._name = None
@@ -154,6 +157,8 @@ class V1DataConnection(object):
154
157
  self.id = id
155
158
  if index is not None:
156
159
  self.index = index
160
+ if is_cache is not None:
161
+ self.is_cache = is_cache
157
162
  if is_managed is not None:
158
163
  self.is_managed = is_managed
159
164
  if lock_out is not None:
@@ -437,6 +442,27 @@ class V1DataConnection(object):
437
442
 
438
443
  self._index = index
439
444
 
445
+ @property
446
+ def is_cache(self) -> 'bool':
447
+ """Gets the is_cache of this V1DataConnection. # noqa: E501
448
+
449
+
450
+ :return: The is_cache of this V1DataConnection. # noqa: E501
451
+ :rtype: bool
452
+ """
453
+ return self._is_cache
454
+
455
+ @is_cache.setter
456
+ def is_cache(self, is_cache: 'bool'):
457
+ """Sets the is_cache of this V1DataConnection.
458
+
459
+
460
+ :param is_cache: The is_cache of this V1DataConnection. # noqa: E501
461
+ :type: bool
462
+ """
463
+
464
+ self._is_cache = is_cache
465
+
440
466
  @property
441
467
  def is_managed(self) -> 'bool':
442
468
  """Gets the is_managed of this V1DataConnection. # noqa: E501
@@ -60,6 +60,7 @@ class V1Deployment(object):
60
60
  'parameter_spec': 'V1ParameterizationSpec',
61
61
  'pipeline_id': 'str',
62
62
  'project_id': 'str',
63
+ 'recipients': 'V1DeploymentAlertingRecipients',
63
64
  'release_id': 'str',
64
65
  'replicas': 'int',
65
66
  'spec': 'V1JobSpec',
@@ -92,6 +93,7 @@ class V1Deployment(object):
92
93
  'parameter_spec': 'parameterSpec',
93
94
  'pipeline_id': 'pipelineId',
94
95
  'project_id': 'projectId',
96
+ 'recipients': 'recipients',
95
97
  'release_id': 'releaseId',
96
98
  'replicas': 'replicas',
97
99
  'spec': 'spec',
@@ -104,7 +106,7 @@ class V1Deployment(object):
104
106
  'visibility': 'visibility'
105
107
  }
106
108
 
107
- def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, project_id: 'str' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
109
+ def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, assistant_id: 'str' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, created_at: 'datetime' =None, current_state: 'V1DeploymentState' =None, debug: 'bool' =None, desired_state: 'V1DeploymentState' =None, endpoint: 'V1Endpoint' =None, id: 'str' =None, is_published: 'bool' =None, managed: 'bool' =None, managed_endpoint_id: 'str' =None, name: 'str' =None, oncall_notification: 'bool' =None, parameter_spec: 'V1ParameterizationSpec' =None, pipeline_id: 'str' =None, project_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, release_id: 'str' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, status: 'V1DeploymentStatus' =None, strategy: 'V1DeploymentStrategy' =None, template_id: 'str' =None, total_cost: 'float' =None, updated_at: 'datetime' =None, user_id: 'str' =None, visibility: 'V1ResourceVisibility' =None): # noqa: E501
108
110
  """V1Deployment - a model defined in Swagger""" # noqa: E501
109
111
  self._api_standard = None
110
112
  self._apis = None
@@ -125,6 +127,7 @@ class V1Deployment(object):
125
127
  self._parameter_spec = None
126
128
  self._pipeline_id = None
127
129
  self._project_id = None
130
+ self._recipients = None
128
131
  self._release_id = None
129
132
  self._replicas = None
130
133
  self._spec = None
@@ -174,6 +177,8 @@ class V1Deployment(object):
174
177
  self.pipeline_id = pipeline_id
175
178
  if project_id is not None:
176
179
  self.project_id = project_id
180
+ if recipients is not None:
181
+ self.recipients = recipients
177
182
  if release_id is not None:
178
183
  self.release_id = release_id
179
184
  if replicas is not None:
@@ -594,6 +599,27 @@ class V1Deployment(object):
594
599
 
595
600
  self._project_id = project_id
596
601
 
602
+ @property
603
+ def recipients(self) -> 'V1DeploymentAlertingRecipients':
604
+ """Gets the recipients of this V1Deployment. # noqa: E501
605
+
606
+
607
+ :return: The recipients of this V1Deployment. # noqa: E501
608
+ :rtype: V1DeploymentAlertingRecipients
609
+ """
610
+ return self._recipients
611
+
612
+ @recipients.setter
613
+ def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
614
+ """Sets the recipients of this V1Deployment.
615
+
616
+
617
+ :param recipients: The recipients of this V1Deployment. # noqa: E501
618
+ :type: V1DeploymentAlertingRecipients
619
+ """
620
+
621
+ self._recipients = recipients
622
+
597
623
  @property
598
624
  def release_id(self) -> 'str':
599
625
  """Gets the release_id of this V1Deployment. # noqa: E501
@@ -49,6 +49,7 @@ class V1DeploymentAlertingPolicy(object):
49
49
  'name': 'str',
50
50
  'operation': 'V1DeploymentAlertingPolicyOperation',
51
51
  'project_id': 'str',
52
+ 'recipients': 'V1DeploymentAlertingRecipients',
52
53
  'severity': 'V1DeploymentAlertingPolicySeverity',
53
54
  'type': 'V1DeploymentAlertingPolicyType',
54
55
  'value': 'float'
@@ -63,12 +64,13 @@ class V1DeploymentAlertingPolicy(object):
63
64
  'name': 'name',
64
65
  'operation': 'operation',
65
66
  'project_id': 'projectId',
67
+ 'recipients': 'recipients',
66
68
  'severity': 'severity',
67
69
  'type': 'type',
68
70
  'value': 'value'
69
71
  }
70
72
 
71
- def __init__(self, deployment_id: 'str' =None, description: 'str' =None, frequency: 'V1DeploymentAlertingPolicyFrequency' =None, id: 'str' =None, limit: 'float' =None, name: 'str' =None, operation: 'V1DeploymentAlertingPolicyOperation' =None, project_id: 'str' =None, severity: 'V1DeploymentAlertingPolicySeverity' =None, type: 'V1DeploymentAlertingPolicyType' =None, value: 'float' =None): # noqa: E501
73
+ def __init__(self, deployment_id: 'str' =None, description: 'str' =None, frequency: 'V1DeploymentAlertingPolicyFrequency' =None, id: 'str' =None, limit: 'float' =None, name: 'str' =None, operation: 'V1DeploymentAlertingPolicyOperation' =None, project_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, severity: 'V1DeploymentAlertingPolicySeverity' =None, type: 'V1DeploymentAlertingPolicyType' =None, value: 'float' =None): # noqa: E501
72
74
  """V1DeploymentAlertingPolicy - a model defined in Swagger""" # noqa: E501
73
75
  self._deployment_id = None
74
76
  self._description = None
@@ -78,6 +80,7 @@ class V1DeploymentAlertingPolicy(object):
78
80
  self._name = None
79
81
  self._operation = None
80
82
  self._project_id = None
83
+ self._recipients = None
81
84
  self._severity = None
82
85
  self._type = None
83
86
  self._value = None
@@ -98,6 +101,8 @@ class V1DeploymentAlertingPolicy(object):
98
101
  self.operation = operation
99
102
  if project_id is not None:
100
103
  self.project_id = project_id
104
+ if recipients is not None:
105
+ self.recipients = recipients
101
106
  if severity is not None:
102
107
  self.severity = severity
103
108
  if type is not None:
@@ -273,6 +278,27 @@ class V1DeploymentAlertingPolicy(object):
273
278
 
274
279
  self._project_id = project_id
275
280
 
281
+ @property
282
+ def recipients(self) -> 'V1DeploymentAlertingRecipients':
283
+ """Gets the recipients of this V1DeploymentAlertingPolicy. # noqa: E501
284
+
285
+
286
+ :return: The recipients of this V1DeploymentAlertingPolicy. # noqa: E501
287
+ :rtype: V1DeploymentAlertingRecipients
288
+ """
289
+ return self._recipients
290
+
291
+ @recipients.setter
292
+ def recipients(self, recipients: 'V1DeploymentAlertingRecipients'):
293
+ """Sets the recipients of this V1DeploymentAlertingPolicy.
294
+
295
+
296
+ :param recipients: The recipients of this V1DeploymentAlertingPolicy. # noqa: E501
297
+ :type: V1DeploymentAlertingRecipients
298
+ """
299
+
300
+ self._recipients = recipients
301
+
276
302
  @property
277
303
  def severity(self) -> 'V1DeploymentAlertingPolicySeverity':
278
304
  """Gets the severity of this V1DeploymentAlertingPolicy. # noqa: E501
@@ -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 V1DeploymentAlertingRecipients(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
+ 'org_admins': 'bool',
45
+ 'teamspace_admins': 'bool',
46
+ 'user_ids': 'list[str]'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'org_admins': 'orgAdmins',
51
+ 'teamspace_admins': 'teamspaceAdmins',
52
+ 'user_ids': 'userIds'
53
+ }
54
+
55
+ def __init__(self, org_admins: 'bool' =None, teamspace_admins: 'bool' =None, user_ids: 'list[str]' =None): # noqa: E501
56
+ """V1DeploymentAlertingRecipients - a model defined in Swagger""" # noqa: E501
57
+ self._org_admins = None
58
+ self._teamspace_admins = None
59
+ self._user_ids = None
60
+ self.discriminator = None
61
+ if org_admins is not None:
62
+ self.org_admins = org_admins
63
+ if teamspace_admins is not None:
64
+ self.teamspace_admins = teamspace_admins
65
+ if user_ids is not None:
66
+ self.user_ids = user_ids
67
+
68
+ @property
69
+ def org_admins(self) -> 'bool':
70
+ """Gets the org_admins of this V1DeploymentAlertingRecipients. # noqa: E501
71
+
72
+
73
+ :return: The org_admins of this V1DeploymentAlertingRecipients. # noqa: E501
74
+ :rtype: bool
75
+ """
76
+ return self._org_admins
77
+
78
+ @org_admins.setter
79
+ def org_admins(self, org_admins: 'bool'):
80
+ """Sets the org_admins of this V1DeploymentAlertingRecipients.
81
+
82
+
83
+ :param org_admins: The org_admins of this V1DeploymentAlertingRecipients. # noqa: E501
84
+ :type: bool
85
+ """
86
+
87
+ self._org_admins = org_admins
88
+
89
+ @property
90
+ def teamspace_admins(self) -> 'bool':
91
+ """Gets the teamspace_admins of this V1DeploymentAlertingRecipients. # noqa: E501
92
+
93
+
94
+ :return: The teamspace_admins of this V1DeploymentAlertingRecipients. # noqa: E501
95
+ :rtype: bool
96
+ """
97
+ return self._teamspace_admins
98
+
99
+ @teamspace_admins.setter
100
+ def teamspace_admins(self, teamspace_admins: 'bool'):
101
+ """Sets the teamspace_admins of this V1DeploymentAlertingRecipients.
102
+
103
+
104
+ :param teamspace_admins: The teamspace_admins of this V1DeploymentAlertingRecipients. # noqa: E501
105
+ :type: bool
106
+ """
107
+
108
+ self._teamspace_admins = teamspace_admins
109
+
110
+ @property
111
+ def user_ids(self) -> 'list[str]':
112
+ """Gets the user_ids of this V1DeploymentAlertingRecipients. # noqa: E501
113
+
114
+
115
+ :return: The user_ids of this V1DeploymentAlertingRecipients. # noqa: E501
116
+ :rtype: list[str]
117
+ """
118
+ return self._user_ids
119
+
120
+ @user_ids.setter
121
+ def user_ids(self, user_ids: 'list[str]'):
122
+ """Sets the user_ids of this V1DeploymentAlertingRecipients.
123
+
124
+
125
+ :param user_ids: The user_ids of this V1DeploymentAlertingRecipients. # noqa: E501
126
+ :type: list[str]
127
+ """
128
+
129
+ self._user_ids = user_ids
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(V1DeploymentAlertingRecipients, 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: 'V1DeploymentAlertingRecipients') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, V1DeploymentAlertingRecipients):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'V1DeploymentAlertingRecipients') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other
@@ -47,7 +47,6 @@ class V1GoogleCloudDirectV1(object):
47
47
  'credentials_secret_id': 'str',
48
48
  'credentials_service_account_email': 'str',
49
49
  'custom_subnet_mode': 'bool',
50
- 'migration_bucket_name': 'str',
51
50
  'primary_region': 'str',
52
51
  'project_id': 'str',
53
52
  'project_sa_enabled': 'bool',
@@ -65,7 +64,6 @@ class V1GoogleCloudDirectV1(object):
65
64
  'credentials_secret_id': 'credentialsSecretId',
66
65
  'credentials_service_account_email': 'credentialsServiceAccountEmail',
67
66
  'custom_subnet_mode': 'customSubnetMode',
68
- 'migration_bucket_name': 'migrationBucketName',
69
67
  'primary_region': 'primaryRegion',
70
68
  'project_id': 'projectId',
71
69
  'project_sa_enabled': 'projectSaEnabled',
@@ -76,7 +74,7 @@ class V1GoogleCloudDirectV1(object):
76
74
  'vpcs': 'vpcs'
77
75
  }
78
76
 
79
- def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, compute_service_account_email: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, migration_bucket_name: 'str' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpcs: 'list[V1GCPDirectVPC]' =None): # noqa: E501
77
+ def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, compute_service_account_email: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpcs: 'list[V1GCPDirectVPC]' =None): # noqa: E501
80
78
  """V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
81
79
  self._bucket_name = None
82
80
  self._compute_project_role = None
@@ -84,7 +82,6 @@ class V1GoogleCloudDirectV1(object):
84
82
  self._credentials_secret_id = None
85
83
  self._credentials_service_account_email = None
86
84
  self._custom_subnet_mode = None
87
- self._migration_bucket_name = None
88
85
  self._primary_region = None
89
86
  self._project_id = None
90
87
  self._project_sa_enabled = None
@@ -106,8 +103,6 @@ class V1GoogleCloudDirectV1(object):
106
103
  self.credentials_service_account_email = credentials_service_account_email
107
104
  if custom_subnet_mode is not None:
108
105
  self.custom_subnet_mode = custom_subnet_mode
109
- if migration_bucket_name is not None:
110
- self.migration_bucket_name = migration_bucket_name
111
106
  if primary_region is not None:
112
107
  self.primary_region = primary_region
113
108
  if project_id is not None:
@@ -253,27 +248,6 @@ class V1GoogleCloudDirectV1(object):
253
248
 
254
249
  self._custom_subnet_mode = custom_subnet_mode
255
250
 
256
- @property
257
- def migration_bucket_name(self) -> 'str':
258
- """Gets the migration_bucket_name of this V1GoogleCloudDirectV1. # noqa: E501
259
-
260
-
261
- :return: The migration_bucket_name of this V1GoogleCloudDirectV1. # noqa: E501
262
- :rtype: str
263
- """
264
- return self._migration_bucket_name
265
-
266
- @migration_bucket_name.setter
267
- def migration_bucket_name(self, migration_bucket_name: 'str'):
268
- """Sets the migration_bucket_name of this V1GoogleCloudDirectV1.
269
-
270
-
271
- :param migration_bucket_name: The migration_bucket_name of this V1GoogleCloudDirectV1. # noqa: E501
272
- :type: str
273
- """
274
-
275
- self._migration_bucket_name = migration_bucket_name
276
-
277
251
  @property
278
252
  def primary_region(self) -> 'str':
279
253
  """Gets the primary_region of this V1GoogleCloudDirectV1. # noqa: E501