def __init__(self, *args, **kwargs): # noqa: E501 """SingleUser - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (int): The object's primary key. This uniquely identifies the object in the system.. [optional] # noqa: E501 username (str): The user' login name. Must be unique. [optional] # noqa: E501 created_at (datetime): The UTC date and time that the object was created.. [optional] # noqa: E501 updated_at (datetime): The UTC date and time that the object was last modified.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value)
def __init__(self, *args, **kwargs): # noqa: E501 """SingleJob - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (int): The object's primary key. This uniquely identifies the object in the system.. [optional] # noqa: E501 name (str): The name of the job.. [optional] # noqa: E501 cron (str): The cron expression for the job.. [optional] # noqa: E501 enabled (bool): Whether the job is enabled or not.. [optional] # noqa: E501 command (str): The command that is executed when the job fires.. [optional] # noqa: E501 last_run (str, none_type): The last time the job ran.. [optional] # noqa: E501 next_run (datetime): The date and time of the job's next run.. [optional] # noqa: E501 success (bool): Whether the last run of the job was successful.. [optional] # noqa: E501 running (bool): Whether the job is currently running.. [optional] # noqa: E501 timezone (str): The timezone that the job will run in.. [optional] # noqa: E501 tags ([str, none_type]): An array of tags associated with the job.. [optional] # noqa: E501 created_at (datetime): The UTC date and time that the object was created.. [optional] # noqa: E501 updated_at (datetime): The UTC date and time that the object was last modified.. [optional] # noqa: E501 success_callback (str, none_type): This url will receive a POST request with details about all successful job runs.. [optional] # noqa: E501 failure_callback (str, none_type): This url will receive a POST request with details about all unsuccessful job runs.. [optional] # noqa: E501 avg_run_duration (float, none_type): The average runtime across all runs of this job.. [optional] # noqa: E501 max_run_duration (float, none_type): The maximum runtime across all runs of this job.. [optional] # noqa: E501 min_run_duration (float, none_type): The minimum runtime across all runs of this job.. [optional] # noqa: E501 avg_run_duration_trend (float, none_type): The average runtime trend across all runs of this job.. [optional] # noqa: E501 avg_run_lag (float, none_type): The average job lag across all runs of this job.. [optional] # noqa: E501 max_run_lag (float, none_type): The maximum job lag across all runs of this job.. [optional] # noqa: E501 min_run_lag (float, none_type): The minimum job lag across all runs of this job.. [optional] # noqa: E501 avg_run_lag_trend (float, none_type): The average job lag trend across all runs of this job.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value)
def __init__(self, name, cron, command, *args, **kwargs): # noqa: E501 """JobIn - a model defined in OpenAPI Args: name (str): The new name of the job. Must be unique. cron (str): The new cron expression for the job. command (str): The command to run when the job fires. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) timezone (str): The timezone to run the job in.. [optional] # noqa: E501 enabled (bool): Is the job enabled by default?. [optional] # noqa: E501 tags (str): A comma-separated list of tags to associate with this job. You can search jobs by their tags.. [optional] # noqa: E501 success_callback (str): Specify the url to receive a POST callback for all successful runs of this job.. [optional] # noqa: E501 failure_callback (str): Specify the url to receive a POST callback for all unsuccessful runs of this job.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.name = name self.cron = cron self.command = command for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value)
def __init__(self, *args, **kwargs): # noqa: E501 """SingleJobRun - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (int): The object's primary key. This uniquely identifies the object in the system.. [optional] # noqa: E501 success (bool): Whether the run was successful or not.. [optional] # noqa: E501 return_code (int): The return code that the command exited with. 0 means success.. [optional] # noqa: E501 error_message (str, none_type): If the run failed, the error message that was returned.. [optional] # noqa: E501 stdout (str, none_type): The text written to STDOUT as part of the job.. [optional] # noqa: E501 stderr (str, none_type): The text written to STDERR as part of the job.. [optional] # noqa: E501 start_time (datetime): The date and time that the run started.. [optional] # noqa: E501 end_time (datetime): The date and time that the run ended.. [optional] # noqa: E501 scheduled_start_time (datetime, none_type): The date and time that the job should have run.. [optional] # noqa: E501 schedule_diff_in_seconds (int, none_type): The difference in seconds between when the job was scheduled to run and when it ran.. [optional] # noqa: E501 job_id (int): The job that the run is associated with.. [optional] # noqa: E501 is_manual (bool): True if the job was run manually as opposed to run on a schedule.. [optional] # noqa: E501 created_at (datetime): The date and time that the run record was created in UTC.. [optional] # noqa: E501 updated_at (datetime): The date and time that the run record was last updated in UTC.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value)
def __init__(self, *args, **kwargs): # noqa: E501 """TodaysStats - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) total_jobs (int): The total number of jobs that are scheduled.. [optional] # noqa: E501 total_jobs_trend (float): The trend direction of total_jobs.. [optional] # noqa: E501 enabled_jobs (int): The total number of jobs that are enabled. This will be a subset of total_jobs.. [optional] # noqa: E501 enabled_jobs_trend (float): The trend direction of enabled_jobs.. [optional] # noqa: E501 run_jobs (int): The number of jobs that have been run today.. [optional] # noqa: E501 run_jobs_trend (float): The trend direction of run_jobs.. [optional] # noqa: E501 failed_jobs (int): The number of jobs that have failed today.. [optional] # noqa: E501 failed_jobs_trend (float): The trend direction of failed_jobs.. [optional] # noqa: E501 avg_job_runtime (float): The average job run time.. [optional] # noqa: E501 avg_job_runtime_trend (float): The trend direction of avg_job_runtime.. [optional] # noqa: E501 max_job_runtime (float): The max job run time.. [optional] # noqa: E501 max_job_runtime_trend (float): The trend direction of max_job_runtime.. [optional] # noqa: E501 min_job_runtime (float): The min job run time.. [optional] # noqa: E501 min_job_runtime_trend (float): The trend direction of min_job_runtime.. [optional] # noqa: E501 avg_job_lag (float): The average job lag.. [optional] # noqa: E501 avg_job_lag_trend (float): The trend direction of avg_job_lag.. [optional] # noqa: E501 max_job_lag (float): The max job lag.. [optional] # noqa: E501 max_job_lag_trend (float): The trend direction of max_job_lag.. [optional] # noqa: E501 min_job_lag (float): The min job lag.. [optional] # noqa: E501 min_job_lag_trend (float): The trend direction of min_job_lag.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value)
def __init__(self, *args, **kwargs): """JobStatArray - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: args[0] ([JobStat]): # noqa: E501 Keyword Args: value ([JobStat]): # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) """ # required up here when default value is not given _path_to_item = kwargs.pop('_path_to_item', ()) if 'value' in kwargs: value = kwargs.pop('value') elif args: args = list(args) value = args.pop(0) else: raise ApiTypeError( "value is required, but not passed in args or kwargs and doesn't have default", path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.value = value if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( kwargs, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), )