Ejemplo n.º 1
0
    def __init__(self,
                 job_config=None,
                 image_ref=None,
                 service_account_name=None,
                 resource_request=None,
                 env_vars=None,
                 _configuration=None):  # noqa: E501
        """Config - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._job_config = None
        self._image_ref = None
        self._service_account_name = None
        self._resource_request = None
        self._env_vars = None
        self.discriminator = None

        if job_config is not None:
            self.job_config = job_config
        if image_ref is not None:
            self.image_ref = image_ref
        if service_account_name is not None:
            self.service_account_name = service_account_name
        if resource_request is not None:
            self.resource_request = resource_request
        if env_vars is not None:
            self.env_vars = env_vars
    def __init__(self,
                 table=None,
                 staging_bucket=None,
                 result_column=None,
                 save_mode=None,
                 options=None,
                 _configuration=None):  # noqa: E501
        """PredictionJobConfigBigquerySink - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._table = None
        self._staging_bucket = None
        self._result_column = None
        self._save_mode = None
        self._options = None
        self.discriminator = None

        if table is not None:
            self.table = table
        if staging_bucket is not None:
            self.staging_bucket = staging_bucket
        if result_column is not None:
            self.result_column = result_column
        if save_mode is not None:
            self.save_mode = save_mode
        if options is not None:
            self.options = options
Ejemplo n.º 3
0
    def __init__(self, version=None, kind=None, name=None, bigquery_source=None, gcs_source=None, model=None, bigquery_sink=None, gcs_sink=None, _configuration=None):  # noqa: E501
        """PredictionJobConfig - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._version = None
        self._kind = None
        self._name = None
        self._bigquery_source = None
        self._gcs_source = None
        self._model = None
        self._bigquery_sink = None
        self._gcs_sink = None
        self.discriminator = None

        if version is not None:
            self.version = version
        if kind is not None:
            self.kind = kind
        if name is not None:
            self.name = name
        if bigquery_source is not None:
            self.bigquery_source = bigquery_source
        if gcs_source is not None:
            self.gcs_source = gcs_source
        if model is not None:
            self.model = model
        if bigquery_sink is not None:
            self.bigquery_sink = bigquery_sink
        if gcs_sink is not None:
            self.gcs_sink = gcs_sink
Ejemplo n.º 4
0
    def __init__(self,
                 min_replica=None,
                 max_replica=None,
                 cpu_request=None,
                 memory_request=None,
                 _configuration=None):  # noqa: E501
        """ResourceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._min_replica = None
        self._max_replica = None
        self._cpu_request = None
        self._memory_request = None
        self.discriminator = None

        if min_replica is not None:
            self.min_replica = min_replica
        if max_replica is not None:
            self.max_replica = max_replica
        if cpu_request is not None:
            self.cpu_request = cpu_request
        if memory_request is not None:
            self.memory_request = memory_request
Ejemplo n.º 5
0
    def __init__(self,
                 type='INVALID_MODEL_TYPE',
                 uri=None,
                 result=None,
                 options=None,
                 _configuration=None):  # noqa: E501
        """PredictionJobConfigModel - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._type = None
        self._uri = None
        self._result = None
        self._options = None
        self.discriminator = None

        if type is not None:
            self.type = type
        if uri is not None:
            self.uri = uri
        if result is not None:
            self.result = result
        if options is not None:
            self.options = options
Ejemplo n.º 6
0
    def __init__(self,
                 model_id=None,
                 model_endpoint_id=None,
                 environment_name=None,
                 team_name=None,
                 alert_conditions=None,
                 _configuration=None):  # noqa: E501
        """ModelEndpointAlert - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._model_id = None
        self._model_endpoint_id = None
        self._environment_name = None
        self._team_name = None
        self._alert_conditions = None
        self.discriminator = None

        if model_id is not None:
            self.model_id = model_id
        if model_endpoint_id is not None:
            self.model_endpoint_id = model_endpoint_id
        if environment_name is not None:
            self.environment_name = environment_name
        if team_name is not None:
            self.team_name = team_name
        if alert_conditions is not None:
            self.alert_conditions = alert_conditions
    def __init__(self,
                 format=None,
                 uri=None,
                 features=None,
                 options=None,
                 _configuration=None):  # noqa: E501
        """PredictionJobConfigGcsSource - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._format = None
        self._uri = None
        self._features = None
        self._options = None
        self.discriminator = None

        if format is not None:
            self.format = format
        if uri is not None:
            self.uri = uri
        if features is not None:
            self.features = features
        if options is not None:
            self.options = options
Ejemplo n.º 8
0
    def __init__(self,
                 format=None,
                 uri=None,
                 result_column=None,
                 save_mode=None,
                 options=None,
                 _configuration=None):  # noqa: E501
        """PredictionJobConfigGcsSink - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._format = None
        self._uri = None
        self._result_column = None
        self._save_mode = None
        self._options = None
        self.discriminator = None

        if format is not None:
            self.format = format
        if uri is not None:
            self.uri = uri
        if result_column is not None:
            self.result_column = result_column
        if save_mode is not None:
            self.save_mode = save_mode
        if options is not None:
            self.options = options
