lightning-sdk 0.2.14__py3-none-any.whl → 0.2.15__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 (83) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +73 -0
  3. lightning_sdk/api/license_api.py +48 -0
  4. lightning_sdk/api/llm_api.py +50 -8
  5. lightning_sdk/api/studio_api.py +47 -1
  6. lightning_sdk/base_studio.py +70 -0
  7. lightning_sdk/cli/delete.py +6 -8
  8. lightning_sdk/cli/download.py +25 -0
  9. lightning_sdk/cli/serve.py +82 -30
  10. lightning_sdk/cli/teamspace_menu.py +9 -1
  11. lightning_sdk/cli/upload.py +0 -1
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
  13. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  14. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  15. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
  16. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  17. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
  18. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  19. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  20. lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
  21. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  22. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +79 -1
  25. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
  28. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  41. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  45. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  50. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +17 -17
  55. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  58. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +17 -17
  63. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  65. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  70. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +295 -113
  72. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  73. lightning_sdk/llm/llm.py +88 -40
  74. lightning_sdk/services/__init__.py +1 -1
  75. lightning_sdk/services/license.py +236 -0
  76. lightning_sdk/studio.py +30 -0
  77. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
  78. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
  79. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  80. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
  81. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
  82. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
  83. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/top_level.txt +0 -0
@@ -44,10 +44,12 @@ class V1Organization(object):
44
44
  'alerts_config': 'V1AlertsConfig',
45
45
  'allow_aws_saas': 'bool',
46
46
  'allow_budgeting': 'bool',
47
+ 'allow_dgx_saas': 'bool',
47
48
  'allow_external_project_duplication': 'bool',
48
49
  'allow_gcp_saas': 'bool',
49
50
  'allow_guest': 'bool',
50
51
  'allow_lambda_saas': 'bool',
52
+ 'allow_lightning_saas': 'bool',
51
53
  'allow_marketplace': 'bool',
52
54
  'allow_member_invitations': 'bool',
53
55
  'allow_member_teamspace_creation': 'bool',
@@ -55,6 +57,7 @@ class V1Organization(object):
55
57
  'auto_invite_by_domain': 'bool',
56
58
  'auto_join_domain_validations': 'dict(str, V1AutoJoinDomainValidation)',
57
59
  'auto_join_domains': 'list[str]',
60
+ 'auto_switch_machine': 'bool',
58
61
  'created_at': 'datetime',
59
62
  'default_machine_image_version': 'str',
60
63
  'default_machine_type': 'str',
@@ -83,10 +86,12 @@ class V1Organization(object):
83
86
  'alerts_config': 'alertsConfig',
84
87
  'allow_aws_saas': 'allowAwsSaas',
85
88
  'allow_budgeting': 'allowBudgeting',
89
+ 'allow_dgx_saas': 'allowDgxSaas',
86
90
  'allow_external_project_duplication': 'allowExternalProjectDuplication',
87
91
  'allow_gcp_saas': 'allowGcpSaas',
88
92
  'allow_guest': 'allowGuest',
89
93
  'allow_lambda_saas': 'allowLambdaSaas',
94
+ 'allow_lightning_saas': 'allowLightningSaas',
90
95
  'allow_marketplace': 'allowMarketplace',
91
96
  'allow_member_invitations': 'allowMemberInvitations',
92
97
  'allow_member_teamspace_creation': 'allowMemberTeamspaceCreation',
@@ -94,6 +99,7 @@ class V1Organization(object):
94
99
  'auto_invite_by_domain': 'autoInviteByDomain',
95
100
  'auto_join_domain_validations': 'autoJoinDomainValidations',
96
101
  'auto_join_domains': 'autoJoinDomains',
102
+ 'auto_switch_machine': 'autoSwitchMachine',
97
103
  'created_at': 'createdAt',
98
104
  'default_machine_image_version': 'defaultMachineImageVersion',
99
105
  'default_machine_type': 'defaultMachineType',
@@ -118,15 +124,17 @@ class V1Organization(object):
118
124
  'workload_max_run_duration': 'workloadMaxRunDuration'
119
125
  }
120
126
 
121
- def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_aws_saas: 'bool' =None, allow_budgeting: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
127
+ def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_aws_saas: 'bool' =None, allow_budgeting: 'bool' =None, allow_dgx_saas: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_guest: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_lightning_saas: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, allow_vultr_saas: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
122
128
  """V1Organization - a model defined in Swagger""" # noqa: E501
