Esempio n. 1
0
    def __init__(self,
                 last_transition_time=None,
                 message=None,
                 reason=None,
                 severity=None,
                 status=None,
                 type=None,
                 local_vars_configuration=None):  # noqa: E501
        """KnativeCondition - 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._message = None
        self._reason = None
        self._severity = 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 message is not None:
            self.message = message
        if reason is not None:
            self.reason = reason
        if severity is not None:
            self.severity = severity
        self.status = status
        self.type = type
Esempio n. 2
0
    def __init__(self,
                 api_version=None,
                 kind=None,
                 metadata=None,
                 spec=None,
                 status=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1alpha1ClusterServingRuntime - 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
Esempio n. 3
0
    def __init__(self,
                 default_gpu_image_version='',
                 default_image_version='',
                 default_timeout=None,
                 image='',
                 multi_model_server=None,
                 supported_frameworks=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1PredictorConfig - 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._default_gpu_image_version = None
        self._default_image_version = None
        self._default_timeout = None
        self._image = None
        self._multi_model_server = None
        self._supported_frameworks = None
        self.discriminator = None

        self.default_gpu_image_version = default_gpu_image_version
        self.default_image_version = default_image_version
        if default_timeout is not None:
            self.default_timeout = default_timeout
        self.image = image
        if multi_model_server is not None:
            self.multi_model_server = multi_model_server
        self.supported_frameworks = supported_frameworks
    def __init__(self,
                 ingress_domain=None,
                 ingress_gateway=None,
                 ingress_service=None,
                 local_gateway=None,
                 local_gateway_service=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1IngressConfig - 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._ingress_domain = None
        self._ingress_gateway = None
        self._ingress_service = None
        self._local_gateway = None
        self._local_gateway_service = None
        self.discriminator = None

        if ingress_domain is not None:
            self.ingress_domain = ingress_domain
        if ingress_gateway is not None:
            self.ingress_gateway = ingress_gateway
        if ingress_service is not None:
            self.ingress_service = ingress_service
        if local_gateway is not None:
            self.local_gateway = local_gateway
        if local_gateway_service is not None:
            self.local_gateway_service = local_gateway_service
    def __init__(self,
                 address=None,
                 annotations=None,
                 components=None,
                 conditions=None,
                 observed_generation=None,
                 url=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1InferenceServiceStatus - 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._address = None
        self._annotations = None
        self._components = None
        self._conditions = None
        self._observed_generation = None
        self._url = None
        self.discriminator = None

        if address is not None:
            self.address = address
        if annotations is not None:
            self.annotations = annotations
        if components is not None:
            self.components = components
        if conditions is not None:
            self.conditions = conditions
        if observed_generation is not None:
            self.observed_generation = observed_generation
        if url is not None:
            self.url = url
    def __init__(self,
                 mem_buffer_bytes=None,
                 model_loading_timeout_millis=None,
                 runtime_management_port=None,
                 server_type=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1alpha1BuiltInAdapter - 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._mem_buffer_bytes = None
        self._model_loading_timeout_millis = None
        self._runtime_management_port = None
        self._server_type = None
        self.discriminator = None

        if mem_buffer_bytes is not None:
            self.mem_buffer_bytes = mem_buffer_bytes
        if model_loading_timeout_millis is not None:
            self.model_loading_timeout_millis = model_loading_timeout_millis
        if runtime_management_port is not None:
            self.runtime_management_port = runtime_management_port
        if server_type is not None:
            self.server_type = server_type
    def __init__(self, time=None, local_vars_configuration=None):  # noqa: E501
        """KnativeVolatileTime - 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._time = None
        self.discriminator = None

        self.time = time
