lightning-sdk 0.2.14__py3-none-any.whl → 0.2.16__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/base_studio_api.py +79 -0
- lightning_sdk/api/cluster_api.py +83 -1
- lightning_sdk/api/license_api.py +48 -0
- lightning_sdk/api/llm_api.py +73 -12
- lightning_sdk/api/studio_api.py +50 -1
- lightning_sdk/api/teamspace_api.py +127 -1
- lightning_sdk/api/utils.py +4 -0
- lightning_sdk/base_studio.py +83 -0
- lightning_sdk/cli/create.py +21 -1
- lightning_sdk/cli/delete.py +6 -8
- lightning_sdk/cli/deploy/__init__.py +0 -0
- lightning_sdk/cli/deploy/_auth.py +189 -0
- lightning_sdk/cli/deploy/devbox.py +157 -0
- lightning_sdk/cli/{serve.py → deploy/serve.py} +22 -281
- lightning_sdk/cli/download.py +69 -16
- lightning_sdk/cli/entrypoint.py +1 -1
- lightning_sdk/cli/open.py +21 -2
- lightning_sdk/cli/start.py +12 -3
- lightning_sdk/cli/teamspace_menu.py +9 -1
- lightning_sdk/cli/upload.py +2 -5
- lightning_sdk/lightning_cloud/openapi/__init__.py +29 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +121 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +226 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +984 -101
- lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +93 -0
- lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/cloudspaces_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/deployment_id_alertingpolicies_body1.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/models_id_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +183 -1
- lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_source_type.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_tagging_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_deployment_alerting_policy_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_event.py +487 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_frequency.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_operation.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_severity.py +106 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
- lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_instance_open_ports_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_deployment_routing_telemetry_content_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_deployment_alerting_policies_response.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +183 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_routing_telemetry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +2 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sleep_server_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +347 -113
- lightning_sdk/lightning_cloud/openapi/models/v1_user_requested_compute_config.py +27 -1
- lightning_sdk/lightning_cloud/rest_client.py +4 -0
- lightning_sdk/llm/llm.py +132 -40
- lightning_sdk/services/__init__.py +1 -1
- lightning_sdk/services/license.py +236 -0
- lightning_sdk/studio.py +62 -1
- lightning_sdk/teamspace.py +68 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/RECORD +122 -86
- /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.16.dist-info}/top_level.txt +0 -0
|
@@ -41,25 +41,56 @@ class V1GetJobStatsResponse(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'running_deployments': 'int',
|
|
44
45
|
'running_jobs': 'int',
|
|
46
|
+
'running_pipelines': 'int',
|
|
45
47
|
'total_jobs': 'int'
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
attribute_map = {
|
|
51
|
+
'running_deployments': 'runningDeployments',
|
|
49
52
|
'running_jobs': 'runningJobs',
|
|
53
|
+
'running_pipelines': 'runningPipelines',
|
|
50
54
|
'total_jobs': 'totalJobs'
|
|
51
55
|
}
|
|
52
56
|
|
|
53
|
-
def __init__(self, running_jobs: 'int' =None, total_jobs: 'int' =None): # noqa: E501
|
|
57
|
+
def __init__(self, running_deployments: 'int' =None, running_jobs: 'int' =None, running_pipelines: 'int' =None, total_jobs: 'int' =None): # noqa: E501
|
|
54
58
|
"""V1GetJobStatsResponse - a model defined in Swagger""" # noqa: E501
|
|
59
|
+
self._running_deployments = None
|
|
55
60
|
self._running_jobs = None
|
|
61
|
+
self._running_pipelines = None
|
|
56
62
|
self._total_jobs = None
|
|
57
63
|
self.discriminator = None
|
|
64
|
+
if running_deployments is not None:
|
|
65
|
+
self.running_deployments = running_deployments
|
|
58
66
|
if running_jobs is not None:
|
|
59
67
|
self.running_jobs = running_jobs
|
|
68
|
+
if running_pipelines is not None:
|
|
69
|
+
self.running_pipelines = running_pipelines
|
|
60
70
|
if total_jobs is not None:
|
|
61
71
|
self.total_jobs = total_jobs
|
|
62
72
|
|
|
73
|
+
@property
|
|
74
|
+
def running_deployments(self) -> 'int':
|
|
75
|
+
"""Gets the running_deployments of this V1GetJobStatsResponse. # noqa: E501
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The running_deployments of this V1GetJobStatsResponse. # noqa: E501
|
|
79
|
+
:rtype: int
|
|
80
|
+
"""
|
|
81
|
+
return self._running_deployments
|
|
82
|
+
|
|
83
|
+
@running_deployments.setter
|
|
84
|
+
def running_deployments(self, running_deployments: 'int'):
|
|
85
|
+
"""Sets the running_deployments of this V1GetJobStatsResponse.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param running_deployments: The running_deployments of this V1GetJobStatsResponse. # noqa: E501
|
|
89
|
+
:type: int
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._running_deployments = running_deployments
|
|
93
|
+
|
|
63
94
|
@property
|
|
64
95
|
def running_jobs(self) -> 'int':
|
|
65
96
|
"""Gets the running_jobs of this V1GetJobStatsResponse. # noqa: E501
|
|
@@ -81,6 +112,27 @@ class V1GetJobStatsResponse(object):
|
|
|
81
112
|
|
|
82
113
|
self._running_jobs = running_jobs
|
|
83
114
|
|
|
115
|
+
@property
|
|
116
|
+
def running_pipelines(self) -> 'int':
|
|
117
|
+
"""Gets the running_pipelines of this V1GetJobStatsResponse. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The running_pipelines of this V1GetJobStatsResponse. # noqa: E501
|
|
121
|
+
:rtype: int
|
|
122
|
+
"""
|
|
123
|
+
return self._running_pipelines
|
|
124
|
+
|
|
125
|
+
@running_pipelines.setter
|
|
126
|
+
def running_pipelines(self, running_pipelines: 'int'):
|
|
127
|
+
"""Sets the running_pipelines of this V1GetJobStatsResponse.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param running_pipelines: The running_pipelines of this V1GetJobStatsResponse. # noqa: E501
|
|
131
|
+
:type: int
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._running_pipelines = running_pipelines
|
|
135
|
+
|
|
84
136
|
@property
|
|
85
137
|
def total_jobs(self) -> 'int':
|
|
86
138
|
"""Gets the total_jobs of this V1GetJobStatsResponse. # noqa: E501
|
|
@@ -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 V1GetOrganizationStorageMetadataResponse(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
|
+
'account_limit_bytes': 'str',
|
|
45
|
+
'id': 'str',
|
|
46
|
+
'project_metadata': 'list[V1ProjectStorage]',
|
|
47
|
+
'total_billable_bytes': 'str',
|
|
48
|
+
'total_cloudspace_storage_bytes': 'str',
|
|
49
|
+
'total_data_connection_storage_bytes': 'str',
|
|
50
|
+
'total_job_storage_bytes': 'str',
|
|
51
|
+
'total_storage_bytes': 'str',
|
|
52
|
+
'total_upload_storage_bytes': 'str'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
attribute_map = {
|
|
56
|
+
'account_limit_bytes': 'accountLimitBytes',
|
|
57
|
+
'id': 'id',
|
|
58
|
+
'project_metadata': 'projectMetadata',
|
|
59
|
+
'total_billable_bytes': 'totalBillableBytes',
|
|
60
|
+
'total_cloudspace_storage_bytes': 'totalCloudspaceStorageBytes',
|
|
61
|
+
'total_data_connection_storage_bytes': 'totalDataConnectionStorageBytes',
|
|
62
|
+
'total_job_storage_bytes': 'totalJobStorageBytes',
|
|
63
|
+
'total_storage_bytes': 'totalStorageBytes',
|
|
64
|
+
'total_upload_storage_bytes': 'totalUploadStorageBytes'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
def __init__(self, account_limit_bytes: 'str' =None, id: 'str' =None, project_metadata: 'list[V1ProjectStorage]' =None, total_billable_bytes: 'str' =None, total_cloudspace_storage_bytes: 'str' =None, total_data_connection_storage_bytes: 'str' =None, total_job_storage_bytes: 'str' =None, total_storage_bytes: 'str' =None, total_upload_storage_bytes: 'str' =None): # noqa: E501
|
|
68
|
+
"""V1GetOrganizationStorageMetadataResponse - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
self._account_limit_bytes = None
|
|
70
|
+
self._id = None
|
|
71
|
+
self._project_metadata = None
|
|
72
|
+
self._total_billable_bytes = None
|
|
73
|
+
self._total_cloudspace_storage_bytes = None
|
|
74
|
+
self._total_data_connection_storage_bytes = None
|
|
75
|
+
self._total_job_storage_bytes = None
|
|
76
|
+
self._total_storage_bytes = None
|
|
77
|
+
self._total_upload_storage_bytes = None
|
|
78
|
+
self.discriminator = None
|
|
79
|
+
if account_limit_bytes is not None:
|
|
80
|
+
self.account_limit_bytes = account_limit_bytes
|
|
81
|
+
if id is not None:
|
|
82
|
+
self.id = id
|
|
83
|
+
if project_metadata is not None:
|
|
84
|
+
self.project_metadata = project_metadata
|
|
85
|
+
if total_billable_bytes is not None:
|
|
86
|
+
self.total_billable_bytes = total_billable_bytes
|
|
87
|
+
if total_cloudspace_storage_bytes is not None:
|
|
88
|
+
self.total_cloudspace_storage_bytes = total_cloudspace_storage_bytes
|
|
89
|
+
if total_data_connection_storage_bytes is not None:
|
|
90
|
+
self.total_data_connection_storage_bytes = total_data_connection_storage_bytes
|
|
91
|
+
if total_job_storage_bytes is not None:
|
|
92
|
+
self.total_job_storage_bytes = total_job_storage_bytes
|
|
93
|
+
if total_storage_bytes is not None:
|
|
94
|
+
self.total_storage_bytes = total_storage_bytes
|
|
95
|
+
if total_upload_storage_bytes is not None:
|
|
96
|
+
self.total_upload_storage_bytes = total_upload_storage_bytes
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def account_limit_bytes(self) -> 'str':
|
|
100
|
+
"""Gets the account_limit_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:return: The account_limit_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
104
|
+
:rtype: str
|
|
105
|
+
"""
|
|
106
|
+
return self._account_limit_bytes
|
|
107
|
+
|
|
108
|
+
@account_limit_bytes.setter
|
|
109
|
+
def account_limit_bytes(self, account_limit_bytes: 'str'):
|
|
110
|
+
"""Sets the account_limit_bytes of this V1GetOrganizationStorageMetadataResponse.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:param account_limit_bytes: The account_limit_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
114
|
+
:type: str
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
self._account_limit_bytes = account_limit_bytes
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def id(self) -> 'str':
|
|
121
|
+
"""Gets the id of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:return: The id of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._id
|
|
128
|
+
|
|
129
|
+
@id.setter
|
|
130
|
+
def id(self, id: 'str'):
|
|
131
|
+
"""Sets the id of this V1GetOrganizationStorageMetadataResponse.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param id: The id of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
135
|
+
:type: str
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
self._id = id
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
def project_metadata(self) -> 'list[V1ProjectStorage]':
|
|
142
|
+
"""Gets the project_metadata of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:return: The project_metadata of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
146
|
+
:rtype: list[V1ProjectStorage]
|
|
147
|
+
"""
|
|
148
|
+
return self._project_metadata
|
|
149
|
+
|
|
150
|
+
@project_metadata.setter
|
|
151
|
+
def project_metadata(self, project_metadata: 'list[V1ProjectStorage]'):
|
|
152
|
+
"""Sets the project_metadata of this V1GetOrganizationStorageMetadataResponse.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param project_metadata: The project_metadata of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
156
|
+
:type: list[V1ProjectStorage]
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
self._project_metadata = project_metadata
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def total_billable_bytes(self) -> 'str':
|
|
163
|
+
"""Gets the total_billable_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:return: The total_billable_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._total_billable_bytes
|
|
170
|
+
|
|
171
|
+
@total_billable_bytes.setter
|
|
172
|
+
def total_billable_bytes(self, total_billable_bytes: 'str'):
|
|
173
|
+
"""Sets the total_billable_bytes of this V1GetOrganizationStorageMetadataResponse.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:param total_billable_bytes: The total_billable_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
177
|
+
:type: str
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
self._total_billable_bytes = total_billable_bytes
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def total_cloudspace_storage_bytes(self) -> 'str':
|
|
184
|
+
"""Gets the total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
188
|
+
:rtype: str
|
|
189
|
+
"""
|
|
190
|
+
return self._total_cloudspace_storage_bytes
|
|
191
|
+
|
|
192
|
+
@total_cloudspace_storage_bytes.setter
|
|
193
|
+
def total_cloudspace_storage_bytes(self, total_cloudspace_storage_bytes: 'str'):
|
|
194
|
+
"""Sets the total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param total_cloudspace_storage_bytes: The total_cloudspace_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
198
|
+
:type: str
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._total_cloudspace_storage_bytes = total_cloudspace_storage_bytes
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def total_data_connection_storage_bytes(self) -> 'str':
|
|
205
|
+
"""Gets the total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
:return: The total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
209
|
+
:rtype: str
|
|
210
|
+
"""
|
|
211
|
+
return self._total_data_connection_storage_bytes
|
|
212
|
+
|
|
213
|
+
@total_data_connection_storage_bytes.setter
|
|
214
|
+
def total_data_connection_storage_bytes(self, total_data_connection_storage_bytes: 'str'):
|
|
215
|
+
"""Sets the total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:param total_data_connection_storage_bytes: The total_data_connection_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
219
|
+
:type: str
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
self._total_data_connection_storage_bytes = total_data_connection_storage_bytes
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
def total_job_storage_bytes(self) -> 'str':
|
|
226
|
+
"""Gets the total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:return: The total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
230
|
+
:rtype: str
|
|
231
|
+
"""
|
|
232
|
+
return self._total_job_storage_bytes
|
|
233
|
+
|
|
234
|
+
@total_job_storage_bytes.setter
|
|
235
|
+
def total_job_storage_bytes(self, total_job_storage_bytes: 'str'):
|
|
236
|
+
"""Sets the total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
:param total_job_storage_bytes: The total_job_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
240
|
+
:type: str
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
self._total_job_storage_bytes = total_job_storage_bytes
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
def total_storage_bytes(self) -> 'str':
|
|
247
|
+
"""Gets the total_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
:return: The total_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
251
|
+
:rtype: str
|
|
252
|
+
"""
|
|
253
|
+
return self._total_storage_bytes
|
|
254
|
+
|
|
255
|
+
@total_storage_bytes.setter
|
|
256
|
+
def total_storage_bytes(self, total_storage_bytes: 'str'):
|
|
257
|
+
"""Sets the total_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
:param total_storage_bytes: The total_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
261
|
+
:type: str
|
|
262
|
+
"""
|
|
263
|
+
|
|
264
|
+
self._total_storage_bytes = total_storage_bytes
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
def total_upload_storage_bytes(self) -> 'str':
|
|
268
|
+
"""Gets the total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
:return: The total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
272
|
+
:rtype: str
|
|
273
|
+
"""
|
|
274
|
+
return self._total_upload_storage_bytes
|
|
275
|
+
|
|
276
|
+
@total_upload_storage_bytes.setter
|
|
277
|
+
def total_upload_storage_bytes(self, total_upload_storage_bytes: 'str'):
|
|
278
|
+
"""Sets the total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse.
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
:param total_upload_storage_bytes: The total_upload_storage_bytes of this V1GetOrganizationStorageMetadataResponse. # noqa: E501
|
|
282
|
+
:type: str
|
|
283
|
+
"""
|
|
284
|
+
|
|
285
|
+
self._total_upload_storage_bytes = total_upload_storage_bytes
|
|
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(V1GetOrganizationStorageMetadataResponse, 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: 'V1GetOrganizationStorageMetadataResponse') -> bool:
|
|
323
|
+
"""Returns true if both objects are equal"""
|
|
324
|
+
if not isinstance(other, V1GetOrganizationStorageMetadataResponse):
|
|
325
|
+
return False
|
|
326
|
+
|
|
327
|
+
return self.__dict__ == other.__dict__
|
|
328
|
+
|
|
329
|
+
def __ne__(self, other: 'V1GetOrganizationStorageMetadataResponse') -> bool:
|
|
330
|
+
"""Returns true if both objects are not equal"""
|
|
331
|
+
return not self == other
|
|
@@ -43,7 +43,6 @@ class V1GetProjectBalanceResponse(object):
|
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'account_id': 'str',
|
|
45
45
|
'balance': 'float',
|
|
46
|
-
'next_free_credits_grant_at': 'datetime',
|
|
47
46
|
'project_id': 'str',
|
|
48
47
|
'transactions': 'list[V1Transaction]'
|
|
49
48
|
}
|
|
@@ -51,16 +50,14 @@ class V1GetProjectBalanceResponse(object):
|
|
|
51
50
|
attribute_map = {
|
|
52
51
|
'account_id': 'accountId',
|
|
53
52
|
'balance': 'balance',
|
|
54
|
-
'next_free_credits_grant_at': 'nextFreeCreditsGrantAt',
|
|
55
53
|
'project_id': 'projectId',
|
|
56
54
|
'transactions': 'transactions'
|
|
57
55
|
}
|
|
58
56
|
|
|
59
|
-
def __init__(self, account_id: 'str' =None, balance: 'float' =None,
|
|
57
|
+
def __init__(self, account_id: 'str' =None, balance: 'float' =None, project_id: 'str' =None, transactions: 'list[V1Transaction]' =None): # noqa: E501
|
|
60
58
|
"""V1GetProjectBalanceResponse - a model defined in Swagger""" # noqa: E501
|
|
61
59
|
self._account_id = None
|
|
62
60
|
self._balance = None
|
|
63
|
-
self._next_free_credits_grant_at = None
|
|
64
61
|
self._project_id = None
|
|
65
62
|
self._transactions = None
|
|
66
63
|
self.discriminator = None
|
|
@@ -68,8 +65,6 @@ class V1GetProjectBalanceResponse(object):
|
|
|
68
65
|
self.account_id = account_id
|
|
69
66
|
if balance is not None:
|
|
70
67
|
self.balance = balance
|
|
71
|
-
if next_free_credits_grant_at is not None:
|
|
72
|
-
self.next_free_credits_grant_at = next_free_credits_grant_at
|
|
73
68
|
if project_id is not None:
|
|
74
69
|
self.project_id = project_id
|
|
75
70
|
if transactions is not None:
|
|
@@ -117,27 +112,6 @@ class V1GetProjectBalanceResponse(object):
|
|
|
117
112
|
|
|
118
113
|
self._balance = balance
|
|
119
114
|
|
|
120
|
-
@property
|
|
121
|
-
def next_free_credits_grant_at(self) -> 'datetime':
|
|
122
|
-
"""Gets the next_free_credits_grant_at of this V1GetProjectBalanceResponse. # noqa: E501
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
:return: The next_free_credits_grant_at of this V1GetProjectBalanceResponse. # noqa: E501
|
|
126
|
-
:rtype: datetime
|
|
127
|
-
"""
|
|
128
|
-
return self._next_free_credits_grant_at
|
|
129
|
-
|
|
130
|
-
@next_free_credits_grant_at.setter
|
|
131
|
-
def next_free_credits_grant_at(self, next_free_credits_grant_at: 'datetime'):
|
|
132
|
-
"""Sets the next_free_credits_grant_at of this V1GetProjectBalanceResponse.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
:param next_free_credits_grant_at: The next_free_credits_grant_at of this V1GetProjectBalanceResponse. # noqa: E501
|
|
136
|
-
:type: datetime
|
|
137
|
-
"""
|
|
138
|
-
|
|
139
|
-
self._next_free_credits_grant_at = next_free_credits_grant_at
|
|
140
|
-
|
|
141
115
|
@property
|
|
142
116
|
def project_id(self) -> 'str':
|
|
143
117
|
"""Gets the project_id of this V1GetProjectBalanceResponse. # noqa: E501
|
|
@@ -47,6 +47,7 @@ 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',
|
|
50
51
|
'primary_region': 'str',
|
|
51
52
|
'project_id': 'str',
|
|
52
53
|
'project_sa_enabled': 'bool',
|
|
@@ -64,6 +65,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
64
65
|
'credentials_secret_id': 'credentialsSecretId',
|
|
65
66
|
'credentials_service_account_email': 'credentialsServiceAccountEmail',
|
|
66
67
|
'custom_subnet_mode': 'customSubnetMode',
|
|
68
|
+
'migration_bucket_name': 'migrationBucketName',
|
|
67
69
|
'primary_region': 'primaryRegion',
|
|
68
70
|
'project_id': 'projectId',
|
|
69
71
|
'project_sa_enabled': 'projectSaEnabled',
|
|
@@ -74,7 +76,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
74
76
|
'vpcs': 'vpcs'
|
|
75
77
|
}
|
|
76
78
|
|
|
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
|
|
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
|
|
78
80
|
"""V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
|
|
79
81
|
self._bucket_name = None
|
|
80
82
|
self._compute_project_role = None
|
|
@@ -82,6 +84,7 @@ class V1GoogleCloudDirectV1(object):
|
|
|
82
84
|
self._credentials_secret_id = None
|
|
83
85
|
self._credentials_service_account_email = None
|
|
84
86
|
self._custom_subnet_mode = None
|
|
87
|
+
self._migration_bucket_name = None
|
|
85
88
|
self._primary_region = None
|
|
86
89
|
self._project_id = None
|
|
87
90
|
self._project_sa_enabled = None
|
|
@@ -103,6 +106,8 @@ class V1GoogleCloudDirectV1(object):
|
|
|
103
106
|
self.credentials_service_account_email = credentials_service_account_email
|
|
104
107
|
if custom_subnet_mode is not None:
|
|
105
108
|
self.custom_subnet_mode = custom_subnet_mode
|
|
109
|
+
if migration_bucket_name is not None:
|
|
110
|
+
self.migration_bucket_name = migration_bucket_name
|
|
106
111
|
if primary_region is not None:
|
|
107
112
|
self.primary_region = primary_region
|
|
108
113
|
if project_id is not None:
|
|
@@ -248,6 +253,27 @@ class V1GoogleCloudDirectV1(object):
|
|
|
248
253
|
|
|
249
254
|
self._custom_subnet_mode = custom_subnet_mode
|
|
250
255
|
|
|
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
|
+
|
|
251
277
|
@property
|
|
252
278
|
def primary_region(self) -> 'str':
|
|
253
279
|
"""Gets the primary_region of this V1GoogleCloudDirectV1. # noqa: E501
|
|
@@ -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 V1ListDeploymentAlertingEventsResponse(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
|
+
'events': 'list[V1DeploymentAlertingEvent]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'events': 'events'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, events: 'list[V1DeploymentAlertingEvent]' =None): # noqa: E501
|
|
52
|
+
"""V1ListDeploymentAlertingEventsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._events = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if events is not None:
|
|
56
|
+
self.events = events
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def events(self) -> 'list[V1DeploymentAlertingEvent]':
|
|
60
|
+
"""Gets the events of this V1ListDeploymentAlertingEventsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The events of this V1ListDeploymentAlertingEventsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[V1DeploymentAlertingEvent]
|
|
65
|
+
"""
|
|
66
|
+
return self._events
|
|
67
|
+
|
|
68
|
+
@events.setter
|
|
69
|
+
def events(self, events: 'list[V1DeploymentAlertingEvent]'):
|
|
70
|
+
"""Sets the events of this V1ListDeploymentAlertingEventsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param events: The events of this V1ListDeploymentAlertingEventsResponse. # noqa: E501
|
|
74
|
+
:type: list[V1DeploymentAlertingEvent]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._events = events
|
|
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(V1ListDeploymentAlertingEventsResponse, 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: 'V1ListDeploymentAlertingEventsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListDeploymentAlertingEventsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListDeploymentAlertingEventsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|