123
129
  self._alerts_config = None
124
130
  self._allow_aws_saas = None
125
131
  self._allow_budgeting = None
132
+ self._allow_dgx_saas = None
126
133
  self._allow_external_project_duplication = None
127
134
  self._allow_gcp_saas = None
128
135
  self._allow_guest = None
129
136
  self._allow_lambda_saas = None
137
+ self._allow_lightning_saas = None
130
138
  self._allow_marketplace = None
131
139
  self._allow_member_invitations = None
132
140
  self._allow_member_teamspace_creation = None
@@ -134,6 +142,7 @@ class V1Organization(object):
134
142
  self._auto_invite_by_domain = None
135
143
  self._auto_join_domain_validations = None
136
144
  self._auto_join_domains = None
145
+ self._auto_switch_machine = None
137
146
  self._created_at = None
138
147
  self._default_machine_image_version = None
139
148
  self._default_machine_type = None
@@ -163,6 +172,8 @@ class V1Organization(object):
163
172
  self.allow_aws_saas = allow_aws_saas
164
173
  if allow_budgeting is not None:
165
174
  self.allow_budgeting = allow_budgeting
175
+ if allow_dgx_saas is not None:
176
+ self.allow_dgx_saas = allow_dgx_saas
166
177
  if allow_external_project_duplication is not None:
167
178
  self.allow_external_project_duplication = allow_external_project_duplication
168
179
  if allow_gcp_saas is not None:
@@ -171,6 +182,8 @@ class V1Organization(object):
171
182
  self.allow_guest = allow_guest
172
183
  if allow_lambda_saas is not None:
173
184
  self.allow_lambda_saas = allow_lambda_saas
185
+ if allow_lightning_saas is not None:
186
+ self.allow_lightning_saas = allow_lightning_saas
174
187
  if allow_marketplace is not None:
175
188
  self.allow_marketplace = allow_marketplace
176
189
  if allow_member_invitations is not None:
@@ -185,6 +198,8 @@ class V1Organization(object):
185
198
  self.auto_join_domain_validations = auto_join_domain_validations
186
199
  if auto_join_domains is not None:
187
200
  self.auto_join_domains = auto_join_domains
201
+ if auto_switch_machine is not None:
202
+ self.auto_switch_machine = auto_switch_machine
188
203
  if created_at is not None:
189
204
  self.created_at = created_at
190
205
  if default_machine_image_version is not None:
@@ -293,6 +308,27 @@ class V1Organization(object):
293
308
 
294
309
  self._allow_budgeting = allow_budgeting
295
310
 
311
+ @property
312
+ def allow_dgx_saas(self) -> 'bool':
313
+ """Gets the allow_dgx_saas of this V1Organization. # noqa: E501
314
+
315
+
316
+ :return: The allow_dgx_saas of this V1Organization. # noqa: E501
317
+ :rtype: bool
318
+ """
319
+ return self._allow_dgx_saas
320
+
321
+ @allow_dgx_saas.setter
322
+ def allow_dgx_saas(self, allow_dgx_saas: 'bool'):
323
+ """Sets the allow_dgx_saas of this V1Organization.
324
+
325
+
326
+ :param allow_dgx_saas: The allow_dgx_saas of this V1Organization. # noqa: E501
327
+ :type: bool
328
+ """
329
+
330
+ self._allow_dgx_saas = allow_dgx_saas
331
+
296
332
  @property
297
333
  def allow_external_project_duplication(self) -> 'bool':
298
334
  """Gets the allow_external_project_duplication of this V1Organization. # noqa: E501
@@ -379,6 +415,27 @@ class V1Organization(object):
379
415
 
380
416
  self._allow_lambda_saas = allow_lambda_saas
381
417
 
418
+ @property
419
+ def allow_lightning_saas(self) -> 'bool':
420
+ """Gets the allow_lightning_saas of this V1Organization. # noqa: E501
421
+
422
+
423
+ :return: The allow_lightning_saas of this V1Organization. # noqa: E501
424
+ :rtype: bool
425
+ """
426
+ return self._allow_lightning_saas
427
+
428
+ @allow_lightning_saas.setter
429
+ def allow_lightning_saas(self, allow_lightning_saas: 'bool'):
430
+ """Sets the allow_lightning_saas of this V1Organization.
431
+
432
+
433
+ :param allow_lightning_saas: The allow_lightning_saas of this V1Organization. # noqa: E501
434
+ :type: bool
435
+ """
436
+
437
+ self._allow_lightning_saas = allow_lightning_saas
438
+
382
439
  @property
383
440
  def allow_marketplace(self) -> 'bool':
384
441
  """Gets the allow_marketplace of this V1Organization. # noqa: E501