Esempio n. 8
0
    def __init__(self, url=None, local_vars_configuration=None):  # noqa: E501
        """KnativeAddressable - 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._url = None
        self.discriminator = None

        if url is not None:
            self.url = url
Esempio n. 9
0
    def __init__(self, default_image_version='', image='', local_vars_configuration=None):  # noqa: E501
        """V1beta1ExplainerConfig - 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._default_image_version = None
        self._image = None
        self.discriminator = None

        self.default_image_version = default_image_version
        self.image = image
    def __init__(self,
                 feast=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1TransformersConfig - 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._feast = None
        self.discriminator = None

        if feast is not None:
            self.feast = feast
Esempio n. 11
0
    def __init__(self,
                 disabled=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1alpha1StorageHelper - 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._disabled = None
        self.discriminator = None

        if disabled is not None:
            self.disabled = disabled
Esempio n. 12
0
    def __init__(self,
                 default_deployment_mode=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1DeployConfig - 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._default_deployment_mode = None
        self.discriminator = None

        if default_deployment_mode is not None:
            self.default_deployment_mode = default_deployment_mode
Esempio n. 13
0
    def __init__(self, v1=None, v2=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1PredictorProtocols - 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._v1 = None
        self._v2 = None
        self.discriminator = None

        if v1 is not None:
            self.v1 = v1
        if v2 is not None:
            self.v2 = v2
    def __init__(self,
                 inference_service='',
                 model=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1alpha1TrainedModelSpec - 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._inference_service = None
        self._model = None
        self.discriminator = None

        self.inference_service = inference_service
        self.model = model
    def __init__(self, affinity=None, built_in_adapter=None, containers=None, disabled=None, grpc_data_endpoint=None, grpc_endpoint=None, http_data_endpoint=None, multi_model=None, node_selector=None, replicas=None, storage_helper=None, supported_model_formats=None, tolerations=None, local_vars_configuration=None):  # noqa: E501
        """V1alpha1ServingRuntimeSpec - 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._affinity = None
        self._built_in_adapter = None
        self._containers = None
        self._disabled = None
        self._grpc_data_endpoint = None
        self._grpc_endpoint = None
        self._http_data_endpoint = None
        self._multi_model = None
        self._node_selector = None
        self._replicas = None
        self._storage_helper = None
        self._supported_model_formats = None
        self._tolerations = None
        self.discriminator = None

        if affinity is not None:
            self.affinity = affinity
        if built_in_adapter is not None:
            self.built_in_adapter = built_in_adapter
        self.containers = containers
        if disabled is not None:
            self.disabled = disabled
        if grpc_data_endpoint is not None:
            self.grpc_data_endpoint = grpc_data_endpoint
        if grpc_endpoint is not None:
            self.grpc_endpoint = grpc_endpoint
        if http_data_endpoint is not None:
            self.http_data_endpoint = http_data_endpoint
        if multi_model is not None:
            self.multi_model = multi_model
        if node_selector is not None:
            self.node_selector = node_selector
        if replicas is not None:
            self.replicas = replicas
        if storage_helper is not None:
            self.storage_helper = storage_helper
        if supported_model_formats is not None:
            self.supported_model_formats = supported_model_formats
        if tolerations is not None:
            self.tolerations = tolerations
Esempio n. 16
0
    def __init__(self,
                 mode=None,
                 url=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1LoggerSpec - 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._mode = None
        self._url = None
        self.discriminator = None

        if mode is not None:
            self.mode = mode
        if url is not None:
            self.url = url
Esempio n. 17
0
    def __init__(self,
                 name='',
                 version=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1ModelFormat - 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._version = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if version is not None:
            self.version = version
Esempio n. 18
0
    def __init__(self, auto_select=None, name='', version=None, local_vars_configuration=None):  # noqa: E501
        """V1alpha1SupportedModelFormat - 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._auto_select = None
        self._name = None
        self._version = None
        self.discriminator = None

        if auto_select is not None:
            self.auto_select = auto_select
        if name is not None:
            self.name = name
        if version is not None:
            self.version = version
Esempio n. 19
0
    def __init__(self,
                 lightgbm=None,
                 onnx=None,
                 paddle=None,
                 pmml=None,
                 pytorch=None,
                 sklearn=None,
                 tensorflow=None,
                 triton=None,
                 xgboost=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1PredictorsConfig - 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._lightgbm = None
        self._onnx = None
        self._paddle = None
        self._pmml = None
        self._pytorch = None
        self._sklearn = None
        self._tensorflow = None
        self._triton = None
        self._xgboost = None
        self.discriminator = None

        if lightgbm is not None:
            self.lightgbm = lightgbm
        if onnx is not None:
            self.onnx = onnx
        if paddle is not None:
            self.paddle = paddle
        if pmml is not None:
            self.pmml = pmml
        if pytorch is not None:
            self.pytorch = pytorch
        if sklearn is not None:
            self.sklearn = sklearn
        if tensorflow is not None:
            self.tensorflow = tensorflow
        if triton is not None:
            self.triton = triton
        if xgboost is not None:
            self.xgboost = xgboost
Esempio n. 20
0
    def __init__(self,
                 framework='',
                 memory=None,
                 storage_uri='',
                 local_vars_configuration=None):  # noqa: E501
        """V1alpha1ModelSpec - 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._framework = None
        self._memory = None
        self._storage_uri = None
        self.discriminator = None

        self.framework = framework
        self.memory = memory
        self.storage_uri = storage_uri
Esempio 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.get_default_copy()
        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/0.1/python'
        self.client_side_validation = configuration.client_side_validation
Esempio n. 22
0
    def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None):  # noqa: E501
        """V1beta1InferenceServiceList - 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
    def __init__(self,
                 explainer=None,
                 predictor=None,
                 transformer=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1InferenceServiceSpec - 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._explainer = None
        self._predictor = None
        self._transformer = None
        self.discriminator = None

        if explainer is not None:
            self.explainer = explainer
        self.predictor = predictor
        if transformer is not None:
            self.transformer = transformer
    def __init__(self,
                 aix=None,
                 alibi=None,
                 art=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1ExplainersConfig - 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._aix = None
        self._alibi = None
        self._art = None
        self.discriminator = None

        if aix is not None:
            self.aix = aix
        if alibi is not None:
            self.alibi = alibi
        if art is not None:
            self.art = art
Esempio n. 25
0
    def __init__(self,
                 max_batch_size=None,
                 max_latency=None,
                 timeout=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1Batcher - 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._max_batch_size = None
        self._max_latency = None
        self._timeout = None
        self.discriminator = None

        if max_batch_size is not None:
            self.max_batch_size = max_batch_size
        if max_latency is not None:
            self.max_latency = max_latency
        if timeout is not None:
            self.timeout = timeout
Esempio n. 26
0
    def __init__(self,
                 address=None,
                 latest_created_revision=None,
                 latest_ready_revision=None,
                 latest_rolledout_revision=None,
                 previous_rolledout_revision=None,
                 traffic=None,
                 url=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1ComponentStatusSpec - 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._address = None
        self._latest_created_revision = None
        self._latest_ready_revision = None
        self._latest_rolledout_revision = None
        self._previous_rolledout_revision = None
        self._traffic = None
        self._url = None
        self.discriminator = None

        if address is not None:
            self.address = address
        if latest_created_revision is not None:
            self.latest_created_revision = latest_created_revision
        if latest_ready_revision is not None:
            self.latest_ready_revision = latest_ready_revision
        if latest_rolledout_revision is not None:
            self.latest_rolledout_revision = latest_rolledout_revision
        if previous_rolledout_revision is not None:
            self.previous_rolledout_revision = previous_rolledout_revision
        if traffic is not None:
            self.traffic = traffic
        if url is not None:
            self.url = url
    def __init__(self,
                 batcher=None,
                 canary_traffic_percent=None,
                 container_concurrency=None,
                 logger=None,
                 max_replicas=None,
                 min_replicas=None,
                 timeout=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1ComponentExtensionSpec - 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._batcher = None
        self._canary_traffic_percent = None
        self._container_concurrency = None
        self._logger = None
        self._max_replicas = None
        self._min_replicas = None
        self._timeout = None
        self.discriminator = None

        if batcher is not None:
            self.batcher = batcher
        if canary_traffic_percent is not None:
            self.canary_traffic_percent = canary_traffic_percent
        if container_concurrency is not None:
            self.container_concurrency = container_concurrency
        if logger is not None:
            self.logger = logger
        if max_replicas is not None:
            self.max_replicas = max_replicas
        if min_replicas is not None:
            self.min_replicas = min_replicas
        if timeout is not None:
            self.timeout = timeout
Esempio n. 28
0
    def __init__(self,
                 force_query=None,
                 fragment=None,
                 host=None,
                 opaque=None,
                 path=None,
                 raw_path=None,
                 raw_query=None,
                 scheme=None,
                 user=None,
                 local_vars_configuration=None):  # noqa: E501
        """KnativeURL - 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._force_query = None
        self._fragment = None
        self._host = None
        self._opaque = None
        self._path = None
        self._raw_path = None
        self._raw_query = None
        self._scheme = None
        self._user = None
        self.discriminator = None

        self.force_query = force_query
        self.fragment = fragment
        self.host = host
        self.opaque = opaque
        self.path = path
        self.raw_path = raw_path
        self.raw_query = raw_query
        self.scheme = scheme
        self.user = user
    def __init__(self,
                 args=None,
                 command=None,
                 env=None,
                 env_from=None,
                 image=None,
                 image_pull_policy=None,
                 lifecycle=None,
                 liveness_probe=None,
                 name='',
                 ports=None,
                 protocol_version=None,
                 readiness_probe=None,
                 resources=None,
                 runtime_version=None,
                 security_context=None,
                 startup_probe=None,
                 stdin=None,
                 stdin_once=None,
                 storage_uri=None,
                 termination_message_path=None,
                 termination_message_policy=None,
                 tty=None,
                 volume_devices=None,
                 volume_mounts=None,
                 working_dir=None,
                 local_vars_configuration=None):  # noqa: E501
        """V1beta1TorchServeSpec - 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._args = None
        self._command = None
        self._env = None
        self._env_from = None
        self._image = None
        self._image_pull_policy = None
        self._lifecycle = None
        self._liveness_probe = None
        self._name = None
        self._ports = None
        self._protocol_version = None
        self._readiness_probe = None
        self._resources = None
        self._runtime_version = None
        self._security_context = None
        self._startup_probe = None
        self._stdin = None
        self._stdin_once = None
        self._storage_uri = None
        self._termination_message_path = None
        self._termination_message_policy = None
        self._tty = None
        self._volume_devices = None
        self._volume_mounts = None
        self._working_dir = None
        self.discriminator = None

        if args is not None:
            self.args = args
        if command is not None:
            self.command = command
        if env is not None:
            self.env = env
        if env_from is not None:
            self.env_from = env_from
        if image is not None:
            self.image = image
        if image_pull_policy is not None:
            self.image_pull_policy = image_pull_policy
        if lifecycle is not None:
            self.lifecycle = lifecycle
        if liveness_probe is not None:
            self.liveness_probe = liveness_probe
        if name is not None:
            self.name = name
        if ports is not None:
            self.ports = ports
        if protocol_version is not None:
            self.protocol_version = protocol_version
        if readiness_probe is not None:
            self.readiness_probe = readiness_probe
        if resources is not None:
            self.resources = resources
        if runtime_version is not None:
            self.runtime_version = runtime_version
        if security_context is not None:
            self.security_context = security_context
        if startup_probe is not None:
            self.startup_probe = startup_probe
        if stdin is not None:
            self.stdin = stdin
        if stdin_once is not None:
            self.stdin_once = stdin_once
        if storage_uri is not None:
            self.storage_uri = storage_uri
        if termination_message_path is not None:
            self.termination_message_path = termination_message_path
        if termination_message_policy is not None:
            self.termination_message_policy = termination_message_policy
        if tty is not None:
            self.tty = tty
        if volume_devices is not None:
            self.volume_devices = volume_devices
        if volume_mounts is not None:
            self.volume_mounts = volume_mounts
        if working_dir is not None:
            self.working_dir = working_dir