Ejemplo n.º 9
0
    def __init__(self, id=None, project_id=None, mlflow_experiment_id=None, name=None, type=None, mlflow_url=None, endpoints=None, created_at=None, updated_at=None, _configuration=None):  # noqa: E501
        """Model - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._project_id = None
        self._mlflow_experiment_id = None
        self._name = None
        self._type = None
        self._mlflow_url = None
        self._endpoints = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if project_id is not None:
            self.project_id = project_id
        if mlflow_experiment_id is not None:
            self.mlflow_experiment_id = mlflow_experiment_id
        if name is not None:
            self.name = name
        if type is not None:
            self.type = type
        if mlflow_url is not None:
            self.mlflow_url = mlflow_url
        if endpoints is not None:
            self.endpoints = endpoints
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Ejemplo n.º 10
0
    def __init__(self,
                 enabled=None,
                 metric_type=None,
                 severity=None,
                 target=None,
                 percentile=None,
                 unit=None,
                 _configuration=None):  # noqa: E501
        """ModelEndpointAlertCondition - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._enabled = None
        self._metric_type = None
        self._severity = None
        self._target = None
        self._percentile = None
        self._unit = None
        self.discriminator = None

        if enabled is not None:
            self.enabled = enabled
        if metric_type is not None:
            self.metric_type = metric_type
        if severity is not None:
            self.severity = severity
        if target is not None:
            self.target = target
        if percentile is not None:
            self.percentile = percentile
        if unit is not None:
            self.unit = unit
Ejemplo n.º 11
0
    def __init__(self,
                 id=None,
                 name=None,
                 version_id=None,
                 model_id=None,
                 project_id=None,
                 environment_name=None,
                 environment=None,
                 config=None,
                 status=None,
                 error=None,
                 created_at=None,
                 updated_at=None,
                 _configuration=None):  # noqa: E501
        """PredictionJob - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._name = None
        self._version_id = None
        self._model_id = None
        self._project_id = None
        self._environment_name = None
        self._environment = None
        self._config = None
        self._status = None
        self._error = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if version_id is not None:
            self.version_id = version_id
        if model_id is not None:
            self.model_id = model_id
        if project_id is not None:
            self.project_id = project_id
        if environment_name is not None:
            self.environment_name = environment_name
        if environment is not None:
            self.environment = environment
        if config is not None:
            self.config = config
        if status is not None:
            self.status = status
        if error is not None:
            self.error = error
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Ejemplo n.º 12
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/1.0.0/python'
Ejemplo n.º 13
0
    def __init__(self,
                 id=None,
                 name=None,
                 mlflow_tracking_url=None,
                 administrators=None,
                 readers=None,
                 team=None,
                 stream=None,
                 labels=None,
                 created_at=None,
                 updated_at=None,
                 _configuration=None):  # noqa: E501
        """Project - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._name = None
        self._mlflow_tracking_url = None
        self._administrators = None
        self._readers = None
        self._team = None
        self._stream = None
        self._labels = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        self.name = name
        if mlflow_tracking_url is not None:
            self.mlflow_tracking_url = mlflow_tracking_url
        if administrators is not None:
            self.administrators = administrators
        if readers is not None:
            self.readers = readers
        if team is not None:
            self.team = team
        if stream is not None:
            self.stream = stream
        if labels is not None:
            self.labels = labels
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Ejemplo n.º 14
0
    def __init__(self,
                 type=None,
                 item_type=None,
                 _configuration=None):  # noqa: E501
        """PredictionJobConfigModelResult - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._type = None
        self._item_type = None
        self.discriminator = None

        if type is not None:
            self.type = type
        if item_type is not None:
            self.item_type = item_type
Ejemplo n.º 15
0
    def __init__(self,
                 destinations=None,
                 mirror=None,
                 _configuration=None):  # noqa: E501
        """ModelEndpointRule - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._destinations = None
        self._mirror = None
        self.discriminator = None

        if destinations is not None:
            self.destinations = destinations
        if mirror is not None:
            self.mirror = mirror