@@ -526,6 +583,27 @@ class V1Organization(object):
526
583
 
527
584
  self._auto_join_domains = auto_join_domains
528
585
 
586
+ @property
587
+ def auto_switch_machine(self) -> 'bool':
588
+ """Gets the auto_switch_machine of this V1Organization. # noqa: E501
589
+
590
+
591
+ :return: The auto_switch_machine of this V1Organization. # noqa: E501
592
+ :rtype: bool
593
+ """
594
+ return self._auto_switch_machine
595
+
596
+ @auto_switch_machine.setter
597
+ def auto_switch_machine(self, auto_switch_machine: 'bool'):
598
+ """Sets the auto_switch_machine of this V1Organization.
599
+
600
+
601
+ :param auto_switch_machine: The auto_switch_machine of this V1Organization. # noqa: E501
602
+ :type: bool
603
+ """
604
+
605
+ self._auto_switch_machine = auto_switch_machine
606
+
529
607
  @property
530
608
  def created_at(self) -> 'datetime':
531
609
  """Gets the created_at of this V1Organization. # noqa: E501
@@ -54,7 +54,7 @@ class V1Pipeline(object):
54
54
  'project_id': 'str',
55
55
  'schedule_id': 'str',
56
56
  'shared_filesystem': 'V1SharedFilesystem',
57
- 'state': 'str',
57
+ 'state': 'V1PipelineState',
58
58
  'statuses': 'list[V1PipelineStepStatus]',
59
59
  'steps': 'list[V1PipelineStep]',
60
60
  'updated_at': 'datetime',
@@ -82,7 +82,7 @@ class V1Pipeline(object):
82
82
  'user_id': 'userId'
83
83
  }
84
84
 
85
- def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, id: 'str' =None, is_published: 'bool' =None, message: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, project_id: 'str' =None, schedule_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'str' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
85
+ def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, display_name: 'str' =None, error: 'str' =None, id: 'str' =None, is_published: 'bool' =None, message: 'str' =None, name: 'str' =None, parameters: 'list[V1PipelineParameter]' =None, parent_pipeline_id: 'str' =None, project_id: 'str' =None, schedule_id: 'str' =None, shared_filesystem: 'V1SharedFilesystem' =None, state: 'V1PipelineState' =None, statuses: 'list[V1PipelineStepStatus]' =None, steps: 'list[V1PipelineStep]' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
86
86
  """V1Pipeline - a model defined in Swagger""" # noqa: E501
87
87
  self._cluster_id = None
88
88
  self._created_at = None
@@ -414,22 +414,22 @@ class V1Pipeline(object):
414
414
  self._shared_filesystem = shared_filesystem
415
415
 
416
416
  @property
417
- def state(self) -> 'str':
417
+ def state(self) -> 'V1PipelineState':
418
418
  """Gets the state of this V1Pipeline. # noqa: E501
419
419
 
420
420
 
421
421
  :return: The state of this V1Pipeline. # noqa: E501
422
- :rtype: str
422
+ :rtype: V1PipelineState
423
423
  """
424
424
  return self._state
425
425
 
426
426
  @state.setter
427
- def state(self, state: 'str'):
427
+ def state(self, state: 'V1PipelineState'):
428
428
  """Sets the state of this V1Pipeline.
429
429
 
430
430
 
431
431
  :param state: The state of this V1Pipeline. # noqa: E501
