anyscale 0.26.16__py3-none-any.whl → 0.26.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 (40) hide show
  1. anyscale/anyscale-cloud-setup-gcp.yaml +2 -0
  2. anyscale/anyscale-cloud-setup.yaml +0 -4
  3. anyscale/client/README.md +7 -37
  4. anyscale/client/openapi_client/__init__.py +5 -20
  5. anyscale/client/openapi_client/api/default_api.py +410 -2163
  6. anyscale/client/openapi_client/models/__init__.py +5 -20
  7. anyscale/client/openapi_client/models/{create_session_response.py → i_know_response.py} +51 -51
  8. anyscale/client/openapi_client/models/{session_details.py → i_know_time_series_event.py} +35 -35
  9. anyscale/client/openapi_client/models/job_report.py +199 -0
  10. anyscale/client/openapi_client/models/job_with_report.py +254 -0
  11. anyscale/client/openapi_client/models/{webterminal_list_response.py → jobwithreport_list_response.py} +15 -15
  12. anyscale/commands/cloud_commands.py +71 -0
  13. anyscale/connect_utils/prepare_cluster.py +19 -14
  14. anyscale/controllers/cloud_controller.py +164 -1
  15. anyscale/job/_private/job_sdk.py +22 -24
  16. anyscale/version.py +1 -1
  17. {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/METADATA +1 -1
  18. {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/RECORD +23 -38
  19. anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
  20. anyscale/client/openapi_client/models/archivedlogsinfo_response.py +0 -121
  21. anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
  22. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
  23. anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
  24. anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
  25. anyscale/client/openapi_client/models/external_service_status.py +0 -147
  26. anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
  27. anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
  28. anyscale/client/openapi_client/models/monitor_logs_extension.py +0 -100
  29. anyscale/client/openapi_client/models/session_describe.py +0 -175
  30. anyscale/client/openapi_client/models/session_history_item.py +0 -146
  31. anyscale/client/openapi_client/models/sessiondescribe_response.py +0 -121
  32. anyscale/client/openapi_client/models/sessiondetails_response.py +0 -121
  33. anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
  34. anyscale/client/openapi_client/models/update_compute_template.py +0 -146
  35. anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
  36. {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/LICENSE +0 -0
  37. {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/NOTICE +0 -0
  38. {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/WHEEL +0 -0
  39. {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/entry_points.txt +0 -0
  40. {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/top_level.txt +0 -0
@@ -43,8 +43,6 @@ from openapi_client.models.application_type import ApplicationType
43
43
  from openapi_client.models.applied_snapshot import AppliedSnapshot
44
44
  from openapi_client.models.apply_production_service_v2_model import ApplyProductionServiceV2Model
45
45
  from openapi_client.models.archive_status import ArchiveStatus
46
- from openapi_client.models.archived_logs_info import ArchivedLogsInfo
47
- from openapi_client.models.archivedlogsinfo_response import ArchivedlogsinfoResponse
48
46
  from openapi_client.models.attach_machine_pool_to_cloud_request import AttachMachinePoolToCloudRequest
49
47
  from openapi_client.models.attachmachinepooltocloudresponse_response import AttachmachinepooltocloudresponseResponse
50
48
  from openapi_client.models.aws_region_and_zones import AwsRegionAndZones
@@ -159,7 +157,6 @@ from openapi_client.models.create_compute_template import CreateComputeTemplate
159
157
  from openapi_client.models.create_compute_template_config import CreateComputeTemplateConfig
160
158
  from openapi_client.models.create_dataset import CreateDataset
161
159
  from openapi_client.models.create_experimental_workspace import CreateExperimentalWorkspace
162
- from openapi_client.models.create_experimental_workspace_from_job import CreateExperimentalWorkspaceFromJob
163
160
  from openapi_client.models.create_instance_usage_budget import CreateInstanceUsageBudget
164
161
  from openapi_client.models.create_internal_production_job import CreateInternalProductionJob
165
162
  from openapi_client.models.create_job_queue_config import CreateJobQueueConfig
@@ -177,9 +174,6 @@ from openapi_client.models.create_production_job_config import CreateProductionJ
177
174
  from openapi_client.models.create_resource_notification import CreateResourceNotification
178
175
  from openapi_client.models.create_resource_quota import CreateResourceQuota
179
176
  from openapi_client.models.create_schedule import CreateSchedule
180
- from openapi_client.models.create_session_from_snapshot_options import CreateSessionFromSnapshotOptions
181
- from openapi_client.models.create_session_in_db import CreateSessionInDb
182
- from openapi_client.models.create_session_response import CreateSessionResponse
183
177
  from openapi_client.models.create_user import CreateUser
184
178
  from openapi_client.models.create_user_project_collaborator import CreateUserProjectCollaborator
185
179
  from openapi_client.models.create_user_project_collaborator_value import CreateUserProjectCollaboratorValue
@@ -189,7 +183,6 @@ from openapi_client.models.createcomputetemplateconfig_response import Createcom
189
183
  from openapi_client.models.createmachinepoolresponse_response import CreatemachinepoolresponseResponse
190
184
  from openapi_client.models.createmachineresponse_response import CreatemachineresponseResponse
191
185
  from openapi_client.models.createotpreturnapimodel_response import CreateotpreturnapimodelResponse
192
- from openapi_client.models.createsessionresponse_response import CreatesessionresponseResponse
193
186
  from openapi_client.models.credit_card_information import CreditCardInformation
194
187
  from openapi_client.models.customer_alert_status import CustomerAlertStatus
195
188
  from openapi_client.models.dataplane_services import DataplaneServices
@@ -271,10 +264,7 @@ from openapi_client.models.experimental_workspace import ExperimentalWorkspace
271
264
  from openapi_client.models.experimental_workspaces_sort_field import ExperimentalWorkspacesSortField
272
265
  from openapi_client.models.experimentalworkspace_list_response import ExperimentalworkspaceListResponse
273
266
  from openapi_client.models.experimentalworkspace_response import ExperimentalworkspaceResponse
274
- from openapi_client.models.external_service_status import ExternalServiceStatus
275
- from openapi_client.models.external_service_status_response import ExternalServiceStatusResponse
276
267
  from openapi_client.models.external_terminal_command import ExternalTerminalCommand
277
- from openapi_client.models.externalservicestatusresponse_response import ExternalservicestatusresponseResponse
278
268
  from openapi_client.models.feature_flag_response import FeatureFlagResponse
279
269
  from openapi_client.models.featureflagresponse_response import FeatureflagresponseResponse
280
270
  from openapi_client.models.fine_tune_type import FineTuneType
@@ -296,6 +286,8 @@ from openapi_client.models.ha_jobs_sort_field import HaJobsSortField
296
286
  from openapi_client.models.head_ip import HeadIp
297
287
  from openapi_client.models.headip_response import HeadipResponse
298
288
  from openapi_client.models.http_protocol_config import HttpProtocolConfig
289
+ from openapi_client.models.i_know_response import IKnowResponse
290
+ from openapi_client.models.i_know_time_series_event import IKnowTimeSeriesEvent
299
291
  from openapi_client.models.idle_termination_status import IdleTerminationStatus
300
292
  from openapi_client.models.instance_usage_budget import InstanceUsageBudget
301
293
  from openapi_client.models.instance_usage_budget_evaluation_period import InstanceUsageBudgetEvaluationPeriod
@@ -316,10 +308,13 @@ from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
316
308
  from openapi_client.models.job_queue_spec import JobQueueSpec
317
309
  from openapi_client.models.job_queue_state import JobQueueState
318
310
  from openapi_client.models.job_queues_query import JobQueuesQuery
311
+ from openapi_client.models.job_report import JobReport
319
312
  from openapi_client.models.job_run_type import JobRunType
320
313
  from openapi_client.models.job_state_log_level_types import JobStateLogLevelTypes
314
+ from openapi_client.models.job_with_report import JobWithReport
321
315
  from openapi_client.models.jobqueue_response import JobqueueResponse
322
316
  from openapi_client.models.jobs_sort_field import JobsSortField
317
+ from openapi_client.models.jobwithreport_list_response import JobwithreportListResponse
323
318
  from openapi_client.models.json_patch_operation import JsonPatchOperation
324
319
  from openapi_client.models.kubernetes_manager_registration_request import KubernetesManagerRegistrationRequest
325
320
  from openapi_client.models.kubernetes_manager_registration_response import KubernetesManagerRegistrationResponse
@@ -378,7 +373,6 @@ from openapi_client.models.mini_user import MiniUser
378
373
  from openapi_client.models.minibuild_list_response import MinibuildListResponse
379
374
  from openapi_client.models.minicomputetemplate_list_response import MinicomputetemplateListResponse
380
375
  from openapi_client.models.miniproject_list_response import MiniprojectListResponse
381
- from openapi_client.models.monitor_logs_extension import MonitorLogsExtension
382
376
  from openapi_client.models.nfs_mount_target import NFSMountTarget
383
377
  from openapi_client.models.node_registration_aws import NodeRegistrationAWS
384
378
  from openapi_client.models.node_registration_gcp import NodeRegistrationGCP
@@ -500,9 +494,6 @@ from openapi_client.models.session_command import SessionCommand
500
494
  from openapi_client.models.session_command_finish_options import SessionCommandFinishOptions
501
495
  from openapi_client.models.session_command_id import SessionCommandId
502
496
  from openapi_client.models.session_command_types import SessionCommandTypes
503
- from openapi_client.models.session_describe import SessionDescribe
504
- from openapi_client.models.session_details import SessionDetails
505
- from openapi_client.models.session_history_item import SessionHistoryItem
506
497
  from openapi_client.models.session_list_response import SessionListResponse
507
498
  from openapi_client.models.session_response import SessionResponse
508
499
  from openapi_client.models.session_ssh_key import SessionSshKey
@@ -512,9 +503,6 @@ from openapi_client.models.session_state_data import SessionStateData
512
503
  from openapi_client.models.session_stopping_data import SessionStoppingData
513
504
  from openapi_client.models.sessioncommand_list_response import SessioncommandListResponse
514
505
  from openapi_client.models.sessioncommandid_response import SessioncommandidResponse
515
- from openapi_client.models.sessiondescribe_response import SessiondescribeResponse
516
- from openapi_client.models.sessiondetails_response import SessiondetailsResponse
517
- from openapi_client.models.sessionhistoryitem_list_response import SessionhistoryitemListResponse
518
506
  from openapi_client.models.sessions_sort_field import SessionsSortField
519
507
  from openapi_client.models.sessionsshkey_response import SessionsshkeyResponse
520
508
  from openapi_client.models.show_otp_source_return_api_model import ShowOTPSourceReturnApiModel
@@ -563,8 +551,6 @@ from openapi_client.models.update_cloud_collaborator import UpdateCloudCollabora
563
551
  from openapi_client.models.update_cloud_with_cloud_resource import UpdateCloudWithCloudResource
564
552
  from openapi_client.models.update_cloud_with_cloud_resource_gcp import UpdateCloudWithCloudResourceGCP
565
553
  from openapi_client.models.update_cluster_dns import UpdateClusterDns
566
- from openapi_client.models.update_compute_template import UpdateComputeTemplate
567
- from openapi_client.models.update_compute_template_config import UpdateComputeTemplateConfig
568
554
  from openapi_client.models.update_machine_pool_request import UpdateMachinePoolRequest
569
555
  from openapi_client.models.update_organization_collaborator import UpdateOrganizationCollaborator
570
556
  from openapi_client.models.update_project_collaborator import UpdateProjectCollaborator
@@ -594,7 +580,6 @@ from openapi_client.models.waitlist_status_type import WaitlistStatusType
594
580
  from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
595
581
  from openapi_client.models.wand_b_run_details import WandBRunDetails
596
582
  from openapi_client.models.web_terminal import WebTerminal
597
- from openapi_client.models.webterminal_list_response import WebterminalListResponse
598
583
  from openapi_client.models.webterminal_response import WebterminalResponse
599
584
  from openapi_client.models.worker_node_type import WorkerNodeType
600
585
  from openapi_client.models.workload_info import WorkloadInfo
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class CreateSessionResponse(object):
21
+ class IKnowResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,99 +33,99 @@ class CreateSessionResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'id': 'str',
37
- 'startup_succeded': 'bool',
38
- 'project_id': 'str'
36
+ 'error': 'str',
37
+ 'time_series_events': 'list[IKnowTimeSeriesEvent]',
38
+ 'rootcause': 'str'
39
39
  }
40
40
 
41
41
  attribute_map = {
42
- 'id': 'id',
43
- 'startup_succeded': 'startup_succeded',
44
- 'project_id': 'project_id'
42
+ 'error': 'error',
43
+ 'time_series_events': 'time_series_events',
44
+ 'rootcause': 'rootcause'
45
45
  }
46
46
 
47
- def __init__(self, id=None, startup_succeded=True, project_id=None, local_vars_configuration=None): # noqa: E501
48
- """CreateSessionResponse - a model defined in OpenAPI""" # noqa: E501
47
+ def __init__(self, error=None, time_series_events=None, rootcause=None, local_vars_configuration=None): # noqa: E501
48
+ """IKnowResponse - a model defined in OpenAPI""" # noqa: E501
49
49
  if local_vars_configuration is None:
50
50
  local_vars_configuration = Configuration()
51
51
  self.local_vars_configuration = local_vars_configuration
52
52
 
53
- self._id = None
54
- self._startup_succeded = None
55
- self._project_id = None
53
+ self._error = None
54
+ self._time_series_events = None
55
+ self._rootcause = None
56
56
  self.discriminator = None
57
57
 
58
- self.id = id
59
- if startup_succeded is not None:
60
- self.startup_succeded = startup_succeded
61
- self.project_id = project_id
58
+ if error is not None:
59
+ self.error = error
60
+ self.time_series_events = time_series_events
61
+ self.rootcause = rootcause
62
62
 
63
63
  @property
64
- def id(self):
65
- """Gets the id of this CreateSessionResponse. # noqa: E501
64
+ def error(self):
65
+ """Gets the error of this IKnowResponse. # noqa: E501
66
66
 
67
67
 
68
- :return: The id of this CreateSessionResponse. # noqa: E501
68
+ :return: The error of this IKnowResponse. # noqa: E501
69
69
  :rtype: str
70
70
  """
71
- return self._id
71
+ return self._error
72
72
 
73
- @id.setter
74
- def id(self, id):
75
- """Sets the id of this CreateSessionResponse.
73
+ @error.setter
74
+ def error(self, error):
75
+ """Sets the error of this IKnowResponse.
76
76
 
77
77
 
78
- :param id: The id of this CreateSessionResponse. # noqa: E501
78
+ :param error: The error of this IKnowResponse. # noqa: E501
79
79
  :type: str
80
80
  """
81
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
82
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
83
81
 
84
- self._id = id
82
+ self._error = error
85
83
 
86
84
  @property
87
- def startup_succeded(self):
88
- """Gets the startup_succeded of this CreateSessionResponse. # noqa: E501
85
+ def time_series_events(self):
86
+ """Gets the time_series_events of this IKnowResponse. # noqa: E501
89
87
 
90
88
 
91
- :return: The startup_succeded of this CreateSessionResponse. # noqa: E501
92
- :rtype: bool
89
+ :return: The time_series_events of this IKnowResponse. # noqa: E501
90
+ :rtype: list[IKnowTimeSeriesEvent]
93
91
  """
94
- return self._startup_succeded
92
+ return self._time_series_events
95
93
 
96
- @startup_succeded.setter
97
- def startup_succeded(self, startup_succeded):
98
- """Sets the startup_succeded of this CreateSessionResponse.
94
+ @time_series_events.setter
95
+ def time_series_events(self, time_series_events):
96
+ """Sets the time_series_events of this IKnowResponse.
99
97
 
100
98
 
101
- :param startup_succeded: The startup_succeded of this CreateSessionResponse. # noqa: E501
102
- :type: bool
99
+ :param time_series_events: The time_series_events of this IKnowResponse. # noqa: E501
100
+ :type: list[IKnowTimeSeriesEvent]
103
101
  """
102
+ if self.local_vars_configuration.client_side_validation and time_series_events is None: # noqa: E501
103
+ raise ValueError("Invalid value for `time_series_events`, must not be `None`") # noqa: E501
104
104
 
105
- self._startup_succeded = startup_succeded
105
+ self._time_series_events = time_series_events
106
106
 
107
107
  @property
108
- def project_id(self):
109
- """Gets the project_id of this CreateSessionResponse. # noqa: E501
108
+ def rootcause(self):
109
+ """Gets the rootcause of this IKnowResponse. # noqa: E501
110
110
 
111
111
 
112
- :return: The project_id of this CreateSessionResponse. # noqa: E501
112
+ :return: The rootcause of this IKnowResponse. # noqa: E501
113
113
  :rtype: str
114
114
  """
115
- return self._project_id
115
+ return self._rootcause
116
116
 
117
- @project_id.setter
118
- def project_id(self, project_id):
119
- """Sets the project_id of this CreateSessionResponse.
117
+ @rootcause.setter
118
+ def rootcause(self, rootcause):
119
+ """Sets the rootcause of this IKnowResponse.
120
120
 
121
121
 
122
- :param project_id: The project_id of this CreateSessionResponse. # noqa: E501
122
+ :param rootcause: The rootcause of this IKnowResponse. # noqa: E501
123
123
  :type: str
124
124
  """
125
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
126
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
125
+ if self.local_vars_configuration.client_side_validation and rootcause is None: # noqa: E501
126
+ raise ValueError("Invalid value for `rootcause`, must not be `None`") # noqa: E501
127
127
 
128
- self._project_id = project_id
128
+ self._rootcause = rootcause
129
129
 
130
130
  def to_dict(self):
131
131
  """Returns the model properties as a dict"""
@@ -161,14 +161,14 @@ class CreateSessionResponse(object):
161
161
 
162
162
  def __eq__(self, other):
163
163
  """Returns true if both objects are equal"""
164
- if not isinstance(other, CreateSessionResponse):
164
+ if not isinstance(other, IKnowResponse):
165
165
  return False
166
166
 
167
167
  return self.to_dict() == other.to_dict()
168
168
 
169
169
  def __ne__(self, other):
170
170
  """Returns true if both objects are not equal"""
171
- if not isinstance(other, CreateSessionResponse):
171
+ if not isinstance(other, IKnowResponse):
172
172
  return True
173
173
 
174
174
  return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class SessionDetails(object):
21
+ class IKnowTimeSeriesEvent(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,73 +33,73 @@ class SessionDetails(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'id': 'str',
37
- 'cluster_name': 'str'
36
+ 'timestamp': 'str',
37
+ 'event': 'str'
38
38
  }
39
39
 
40
40
  attribute_map = {
41
- 'id': 'id',
42
- 'cluster_name': 'cluster_name'
41
+ 'timestamp': 'timestamp',
42
+ 'event': 'event'
43
43
  }
44
44
 
45
- def __init__(self, id=None, cluster_name=None, local_vars_configuration=None): # noqa: E501
46
- """SessionDetails - a model defined in OpenAPI""" # noqa: E501
45
+ def __init__(self, timestamp=None, event=None, local_vars_configuration=None): # noqa: E501
46
+ """IKnowTimeSeriesEvent - a model defined in OpenAPI""" # noqa: E501
47
47
  if local_vars_configuration is None:
48
48
  local_vars_configuration = Configuration()
49
49
  self.local_vars_configuration = local_vars_configuration
50
50
 
51
- self._id = None
52
- self._cluster_name = None
51
+ self._timestamp = None
52
+ self._event = None
53
53
  self.discriminator = None
54
54
 
55
- self.id = id
56
- self.cluster_name = cluster_name
55
+ self.timestamp = timestamp
56
+ self.event = event
57
57
 
58
58
  @property
59
- def id(self):
60
- """Gets the id of this SessionDetails. # noqa: E501
59
+ def timestamp(self):
60
+ """Gets the timestamp of this IKnowTimeSeriesEvent. # noqa: E501
61
61
 
62
62
 
63
- :return: The id of this SessionDetails. # noqa: E501
63
+ :return: The timestamp of this IKnowTimeSeriesEvent. # noqa: E501
64
64
  :rtype: str
65
65
  """
66
- return self._id
66
+ return self._timestamp
67
67
 
68
- @id.setter
69
- def id(self, id):
70
- """Sets the id of this SessionDetails.
68
+ @timestamp.setter
69
+ def timestamp(self, timestamp):
70
+ """Sets the timestamp of this IKnowTimeSeriesEvent.
71
71
 
72
72
 
73
- :param id: The id of this SessionDetails. # noqa: E501
73
+ :param timestamp: The timestamp of this IKnowTimeSeriesEvent. # noqa: E501
74
74
  :type: str
75
75
  """
76
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
77
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
76
+ if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501
77
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
78
78
 
79
- self._id = id
79
+ self._timestamp = timestamp
80
80
 
81
81
  @property
82
- def cluster_name(self):
83
- """Gets the cluster_name of this SessionDetails. # noqa: E501
82
+ def event(self):
83
+ """Gets the event of this IKnowTimeSeriesEvent. # noqa: E501
84
84
 
85
85
 
86
- :return: The cluster_name of this SessionDetails. # noqa: E501
86
+ :return: The event of this IKnowTimeSeriesEvent. # noqa: E501
87
87
  :rtype: str
88
88
  """
89
- return self._cluster_name
89
+ return self._event
90
90
 
91
- @cluster_name.setter
92
- def cluster_name(self, cluster_name):
93
- """Sets the cluster_name of this SessionDetails.
91
+ @event.setter
92
+ def event(self, event):
93
+ """Sets the event of this IKnowTimeSeriesEvent.
94
94
 
95
95
 
96
- :param cluster_name: The cluster_name of this SessionDetails. # noqa: E501
96
+ :param event: The event of this IKnowTimeSeriesEvent. # noqa: E501
97
97
  :type: str
98
98
  """
99
- if self.local_vars_configuration.client_side_validation and cluster_name is None: # noqa: E501
100
- raise ValueError("Invalid value for `cluster_name`, must not be `None`") # noqa: E501
99
+ if self.local_vars_configuration.client_side_validation and event is None: # noqa: E501
100
+ raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501
101
101
 
102
- self._cluster_name = cluster_name
102
+ self._event = event
103
103
 
104
104
  def to_dict(self):
105
105
  """Returns the model properties as a dict"""
@@ -135,14 +135,14 @@ class SessionDetails(object):
135
135
 
136
136
  def __eq__(self, other):
137
137
  """Returns true if both objects are equal"""
138
- if not isinstance(other, SessionDetails):
138
+ if not isinstance(other, IKnowTimeSeriesEvent):
139
139
  return False
140
140
 
141
141
  return self.to_dict() == other.to_dict()
142
142
 
143
143
  def __ne__(self, other):
144
144
  """Returns true if both objects are not equal"""
145
- if not isinstance(other, SessionDetails):
145
+ if not isinstance(other, IKnowTimeSeriesEvent):
146
146
  return True
147
147
 
148
148
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,199 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class JobReport(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'job_id': 'str',
37
+ 'unused_cpu_hours': 'float',
38
+ 'unused_gpu_hours': 'float',
39
+ 'max_instances_launched': 'int'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'job_id': 'job_id',
44
+ 'unused_cpu_hours': 'unused_cpu_hours',
45
+ 'unused_gpu_hours': 'unused_gpu_hours',
46
+ 'max_instances_launched': 'max_instances_launched'
47
+ }
48
+
49
+ def __init__(self, job_id=None, unused_cpu_hours=None, unused_gpu_hours=None, max_instances_launched=None, local_vars_configuration=None): # noqa: E501
50
+ """JobReport - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._job_id = None
56
+ self._unused_cpu_hours = None
57
+ self._unused_gpu_hours = None
58
+ self._max_instances_launched = None
59
+ self.discriminator = None
60
+
61
+ self.job_id = job_id
62
+ if unused_cpu_hours is not None:
63
+ self.unused_cpu_hours = unused_cpu_hours
64
+ if unused_gpu_hours is not None:
65
+ self.unused_gpu_hours = unused_gpu_hours
66
+ if max_instances_launched is not None:
67
+ self.max_instances_launched = max_instances_launched
68
+
69
+ @property
70
+ def job_id(self):
71
+ """Gets the job_id of this JobReport. # noqa: E501
72
+
73
+
74
+ :return: The job_id of this JobReport. # noqa: E501
75
+ :rtype: str
76
+ """
77
+ return self._job_id
78
+
79
+ @job_id.setter
80
+ def job_id(self, job_id):
81
+ """Sets the job_id of this JobReport.
82
+
83
+
84
+ :param job_id: The job_id of this JobReport. # noqa: E501
85
+ :type: str
86
+ """
87
+ if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
88
+ raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
89
+
90
+ self._job_id = job_id
91
+
92
+ @property
93
+ def unused_cpu_hours(self):
94
+ """Gets the unused_cpu_hours of this JobReport. # noqa: E501
95
+
96
+
97
+ :return: The unused_cpu_hours of this JobReport. # noqa: E501
98
+ :rtype: float
99
+ """
100
+ return self._unused_cpu_hours
101
+
102
+ @unused_cpu_hours.setter
103
+ def unused_cpu_hours(self, unused_cpu_hours):
104
+ """Sets the unused_cpu_hours of this JobReport.
105
+
106
+
107
+ :param unused_cpu_hours: The unused_cpu_hours of this JobReport. # noqa: E501
108
+ :type: float
109
+ """
110
+
111
+ self._unused_cpu_hours = unused_cpu_hours
112
+
113
+ @property
114
+ def unused_gpu_hours(self):
115
+ """Gets the unused_gpu_hours of this JobReport. # noqa: E501
116
+
117
+
118
+ :return: The unused_gpu_hours of this JobReport. # noqa: E501
119
+ :rtype: float
120
+ """
121
+ return self._unused_gpu_hours
122
+
123
+ @unused_gpu_hours.setter
124
+ def unused_gpu_hours(self, unused_gpu_hours):
125
+ """Sets the unused_gpu_hours of this JobReport.
126
+
127
+
128
+ :param unused_gpu_hours: The unused_gpu_hours of this JobReport. # noqa: E501
129
+ :type: float
130
+ """
131
+
132
+ self._unused_gpu_hours = unused_gpu_hours
133
+
134
+ @property
135
+ def max_instances_launched(self):
136
+ """Gets the max_instances_launched of this JobReport. # noqa: E501
137
+
138
+
139
+ :return: The max_instances_launched of this JobReport. # noqa: E501
140
+ :rtype: int
141
+ """
142
+ return self._max_instances_launched
143
+
144
+ @max_instances_launched.setter
145
+ def max_instances_launched(self, max_instances_launched):
146
+ """Sets the max_instances_launched of this JobReport.
147
+
148
+
149
+ :param max_instances_launched: The max_instances_launched of this JobReport. # noqa: E501
150
+ :type: int
151
+ """
152
+
153
+ self._max_instances_launched = max_instances_launched
154
+
155
+ def to_dict(self):
156
+ """Returns the model properties as a dict"""
157
+ result = {}
158
+
159
+ for attr, _ in six.iteritems(self.openapi_types):
160
+ value = getattr(self, attr)
161
+ if isinstance(value, list):
162
+ result[attr] = list(map(
163
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
164
+ value
165
+ ))
166
+ elif hasattr(value, "to_dict"):
167
+ result[attr] = value.to_dict()
168
+ elif isinstance(value, dict):
169
+ result[attr] = dict(map(
170
+ lambda item: (item[0], item[1].to_dict())
171
+ if hasattr(item[1], "to_dict") else item,
172
+ value.items()
173
+ ))
174
+ else:
175
+ result[attr] = value
176
+
177
+ return result
178
+
179
+ def to_str(self):
180
+ """Returns the string representation of the model"""
181
+ return pprint.pformat(self.to_dict())
182
+
183
+ def __repr__(self):
184
+ """For `print` and `pprint`"""
185
+ return self.to_str()
186
+
187
+ def __eq__(self, other):
188
+ """Returns true if both objects are equal"""
189
+ if not isinstance(other, JobReport):
190
+ return False
191
+
192
+ return self.to_dict() == other.to_dict()
193
+
194
+ def __ne__(self, other):
195
+ """Returns true if both objects are not equal"""
196
+ if not isinstance(other, JobReport):
197
+ return True
198
+
199
+ return self.to_dict() != other.to_dict()