Ejemplo n.º 16
0
    def __init__(self,
                 key=None,
                 value=None,
                 _configuration=None):  # noqa: E501
        """Label - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._key = None
        self._value = None
        self.discriminator = None

        if key is not None:
            self.key = key
        if value is not None:
            self.value = value
Ejemplo n.º 17
0
    def __init__(self,
                 enabled=None,
                 mode=None,
                 _configuration=None):  # noqa: E501
        """LoggerConfig - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._enabled = None
        self._mode = None
        self.discriminator = None

        if enabled is not None:
            self.enabled = enabled
        if mode is not None:
            self.mode = mode
Ejemplo n.º 18
0
    def __init__(self,
                 name=None,
                 value=None,
                 _configuration=None):  # noqa: E501
        """EnvVar - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _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
Ejemplo n.º 19
0
    def __init__(self,
                 model=None,
                 transformer=None,
                 _configuration=None):  # noqa: E501
        """Logger - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._model = None
        self._transformer = None
        self.discriminator = None

        if model is not None:
            self.model = model
        if transformer is not None:
            self.transformer = transformer
Ejemplo n.º 20
0
    def __init__(self,
                 enabled=None,
                 transformer_type=None,
                 image=None,
                 command=None,
                 args=None,
                 resource_request=None,
                 env_vars=None,
                 created_at=None,
                 updated_at=None,
                 _configuration=None):  # noqa: E501
        """Transformer - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._enabled = None
        self._transformer_type = None
        self._image = None
        self._command = None
        self._args = None
        self._resource_request = None
        self._env_vars = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if enabled is not None:
            self.enabled = enabled
        if transformer_type is not None:
            self.transformer_type = transformer_type
        if image is not None:
            self.image = image
        if command is not None:
            self.command = command
        if args is not None:
            self.args = args
        if resource_request is not None:
            self.resource_request = resource_request
        if env_vars is not None:
            self.env_vars = env_vars
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Ejemplo n.º 21
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration
        self.pool_threads = pool_threads

        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 = 'OpenAPI-Generator/1.0.0/python'
Ejemplo n.º 22
0
    def __init__(self, id=None, model_id=None, mlflow_run_id=None, mlflow_url=None, artifact_uri=None, endpoints=None, properties=None, labels=None, custom_predictor=None, created_at=None, updated_at=None, _configuration=None):  # noqa: E501
        """Version - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._model_id = None
        self._mlflow_run_id = None
        self._mlflow_url = None
        self._artifact_uri = None
        self._endpoints = None
        self._properties = None
        self._labels = None
        self._custom_predictor = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if model_id is not None:
            self.model_id = model_id
        if mlflow_run_id is not None:
            self.mlflow_run_id = mlflow_run_id
        if mlflow_url is not None:
            self.mlflow_url = mlflow_url
        if artifact_uri is not None:
            self.artifact_uri = artifact_uri
        if endpoints is not None:
            self.endpoints = endpoints
        if properties is not None:
            self.properties = properties
        if labels is not None:
            self.labels = labels
        if custom_predictor is not None:
            self.custom_predictor = custom_predictor
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Ejemplo n.º 23
0
    def __init__(self,
                 id=None,
                 name=None,
                 data=None,
                 _configuration=None):  # noqa: E501
        """Secret - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._name = None
        self._data = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if data is not None:
            self.data = data
Ejemplo n.º 24
0
    def __init__(self,
                 version_endpoint_id=None,
                 version_endpoint=None,
                 weight=None,
                 _configuration=None):  # noqa: E501
        """ModelEndpointRuleDestination - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._version_endpoint_id = None
        self._version_endpoint = None
        self._weight = None
        self.discriminator = None

        if version_endpoint_id is not None:
            self.version_endpoint_id = version_endpoint_id
        if version_endpoint is not None:
            self.version_endpoint = version_endpoint
        if weight is not None:
            self.weight = weight