432
- :type: str
432
+ :type: V1PipelineState
433
433
  """
434
434
 
435
435
  self._state = state
@@ -0,0 +1,111 @@
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 V1PipelineState(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ """
38
+ allowed enum values
39
+ """
40
+ UNSPECIFIED = "PIPELINE_STATE_UNSPECIFIED"
41
+ PENDING = "PIPELINE_STATE_PENDING"
42
+ RUNNING = "PIPELINE_STATE_RUNNING"
43
+ FAILED = "PIPELINE_STATE_FAILED"
44
+ DELETED = "PIPELINE_STATE_DELETED"
45
+ STOPPED = "PIPELINE_STATE_STOPPED"
46
+ SUSPENDED = "PIPELINE_STATE_SUSPENDED"
47
+ COMPLETED = "PIPELINE_STATE_COMPLETED"
48
+ STOP = "PIPELINE_STATE_STOP"
49
+ DELETE = "PIPELINE_STATE_DELETE"
50
+ """
51
+ Attributes:
52
+ swagger_types (dict): The key is attribute name
53
+ and the value is attribute type.
54
+ attribute_map (dict): The key is attribute name
55
+ and the value is json key in definition.
56
+ """
57
+ swagger_types = {
58
+ }
59
+
60
+ attribute_map = {
61
+ }
62
+
63
+ def __init__(self): # noqa: E501
64
+ """V1PipelineState - a model defined in Swagger""" # noqa: E501
65
+ self.discriminator = None
66
+
67
+ def to_dict(self) -> dict:
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.swagger_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ result[attr] = value
88
+ if issubclass(V1PipelineState, dict):
89
+ for key, value in self.items():
90
+ result[key] = value
91
+
92
+ return result
93
+
94
+ def to_str(self) -> str:
95
+ """Returns the string representation of the model"""
96
+ return pprint.pformat(self.to_dict())
97
+
98
+ def __repr__(self) -> str:
99
+ """For `print` and `pprint`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other: 'V1PipelineState') -> bool:
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, V1PipelineState):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other: 'V1PipelineState') -> bool:
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -41,25 +41,56 @@ class V1PresignedUrl(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'cluster_id': 'str',
44
45
  'part_number': 'str',
46
+ 'upload_id': 'str',
45
47
  'url': 'str'
46
48
  }
47
49
 
48
50
  attribute_map = {
51
+ 'cluster_id': 'clusterId',
49
52
  'part_number': 'partNumber',
53
+ 'upload_id': 'uploadId',
50
54
  'url': 'url'
51
55
  }
52
56
 
53
- def __init__(self, part_number: 'str' =None, url: 'str' =None): # noqa: E501
57
+ def __init__(self, cluster_id: 'str' =None, part_number: 'str' =None, upload_id: 'str' =None, url: 'str' =None): # noqa: E501
54
58
  """V1PresignedUrl - a model defined in Swagger""" # noqa: E501
59
+ self._cluster_id = None
55
60
  self._part_number = None
61
+ self._upload_id = None
56
62
  self._url = None
57
63
  self.discriminator = None
64
+ if cluster_id is not None:
65
+ self.cluster_id = cluster_id
58
66
  if part_number is not None:
59
67
  self.part_number = part_number
68
+ if upload_id is not None:
69
+ self.upload_id = upload_id
60
70
  if url is not None:
61
71
  self.url = url
62
72
 
73
+ @property
74
+ def cluster_id(self) -> 'str':
75
+ """Gets the cluster_id of this V1PresignedUrl. # noqa: E501
76
+
77
+
78
+ :return: The cluster_id of this V1PresignedUrl. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._cluster_id
82
+
83
+ @cluster_id.setter
84
+ def cluster_id(self, cluster_id: 'str'):
85
+ """Sets the cluster_id of this V1PresignedUrl.
86
+
87
+
88
+ :param cluster_id: The cluster_id of this V1PresignedUrl. # noqa: E501
89
+ :type: str
90
+ """
91
+
92
+ self._cluster_id = cluster_id
93
+
63
94
  @property
64
95
  def part_number(self) -> 'str':
65
96
  """Gets the part_number of this V1PresignedUrl. # noqa: E501
@@ -81,6 +112,27 @@ class V1PresignedUrl(object):
81
112
 
82
113
  self._part_number = part_number
83
114
 
115
+ @property
116
+ def upload_id(self) -> 'str':
117
+ """Gets the upload_id of this V1PresignedUrl. # noqa: E501
118
+
119
+
120
+ :return: The upload_id of this V1PresignedUrl. # noqa: E501
121
+ :rtype: str
122
+ """
123
+ return self._upload_id
124
+
125
+ @upload_id.setter
126
+ def upload_id(self, upload_id: 'str'):
127
+ """Sets the upload_id of this V1PresignedUrl.
128
+
129
+
130
+ :param upload_id: The upload_id of this V1PresignedUrl. # noqa: E501
131
+ :type: str
132
+ """
133
+
134
+ self._upload_id = upload_id
135
+
84
136
  @property
85
137
  def url(self) -> 'str':
86
138
  """Gets the url of this V1PresignedUrl. # noqa: E501