anyscale 0.26.0__py3-none-any.whl → 0.26.2__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.
- anyscale/_private/anyscale_client/anyscale_client.py +13 -1
 - anyscale/_private/anyscale_client/common.py +1 -1
 - anyscale/_private/docgen/models.md +2 -2
 - anyscale/client/README.md +21 -10
 - anyscale/client/openapi_client/__init__.py +15 -6
 - anyscale/client/openapi_client/api/default_api.py +322 -83
 - anyscale/client/openapi_client/models/__init__.py +15 -6
 - anyscale/client/openapi_client/models/{customer_billing_type.py → actor_status.py} +7 -8
 - anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +81 -3
 - anyscale/client/openapi_client/models/baseimagesenum.py +59 -1
 - anyscale/client/openapi_client/models/create_organization_configuration.py +3 -3
 - anyscale/client/openapi_client/models/{create_resource_alert.py → create_resource_notification.py} +40 -40
 - anyscale/client/openapi_client/models/job_details.py +173 -0
 - anyscale/client/openapi_client/models/{list_resource_alerts_query.py → list_resource_notifications_query.py} +24 -24
 - anyscale/client/openapi_client/models/machine_launch_failure.py +152 -0
 - anyscale/client/openapi_client/models/organization_configuration.py +3 -3
 - anyscale/client/openapi_client/models/organization_configuration_response.py +3 -3
 - anyscale/client/openapi_client/models/resource_alert_event_type.py +5 -1
 - anyscale/client/openapi_client/models/{resource_alert.py → resource_notification.py} +64 -64
 - anyscale/client/openapi_client/models/resourcenotification_list_response.py +147 -0
 - anyscale/client/openapi_client/models/{resourcealert_response.py → resourcenotification_response.py} +11 -11
 - anyscale/client/openapi_client/models/run_attempt_status.py +103 -0
 - anyscale/client/openapi_client/models/run_status.py +106 -0
 - anyscale/client/openapi_client/models/scheduler_info.py +32 -3
 - anyscale/client/openapi_client/models/supportedbaseimagesenum.py +59 -1
 - anyscale/client/openapi_client/models/tool.py +2 -1
 - anyscale/client/openapi_client/models/train_resources.py +121 -0
 - anyscale/client/openapi_client/models/train_run.py +387 -0
 - anyscale/client/openapi_client/models/train_run_attempt.py +308 -0
 - anyscale/client/openapi_client/models/train_worker.py +363 -0
 - anyscale/client/openapi_client/models/{resourcealert_list_response.py → trainrun_list_response.py} +15 -15
 - anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
 - anyscale/commands/machine_pool_commands.py +15 -10
 - anyscale/resource_quota/commands.py +1 -2
 - anyscale/sdk/anyscale_client/models/baseimagesenum.py +59 -1
 - anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +59 -1
 - anyscale/service/_private/service_sdk.py +2 -3
 - anyscale/shared_anyscale_utils/constants.py +3 -0
 - anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
 - anyscale/version.py +1 -1
 - {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/METADATA +1 -1
 - {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/RECORD +47 -37
 - {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/LICENSE +0 -0
 - {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/NOTICE +0 -0
 - {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/WHEEL +0 -0
 - {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/entry_points.txt +0 -0
 - {anyscale-0.26.0.dist-info → anyscale-0.26.2.dist-info}/top_level.txt +0 -0
 
| 
         @@ -0,0 +1,387 @@ 
     | 
|
| 
      
 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 TrainRun(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 
     | 
    
         
            +
                    'id': 'str',
         
     | 
| 
      
 37 
     | 
    
         
            +
                    'name': 'str',
         
     | 
| 
      
 38 
     | 
    
         
            +
                    'job_id': 'str',
         
     | 
| 
      
 39 
     | 
    
         
            +
                    'controller_actor_id': 'str',
         
     | 
| 
      
 40 
     | 
    
         
            +
                    'status': 'RunStatus',
         
     | 
| 
      
 41 
     | 
    
         
            +
                    'status_detail': 'str',
         
     | 
| 
      
 42 
     | 
    
         
            +
                    'start_time_ms': 'int',
         
     | 
| 
      
 43 
     | 
    
         
            +
                    'end_time_ms': 'int',
         
     | 
| 
      
 44 
     | 
    
         
            +
                    'attempts': 'list[TrainRunAttempt]',
         
     | 
| 
      
 45 
     | 
    
         
            +
                    'job_details': 'JobDetails',
         
     | 
| 
      
 46 
     | 
    
         
            +
                    'session_name': 'str'
         
     | 
| 
      
 47 
     | 
    
         
            +
                }
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                attribute_map = {
         
     | 
| 
      
 50 
     | 
    
         
            +
                    'id': 'id',
         
     | 
| 
      
 51 
     | 
    
         
            +
                    'name': 'name',
         
     | 
| 
      
 52 
     | 
    
         
            +
                    'job_id': 'job_id',
         
     | 
| 
      
 53 
     | 
    
         
            +
                    'controller_actor_id': 'controller_actor_id',
         
     | 
| 
      
 54 
     | 
    
         
            +
                    'status': 'status',
         
     | 
| 
      
 55 
     | 
    
         
            +
                    'status_detail': 'status_detail',
         
     | 
| 
      
 56 
     | 
    
         
            +
                    'start_time_ms': 'start_time_ms',
         
     | 
| 
      
 57 
     | 
    
         
            +
                    'end_time_ms': 'end_time_ms',
         
     | 
| 
      
 58 
     | 
    
         
            +
                    'attempts': 'attempts',
         
     | 
| 
      
 59 
     | 
    
         
            +
                    'job_details': 'job_details',
         
     | 
| 
      
 60 
     | 
    
         
            +
                    'session_name': 'session_name'
         
     | 
| 
      
 61 
     | 
    
         
            +
                }
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
                def __init__(self, id=None, name=None, job_id=None, controller_actor_id=None, status=None, status_detail=None, start_time_ms=None, end_time_ms=None, attempts=None, job_details=None, session_name=None, local_vars_configuration=None):  # noqa: E501
         
     | 
| 
      
 64 
     | 
    
         
            +
                    """TrainRun - a model defined in OpenAPI"""  # noqa: E501
         
     | 
| 
      
 65 
     | 
    
         
            +
                    if local_vars_configuration is None:
         
     | 
| 
      
 66 
     | 
    
         
            +
                        local_vars_configuration = Configuration()
         
     | 
| 
      
 67 
     | 
    
         
            +
                    self.local_vars_configuration = local_vars_configuration
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
                    self._id = None
         
     | 
| 
      
 70 
     | 
    
         
            +
                    self._name = None
         
     | 
| 
      
 71 
     | 
    
         
            +
                    self._job_id = None
         
     | 
| 
      
 72 
     | 
    
         
            +
                    self._controller_actor_id = None
         
     | 
| 
      
 73 
     | 
    
         
            +
                    self._status = None
         
     | 
| 
      
 74 
     | 
    
         
            +
                    self._status_detail = None
         
     | 
| 
      
 75 
     | 
    
         
            +
                    self._start_time_ms = None
         
     | 
| 
      
 76 
     | 
    
         
            +
                    self._end_time_ms = None
         
     | 
| 
      
 77 
     | 
    
         
            +
                    self._attempts = None
         
     | 
| 
      
 78 
     | 
    
         
            +
                    self._job_details = None
         
     | 
| 
      
 79 
     | 
    
         
            +
                    self._session_name = None
         
     | 
| 
      
 80 
     | 
    
         
            +
                    self.discriminator = None
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
                    self.id = id
         
     | 
| 
      
 83 
     | 
    
         
            +
                    self.name = name
         
     | 
| 
      
 84 
     | 
    
         
            +
                    self.job_id = job_id
         
     | 
| 
      
 85 
     | 
    
         
            +
                    if controller_actor_id is not None:
         
     | 
| 
      
 86 
     | 
    
         
            +
                        self.controller_actor_id = controller_actor_id
         
     | 
| 
      
 87 
     | 
    
         
            +
                    self.status = status
         
     | 
| 
      
 88 
     | 
    
         
            +
                    if status_detail is not None:
         
     | 
| 
      
 89 
     | 
    
         
            +
                        self.status_detail = status_detail
         
     | 
| 
      
 90 
     | 
    
         
            +
                    self.start_time_ms = start_time_ms
         
     | 
| 
      
 91 
     | 
    
         
            +
                    if end_time_ms is not None:
         
     | 
| 
      
 92 
     | 
    
         
            +
                        self.end_time_ms = end_time_ms
         
     | 
| 
      
 93 
     | 
    
         
            +
                    self.attempts = attempts
         
     | 
| 
      
 94 
     | 
    
         
            +
                    self.job_details = job_details
         
     | 
| 
      
 95 
     | 
    
         
            +
                    if session_name is not None:
         
     | 
| 
      
 96 
     | 
    
         
            +
                        self.session_name = session_name
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                @property
         
     | 
| 
      
 99 
     | 
    
         
            +
                def id(self):
         
     | 
| 
      
 100 
     | 
    
         
            +
                    """Gets the id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
             
     | 
| 
      
 103 
     | 
    
         
            +
                    :return: The id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 104 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 105 
     | 
    
         
            +
                    """
         
     | 
| 
      
 106 
     | 
    
         
            +
                    return self._id
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
      
 108 
     | 
    
         
            +
                @id.setter
         
     | 
| 
      
 109 
     | 
    
         
            +
                def id(self, id):
         
     | 
| 
      
 110 
     | 
    
         
            +
                    """Sets the id of this TrainRun.
         
     | 
| 
      
 111 
     | 
    
         
            +
             
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
                    :param id: The id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 114 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 115 
     | 
    
         
            +
                    """
         
     | 
| 
      
 116 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and id is None:  # noqa: E501
         
     | 
| 
      
 117 
     | 
    
         
            +
                        raise ValueError("Invalid value for `id`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 118 
     | 
    
         
            +
             
     | 
| 
      
 119 
     | 
    
         
            +
                    self._id = id
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
                @property
         
     | 
| 
      
 122 
     | 
    
         
            +
                def name(self):
         
     | 
| 
      
 123 
     | 
    
         
            +
                    """Gets the name of this TrainRun.  # noqa: E501
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
                    :return: The name of this TrainRun.  # noqa: E501
         
     | 
| 
      
 127 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 128 
     | 
    
         
            +
                    """
         
     | 
| 
      
 129 
     | 
    
         
            +
                    return self._name
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
      
 131 
     | 
    
         
            +
                @name.setter
         
     | 
| 
      
 132 
     | 
    
         
            +
                def name(self, name):
         
     | 
| 
      
 133 
     | 
    
         
            +
                    """Sets the name of this TrainRun.
         
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
      
 136 
     | 
    
         
            +
                    :param name: The name of this TrainRun.  # noqa: E501
         
     | 
| 
      
 137 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 138 
     | 
    
         
            +
                    """
         
     | 
| 
      
 139 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and name is None:  # noqa: E501
         
     | 
| 
      
 140 
     | 
    
         
            +
                        raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 141 
     | 
    
         
            +
             
     | 
| 
      
 142 
     | 
    
         
            +
                    self._name = name
         
     | 
| 
      
 143 
     | 
    
         
            +
             
     | 
| 
      
 144 
     | 
    
         
            +
                @property
         
     | 
| 
      
 145 
     | 
    
         
            +
                def job_id(self):
         
     | 
| 
      
 146 
     | 
    
         
            +
                    """Gets the job_id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 147 
     | 
    
         
            +
             
     | 
| 
      
 148 
     | 
    
         
            +
             
     | 
| 
      
 149 
     | 
    
         
            +
                    :return: The job_id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 150 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 151 
     | 
    
         
            +
                    """
         
     | 
| 
      
 152 
     | 
    
         
            +
                    return self._job_id
         
     | 
| 
      
 153 
     | 
    
         
            +
             
     | 
| 
      
 154 
     | 
    
         
            +
                @job_id.setter
         
     | 
| 
      
 155 
     | 
    
         
            +
                def job_id(self, job_id):
         
     | 
| 
      
 156 
     | 
    
         
            +
                    """Sets the job_id of this TrainRun.
         
     | 
| 
      
 157 
     | 
    
         
            +
             
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
                    :param job_id: The job_id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 160 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 161 
     | 
    
         
            +
                    """
         
     | 
| 
      
 162 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and job_id is None:  # noqa: E501
         
     | 
| 
      
 163 
     | 
    
         
            +
                        raise ValueError("Invalid value for `job_id`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 164 
     | 
    
         
            +
             
     | 
| 
      
 165 
     | 
    
         
            +
                    self._job_id = job_id
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
                @property
         
     | 
| 
      
 168 
     | 
    
         
            +
                def controller_actor_id(self):
         
     | 
| 
      
 169 
     | 
    
         
            +
                    """Gets the controller_actor_id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 170 
     | 
    
         
            +
             
     | 
| 
      
 171 
     | 
    
         
            +
             
     | 
| 
      
 172 
     | 
    
         
            +
                    :return: The controller_actor_id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 173 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 174 
     | 
    
         
            +
                    """
         
     | 
| 
      
 175 
     | 
    
         
            +
                    return self._controller_actor_id
         
     | 
| 
      
 176 
     | 
    
         
            +
             
     | 
| 
      
 177 
     | 
    
         
            +
                @controller_actor_id.setter
         
     | 
| 
      
 178 
     | 
    
         
            +
                def controller_actor_id(self, controller_actor_id):
         
     | 
| 
      
 179 
     | 
    
         
            +
                    """Sets the controller_actor_id of this TrainRun.
         
     | 
| 
      
 180 
     | 
    
         
            +
             
     | 
| 
      
 181 
     | 
    
         
            +
             
     | 
| 
      
 182 
     | 
    
         
            +
                    :param controller_actor_id: The controller_actor_id of this TrainRun.  # noqa: E501
         
     | 
| 
      
 183 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 184 
     | 
    
         
            +
                    """
         
     | 
| 
      
 185 
     | 
    
         
            +
             
     | 
| 
      
 186 
     | 
    
         
            +
                    self._controller_actor_id = controller_actor_id
         
     | 
| 
      
 187 
     | 
    
         
            +
             
     | 
| 
      
 188 
     | 
    
         
            +
                @property
         
     | 
| 
      
 189 
     | 
    
         
            +
                def status(self):
         
     | 
| 
      
 190 
     | 
    
         
            +
                    """Gets the status of this TrainRun.  # noqa: E501
         
     | 
| 
      
 191 
     | 
    
         
            +
             
     | 
| 
      
 192 
     | 
    
         
            +
             
     | 
| 
      
 193 
     | 
    
         
            +
                    :return: The status of this TrainRun.  # noqa: E501
         
     | 
| 
      
 194 
     | 
    
         
            +
                    :rtype: RunStatus
         
     | 
| 
      
 195 
     | 
    
         
            +
                    """
         
     | 
| 
      
 196 
     | 
    
         
            +
                    return self._status
         
     | 
| 
      
 197 
     | 
    
         
            +
             
     | 
| 
      
 198 
     | 
    
         
            +
                @status.setter
         
     | 
| 
      
 199 
     | 
    
         
            +
                def status(self, status):
         
     | 
| 
      
 200 
     | 
    
         
            +
                    """Sets the status of this TrainRun.
         
     | 
| 
      
 201 
     | 
    
         
            +
             
     | 
| 
      
 202 
     | 
    
         
            +
             
     | 
| 
      
 203 
     | 
    
         
            +
                    :param status: The status of this TrainRun.  # noqa: E501
         
     | 
| 
      
 204 
     | 
    
         
            +
                    :type: RunStatus
         
     | 
| 
      
 205 
     | 
    
         
            +
                    """
         
     | 
| 
      
 206 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and status is None:  # noqa: E501
         
     | 
| 
      
 207 
     | 
    
         
            +
                        raise ValueError("Invalid value for `status`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 208 
     | 
    
         
            +
             
     | 
| 
      
 209 
     | 
    
         
            +
                    self._status = status
         
     | 
| 
      
 210 
     | 
    
         
            +
             
     | 
| 
      
 211 
     | 
    
         
            +
                @property
         
     | 
| 
      
 212 
     | 
    
         
            +
                def status_detail(self):
         
     | 
| 
      
 213 
     | 
    
         
            +
                    """Gets the status_detail of this TrainRun.  # noqa: E501
         
     | 
| 
      
 214 
     | 
    
         
            +
             
     | 
| 
      
 215 
     | 
    
         
            +
             
     | 
| 
      
 216 
     | 
    
         
            +
                    :return: The status_detail of this TrainRun.  # noqa: E501
         
     | 
| 
      
 217 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 218 
     | 
    
         
            +
                    """
         
     | 
| 
      
 219 
     | 
    
         
            +
                    return self._status_detail
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
      
 221 
     | 
    
         
            +
                @status_detail.setter
         
     | 
| 
      
 222 
     | 
    
         
            +
                def status_detail(self, status_detail):
         
     | 
| 
      
 223 
     | 
    
         
            +
                    """Sets the status_detail of this TrainRun.
         
     | 
| 
      
 224 
     | 
    
         
            +
             
     | 
| 
      
 225 
     | 
    
         
            +
             
     | 
| 
      
 226 
     | 
    
         
            +
                    :param status_detail: The status_detail of this TrainRun.  # noqa: E501
         
     | 
| 
      
 227 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 228 
     | 
    
         
            +
                    """
         
     | 
| 
      
 229 
     | 
    
         
            +
             
     | 
| 
      
 230 
     | 
    
         
            +
                    self._status_detail = status_detail
         
     | 
| 
      
 231 
     | 
    
         
            +
             
     | 
| 
      
 232 
     | 
    
         
            +
                @property
         
     | 
| 
      
 233 
     | 
    
         
            +
                def start_time_ms(self):
         
     | 
| 
      
 234 
     | 
    
         
            +
                    """Gets the start_time_ms of this TrainRun.  # noqa: E501
         
     | 
| 
      
 235 
     | 
    
         
            +
             
     | 
| 
      
 236 
     | 
    
         
            +
             
     | 
| 
      
 237 
     | 
    
         
            +
                    :return: The start_time_ms of this TrainRun.  # noqa: E501
         
     | 
| 
      
 238 
     | 
    
         
            +
                    :rtype: int
         
     | 
| 
      
 239 
     | 
    
         
            +
                    """
         
     | 
| 
      
 240 
     | 
    
         
            +
                    return self._start_time_ms
         
     | 
| 
      
 241 
     | 
    
         
            +
             
     | 
| 
      
 242 
     | 
    
         
            +
                @start_time_ms.setter
         
     | 
| 
      
 243 
     | 
    
         
            +
                def start_time_ms(self, start_time_ms):
         
     | 
| 
      
 244 
     | 
    
         
            +
                    """Sets the start_time_ms of this TrainRun.
         
     | 
| 
      
 245 
     | 
    
         
            +
             
     | 
| 
      
 246 
     | 
    
         
            +
             
     | 
| 
      
 247 
     | 
    
         
            +
                    :param start_time_ms: The start_time_ms of this TrainRun.  # noqa: E501
         
     | 
| 
      
 248 
     | 
    
         
            +
                    :type: int
         
     | 
| 
      
 249 
     | 
    
         
            +
                    """
         
     | 
| 
      
 250 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and start_time_ms is None:  # noqa: E501
         
     | 
| 
      
 251 
     | 
    
         
            +
                        raise ValueError("Invalid value for `start_time_ms`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 252 
     | 
    
         
            +
             
     | 
| 
      
 253 
     | 
    
         
            +
                    self._start_time_ms = start_time_ms
         
     | 
| 
      
 254 
     | 
    
         
            +
             
     | 
| 
      
 255 
     | 
    
         
            +
                @property
         
     | 
| 
      
 256 
     | 
    
         
            +
                def end_time_ms(self):
         
     | 
| 
      
 257 
     | 
    
         
            +
                    """Gets the end_time_ms of this TrainRun.  # noqa: E501
         
     | 
| 
      
 258 
     | 
    
         
            +
             
     | 
| 
      
 259 
     | 
    
         
            +
             
     | 
| 
      
 260 
     | 
    
         
            +
                    :return: The end_time_ms of this TrainRun.  # noqa: E501
         
     | 
| 
      
 261 
     | 
    
         
            +
                    :rtype: int
         
     | 
| 
      
 262 
     | 
    
         
            +
                    """
         
     | 
| 
      
 263 
     | 
    
         
            +
                    return self._end_time_ms
         
     | 
| 
      
 264 
     | 
    
         
            +
             
     | 
| 
      
 265 
     | 
    
         
            +
                @end_time_ms.setter
         
     | 
| 
      
 266 
     | 
    
         
            +
                def end_time_ms(self, end_time_ms):
         
     | 
| 
      
 267 
     | 
    
         
            +
                    """Sets the end_time_ms of this TrainRun.
         
     | 
| 
      
 268 
     | 
    
         
            +
             
     | 
| 
      
 269 
     | 
    
         
            +
             
     | 
| 
      
 270 
     | 
    
         
            +
                    :param end_time_ms: The end_time_ms of this TrainRun.  # noqa: E501
         
     | 
| 
      
 271 
     | 
    
         
            +
                    :type: int
         
     | 
| 
      
 272 
     | 
    
         
            +
                    """
         
     | 
| 
      
 273 
     | 
    
         
            +
             
     | 
| 
      
 274 
     | 
    
         
            +
                    self._end_time_ms = end_time_ms
         
     | 
| 
      
 275 
     | 
    
         
            +
             
     | 
| 
      
 276 
     | 
    
         
            +
                @property
         
     | 
| 
      
 277 
     | 
    
         
            +
                def attempts(self):
         
     | 
| 
      
 278 
     | 
    
         
            +
                    """Gets the attempts of this TrainRun.  # noqa: E501
         
     | 
| 
      
 279 
     | 
    
         
            +
             
     | 
| 
      
 280 
     | 
    
         
            +
             
     | 
| 
      
 281 
     | 
    
         
            +
                    :return: The attempts of this TrainRun.  # noqa: E501
         
     | 
| 
      
 282 
     | 
    
         
            +
                    :rtype: list[TrainRunAttempt]
         
     | 
| 
      
 283 
     | 
    
         
            +
                    """
         
     | 
| 
      
 284 
     | 
    
         
            +
                    return self._attempts
         
     | 
| 
      
 285 
     | 
    
         
            +
             
     | 
| 
      
 286 
     | 
    
         
            +
                @attempts.setter
         
     | 
| 
      
 287 
     | 
    
         
            +
                def attempts(self, attempts):
         
     | 
| 
      
 288 
     | 
    
         
            +
                    """Sets the attempts of this TrainRun.
         
     | 
| 
      
 289 
     | 
    
         
            +
             
     | 
| 
      
 290 
     | 
    
         
            +
             
     | 
| 
      
 291 
     | 
    
         
            +
                    :param attempts: The attempts of this TrainRun.  # noqa: E501
         
     | 
| 
      
 292 
     | 
    
         
            +
                    :type: list[TrainRunAttempt]
         
     | 
| 
      
 293 
     | 
    
         
            +
                    """
         
     | 
| 
      
 294 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and attempts is None:  # noqa: E501
         
     | 
| 
      
 295 
     | 
    
         
            +
                        raise ValueError("Invalid value for `attempts`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 296 
     | 
    
         
            +
             
     | 
| 
      
 297 
     | 
    
         
            +
                    self._attempts = attempts
         
     | 
| 
      
 298 
     | 
    
         
            +
             
     | 
| 
      
 299 
     | 
    
         
            +
                @property
         
     | 
| 
      
 300 
     | 
    
         
            +
                def job_details(self):
         
     | 
| 
      
 301 
     | 
    
         
            +
                    """Gets the job_details of this TrainRun.  # noqa: E501
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
             
     | 
| 
      
 304 
     | 
    
         
            +
                    :return: The job_details of this TrainRun.  # noqa: E501
         
     | 
| 
      
 305 
     | 
    
         
            +
                    :rtype: JobDetails
         
     | 
| 
      
 306 
     | 
    
         
            +
                    """
         
     | 
| 
      
 307 
     | 
    
         
            +
                    return self._job_details
         
     | 
| 
      
 308 
     | 
    
         
            +
             
     | 
| 
      
 309 
     | 
    
         
            +
                @job_details.setter
         
     | 
| 
      
 310 
     | 
    
         
            +
                def job_details(self, job_details):
         
     | 
| 
      
 311 
     | 
    
         
            +
                    """Sets the job_details of this TrainRun.
         
     | 
| 
      
 312 
     | 
    
         
            +
             
     | 
| 
      
 313 
     | 
    
         
            +
             
     | 
| 
      
 314 
     | 
    
         
            +
                    :param job_details: The job_details of this TrainRun.  # noqa: E501
         
     | 
| 
      
 315 
     | 
    
         
            +
                    :type: JobDetails
         
     | 
| 
      
 316 
     | 
    
         
            +
                    """
         
     | 
| 
      
 317 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and job_details is None:  # noqa: E501
         
     | 
| 
      
 318 
     | 
    
         
            +
                        raise ValueError("Invalid value for `job_details`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 319 
     | 
    
         
            +
             
     | 
| 
      
 320 
     | 
    
         
            +
                    self._job_details = job_details
         
     | 
| 
      
 321 
     | 
    
         
            +
             
     | 
| 
      
 322 
     | 
    
         
            +
                @property
         
     | 
| 
      
 323 
     | 
    
         
            +
                def session_name(self):
         
     | 
| 
      
 324 
     | 
    
         
            +
                    """Gets the session_name of this TrainRun.  # noqa: E501
         
     | 
| 
      
 325 
     | 
    
         
            +
             
     | 
| 
      
 326 
     | 
    
         
            +
             
     | 
| 
      
 327 
     | 
    
         
            +
                    :return: The session_name of this TrainRun.  # noqa: E501
         
     | 
| 
      
 328 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 329 
     | 
    
         
            +
                    """
         
     | 
| 
      
 330 
     | 
    
         
            +
                    return self._session_name
         
     | 
| 
      
 331 
     | 
    
         
            +
             
     | 
| 
      
 332 
     | 
    
         
            +
                @session_name.setter
         
     | 
| 
      
 333 
     | 
    
         
            +
                def session_name(self, session_name):
         
     | 
| 
      
 334 
     | 
    
         
            +
                    """Sets the session_name of this TrainRun.
         
     | 
| 
      
 335 
     | 
    
         
            +
             
     | 
| 
      
 336 
     | 
    
         
            +
             
     | 
| 
      
 337 
     | 
    
         
            +
                    :param session_name: The session_name of this TrainRun.  # noqa: E501
         
     | 
| 
      
 338 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 339 
     | 
    
         
            +
                    """
         
     | 
| 
      
 340 
     | 
    
         
            +
             
     | 
| 
      
 341 
     | 
    
         
            +
                    self._session_name = session_name
         
     | 
| 
      
 342 
     | 
    
         
            +
             
     | 
| 
      
 343 
     | 
    
         
            +
                def to_dict(self):
         
     | 
| 
      
 344 
     | 
    
         
            +
                    """Returns the model properties as a dict"""
         
     | 
| 
      
 345 
     | 
    
         
            +
                    result = {}
         
     | 
| 
      
 346 
     | 
    
         
            +
             
     | 
| 
      
 347 
     | 
    
         
            +
                    for attr, _ in six.iteritems(self.openapi_types):
         
     | 
| 
      
 348 
     | 
    
         
            +
                        value = getattr(self, attr)
         
     | 
| 
      
 349 
     | 
    
         
            +
                        if isinstance(value, list):
         
     | 
| 
      
 350 
     | 
    
         
            +
                            result[attr] = list(map(
         
     | 
| 
      
 351 
     | 
    
         
            +
                                lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
         
     | 
| 
      
 352 
     | 
    
         
            +
                                value
         
     | 
| 
      
 353 
     | 
    
         
            +
                            ))
         
     | 
| 
      
 354 
     | 
    
         
            +
                        elif hasattr(value, "to_dict"):
         
     | 
| 
      
 355 
     | 
    
         
            +
                            result[attr] = value.to_dict()
         
     | 
| 
      
 356 
     | 
    
         
            +
                        elif isinstance(value, dict):
         
     | 
| 
      
 357 
     | 
    
         
            +
                            result[attr] = dict(map(
         
     | 
| 
      
 358 
     | 
    
         
            +
                                lambda item: (item[0], item[1].to_dict())
         
     | 
| 
      
 359 
     | 
    
         
            +
                                if hasattr(item[1], "to_dict") else item,
         
     | 
| 
      
 360 
     | 
    
         
            +
                                value.items()
         
     | 
| 
      
 361 
     | 
    
         
            +
                            ))
         
     | 
| 
      
 362 
     | 
    
         
            +
                        else:
         
     | 
| 
      
 363 
     | 
    
         
            +
                            result[attr] = value
         
     | 
| 
      
 364 
     | 
    
         
            +
             
     | 
| 
      
 365 
     | 
    
         
            +
                    return result
         
     | 
| 
      
 366 
     | 
    
         
            +
             
     | 
| 
      
 367 
     | 
    
         
            +
                def to_str(self):
         
     | 
| 
      
 368 
     | 
    
         
            +
                    """Returns the string representation of the model"""
         
     | 
| 
      
 369 
     | 
    
         
            +
                    return pprint.pformat(self.to_dict())
         
     | 
| 
      
 370 
     | 
    
         
            +
             
     | 
| 
      
 371 
     | 
    
         
            +
                def __repr__(self):
         
     | 
| 
      
 372 
     | 
    
         
            +
                    """For `print` and `pprint`"""
         
     | 
| 
      
 373 
     | 
    
         
            +
                    return self.to_str()
         
     | 
| 
      
 374 
     | 
    
         
            +
             
     | 
| 
      
 375 
     | 
    
         
            +
                def __eq__(self, other):
         
     | 
| 
      
 376 
     | 
    
         
            +
                    """Returns true if both objects are equal"""
         
     | 
| 
      
 377 
     | 
    
         
            +
                    if not isinstance(other, TrainRun):
         
     | 
| 
      
 378 
     | 
    
         
            +
                        return False
         
     | 
| 
      
 379 
     | 
    
         
            +
             
     | 
| 
      
 380 
     | 
    
         
            +
                    return self.to_dict() == other.to_dict()
         
     | 
| 
      
 381 
     | 
    
         
            +
             
     | 
| 
      
 382 
     | 
    
         
            +
                def __ne__(self, other):
         
     | 
| 
      
 383 
     | 
    
         
            +
                    """Returns true if both objects are not equal"""
         
     | 
| 
      
 384 
     | 
    
         
            +
                    if not isinstance(other, TrainRun):
         
     | 
| 
      
 385 
     | 
    
         
            +
                        return True
         
     | 
| 
      
 386 
     | 
    
         
            +
             
     | 
| 
      
 387 
     | 
    
         
            +
                    return self.to_dict() != other.to_dict()
         
     | 
| 
         @@ -0,0 +1,308 @@ 
     | 
|
| 
      
 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 TrainRunAttempt(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 
     | 
    
         
            +
                    'run_id': 'str',
         
     | 
| 
      
 37 
     | 
    
         
            +
                    'attempt_id': 'str',
         
     | 
| 
      
 38 
     | 
    
         
            +
                    'status': 'RunAttemptStatus',
         
     | 
| 
      
 39 
     | 
    
         
            +
                    'status_detail': 'str',
         
     | 
| 
      
 40 
     | 
    
         
            +
                    'start_time_ms': 'int',
         
     | 
| 
      
 41 
     | 
    
         
            +
                    'end_time_ms': 'int',
         
     | 
| 
      
 42 
     | 
    
         
            +
                    'resources': 'list[TrainResources]',
         
     | 
| 
      
 43 
     | 
    
         
            +
                    'workers': 'list[TrainWorker]'
         
     | 
| 
      
 44 
     | 
    
         
            +
                }
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                attribute_map = {
         
     | 
| 
      
 47 
     | 
    
         
            +
                    'run_id': 'run_id',
         
     | 
| 
      
 48 
     | 
    
         
            +
                    'attempt_id': 'attempt_id',
         
     | 
| 
      
 49 
     | 
    
         
            +
                    'status': 'status',
         
     | 
| 
      
 50 
     | 
    
         
            +
                    'status_detail': 'status_detail',
         
     | 
| 
      
 51 
     | 
    
         
            +
                    'start_time_ms': 'start_time_ms',
         
     | 
| 
      
 52 
     | 
    
         
            +
                    'end_time_ms': 'end_time_ms',
         
     | 
| 
      
 53 
     | 
    
         
            +
                    'resources': 'resources',
         
     | 
| 
      
 54 
     | 
    
         
            +
                    'workers': 'workers'
         
     | 
| 
      
 55 
     | 
    
         
            +
                }
         
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
                def __init__(self, run_id=None, attempt_id=None, status=None, status_detail=None, start_time_ms=None, end_time_ms=None, resources=None, workers=None, local_vars_configuration=None):  # noqa: E501
         
     | 
| 
      
 58 
     | 
    
         
            +
                    """TrainRunAttempt - a model defined in OpenAPI"""  # noqa: E501
         
     | 
| 
      
 59 
     | 
    
         
            +
                    if local_vars_configuration is None:
         
     | 
| 
      
 60 
     | 
    
         
            +
                        local_vars_configuration = Configuration()
         
     | 
| 
      
 61 
     | 
    
         
            +
                    self.local_vars_configuration = local_vars_configuration
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
                    self._run_id = None
         
     | 
| 
      
 64 
     | 
    
         
            +
                    self._attempt_id = None
         
     | 
| 
      
 65 
     | 
    
         
            +
                    self._status = None
         
     | 
| 
      
 66 
     | 
    
         
            +
                    self._status_detail = None
         
     | 
| 
      
 67 
     | 
    
         
            +
                    self._start_time_ms = None
         
     | 
| 
      
 68 
     | 
    
         
            +
                    self._end_time_ms = None
         
     | 
| 
      
 69 
     | 
    
         
            +
                    self._resources = None
         
     | 
| 
      
 70 
     | 
    
         
            +
                    self._workers = None
         
     | 
| 
      
 71 
     | 
    
         
            +
                    self.discriminator = None
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
                    self.run_id = run_id
         
     | 
| 
      
 74 
     | 
    
         
            +
                    self.attempt_id = attempt_id
         
     | 
| 
      
 75 
     | 
    
         
            +
                    self.status = status
         
     | 
| 
      
 76 
     | 
    
         
            +
                    if status_detail is not None:
         
     | 
| 
      
 77 
     | 
    
         
            +
                        self.status_detail = status_detail
         
     | 
| 
      
 78 
     | 
    
         
            +
                    self.start_time_ms = start_time_ms
         
     | 
| 
      
 79 
     | 
    
         
            +
                    if end_time_ms is not None:
         
     | 
| 
      
 80 
     | 
    
         
            +
                        self.end_time_ms = end_time_ms
         
     | 
| 
      
 81 
     | 
    
         
            +
                    self.resources = resources
         
     | 
| 
      
 82 
     | 
    
         
            +
                    self.workers = workers
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                @property
         
     | 
| 
      
 85 
     | 
    
         
            +
                def run_id(self):
         
     | 
| 
      
 86 
     | 
    
         
            +
                    """Gets the run_id of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
                    :return: The run_id of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 90 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 91 
     | 
    
         
            +
                    """
         
     | 
| 
      
 92 
     | 
    
         
            +
                    return self._run_id
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
      
 94 
     | 
    
         
            +
                @run_id.setter
         
     | 
| 
      
 95 
     | 
    
         
            +
                def run_id(self, run_id):
         
     | 
| 
      
 96 
     | 
    
         
            +
                    """Sets the run_id of this TrainRunAttempt.
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
                    :param run_id: The run_id of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 100 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 101 
     | 
    
         
            +
                    """
         
     | 
| 
      
 102 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and run_id is None:  # noqa: E501
         
     | 
| 
      
 103 
     | 
    
         
            +
                        raise ValueError("Invalid value for `run_id`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
                    self._run_id = run_id
         
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
      
 107 
     | 
    
         
            +
                @property
         
     | 
| 
      
 108 
     | 
    
         
            +
                def attempt_id(self):
         
     | 
| 
      
 109 
     | 
    
         
            +
                    """Gets the attempt_id of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 110 
     | 
    
         
            +
             
     | 
| 
      
 111 
     | 
    
         
            +
             
     | 
| 
      
 112 
     | 
    
         
            +
                    :return: The attempt_id of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 113 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 114 
     | 
    
         
            +
                    """
         
     | 
| 
      
 115 
     | 
    
         
            +
                    return self._attempt_id
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
      
 117 
     | 
    
         
            +
                @attempt_id.setter
         
     | 
| 
      
 118 
     | 
    
         
            +
                def attempt_id(self, attempt_id):
         
     | 
| 
      
 119 
     | 
    
         
            +
                    """Sets the attempt_id of this TrainRunAttempt.
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
             
     | 
| 
      
 122 
     | 
    
         
            +
                    :param attempt_id: The attempt_id of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 123 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 124 
     | 
    
         
            +
                    """
         
     | 
| 
      
 125 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and attempt_id is None:  # noqa: E501
         
     | 
| 
      
 126 
     | 
    
         
            +
                        raise ValueError("Invalid value for `attempt_id`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
                    self._attempt_id = attempt_id
         
     | 
| 
      
 129 
     | 
    
         
            +
             
     | 
| 
      
 130 
     | 
    
         
            +
                @property
         
     | 
| 
      
 131 
     | 
    
         
            +
                def status(self):
         
     | 
| 
      
 132 
     | 
    
         
            +
                    """Gets the status of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
                    :return: The status of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 136 
     | 
    
         
            +
                    :rtype: RunAttemptStatus
         
     | 
| 
      
 137 
     | 
    
         
            +
                    """
         
     | 
| 
      
 138 
     | 
    
         
            +
                    return self._status
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
                @status.setter
         
     | 
| 
      
 141 
     | 
    
         
            +
                def status(self, status):
         
     | 
| 
      
 142 
     | 
    
         
            +
                    """Sets the status of this TrainRunAttempt.
         
     | 
| 
      
 143 
     | 
    
         
            +
             
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
      
 145 
     | 
    
         
            +
                    :param status: The status of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 146 
     | 
    
         
            +
                    :type: RunAttemptStatus
         
     | 
| 
      
 147 
     | 
    
         
            +
                    """
         
     | 
| 
      
 148 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and status is None:  # noqa: E501
         
     | 
| 
      
 149 
     | 
    
         
            +
                        raise ValueError("Invalid value for `status`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 150 
     | 
    
         
            +
             
     | 
| 
      
 151 
     | 
    
         
            +
                    self._status = status
         
     | 
| 
      
 152 
     | 
    
         
            +
             
     | 
| 
      
 153 
     | 
    
         
            +
                @property
         
     | 
| 
      
 154 
     | 
    
         
            +
                def status_detail(self):
         
     | 
| 
      
 155 
     | 
    
         
            +
                    """Gets the status_detail of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 156 
     | 
    
         
            +
             
     | 
| 
      
 157 
     | 
    
         
            +
             
     | 
| 
      
 158 
     | 
    
         
            +
                    :return: The status_detail of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 159 
     | 
    
         
            +
                    :rtype: str
         
     | 
| 
      
 160 
     | 
    
         
            +
                    """
         
     | 
| 
      
 161 
     | 
    
         
            +
                    return self._status_detail
         
     | 
| 
      
 162 
     | 
    
         
            +
             
     | 
| 
      
 163 
     | 
    
         
            +
                @status_detail.setter
         
     | 
| 
      
 164 
     | 
    
         
            +
                def status_detail(self, status_detail):
         
     | 
| 
      
 165 
     | 
    
         
            +
                    """Sets the status_detail of this TrainRunAttempt.
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
             
     | 
| 
      
 168 
     | 
    
         
            +
                    :param status_detail: The status_detail of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 169 
     | 
    
         
            +
                    :type: str
         
     | 
| 
      
 170 
     | 
    
         
            +
                    """
         
     | 
| 
      
 171 
     | 
    
         
            +
             
     | 
| 
      
 172 
     | 
    
         
            +
                    self._status_detail = status_detail
         
     | 
| 
      
 173 
     | 
    
         
            +
             
     | 
| 
      
 174 
     | 
    
         
            +
                @property
         
     | 
| 
      
 175 
     | 
    
         
            +
                def start_time_ms(self):
         
     | 
| 
      
 176 
     | 
    
         
            +
                    """Gets the start_time_ms of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 177 
     | 
    
         
            +
             
     | 
| 
      
 178 
     | 
    
         
            +
             
     | 
| 
      
 179 
     | 
    
         
            +
                    :return: The start_time_ms of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 180 
     | 
    
         
            +
                    :rtype: int
         
     | 
| 
      
 181 
     | 
    
         
            +
                    """
         
     | 
| 
      
 182 
     | 
    
         
            +
                    return self._start_time_ms
         
     | 
| 
      
 183 
     | 
    
         
            +
             
     | 
| 
      
 184 
     | 
    
         
            +
                @start_time_ms.setter
         
     | 
| 
      
 185 
     | 
    
         
            +
                def start_time_ms(self, start_time_ms):
         
     | 
| 
      
 186 
     | 
    
         
            +
                    """Sets the start_time_ms of this TrainRunAttempt.
         
     | 
| 
      
 187 
     | 
    
         
            +
             
     | 
| 
      
 188 
     | 
    
         
            +
             
     | 
| 
      
 189 
     | 
    
         
            +
                    :param start_time_ms: The start_time_ms of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 190 
     | 
    
         
            +
                    :type: int
         
     | 
| 
      
 191 
     | 
    
         
            +
                    """
         
     | 
| 
      
 192 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and start_time_ms is None:  # noqa: E501
         
     | 
| 
      
 193 
     | 
    
         
            +
                        raise ValueError("Invalid value for `start_time_ms`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 194 
     | 
    
         
            +
             
     | 
| 
      
 195 
     | 
    
         
            +
                    self._start_time_ms = start_time_ms
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
                @property
         
     | 
| 
      
 198 
     | 
    
         
            +
                def end_time_ms(self):
         
     | 
| 
      
 199 
     | 
    
         
            +
                    """Gets the end_time_ms of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
             
     | 
| 
      
 202 
     | 
    
         
            +
                    :return: The end_time_ms of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 203 
     | 
    
         
            +
                    :rtype: int
         
     | 
| 
      
 204 
     | 
    
         
            +
                    """
         
     | 
| 
      
 205 
     | 
    
         
            +
                    return self._end_time_ms
         
     | 
| 
      
 206 
     | 
    
         
            +
             
     | 
| 
      
 207 
     | 
    
         
            +
                @end_time_ms.setter
         
     | 
| 
      
 208 
     | 
    
         
            +
                def end_time_ms(self, end_time_ms):
         
     | 
| 
      
 209 
     | 
    
         
            +
                    """Sets the end_time_ms of this TrainRunAttempt.
         
     | 
| 
      
 210 
     | 
    
         
            +
             
     | 
| 
      
 211 
     | 
    
         
            +
             
     | 
| 
      
 212 
     | 
    
         
            +
                    :param end_time_ms: The end_time_ms of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 213 
     | 
    
         
            +
                    :type: int
         
     | 
| 
      
 214 
     | 
    
         
            +
                    """
         
     | 
| 
      
 215 
     | 
    
         
            +
             
     | 
| 
      
 216 
     | 
    
         
            +
                    self._end_time_ms = end_time_ms
         
     | 
| 
      
 217 
     | 
    
         
            +
             
     | 
| 
      
 218 
     | 
    
         
            +
                @property
         
     | 
| 
      
 219 
     | 
    
         
            +
                def resources(self):
         
     | 
| 
      
 220 
     | 
    
         
            +
                    """Gets the resources of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 221 
     | 
    
         
            +
             
     | 
| 
      
 222 
     | 
    
         
            +
             
     | 
| 
      
 223 
     | 
    
         
            +
                    :return: The resources of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 224 
     | 
    
         
            +
                    :rtype: list[TrainResources]
         
     | 
| 
      
 225 
     | 
    
         
            +
                    """
         
     | 
| 
      
 226 
     | 
    
         
            +
                    return self._resources
         
     | 
| 
      
 227 
     | 
    
         
            +
             
     | 
| 
      
 228 
     | 
    
         
            +
                @resources.setter
         
     | 
| 
      
 229 
     | 
    
         
            +
                def resources(self, resources):
         
     | 
| 
      
 230 
     | 
    
         
            +
                    """Sets the resources of this TrainRunAttempt.
         
     | 
| 
      
 231 
     | 
    
         
            +
             
     | 
| 
      
 232 
     | 
    
         
            +
             
     | 
| 
      
 233 
     | 
    
         
            +
                    :param resources: The resources of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 234 
     | 
    
         
            +
                    :type: list[TrainResources]
         
     | 
| 
      
 235 
     | 
    
         
            +
                    """
         
     | 
| 
      
 236 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and resources is None:  # noqa: E501
         
     | 
| 
      
 237 
     | 
    
         
            +
                        raise ValueError("Invalid value for `resources`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 238 
     | 
    
         
            +
             
     | 
| 
      
 239 
     | 
    
         
            +
                    self._resources = resources
         
     | 
| 
      
 240 
     | 
    
         
            +
             
     | 
| 
      
 241 
     | 
    
         
            +
                @property
         
     | 
| 
      
 242 
     | 
    
         
            +
                def workers(self):
         
     | 
| 
      
 243 
     | 
    
         
            +
                    """Gets the workers of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 244 
     | 
    
         
            +
             
     | 
| 
      
 245 
     | 
    
         
            +
             
     | 
| 
      
 246 
     | 
    
         
            +
                    :return: The workers of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 247 
     | 
    
         
            +
                    :rtype: list[TrainWorker]
         
     | 
| 
      
 248 
     | 
    
         
            +
                    """
         
     | 
| 
      
 249 
     | 
    
         
            +
                    return self._workers
         
     | 
| 
      
 250 
     | 
    
         
            +
             
     | 
| 
      
 251 
     | 
    
         
            +
                @workers.setter
         
     | 
| 
      
 252 
     | 
    
         
            +
                def workers(self, workers):
         
     | 
| 
      
 253 
     | 
    
         
            +
                    """Sets the workers of this TrainRunAttempt.
         
     | 
| 
      
 254 
     | 
    
         
            +
             
     | 
| 
      
 255 
     | 
    
         
            +
             
     | 
| 
      
 256 
     | 
    
         
            +
                    :param workers: The workers of this TrainRunAttempt.  # noqa: E501
         
     | 
| 
      
 257 
     | 
    
         
            +
                    :type: list[TrainWorker]
         
     | 
| 
      
 258 
     | 
    
         
            +
                    """
         
     | 
| 
      
 259 
     | 
    
         
            +
                    if self.local_vars_configuration.client_side_validation and workers is None:  # noqa: E501
         
     | 
| 
      
 260 
     | 
    
         
            +
                        raise ValueError("Invalid value for `workers`, must not be `None`")  # noqa: E501
         
     | 
| 
      
 261 
     | 
    
         
            +
             
     | 
| 
      
 262 
     | 
    
         
            +
                    self._workers = workers
         
     | 
| 
      
 263 
     | 
    
         
            +
             
     | 
| 
      
 264 
     | 
    
         
            +
                def to_dict(self):
         
     | 
| 
      
 265 
     | 
    
         
            +
                    """Returns the model properties as a dict"""
         
     | 
| 
      
 266 
     | 
    
         
            +
                    result = {}
         
     | 
| 
      
 267 
     | 
    
         
            +
             
     | 
| 
      
 268 
     | 
    
         
            +
                    for attr, _ in six.iteritems(self.openapi_types):
         
     | 
| 
      
 269 
     | 
    
         
            +
                        value = getattr(self, attr)
         
     | 
| 
      
 270 
     | 
    
         
            +
                        if isinstance(value, list):
         
     | 
| 
      
 271 
     | 
    
         
            +
                            result[attr] = list(map(
         
     | 
| 
      
 272 
     | 
    
         
            +
                                lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
         
     | 
| 
      
 273 
     | 
    
         
            +
                                value
         
     | 
| 
      
 274 
     | 
    
         
            +
                            ))
         
     | 
| 
      
 275 
     | 
    
         
            +
                        elif hasattr(value, "to_dict"):
         
     | 
| 
      
 276 
     | 
    
         
            +
                            result[attr] = value.to_dict()
         
     | 
| 
      
 277 
     | 
    
         
            +
                        elif isinstance(value, dict):
         
     | 
| 
      
 278 
     | 
    
         
            +
                            result[attr] = dict(map(
         
     | 
| 
      
 279 
     | 
    
         
            +
                                lambda item: (item[0], item[1].to_dict())
         
     | 
| 
      
 280 
     | 
    
         
            +
                                if hasattr(item[1], "to_dict") else item,
         
     | 
| 
      
 281 
     | 
    
         
            +
                                value.items()
         
     | 
| 
      
 282 
     | 
    
         
            +
                            ))
         
     | 
| 
      
 283 
     | 
    
         
            +
                        else:
         
     | 
| 
      
 284 
     | 
    
         
            +
                            result[attr] = value
         
     | 
| 
      
 285 
     | 
    
         
            +
             
     | 
| 
      
 286 
     | 
    
         
            +
                    return result
         
     | 
| 
      
 287 
     | 
    
         
            +
             
     | 
| 
      
 288 
     | 
    
         
            +
                def to_str(self):
         
     | 
| 
      
 289 
     | 
    
         
            +
                    """Returns the string representation of the model"""
         
     | 
| 
      
 290 
     | 
    
         
            +
                    return pprint.pformat(self.to_dict())
         
     | 
| 
      
 291 
     | 
    
         
            +
             
     | 
| 
      
 292 
     | 
    
         
            +
                def __repr__(self):
         
     | 
| 
      
 293 
     | 
    
         
            +
                    """For `print` and `pprint`"""
         
     | 
| 
      
 294 
     | 
    
         
            +
                    return self.to_str()
         
     | 
| 
      
 295 
     | 
    
         
            +
             
     | 
| 
      
 296 
     | 
    
         
            +
                def __eq__(self, other):
         
     | 
| 
      
 297 
     | 
    
         
            +
                    """Returns true if both objects are equal"""
         
     | 
| 
      
 298 
     | 
    
         
            +
                    if not isinstance(other, TrainRunAttempt):
         
     | 
| 
      
 299 
     | 
    
         
            +
                        return False
         
     | 
| 
      
 300 
     | 
    
         
            +
             
     | 
| 
      
 301 
     | 
    
         
            +
                    return self.to_dict() == other.to_dict()
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
                def __ne__(self, other):
         
     | 
| 
      
 304 
     | 
    
         
            +
                    """Returns true if both objects are not equal"""
         
     | 
| 
      
 305 
     | 
    
         
            +
                    if not isinstance(other, TrainRunAttempt):
         
     | 
| 
      
 306 
     | 
    
         
            +
                        return True
         
     | 
| 
      
 307 
     | 
    
         
            +
             
     | 
| 
      
 308 
     | 
    
         
            +
                    return self.to_dict() != other.to_dict()
         
     |