Ejemplo n.º 25
0
    def __init__(self,
                 table=None,
                 features=None,
                 options=None,
                 _configuration=None):  # noqa: E501
        """PredictionJobConfigBigquerySource - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._table = None
        self._features = None
        self._options = None
        self.discriminator = None

        if table is not None:
            self.table = table
        if features is not None:
            self.features = features
        if options is not None:
            self.options = options
Ejemplo n.º 26
0
    def __init__(self,
                 image=None,
                 command=None,
                 args=None,
                 _configuration=None):  # noqa: E501
        """CustomPredictor - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._image = None
        self._command = None
        self._args = None
        self.discriminator = None

        if image is not None:
            self.image = image
        if command is not None:
            self.command = command
        if args is not None:
            self.args = args
Ejemplo n.º 27
0
    def __init__(self, id=None, name=None, cluster=None, is_default=None, region=None, gcp_project=None, default_resource_request=None, default_transformer_resource_request=None, default_prediction_job_resource_request=None, created_at=None, updated_at=None, _configuration=None):  # noqa: E501
        """Environment - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._name = None
        self._cluster = None
        self._is_default = None
        self._region = None
        self._gcp_project = None
        self._default_resource_request = None
        self._default_transformer_resource_request = None
        self._default_prediction_job_resource_request = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        self.name = name
        if cluster is not None:
            self.cluster = cluster
        if is_default is not None:
            self.is_default = is_default
        if region is not None:
            self.region = region
        if gcp_project is not None:
            self.gcp_project = gcp_project
        if default_resource_request is not None:
            self.default_resource_request = default_resource_request
        if default_transformer_resource_request is not None:
            self.default_transformer_resource_request = default_transformer_resource_request
        if default_prediction_job_resource_request is not None:
            self.default_prediction_job_resource_request = default_prediction_job_resource_request
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Ejemplo n.º 28
0
    def __init__(self, id=None, model_id=None, model=None, status=None, url=None, rule=None, environment_name=None, environment=None, created_at=None, updated_at=None, _configuration=None):  # noqa: E501
        """ModelEndpoint - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._model_id = None
        self._model = None
        self._status = None
        self._url = None
        self._rule = None
        self._environment_name = None
        self._environment = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if model_id is not None:
            self.model_id = model_id
        if model is not None:
            self.model = model
        if status is not None:
            self.status = status
        if url is not None:
            self.url = url
        if rule is not None:
            self.rule = rule
        if environment_name is not None:
            self.environment_name = environment_name
        if environment is not None:
            self.environment = environment
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Ejemplo n.º 29
0
    def __init__(self, driver_cpu_request=None, driver_memory_request=None, executor_cpu_request=None, executor_memory_request=None, executor_replica=None, _configuration=None):  # noqa: E501
        """PredictionJobResourceRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._driver_cpu_request = None
        self._driver_memory_request = None
        self._executor_cpu_request = None
        self._executor_memory_request = None
        self._executor_replica = None
        self.discriminator = None

        if driver_cpu_request is not None:
            self.driver_cpu_request = driver_cpu_request
        if driver_memory_request is not None:
            self.driver_memory_request = driver_memory_request
        if executor_cpu_request is not None:
            self.executor_cpu_request = executor_cpu_request
        if executor_memory_request is not None:
            self.executor_memory_request = executor_memory_request
        if executor_replica is not None:
            self.executor_replica = executor_replica
Ejemplo n.º 30
0
    def __init__(self,
                 name=None,
                 pod_name=None,
                 component_type=None,
                 namespace=None,
                 cluster=None,
                 gcp_project=None,
                 version_endpoint_id=None,
                 _configuration=None):  # noqa: E501
        """Container - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._name = None
        self._pod_name = None
        self._component_type = None
        self._namespace = None
        self._cluster = None
        self._gcp_project = None
        self._version_endpoint_id = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if pod_name is not None:
            self.pod_name = pod_name
        if component_type is not None:
            self.component_type = component_type
        if namespace is not None:
            self.namespace = namespace
        if cluster is not None:
            self.cluster = cluster
        if gcp_project is not None:
            self.gcp_project = gcp_project
        if version_endpoint_id is not None:
            self.version_endpoint_id = version_endpoint_id