Exemplo n.º 1
0
    def __init__(self, config_map=None, failure_condition=None, primary_container_name=None, primary_pod_labels=None, retain=None, success_condition=None, trial_parameters=None, trial_spec=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1TrialTemplate - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._config_map = None
        self._failure_condition = None
        self._primary_container_name = None
        self._primary_pod_labels = None
        self._retain = None
        self._success_condition = None
        self._trial_parameters = None
        self._trial_spec = None
        self.discriminator = None

        if config_map is not None:
            self.config_map = config_map
        if failure_condition is not None:
            self.failure_condition = failure_condition
        if primary_container_name is not None:
            self.primary_container_name = primary_container_name
        if primary_pod_labels is not None:
            self.primary_pod_labels = primary_pod_labels
        if retain is not None:
            self.retain = retain
        if success_condition is not None:
            self.success_condition = success_condition
        if trial_parameters is not None:
            self.trial_parameters = trial_parameters
        if trial_spec is not None:
            self.trial_spec = trial_spec
Exemplo n.º 2
0
    def __init__(self,
                 api_version=None,
                 kind=None,
                 metadata=None,
                 spec=None,
                 status=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1Suggestion - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._api_version = None
        self._kind = None
        self._metadata = None
        self._spec = None
        self._status = None
        self.discriminator = None

        if api_version is not None:
            self.api_version = api_version
        if kind is not None:
            self.kind = kind
        if metadata is not None:
            self.metadata = metadata
        if spec is not None:
            self.spec = spec
        if status is not None:
            self.status = status
Exemplo n.º 3
0
    def __init__(self,
                 completion_time=None,
                 conditions=None,
                 last_reconcile_time=None,
                 observation=None,
                 start_time=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1TrialStatus - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._completion_time = None
        self._conditions = None
        self._last_reconcile_time = None
        self._observation = None
        self._start_time = None
        self.discriminator = None

        if completion_time is not None:
            self.completion_time = completion_time
        if conditions is not None:
            self.conditions = conditions
        if last_reconcile_time is not None:
            self.last_reconcile_time = last_reconcile_time
        if observation is not None:
            self.observation = observation
        if start_time is not None:
            self.start_time = start_time
Exemplo n.º 4
0
    def __init__(self,
                 last_transition_time=None,
                 last_update_time=None,
                 message=None,
                 reason=None,
                 status='',
                 type='',
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1ExperimentCondition - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._last_transition_time = None
        self._last_update_time = None
        self._message = None
        self._reason = None
        self._status = None
        self._type = None
        self.discriminator = None

        if last_transition_time is not None:
            self.last_transition_time = last_transition_time
        if last_update_time is not None:
            self.last_update_time = last_update_time
        if message is not None:
            self.message = message
        if reason is not None:
            self.reason = reason
        self.status = status
        self.type = type
Exemplo n.º 5
0
    def __init__(self,
                 algorithm=None,
                 early_stopping=None,
                 max_failed_trial_count=None,
                 max_trial_count=None,
                 metrics_collector_spec=None,
                 nas_config=None,
                 objective=None,
                 parallel_trial_count=None,
                 parameters=None,
                 resume_policy=None,
                 trial_template=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1ExperimentSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._algorithm = None
        self._early_stopping = None
        self._max_failed_trial_count = None
        self._max_trial_count = None
        self._metrics_collector_spec = None
        self._nas_config = None
        self._objective = None
        self._parallel_trial_count = None
        self._parameters = None
        self._resume_policy = None
        self._trial_template = None
        self.discriminator = None

        if algorithm is not None:
            self.algorithm = algorithm
        if early_stopping is not None:
            self.early_stopping = early_stopping
        if max_failed_trial_count is not None:
            self.max_failed_trial_count = max_failed_trial_count
        if max_trial_count is not None:
            self.max_trial_count = max_trial_count
        if metrics_collector_spec is not None:
            self.metrics_collector_spec = metrics_collector_spec
        if nas_config is not None:
            self.nas_config = nas_config
        if objective is not None:
            self.objective = objective
        if parallel_trial_count is not None:
            self.parallel_trial_count = parallel_trial_count
        if parameters is not None:
            self.parameters = parameters
        if resume_policy is not None:
            self.resume_policy = resume_policy
        if trial_template is not None:
            self.trial_template = trial_template
Exemplo n.º 6
0
    def __init__(self,
                 metrics=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1Observation - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._metrics = None
        self.discriminator = None

        self.metrics = metrics
Exemplo n.º 7
0
    def __init__(self,
                 metrics_format=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1FilterSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._metrics_format = None
        self.discriminator = None

        if metrics_format is not None:
            self.metrics_format = metrics_format
    def __init__(self, name=None, value=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1ParameterAssignment - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._value = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if value is not None:
            self.value = value
    def __init__(self, collector=None, source=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1MetricsCollectorSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._collector = None
        self._source = None
        self.discriminator = None

        if collector is not None:
            self.collector = collector
        if source is not None:
            self.source = source
Exemplo n.º 10
0
    def __init__(self, algorithm_name=None, algorithm_settings=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1AlgorithmSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._algorithm_name = None
        self._algorithm_settings = None
        self.discriminator = None

        if algorithm_name is not None:
            self.algorithm_name = algorithm_name
        if algorithm_settings is not None:
            self.algorithm_settings = algorithm_settings
Exemplo n.º 11
0
    def __init__(self,
                 early_stopping_rules=None,
                 failure_condition=None,
                 metrics_collector=None,
                 objective=None,
                 parameter_assignments=None,
                 primary_container_name=None,
                 primary_pod_labels=None,
                 retain_run=None,
                 run_spec=None,
                 success_condition=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1TrialSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._early_stopping_rules = None
        self._failure_condition = None
        self._metrics_collector = None
        self._objective = None
        self._parameter_assignments = None
        self._primary_container_name = None
        self._primary_pod_labels = None
        self._retain_run = None
        self._run_spec = None
        self._success_condition = None
        self.discriminator = None

        if early_stopping_rules is not None:
            self.early_stopping_rules = early_stopping_rules
        if failure_condition is not None:
            self.failure_condition = failure_condition
        if metrics_collector is not None:
            self.metrics_collector = metrics_collector
        if objective is not None:
            self.objective = objective
        if parameter_assignments is not None:
            self.parameter_assignments = parameter_assignments
        if primary_container_name is not None:
            self.primary_container_name = primary_container_name
        if primary_pod_labels is not None:
            self.primary_pod_labels = primary_pod_labels
        if retain_run is not None:
            self.retain_run = retain_run
        if run_spec is not None:
            self.run_spec = run_spec
        if success_condition is not None:
            self.success_condition = success_condition
Exemplo n.º 12
0
    def __init__(self, best_trial_name='', observation=None, parameter_assignments=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1OptimalTrial - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._best_trial_name = None
        self._observation = None
        self._parameter_assignments = None
        self.discriminator = None

        self.best_trial_name = best_trial_name
        if observation is not None:
            self.observation = observation
        self.parameter_assignments = parameter_assignments
Exemplo n.º 13
0
    def __init__(self, configuration=None, header_name=None, header_value=None,
                 cookie=None):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration

        # Use the pool property to lazily initialize the ThreadPool.
        self._pool = None
        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'Swagger-Codegen/0.1/python'
Exemplo n.º 14
0
    def __init__(self,
                 custom_collector=None,
                 kind='',
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1CollectorSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._custom_collector = None
        self._kind = None
        self.discriminator = None

        if custom_collector is not None:
            self.custom_collector = custom_collector
        self.kind = kind
Exemplo n.º 15
0
    def __init__(self, config_map_name=None, config_map_namespace=None, template_path=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1ConfigMapSource - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._config_map_name = None
        self._config_map_namespace = None
        self._template_path = None
        self.discriminator = None

        if config_map_name is not None:
            self.config_map_name = config_map_name
        if config_map_namespace is not None:
            self.config_map_namespace = config_map_namespace
        if template_path is not None:
            self.template_path = template_path
Exemplo n.º 16
0
    def __init__(self,
                 graph_config=None,
                 operations=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1NasConfig - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._graph_config = None
        self._operations = None
        self.discriminator = None

        if graph_config is not None:
            self.graph_config = graph_config
        if operations is not None:
            self.operations = operations
Exemplo n.º 17
0
    def __init__(self,
                 kind=None,
                 path=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1FileSystemPath - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._kind = None
        self._path = None
        self.discriminator = None

        if kind is not None:
            self.kind = kind
        if path is not None:
            self.path = path
Exemplo n.º 18
0
    def __init__(self, file_system_path=None, filter=None, http_get=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1SourceSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._file_system_path = None
        self._filter = None
        self._http_get = None
        self.discriminator = None

        if file_system_path is not None:
            self.file_system_path = file_system_path
        if filter is not None:
            self.filter = filter
        if http_get is not None:
            self.http_get = http_get
Exemplo n.º 19
0
    def __init__(self,
                 config_map=None,
                 trial_spec=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1TrialSource - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._config_map = None
        self._trial_spec = None
        self.discriminator = None

        if config_map is not None:
            self.config_map = config_map
        if trial_spec is not None:
            self.trial_spec = trial_spec
Exemplo n.º 20
0
    def __init__(self,
                 operation_type=None,
                 parameters=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1Operation - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._operation_type = None
        self._parameters = None
        self.discriminator = None

        if operation_type is not None:
            self.operation_type = operation_type
        if parameters is not None:
            self.parameters = parameters
Exemplo n.º 21
0
    def __init__(self, comparison=None, name=None, start_step=None, value=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1EarlyStoppingRule - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._comparison = None
        self._name = None
        self._start_step = None
        self._value = None
        self.discriminator = None

        if comparison is not None:
            self.comparison = comparison
        if name is not None:
            self.name = name
        if start_step is not None:
            self.start_step = start_step
        if value is not None:
            self.value = value
Exemplo n.º 22
0
    def __init__(self, algorithm=None, early_stopping=None, requests=None, resume_policy=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1SuggestionSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._algorithm = None
        self._early_stopping = None
        self._requests = None
        self._resume_policy = None
        self.discriminator = None

        if algorithm is not None:
            self.algorithm = algorithm
        if early_stopping is not None:
            self.early_stopping = early_stopping
        if requests is not None:
            self.requests = requests
        if resume_policy is not None:
            self.resume_policy = resume_policy
Exemplo n.º 23
0
    def __init__(self, list=None, max=None, min=None, step=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1FeasibleSpace - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._list = None
        self._max = None
        self._min = None
        self._step = None
        self.discriminator = None

        if list is not None:
            self.list = list
        if max is not None:
            self.max = max
        if min is not None:
            self.min = min
        if step is not None:
            self.step = step
Exemplo n.º 24
0
    def __init__(self,
                 description=None,
                 name=None,
                 reference=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1TrialParameterSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._description = None
        self._name = None
        self._reference = None
        self.discriminator = None

        if description is not None:
            self.description = description
        if name is not None:
            self.name = name
        if reference is not None:
            self.reference = reference
Exemplo n.º 25
0
    def __init__(self,
                 early_stopping_rules=None,
                 name=None,
                 parameter_assignments=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1TrialAssignment - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._early_stopping_rules = None
        self._name = None
        self._parameter_assignments = None
        self.discriminator = None

        if early_stopping_rules is not None:
            self.early_stopping_rules = early_stopping_rules
        if name is not None:
            self.name = name
        if parameter_assignments is not None:
            self.parameter_assignments = parameter_assignments
Exemplo n.º 26
0
    def __init__(self,
                 input_sizes=None,
                 num_layers=None,
                 output_sizes=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1GraphConfig - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._input_sizes = None
        self._num_layers = None
        self._output_sizes = None
        self.discriminator = None

        if input_sizes is not None:
            self.input_sizes = input_sizes
        if num_layers is not None:
            self.num_layers = num_layers
        if output_sizes is not None:
            self.output_sizes = output_sizes
Exemplo n.º 27
0
    def __init__(self,
                 feasible_space=None,
                 name=None,
                 parameter_type=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1ParameterSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._feasible_space = None
        self._name = None
        self._parameter_type = None
        self.discriminator = None

        if feasible_space is not None:
            self.feasible_space = feasible_space
        if name is not None:
            self.name = name
        if parameter_type is not None:
            self.parameter_type = parameter_type
Exemplo n.º 28
0
    def __init__(self, additional_metric_names=None, goal=None, metric_strategies=None, objective_metric_name=None, type=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1ObjectiveSpec - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._additional_metric_names = None
        self._goal = None
        self._metric_strategies = None
        self._objective_metric_name = None
        self._type = None
        self.discriminator = None

        if additional_metric_names is not None:
            self.additional_metric_names = additional_metric_names
        if goal is not None:
            self.goal = goal
        if metric_strategies is not None:
            self.metric_strategies = metric_strategies
        if objective_metric_name is not None:
            self.objective_metric_name = objective_metric_name
        if type is not None:
            self.type = type
Exemplo n.º 29
0
    def __init__(self,
                 algorithm_settings=None,
                 completion_time=None,
                 conditions=None,
                 last_reconcile_time=None,
                 start_time=None,
                 suggestion_count=None,
                 suggestions=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1SuggestionStatus - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._algorithm_settings = None
        self._completion_time = None
        self._conditions = None
        self._last_reconcile_time = None
        self._start_time = None
        self._suggestion_count = None
        self._suggestions = None
        self.discriminator = None

        if algorithm_settings is not None:
            self.algorithm_settings = algorithm_settings
        if completion_time is not None:
            self.completion_time = completion_time
        if conditions is not None:
            self.conditions = conditions
        if last_reconcile_time is not None:
            self.last_reconcile_time = last_reconcile_time
        if start_time is not None:
            self.start_time = start_time
        if suggestion_count is not None:
            self.suggestion_count = suggestion_count
        if suggestions is not None:
            self.suggestions = suggestions
Exemplo n.º 30
0
    def __init__(self,
                 api_version=None,
                 items=None,
                 kind=None,
                 metadata=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1SuggestionList - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._api_version = None
        self._items = None
        self._kind = None
        self._metadata = None
        self.discriminator = None

        if api_version is not None:
            self.api_version = api_version
        self.items = items
        if kind is not None:
            self.kind = kind
        if metadata is not None:
            self.metadata = metadata