Python Control Plane SDK API
kserve.api.kserve_client
KServeClient
class KServeClient(object)
__init__
def __init__(config_file=None,
config_dict=None,
context=None,
client_configuration=None,
persist_config=True)
KServe client constructor
Arguments:
config_file
: kubeconfig file, defaults to ~/.kube/configconfig_dict
: Takes the config file as a dict.context
: kubernetes contextclient_configuration
: kubernetes configuration objectpersist_config
:
set_credentials
def set_credentials(storage_type,
namespace=None,
credentials_file=None,
service_account=constants.DEFAULT_SA_NAME,
**kwargs)
Setup credentials for KServe.
Arguments:
storage_type
: Valid value: GCS or S3 (required)namespace
: inference service deployment namespacecredentials_file
: the path for the credentials file.service_account
: the name of service account.kwargs
: Others parameters for each storage_type
create
def create(inferenceservice, namespace=None, watch=False, timeout_seconds=600)
Create the inference service
Arguments:
inferenceservice
: inference service objectnamespace
: defaults to current or default namespacewatch
: True to watch the created service until timeout elapsed or status is readytimeout_seconds
: timeout seconds for watch, default to 600s
Returns:
created inference service
get
def get(name=None,
namespace=None,
watch=False,
timeout_seconds=600,
version=constants.KSERVE_V1BETA1_VERSION)
Get the inference service
Arguments:
name
: existing inference service namenamespace
: defaults to current or default namespacewatch
: True to watch the service until timeout elapsed or status is readytimeout_seconds
: timeout seconds for watch, default to 600sversion
: api group version
Returns:
inference service
patch
def patch(name,
inferenceservice,
namespace=None,
watch=False,
timeout_seconds=600)
Patch existing inference service
Arguments:
name
: existing inference service nameinferenceservice
: patched inference servicenamespace
: defaults to current or default namespacewatch
: True to watch the patched service until timeout elapsed or status is readytimeout_seconds
: timeout seconds for watch, default to 600s
Returns:
patched inference service
replace
def replace(name,
inferenceservice,
namespace=None,
watch=False,
timeout_seconds=600)
Replace the existing inference service
Arguments:
name
: existing inference service nameinferenceservice
: replacing inference servicenamespace
: defaults to current or default namespacewatch
: True to watch the replaced service until timeout elapsed or status is readytimeout_seconds
: timeout seconds for watch, default to 600s
Returns:
replaced inference service
delete
def delete(name, namespace=None, version=constants.KSERVE_V1BETA1_VERSION)
Delete the inference service
Arguments:
name
: inference service namenamespace
: defaults to current or default namespaceversion
: api group version
is_isvc_ready
def is_isvc_ready(name,
namespace=None,
version=constants.KSERVE_V1BETA1_VERSION)
Check if the inference service is ready.
Arguments:
version
:name
: inference service namenamespace
: defaults to current or default namespace
wait_isvc_ready
def wait_isvc_ready(name,
namespace=None,
watch=False,
timeout_seconds=600,
polling_interval=10,
version=constants.KSERVE_V1BETA1_VERSION)
Waiting for inference service ready, print out the inference service if timeout.
Arguments:
name
: inference service namenamespace
: defaults to current or default namespacewatch
: True to watch the service until timeout elapsed or status is readytimeout_seconds
: timeout seconds for waiting, default to 600s. Print out the InferenceService if timeout.polling_interval
: The time interval to poll statusversion
: api group version
create_trained_model
def create_trained_model(trainedmodel, namespace)
Create a trained model
Arguments:
trainedmodel
: trainedmodel objectnamespace
: defaults to current or default namespace
delete_trained_model
def delete_trained_model(name,
namespace=None,
version=constants.KSERVE_V1ALPHA1_VERSION)
Delete the trained model
Arguments:
name
: trained model namenamespace
: defaults to current or default namespaceversion
: api group version
wait_model_ready
def wait_model_ready(service_name,
model_name,
isvc_namespace=None,
isvc_version=constants.KSERVE_V1BETA1_VERSION,
cluster_ip=None,
protocol_version="v1",
timeout_seconds=600,
polling_interval=10)
Waiting for model to be ready to service, print out trained model if timeout.
Arguments:
service_name
: inference service namemodel_name
: trained model nameisvc_namespace
: defaults to current or default namespace of inference serviceisvc_version
: api group version of inference serviceprotocol_version
: version of the dataplane protocolcluster_ip
: ip of the kubernetes clustertimeout_seconds
: timeout seconds for waiting, default to 600s. Print out the InferenceService if timeout.polling_interval
: The time interval to poll status
create_inference_graph
def create_inference_graph(inferencegraph: V1alpha1InferenceGraph,
namespace: str = None) -> object
create a inference graph
Arguments:
inferencegraph
: inference graph objectnamespace
: defaults to current or default namespace
Returns:
created inference graph
delete_inference_graph
def delete_inference_graph(name: str,
namespace: str = None,
version: str = constants.KSERVE_V1ALPHA1_VERSION)
Delete the inference graph
Arguments:
name
: inference graph namenamespace
: defaults to current or default namespaceversion
: api group version
get_inference_graph
def get_inference_graph(
name: str,
namespace: str = None,
version: str = constants.KSERVE_V1ALPHA1_VERSION) -> object
Get the inference graph
Arguments:
name
: existing inference graph namenamespace
: defaults to current or default namespaceversion
: api group version
Returns:
inference graph
is_ig_ready
def is_ig_ready(name: str,
namespace: str = None,
version: str = constants.KSERVE_V1ALPHA1_VERSION) -> bool
Check if the inference graph is ready.
Arguments:
name
: inference graph namenamespace
: defaults to current or default namespaceversion
: api group version
Returns:
true if inference graph is ready, else false.
wait_ig_ready
def wait_ig_ready(name: str,
namespace: str = None,
version: str = constants.KSERVE_V1ALPHA1_VERSION,
timeout_seconds: int = 600,
polling_interval: int = 10)
Wait for inference graph to be ready until timeout. Print out the inference graph if timeout.
Arguments:
name
: inference graph namenamespace
: defaults to current or default namespaceversion
: api group versiontimeout_seconds
: timeout seconds for waiting, default to 600s.polling_interval
: The time interval to poll status
create_local_model_node_group
def create_local_model_node_group(
localmodelnodegroup: V1alpha1LocalModelNodeGroup)
Create a local model node group
Arguments:
localmodelnodegroup
: local model node group object
Returns:
created local model node group object
get_local_model_node_group
def get_local_model_node_group(name: str,
version: str = constants.KSERVE_V1ALPHA1_VERSION
) -> object
Get the local model node group
Arguments:
name
: existing local model node group nameversion
: api group version. Default to v1alpha
Returns:
local model node group object
delete_local_model_node_group
def delete_local_model_node_group(
name: str, version: str = constants.KSERVE_V1ALPHA1_VERSION)
Delete the local model node group
Arguments:
name
: local model node group nameversion
: api group version. Default to v1alpha
create_local_model_cache
def create_local_model_cache(
localmodelcache: V1alpha1LocalModelCache) -> object
Create a local model cache
Arguments:
localmodelcache
: local model cache object
Returns:
created local model cache object
get_local_model_cache
def get_local_model_cache(name: str,
version: str = constants.KSERVE_V1ALPHA1_VERSION
) -> object
Get the local model cache
Arguments:
name
: existing local model cache nameversion
: api group version. Default to v1alpha1
Returns:
local model cache object
delete_local_model_cache
def delete_local_model_cache(name: str,
version: str = constants.KSERVE_V1ALPHA1_VERSION)
Delete the local model cache
Arguments:
name
: local model cache nameversion
: api group version. Default to v1alpha1
is_local_model_cache_ready
def is_local_model_cache_ready(
name: str,
nodes: List[str],
version: str = constants.KSERVE_V1ALPHA1_VERSION) -> bool
Verify if the model is successfully cached on the specified node.
Arguments:
name
: local model cache namenode_name
: name of the node to check if the model is cachedversion
: api group version
Returns:
true if the model is successfully cached, else false.
wait_local_model_cache_ready
def wait_local_model_cache_ready(
name: str,
nodes: List[str],
version: str = constants.KSERVE_V1ALPHA1_VERSION,
timeout_seconds: int = 600,
polling_interval: int = 10)
Wait for model to be cached locally for specified nodes until timeout.
Arguments:
name
: local model cache namenodes
: list of node names to check if the model is cachedversion
: api group versiontimeout_seconds
: timeout seconds for waiting, default to 600s.polling_interval
: The time interval to poll status
kserve.api.creds_utils
set_gcs_credentials
def set_gcs_credentials(namespace, credentials_file, service_account)
Set GCS Credentials (secret and service account) with credentials file.
Arguments:
namespace
(str
): The kubernetes namespace.credentials_file
(str
): The path for the gcs credentials file.service_account
(str
): The name of service account. If the service_account is specified, will attach created secret with the service account, otherwise will create new one and attach with created secret.
set_s3_credentials
def set_s3_credentials(namespace,
credentials_file,
service_account,
s3_profile="default",
s3_endpoint=None,
s3_region=None,
s3_use_https=None,
s3_verify_ssl=None,
s3_cabundle=None)
Set S3 Credentials (secret and service account).
Arguments:
namespace
(str
): The kubernetes namespace.credentials_file
(str
): The path for the S3 credentials file.s3_profile
(str
): The profile for S3, default value is 'default'.service_account
(str
): The name of service account(Optional). If the service_account is specified, will attach created secret with the service account, otherwise will create new one and attach with created secret.s3_endpoint
(str
): S3 settings variable S3_ENDPOINT.s3_region
(str
): S3 settings variable AWS_DEFAULT_REGION.s3_use_https
(str
): S3 settings variable S3_USE_HTTPS.s3_verify_ssl
(str
): S3 settings variable S3_VERIFY_SSL.s3_cabundle
(str
): S3 settings variable AWS_CA_BUNDLE.
set_azure_credentials
def set_azure_credentials(namespace, credentials_file, service_account)
Set Azure Credentials (secret and service account) with credentials file.
Arguments:
namespace
(str
): The kubernetes namespace.credentials_file
(str
): The path for the Azure credentials file.service_account
(str
): The name of service account. If the service_account is specified, will attach created secret with the service account, otherwise will create new one and attach with created secret.
create_secret
def create_secret(namespace, annotations=None, data=None, string_data=None)
Create namespaced secret, and return the secret name.
set_service_account
def set_service_account(namespace, service_account, secret_name)
Set service account, create if service_account does not exist, otherwise patch it.
check_sa_exists
def check_sa_exists(namespace, service_account)
Check if the specified service account existing.
create_service_account
def create_service_account(secret_name, namespace, sa_name)
Create namespaced service account, and return the service account name
patch_service_account
def patch_service_account(secret_name, namespace, sa_name)
Patch namespaced service account to attach with created secret.
get_creds_name_from_config_map
def get_creds_name_from_config_map(creds)
Get the credentials name from inferenceservice config map.
kserve.models.v1beta1_triton_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1TritonSpec
class V1beta1TritonSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1TritonSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1TritonSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1TritonSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1TritonSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1TritonSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1TritonSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1TritonSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1TritonSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1TritonSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1TritonSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1TritonSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1TritonSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1TritonSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1TritonSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1TritonSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1TritonSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1TritonSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1TritonSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1TritonSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1TritonSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1TritonSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1TritonSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1TritonSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1TritonSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1TritonSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1TritonSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1TritonSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1TritonSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1TritonSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1TritonSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1TritonSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1TritonSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1TritonSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1TritonSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1TritonSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1TritonSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1TritonSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1TritonSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1TritonSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1TritonSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1TritonSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1TritonSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1TritonSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1TritonSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1TritonSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1TritonSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1TritonSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1TritonSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1TritonSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1TritonSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1TritonSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1TritonSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1TritonSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1TritonSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1TritonSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1TritonSpec.
Arguments:
resources
: The resources of this V1beta1TritonSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1TritonSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1TritonSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1TritonSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1TritonSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1TritonSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1TritonSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1TritonSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1TritonSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1TritonSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1TritonSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1TritonSpec.
Arguments:
security_context
: The security_context of this V1beta1TritonSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1TritonSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1TritonSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1TritonSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1TritonSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1TritonSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1TritonSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1TritonSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1TritonSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1TritonSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1TritonSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1TritonSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1TritonSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1TritonSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1TritonSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1TritonSpec.
Arguments:
storage
: The storage of this V1beta1TritonSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1TritonSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1TritonSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1TritonSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1TritonSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1TritonSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1TritonSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1TritonSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1TritonSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1TritonSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1TritonSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1TritonSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1TritonSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1TritonSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1TritonSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1TritonSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1TritonSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1TritonSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1TritonSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1TritonSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1TritonSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1TritonSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1TritonSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1TritonSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1TritonSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1TritonSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1TritonSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1TritonSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1TritonSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_inference_service_status
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1InferenceServiceStatus
class V1beta1InferenceServiceStatus(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(address=None,
annotations=None,
cluster_serving_runtime_name=None,
components=None,
conditions=None,
deployment_mode=None,
model_status=None,
observed_generation=None,
serving_runtime_name=None,
url=None,
local_vars_configuration=None)
V1beta1InferenceServiceStatus - a model defined in OpenAPI
address
@property
def address()
Gets the address of this V1beta1InferenceServiceStatus. # noqa: E501
Returns:
KnativeAddressable
: The address of this V1beta1InferenceServiceStatus. # noqa: E501
address
@address.setter
def address(address)
Sets the address of this V1beta1InferenceServiceStatus.
Arguments:
address
: The address of this V1beta1InferenceServiceStatus. # noqa: E501
annotations
@property
def annotations()
Gets the annotations of this V1beta1InferenceServiceStatus. # noqa: E501
Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards. # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1beta1InferenceServiceStatus. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1beta1InferenceServiceStatus.
Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards. # noqa: E501
Arguments:
annotations
: The annotations of this V1beta1InferenceServiceStatus. # noqa: E501
cluster_serving_runtime_name
@property
def cluster_serving_runtime_name()
Gets the cluster_serving_runtime_name of this V1beta1InferenceServiceStatus. # noqa: E501
ClusterServingRuntimeName is the name of the ClusterServingRuntime that the InferenceService is using # noqa: E501
Returns:
str
: The cluster_serving_runtime_name of this V1beta1InferenceServiceStatus. # noqa: E501
cluster_serving_runtime_name
@cluster_serving_runtime_name.setter
def cluster_serving_runtime_name(cluster_serving_runtime_name)
Sets the cluster_serving_runtime_name of this V1beta1InferenceServiceStatus.
ClusterServingRuntimeName is the name of the ClusterServingRuntime that the InferenceService is using # noqa: E501
Arguments:
cluster_serving_runtime_name
: The cluster_serving_runtime_name of this V1beta1InferenceServiceStatus. # noqa: E501
components
@property
def components()
Gets the components of this V1beta1InferenceServiceStatus. # noqa: E501
Statuses for the components of the InferenceService # noqa: E501
Returns:
dict(str, V1beta1ComponentStatusSpec)
: The components of this V1beta1InferenceServiceStatus. # noqa: E501
components
@components.setter
def components(components)
Sets the components of this V1beta1InferenceServiceStatus.
Statuses for the components of the InferenceService # noqa: E501
Arguments:
components
: The components of this V1beta1InferenceServiceStatus. # noqa: E501
conditions
@property
def conditions()
Gets the conditions of this V1beta1InferenceServiceStatus. # noqa: E501
Conditions the latest available observations of a resource's current state. # noqa: E501
Returns:
list[KnativeCondition]
: The conditions of this V1beta1InferenceServiceStatus. # noqa: E501
conditions
@conditions.setter
def conditions(conditions)
Sets the conditions of this V1beta1InferenceServiceStatus.
Conditions the latest available observations of a resource's current state. # noqa: E501
Arguments:
conditions
: The conditions of this V1beta1InferenceServiceStatus. # noqa: E501
deployment_mode
@property
def deployment_mode()
Gets the deployment_mode of this V1beta1InferenceServiceStatus. # noqa: E501
InferenceService DeploymentMode # noqa: E501
Returns:
str
: The deployment_mode of this V1beta1InferenceServiceStatus. # noqa: E501
deployment_mode
@deployment_mode.setter
def deployment_mode(deployment_mode)
Sets the deployment_mode of this V1beta1InferenceServiceStatus.
InferenceService DeploymentMode # noqa: E501
Arguments:
deployment_mode
: The deployment_mode of this V1beta1InferenceServiceStatus. # noqa: E501
model_status
@property
def model_status()
Gets the model_status of this V1beta1InferenceServiceStatus. # noqa: E501
Returns:
V1beta1ModelStatus
: The model_status of this V1beta1InferenceServiceStatus. # noqa: E501
model_status
@model_status.setter
def model_status(model_status)
Sets the model_status of this V1beta1InferenceServiceStatus.
Arguments:
model_status
: The model_status of this V1beta1InferenceServiceStatus. # noqa: E501
observed_generation
@property
def observed_generation()
Gets the observed_generation of this V1beta1InferenceServiceStatus. # noqa: E501
ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. # noqa: E501
Returns:
int
: The observed_generation of this V1beta1InferenceServiceStatus. # noqa: E501
observed_generation
@observed_generation.setter
def observed_generation(observed_generation)
Sets the observed_generation of this V1beta1InferenceServiceStatus.
ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. # noqa: E501
Arguments:
observed_generation
: The observed_generation of this V1beta1InferenceServiceStatus. # noqa: E501
serving_runtime_name
@property
def serving_runtime_name()
Gets the serving_runtime_name of this V1beta1InferenceServiceStatus. # noqa: E501
ServingRuntimeName is the name of the ServingRuntime that the InferenceService is using # noqa: E501
Returns:
str
: The serving_runtime_name of this V1beta1InferenceServiceStatus. # noqa: E501
serving_runtime_name
@serving_runtime_name.setter
def serving_runtime_name(serving_runtime_name)
Sets the serving_runtime_name of this V1beta1InferenceServiceStatus.
ServingRuntimeName is the name of the ServingRuntime that the InferenceService is using # noqa: E501
Arguments:
serving_runtime_name
: The serving_runtime_name of this V1beta1InferenceServiceStatus. # noqa: E501
url
@property
def url()
Gets the url of this V1beta1InferenceServiceStatus. # noqa: E501
Returns:
KnativeURL
: The url of this V1beta1InferenceServiceStatus. # noqa: E501
url
@url.setter
def url(url)
Sets the url of this V1beta1InferenceServiceStatus.
Arguments:
url
: The url of this V1beta1InferenceServiceStatus. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_worker_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1WorkerSpec
class V1beta1WorkerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
automount_service_account_token=None,
containers=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
image_pull_secrets=None,
init_containers=None,
node_name=None,
node_selector=None,
os=None,
overhead=None,
pipeline_parallel_size=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
subdomain=None,
tensor_parallel_size=None,
termination_grace_period_seconds=None,
tolerations=None,
topology_spread_constraints=None,
volumes=None,
local_vars_configuration=None)
V1beta1WorkerSpec - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1WorkerSpec. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1WorkerSpec. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1WorkerSpec.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1WorkerSpec. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1WorkerSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1WorkerSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1WorkerSpec.
Arguments:
affinity
: The affinity of this V1beta1WorkerSpec. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1WorkerSpec. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1WorkerSpec. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1WorkerSpec.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1WorkerSpec. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1WorkerSpec. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1WorkerSpec. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1WorkerSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1WorkerSpec. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1WorkerSpec. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1WorkerSpec. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1WorkerSpec.
Arguments:
dns_config
: The dns_config of this V1beta1WorkerSpec. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1WorkerSpec. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1WorkerSpec. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1WorkerSpec.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1WorkerSpec. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1WorkerSpec. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1WorkerSpec. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1WorkerSpec.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1WorkerSpec. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1WorkerSpec. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1WorkerSpec. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1WorkerSpec.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1WorkerSpec. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1WorkerSpec. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1WorkerSpec. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1WorkerSpec.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1WorkerSpec. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1WorkerSpec. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1WorkerSpec. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1WorkerSpec.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1WorkerSpec. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1WorkerSpec. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1WorkerSpec. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1WorkerSpec.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1WorkerSpec. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1WorkerSpec. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1WorkerSpec. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1WorkerSpec.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1WorkerSpec. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1WorkerSpec. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1WorkerSpec. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1WorkerSpec.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1WorkerSpec. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1WorkerSpec. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1WorkerSpec. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1WorkerSpec.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1WorkerSpec. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1WorkerSpec. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1WorkerSpec. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1WorkerSpec.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1WorkerSpec. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1WorkerSpec. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1WorkerSpec. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1WorkerSpec.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1WorkerSpec. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1WorkerSpec. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1WorkerSpec. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1WorkerSpec.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1WorkerSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1WorkerSpec. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1WorkerSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1WorkerSpec.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1WorkerSpec. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1WorkerSpec. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1WorkerSpec. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1WorkerSpec.
Arguments:
os
: The os of this V1beta1WorkerSpec. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1WorkerSpec. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1WorkerSpec. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1WorkerSpec.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1WorkerSpec. # noqa: E501
pipeline_parallel_size
@property
def pipeline_parallel_size()
Gets the pipeline_parallel_size of this V1beta1WorkerSpec. # noqa: E501
PipelineParallelSize defines the number of parallel workers. It also represents the number of replicas in the worker set, where each worker set serves as a scaling unit. # noqa: E501
Returns:
int
: The pipeline_parallel_size of this V1beta1WorkerSpec. # noqa: E501
pipeline_parallel_size
@pipeline_parallel_size.setter
def pipeline_parallel_size(pipeline_parallel_size)
Sets the pipeline_parallel_size of this V1beta1WorkerSpec.
PipelineParallelSize defines the number of parallel workers. It also represents the number of replicas in the worker set, where each worker set serves as a scaling unit. # noqa: E501
Arguments:
pipeline_parallel_size
: The pipeline_parallel_size of this V1beta1WorkerSpec. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1WorkerSpec. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1WorkerSpec. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1WorkerSpec.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1WorkerSpec. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1WorkerSpec. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1WorkerSpec. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1WorkerSpec.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1WorkerSpec. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1WorkerSpec. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1WorkerSpec. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1WorkerSpec.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1WorkerSpec. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1WorkerSpec. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1WorkerSpec. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1WorkerSpec.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1WorkerSpec. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1WorkerSpec. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1WorkerSpec. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1WorkerSpec.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1WorkerSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1WorkerSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1WorkerSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1WorkerSpec.
Arguments:
resources
: The resources of this V1beta1WorkerSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1WorkerSpec. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1WorkerSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1WorkerSpec.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1WorkerSpec. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1WorkerSpec. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1WorkerSpec. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1WorkerSpec.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1WorkerSpec. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1WorkerSpec. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1WorkerSpec. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1WorkerSpec.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1WorkerSpec. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1WorkerSpec. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1WorkerSpec. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1WorkerSpec.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1WorkerSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1WorkerSpec. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1WorkerSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1WorkerSpec.
Arguments:
security_context
: The security_context of this V1beta1WorkerSpec. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1WorkerSpec. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1WorkerSpec. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1WorkerSpec.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1WorkerSpec. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1WorkerSpec. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1WorkerSpec. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1WorkerSpec.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1WorkerSpec. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1WorkerSpec. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1WorkerSpec. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1WorkerSpec.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1WorkerSpec. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1WorkerSpec. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1WorkerSpec. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1WorkerSpec.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1WorkerSpec. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1WorkerSpec. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1WorkerSpec. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1WorkerSpec.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1WorkerSpec. # noqa: E501
tensor_parallel_size
@property
def tensor_parallel_size()
Gets the tensor_parallel_size of this V1beta1WorkerSpec. # noqa: E501
TensorParallelSize specifies the number of GPUs to be used per node. It indicates the degree of parallelism for tensor computations across the available GPUs. # noqa: E501
Returns:
int
: The tensor_parallel_size of this V1beta1WorkerSpec. # noqa: E501
tensor_parallel_size
@tensor_parallel_size.setter
def tensor_parallel_size(tensor_parallel_size)
Sets the tensor_parallel_size of this V1beta1WorkerSpec.
TensorParallelSize specifies the number of GPUs to be used per node. It indicates the degree of parallelism for tensor computations across the available GPUs. # noqa: E501
Arguments:
tensor_parallel_size
: The tensor_parallel_size of this V1beta1WorkerSpec. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1WorkerSpec. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1WorkerSpec. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1WorkerSpec.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1WorkerSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1WorkerSpec. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1WorkerSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1WorkerSpec.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1WorkerSpec. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1WorkerSpec. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1WorkerSpec. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1WorkerSpec.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1WorkerSpec. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1WorkerSpec. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1WorkerSpec. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1WorkerSpec.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1WorkerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_ingress_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1IngressConfig
class V1beta1IngressConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(additional_ingress_domains=None,
disable_ingress_creation=None,
disable_istio_virtual_host=None,
domain_template=None,
enable_gateway_api=None,
ingress_class_name=None,
ingress_domain=None,
ingress_gateway=None,
knative_local_gateway_service=None,
kserve_ingress_gateway=None,
local_gateway=None,
local_gateway_service=None,
path_template=None,
url_scheme=None,
local_vars_configuration=None)
V1beta1IngressConfig - a model defined in OpenAPI
additional_ingress_domains
@property
def additional_ingress_domains()
Gets the additional_ingress_domains of this V1beta1IngressConfig. # noqa: E501
Returns:
list[str]
: The additional_ingress_domains of this V1beta1IngressConfig. # noqa: E501
additional_ingress_domains
@additional_ingress_domains.setter
def additional_ingress_domains(additional_ingress_domains)
Sets the additional_ingress_domains of this V1beta1IngressConfig.
Arguments:
additional_ingress_domains
: The additional_ingress_domains of this V1beta1IngressConfig. # noqa: E501
disable_ingress_creation
@property
def disable_ingress_creation()
Gets the disable_ingress_creation of this V1beta1IngressConfig. # noqa: E501
Returns:
bool
: The disable_ingress_creation of this V1beta1IngressConfig. # noqa: E501
disable_ingress_creation
@disable_ingress_creation.setter
def disable_ingress_creation(disable_ingress_creation)
Sets the disable_ingress_creation of this V1beta1IngressConfig.
Arguments:
disable_ingress_creation
: The disable_ingress_creation of this V1beta1IngressConfig. # noqa: E501
disable_istio_virtual_host
@property
def disable_istio_virtual_host()
Gets the disable_istio_virtual_host of this V1beta1IngressConfig. # noqa: E501
Returns:
bool
: The disable_istio_virtual_host of this V1beta1IngressConfig. # noqa: E501
disable_istio_virtual_host
@disable_istio_virtual_host.setter
def disable_istio_virtual_host(disable_istio_virtual_host)
Sets the disable_istio_virtual_host of this V1beta1IngressConfig.
Arguments:
disable_istio_virtual_host
: The disable_istio_virtual_host of this V1beta1IngressConfig. # noqa: E501
domain_template
@property
def domain_template()
Gets the domain_template of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The domain_template of this V1beta1IngressConfig. # noqa: E501
domain_template
@domain_template.setter
def domain_template(domain_template)
Sets the domain_template of this V1beta1IngressConfig.
Arguments:
domain_template
: The domain_template of this V1beta1IngressConfig. # noqa: E501
enable_gateway_api
@property
def enable_gateway_api()
Gets the enable_gateway_api of this V1beta1IngressConfig. # noqa: E501
Returns:
bool
: The enable_gateway_api of this V1beta1IngressConfig. # noqa: E501
enable_gateway_api
@enable_gateway_api.setter
def enable_gateway_api(enable_gateway_api)
Sets the enable_gateway_api of this V1beta1IngressConfig.
Arguments:
enable_gateway_api
: The enable_gateway_api of this V1beta1IngressConfig. # noqa: E501
ingress_class_name
@property
def ingress_class_name()
Gets the ingress_class_name of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The ingress_class_name of this V1beta1IngressConfig. # noqa: E501
ingress_class_name
@ingress_class_name.setter
def ingress_class_name(ingress_class_name)
Sets the ingress_class_name of this V1beta1IngressConfig.
Arguments:
ingress_class_name
: The ingress_class_name of this V1beta1IngressConfig. # noqa: E501
ingress_domain
@property
def ingress_domain()
Gets the ingress_domain of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The ingress_domain of this V1beta1IngressConfig. # noqa: E501
ingress_domain
@ingress_domain.setter
def ingress_domain(ingress_domain)
Sets the ingress_domain of this V1beta1IngressConfig.
Arguments:
ingress_domain
: The ingress_domain of this V1beta1IngressConfig. # noqa: E501
ingress_gateway
@property
def ingress_gateway()
Gets the ingress_gateway of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The ingress_gateway of this V1beta1IngressConfig. # noqa: E501
ingress_gateway
@ingress_gateway.setter
def ingress_gateway(ingress_gateway)
Sets the ingress_gateway of this V1beta1IngressConfig.
Arguments:
ingress_gateway
: The ingress_gateway of this V1beta1IngressConfig. # noqa: E501
knative_local_gateway_service
@property
def knative_local_gateway_service()
Gets the knative_local_gateway_service of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The knative_local_gateway_service of this V1beta1IngressConfig. # noqa: E501
knative_local_gateway_service
@knative_local_gateway_service.setter
def knative_local_gateway_service(knative_local_gateway_service)
Sets the knative_local_gateway_service of this V1beta1IngressConfig.
Arguments:
knative_local_gateway_service
: The knative_local_gateway_service of this V1beta1IngressConfig. # noqa: E501
kserve_ingress_gateway
@property
def kserve_ingress_gateway()
Gets the kserve_ingress_gateway of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The kserve_ingress_gateway of this V1beta1IngressConfig. # noqa: E501
kserve_ingress_gateway
@kserve_ingress_gateway.setter
def kserve_ingress_gateway(kserve_ingress_gateway)
Sets the kserve_ingress_gateway of this V1beta1IngressConfig.
Arguments:
kserve_ingress_gateway
: The kserve_ingress_gateway of this V1beta1IngressConfig. # noqa: E501
local_gateway
@property
def local_gateway()
Gets the local_gateway of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The local_gateway of this V1beta1IngressConfig. # noqa: E501
local_gateway
@local_gateway.setter
def local_gateway(local_gateway)
Sets the local_gateway of this V1beta1IngressConfig.
Arguments:
local_gateway
: The local_gateway of this V1beta1IngressConfig. # noqa: E501
local_gateway_service
@property
def local_gateway_service()
Gets the local_gateway_service of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The local_gateway_service of this V1beta1IngressConfig. # noqa: E501
local_gateway_service
@local_gateway_service.setter
def local_gateway_service(local_gateway_service)
Sets the local_gateway_service of this V1beta1IngressConfig.
Arguments:
local_gateway_service
: The local_gateway_service of this V1beta1IngressConfig. # noqa: E501
path_template
@property
def path_template()
Gets the path_template of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The path_template of this V1beta1IngressConfig. # noqa: E501
path_template
@path_template.setter
def path_template(path_template)
Sets the path_template of this V1beta1IngressConfig.
Arguments:
path_template
: The path_template of this V1beta1IngressConfig. # noqa: E501
url_scheme
@property
def url_scheme()
Gets the url_scheme of this V1beta1IngressConfig. # noqa: E501
Returns:
str
: The url_scheme of this V1beta1IngressConfig. # noqa: E501
url_scheme
@url_scheme.setter
def url_scheme(url_scheme)
Sets the url_scheme of this V1beta1IngressConfig.
Arguments:
url_scheme
: The url_scheme of this V1beta1IngressConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_pod_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PodSpec
class V1beta1PodSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
automount_service_account_token=None,
containers=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
image_pull_secrets=None,
init_containers=None,
node_name=None,
node_selector=None,
os=None,
overhead=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
subdomain=None,
termination_grace_period_seconds=None,
tolerations=None,
topology_spread_constraints=None,
volumes=None,
local_vars_configuration=None)
V1beta1PodSpec - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1PodSpec. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1PodSpec. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1PodSpec.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1PodSpec. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1PodSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1PodSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1PodSpec.
Arguments:
affinity
: The affinity of this V1beta1PodSpec. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1PodSpec. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1PodSpec. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1PodSpec.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1PodSpec. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1PodSpec. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1PodSpec. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1PodSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1PodSpec. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1PodSpec. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1PodSpec. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1PodSpec.
Arguments:
dns_config
: The dns_config of this V1beta1PodSpec. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1PodSpec. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1PodSpec. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1PodSpec.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1PodSpec. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1PodSpec. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1PodSpec. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1PodSpec.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1PodSpec. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1PodSpec. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1PodSpec. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1PodSpec.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1PodSpec. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1PodSpec. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1PodSpec. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1PodSpec.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1PodSpec. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1PodSpec. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1PodSpec. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1PodSpec.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1PodSpec. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1PodSpec. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1PodSpec. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1PodSpec.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1PodSpec. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1PodSpec. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1PodSpec. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1PodSpec.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1PodSpec. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1PodSpec. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1PodSpec. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1PodSpec.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1PodSpec. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1PodSpec. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1PodSpec. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1PodSpec.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1PodSpec. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1PodSpec. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1PodSpec. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1PodSpec.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1PodSpec. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1PodSpec. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1PodSpec. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1PodSpec.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1PodSpec. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1PodSpec. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1PodSpec. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1PodSpec.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1PodSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1PodSpec. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1PodSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1PodSpec.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1PodSpec. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1PodSpec. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1PodSpec. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1PodSpec.
Arguments:
os
: The os of this V1beta1PodSpec. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1PodSpec. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1PodSpec. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1PodSpec.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1PodSpec. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1PodSpec. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1PodSpec. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1PodSpec.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1PodSpec. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1PodSpec. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1PodSpec. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1PodSpec.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1PodSpec. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1PodSpec. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1PodSpec. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1PodSpec.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1PodSpec. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1PodSpec. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1PodSpec. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1PodSpec.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1PodSpec. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1PodSpec. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1PodSpec. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1PodSpec.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1PodSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1PodSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1PodSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1PodSpec.
Arguments:
resources
: The resources of this V1beta1PodSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1PodSpec. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1PodSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1PodSpec.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1PodSpec. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1PodSpec. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1PodSpec. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1PodSpec.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1PodSpec. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1PodSpec. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1PodSpec. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1PodSpec.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1PodSpec. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1PodSpec. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1PodSpec. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1PodSpec.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1PodSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1PodSpec. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1PodSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1PodSpec.
Arguments:
security_context
: The security_context of this V1beta1PodSpec. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1PodSpec. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1PodSpec. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1PodSpec.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1PodSpec. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1PodSpec. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1PodSpec. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1PodSpec.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1PodSpec. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1PodSpec. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1PodSpec. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1PodSpec.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1PodSpec. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1PodSpec. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1PodSpec. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1PodSpec.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1PodSpec. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1PodSpec. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1PodSpec. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1PodSpec.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1PodSpec. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1PodSpec. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1PodSpec. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1PodSpec.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1PodSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1PodSpec. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1PodSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1PodSpec.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1PodSpec. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1PodSpec. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1PodSpec. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1PodSpec.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1PodSpec. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1PodSpec. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1PodSpec. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1PodSpec.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1PodSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_explainer_extension_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ExplainerExtensionSpec
class V1beta1ExplainerExtensionSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(args=None,
command=None,
config=None,
env=None,
env_from=None,
image=None,
image_pull_policy=None,
lifecycle=None,
liveness_probe=None,
name='',
ports=None,
readiness_probe=None,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1ExplainerExtensionSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1ExplainerExtensionSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1ExplainerExtensionSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1ExplainerExtensionSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1ExplainerExtensionSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1ExplainerExtensionSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1ExplainerExtensionSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1ExplainerExtensionSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1ExplainerExtensionSpec. # noqa: E501
config
@property
def config()
Gets the config of this V1beta1ExplainerExtensionSpec. # noqa: E501
Inline custom parameter settings for explainer # noqa: E501
Returns:
dict(str, str)
: The config of this V1beta1ExplainerExtensionSpec. # noqa: E501
config
@config.setter
def config(config)
Sets the config of this V1beta1ExplainerExtensionSpec.
Inline custom parameter settings for explainer # noqa: E501
Arguments:
config
: The config of this V1beta1ExplainerExtensionSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1ExplainerExtensionSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1ExplainerExtensionSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1ExplainerExtensionSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1ExplainerExtensionSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1ExplainerExtensionSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1ExplainerExtensionSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1ExplainerExtensionSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1ExplainerExtensionSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1ExplainerExtensionSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1ExplainerExtensionSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1ExplainerExtensionSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1ExplainerExtensionSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1ExplainerExtensionSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1ExplainerExtensionSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1ExplainerExtensionSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1ExplainerExtensionSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1ExplainerExtensionSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1ExplainerExtensionSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1ExplainerExtensionSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1ExplainerExtensionSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1ExplainerExtensionSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1ExplainerExtensionSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1ExplainerExtensionSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1ExplainerExtensionSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1ExplainerExtensionSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1ExplainerExtensionSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1ExplainerExtensionSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1ExplainerExtensionSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1ExplainerExtensionSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1ExplainerExtensionSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1ExplainerExtensionSpec.
Arguments:
resources
: The resources of this V1beta1ExplainerExtensionSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1ExplainerExtensionSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1ExplainerExtensionSpec. # noqa: E501
Defaults to latest Explainer Version # noqa: E501
Returns:
str
: The runtime_version of this V1beta1ExplainerExtensionSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1ExplainerExtensionSpec.
Defaults to latest Explainer Version # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1ExplainerExtensionSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1ExplainerExtensionSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1ExplainerExtensionSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1ExplainerExtensionSpec.
Arguments:
security_context
: The security_context of this V1beta1ExplainerExtensionSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1ExplainerExtensionSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1ExplainerExtensionSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1ExplainerExtensionSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1ExplainerExtensionSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1ExplainerExtensionSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1ExplainerExtensionSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1ExplainerExtensionSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1ExplainerExtensionSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1ExplainerExtensionSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1ExplainerExtensionSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1ExplainerExtensionSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1ExplainerExtensionSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1ExplainerExtensionSpec.
Arguments:
storage
: The storage of this V1beta1ExplainerExtensionSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1ExplainerExtensionSpec. # noqa: E501
The location of a trained explanation model # noqa: E501
Returns:
str
: The storage_uri of this V1beta1ExplainerExtensionSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1ExplainerExtensionSpec.
The location of a trained explanation model # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1ExplainerExtensionSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1ExplainerExtensionSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1ExplainerExtensionSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1ExplainerExtensionSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1ExplainerExtensionSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1ExplainerExtensionSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1ExplainerExtensionSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1ExplainerExtensionSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1ExplainerExtensionSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1ExplainerExtensionSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1ExplainerExtensionSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1ExplainerExtensionSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1ExplainerExtensionSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1ExplainerExtensionSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1ExplainerExtensionSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1ExplainerExtensionSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1ExplainerExtensionSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1ExplainerExtensionSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1ExplainerExtensionSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1ExplainerExtensionSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1ExplainerExtensionSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1ExplainerExtensionSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1ExplainerExtensionSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_logger_storage_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1LoggerStorageSpec
class V1beta1LoggerStorageSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(key=None,
parameters=None,
path=None,
service_account_name=None,
local_vars_configuration=None)
V1beta1LoggerStorageSpec - a model defined in OpenAPI
key
@property
def key()
Gets the key of this V1beta1LoggerStorageSpec. # noqa: E501
The Storage Key in the secret for this object. # noqa: E501
Returns:
str
: The key of this V1beta1LoggerStorageSpec. # noqa: E501
key
@key.setter
def key(key)
Sets the key of this V1beta1LoggerStorageSpec.
The Storage Key in the secret for this object. # noqa: E501
Arguments:
key
: The key of this V1beta1LoggerStorageSpec. # noqa: E501
parameters
@property
def parameters()
Gets the parameters of this V1beta1LoggerStorageSpec. # noqa: E501
Parameters to override the default storage credentials and config. # noqa: E501
Returns:
dict(str, str)
: The parameters of this V1beta1LoggerStorageSpec. # noqa: E501
parameters
@parameters.setter
def parameters(parameters)
Sets the parameters of this V1beta1LoggerStorageSpec.
Parameters to override the default storage credentials and config. # noqa: E501
Arguments:
parameters
: The parameters of this V1beta1LoggerStorageSpec. # noqa: E501
path
@property
def path()
Gets the path of this V1beta1LoggerStorageSpec. # noqa: E501
The path to the object in the storage. Note that this path is relative to the storage URI. # noqa: E501
Returns:
str
: The path of this V1beta1LoggerStorageSpec. # noqa: E501
path
@path.setter
def path(path)
Sets the path of this V1beta1LoggerStorageSpec.
The path to the object in the storage. Note that this path is relative to the storage URI. # noqa: E501
Arguments:
path
: The path of this V1beta1LoggerStorageSpec. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1LoggerStorageSpec. # noqa: E501
Returns:
str
: The service_account_name of this V1beta1LoggerStorageSpec. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1LoggerStorageSpec.
Arguments:
service_account_name
: The service_account_name of this V1beta1LoggerStorageSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inference_target
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InferenceTarget
class V1alpha1InferenceTarget(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(node_name=None,
service_name=None,
service_url=None,
local_vars_configuration=None)
V1alpha1InferenceTarget - a model defined in OpenAPI
node_name
@property
def node_name()
Gets the node_name of this V1alpha1InferenceTarget. # noqa: E501
The node name for routing as next step # noqa: E501
Returns:
str
: The node_name of this V1alpha1InferenceTarget. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1alpha1InferenceTarget.
The node name for routing as next step # noqa: E501
Arguments:
node_name
: The node_name of this V1alpha1InferenceTarget. # noqa: E501
service_name
@property
def service_name()
Gets the service_name of this V1alpha1InferenceTarget. # noqa: E501
named reference for InferenceService # noqa: E501
Returns:
str
: The service_name of this V1alpha1InferenceTarget. # noqa: E501
service_name
@service_name.setter
def service_name(service_name)
Sets the service_name of this V1alpha1InferenceTarget.
named reference for InferenceService # noqa: E501
Arguments:
service_name
: The service_name of this V1alpha1InferenceTarget. # noqa: E501
service_url
@property
def service_url()
Gets the service_url of this V1alpha1InferenceTarget. # noqa: E501
InferenceService URL, mutually exclusive with ServiceName # noqa: E501
Returns:
str
: The service_url of this V1alpha1InferenceTarget. # noqa: E501
service_url
@service_url.setter
def service_url(service_url)
Sets the service_url of this V1alpha1InferenceTarget.
InferenceService URL, mutually exclusive with ServiceName # noqa: E501
Arguments:
service_url
: The service_url of this V1alpha1InferenceTarget. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_transformer_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1TransformerSpec
class V1beta1TransformerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
annotations=None,
auto_scaling=None,
automount_service_account_token=None,
batcher=None,
canary_traffic_percent=None,
container_concurrency=None,
containers=None,
deployment_strategy=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
image_pull_secrets=None,
init_containers=None,
labels=None,
logger=None,
max_replicas=None,
min_replicas=None,
node_name=None,
node_selector=None,
os=None,
overhead=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scale_metric=None,
scale_metric_type=None,
scale_target=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
subdomain=None,
termination_grace_period_seconds=None,
timeout=None,
tolerations=None,
topology_spread_constraints=None,
volumes=None,
local_vars_configuration=None)
V1beta1TransformerSpec - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1TransformerSpec. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1TransformerSpec. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1TransformerSpec.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1TransformerSpec. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1TransformerSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1TransformerSpec.
Arguments:
affinity
: The affinity of this V1beta1TransformerSpec. # noqa: E501
annotations
@property
def annotations()
Gets the annotations of this V1beta1TransformerSpec. # noqa: E501
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1beta1TransformerSpec. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1beta1TransformerSpec.
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Arguments:
annotations
: The annotations of this V1beta1TransformerSpec. # noqa: E501
auto_scaling
@property
def auto_scaling()
Gets the auto_scaling of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1beta1AutoScalingSpec
: The auto_scaling of this V1beta1TransformerSpec. # noqa: E501
auto_scaling
@auto_scaling.setter
def auto_scaling(auto_scaling)
Sets the auto_scaling of this V1beta1TransformerSpec.
Arguments:
auto_scaling
: The auto_scaling of this V1beta1TransformerSpec. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1TransformerSpec. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1TransformerSpec. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1TransformerSpec.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1TransformerSpec. # noqa: E501
batcher
@property
def batcher()
Gets the batcher of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1beta1Batcher
: The batcher of this V1beta1TransformerSpec. # noqa: E501
batcher
@batcher.setter
def batcher(batcher)
Sets the batcher of this V1beta1TransformerSpec.
Arguments:
batcher
: The batcher of this V1beta1TransformerSpec. # noqa: E501
canary_traffic_percent
@property
def canary_traffic_percent()
Gets the canary_traffic_percent of this V1beta1TransformerSpec. # noqa: E501
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Returns:
int
: The canary_traffic_percent of this V1beta1TransformerSpec. # noqa: E501
canary_traffic_percent
@canary_traffic_percent.setter
def canary_traffic_percent(canary_traffic_percent)
Sets the canary_traffic_percent of this V1beta1TransformerSpec.
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Arguments:
canary_traffic_percent
: The canary_traffic_percent of this V1beta1TransformerSpec. # noqa: E501
container_concurrency
@property
def container_concurrency()
Gets the container_concurrency of this V1beta1TransformerSpec. # noqa: E501
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Returns:
int
: The container_concurrency of this V1beta1TransformerSpec. # noqa: E501
container_concurrency
@container_concurrency.setter
def container_concurrency(container_concurrency)
Sets the container_concurrency of this V1beta1TransformerSpec.
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Arguments:
container_concurrency
: The container_concurrency of this V1beta1TransformerSpec. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1TransformerSpec. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1TransformerSpec. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1TransformerSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1TransformerSpec. # noqa: E501
deployment_strategy
@property
def deployment_strategy()
Gets the deployment_strategy of this V1beta1TransformerSpec. # noqa: E501
Returns:
K8sIoApiAppsV1DeploymentStrategy
: The deployment_strategy of this V1beta1TransformerSpec. # noqa: E501
deployment_strategy
@deployment_strategy.setter
def deployment_strategy(deployment_strategy)
Sets the deployment_strategy of this V1beta1TransformerSpec.
Arguments:
deployment_strategy
: The deployment_strategy of this V1beta1TransformerSpec. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1TransformerSpec. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1TransformerSpec.
Arguments:
dns_config
: The dns_config of this V1beta1TransformerSpec. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1TransformerSpec. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1TransformerSpec. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1TransformerSpec.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1TransformerSpec. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1TransformerSpec. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1TransformerSpec. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1TransformerSpec.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1TransformerSpec. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1TransformerSpec. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1TransformerSpec. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1TransformerSpec.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1TransformerSpec. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1TransformerSpec. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1TransformerSpec. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1TransformerSpec.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1TransformerSpec. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1TransformerSpec. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1TransformerSpec. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1TransformerSpec.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1TransformerSpec. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1TransformerSpec. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1TransformerSpec. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1TransformerSpec.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1TransformerSpec. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1TransformerSpec. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1TransformerSpec. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1TransformerSpec.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1TransformerSpec. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1TransformerSpec. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1TransformerSpec. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1TransformerSpec.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1TransformerSpec. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1TransformerSpec. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1TransformerSpec. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1TransformerSpec.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1TransformerSpec. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1TransformerSpec. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1TransformerSpec. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1TransformerSpec.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1TransformerSpec. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1TransformerSpec. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1TransformerSpec. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1TransformerSpec.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1TransformerSpec. # noqa: E501
labels
@property
def labels()
Gets the labels of this V1beta1TransformerSpec. # noqa: E501
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Returns:
dict(str, str)
: The labels of this V1beta1TransformerSpec. # noqa: E501
labels
@labels.setter
def labels(labels)
Sets the labels of this V1beta1TransformerSpec.
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Arguments:
labels
: The labels of this V1beta1TransformerSpec. # noqa: E501
logger
@property
def logger()
Gets the logger of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1beta1LoggerSpec
: The logger of this V1beta1TransformerSpec. # noqa: E501
logger
@logger.setter
def logger(logger)
Sets the logger of this V1beta1TransformerSpec.
Arguments:
logger
: The logger of this V1beta1TransformerSpec. # noqa: E501
max_replicas
@property
def max_replicas()
Gets the max_replicas of this V1beta1TransformerSpec. # noqa: E501
Maximum number of replicas for autoscaling. # noqa: E501
Returns:
int
: The max_replicas of this V1beta1TransformerSpec. # noqa: E501
max_replicas
@max_replicas.setter
def max_replicas(max_replicas)
Sets the max_replicas of this V1beta1TransformerSpec.
Maximum number of replicas for autoscaling. # noqa: E501
Arguments:
max_replicas
: The max_replicas of this V1beta1TransformerSpec. # noqa: E501
min_replicas
@property
def min_replicas()
Gets the min_replicas of this V1beta1TransformerSpec. # noqa: E501
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Returns:
int
: The min_replicas of this V1beta1TransformerSpec. # noqa: E501
min_replicas
@min_replicas.setter
def min_replicas(min_replicas)
Sets the min_replicas of this V1beta1TransformerSpec.
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Arguments:
min_replicas
: The min_replicas of this V1beta1TransformerSpec. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1TransformerSpec. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1TransformerSpec. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1TransformerSpec.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1TransformerSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1TransformerSpec. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1TransformerSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1TransformerSpec.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1TransformerSpec. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1TransformerSpec. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1TransformerSpec.
Arguments:
os
: The os of this V1beta1TransformerSpec. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1TransformerSpec. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1TransformerSpec. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1TransformerSpec.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1TransformerSpec. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1TransformerSpec. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1TransformerSpec. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1TransformerSpec.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1TransformerSpec. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1TransformerSpec. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1TransformerSpec. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1TransformerSpec.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1TransformerSpec. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1TransformerSpec. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1TransformerSpec. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1TransformerSpec.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1TransformerSpec. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1TransformerSpec. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1TransformerSpec. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1TransformerSpec.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1TransformerSpec. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1TransformerSpec. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1TransformerSpec. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1TransformerSpec.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1TransformerSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1TransformerSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1TransformerSpec.
Arguments:
resources
: The resources of this V1beta1TransformerSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1TransformerSpec. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1TransformerSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1TransformerSpec.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1TransformerSpec. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1TransformerSpec. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1TransformerSpec. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1TransformerSpec.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1TransformerSpec. # noqa: E501
scale_metric
@property
def scale_metric()
Gets the scale_metric of this V1beta1TransformerSpec. # noqa: E501
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Returns:
str
: The scale_metric of this V1beta1TransformerSpec. # noqa: E501
scale_metric
@scale_metric.setter
def scale_metric(scale_metric)
Sets the scale_metric of this V1beta1TransformerSpec.
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Arguments:
scale_metric
: The scale_metric of this V1beta1TransformerSpec. # noqa: E501
scale_metric_type
@property
def scale_metric_type()
Gets the scale_metric_type of this V1beta1TransformerSpec. # noqa: E501
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Returns:
str
: The scale_metric_type of this V1beta1TransformerSpec. # noqa: E501
scale_metric_type
@scale_metric_type.setter
def scale_metric_type(scale_metric_type)
Sets the scale_metric_type of this V1beta1TransformerSpec.
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Arguments:
scale_metric_type
: The scale_metric_type of this V1beta1TransformerSpec. # noqa: E501
scale_target
@property
def scale_target()
Gets the scale_target of this V1beta1TransformerSpec. # noqa: E501
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Returns:
int
: The scale_target of this V1beta1TransformerSpec. # noqa: E501
scale_target
@scale_target.setter
def scale_target(scale_target)
Sets the scale_target of this V1beta1TransformerSpec.
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Arguments:
scale_target
: The scale_target of this V1beta1TransformerSpec. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1TransformerSpec. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1TransformerSpec. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1TransformerSpec.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1TransformerSpec. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1TransformerSpec. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1TransformerSpec. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1TransformerSpec.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1TransformerSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1TransformerSpec. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1TransformerSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1TransformerSpec.
Arguments:
security_context
: The security_context of this V1beta1TransformerSpec. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1TransformerSpec. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1TransformerSpec. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1TransformerSpec.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1TransformerSpec. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1TransformerSpec. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1TransformerSpec. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1TransformerSpec.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1TransformerSpec. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1TransformerSpec. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1TransformerSpec. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1TransformerSpec.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1TransformerSpec. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1TransformerSpec. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1TransformerSpec. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1TransformerSpec.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1TransformerSpec. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1TransformerSpec. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1TransformerSpec. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1TransformerSpec.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1TransformerSpec. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1TransformerSpec. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1TransformerSpec. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1TransformerSpec.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1TransformerSpec. # noqa: E501
timeout
@property
def timeout()
Gets the timeout of this V1beta1TransformerSpec. # noqa: E501
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Returns:
int
: The timeout of this V1beta1TransformerSpec. # noqa: E501
timeout
@timeout.setter
def timeout(timeout)
Sets the timeout of this V1beta1TransformerSpec.
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Arguments:
timeout
: The timeout of this V1beta1TransformerSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1TransformerSpec. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1TransformerSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1TransformerSpec.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1TransformerSpec. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1TransformerSpec. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1TransformerSpec. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1TransformerSpec.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1TransformerSpec. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1TransformerSpec. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1TransformerSpec. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1TransformerSpec.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1TransformerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_storage_helper
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1StorageHelper
class V1alpha1StorageHelper(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(disabled=None, local_vars_configuration=None)
V1alpha1StorageHelper - a model defined in OpenAPI
disabled
@property
def disabled()
Gets the disabled of this V1alpha1StorageHelper. # noqa: E501
Returns:
bool
: The disabled of this V1alpha1StorageHelper. # noqa: E501
disabled
@disabled.setter
def disabled(disabled)
Sets the disabled of this V1alpha1StorageHelper.
Arguments:
disabled
: The disabled of this V1alpha1StorageHelper. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_security_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1SecurityConfig
class V1beta1SecurityConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(auto_mount_service_account_token=False,
local_vars_configuration=None)
V1beta1SecurityConfig - a model defined in OpenAPI
auto_mount_service_account_token
@property
def auto_mount_service_account_token()
Gets the auto_mount_service_account_token of this V1beta1SecurityConfig. # noqa: E501
Returns:
bool
: The auto_mount_service_account_token of this V1beta1SecurityConfig. # noqa: E501
auto_mount_service_account_token
@auto_mount_service_account_token.setter
def auto_mount_service_account_token(auto_mount_service_account_token)
Sets the auto_mount_service_account_token of this V1beta1SecurityConfig.
Arguments:
auto_mount_service_account_token
: The auto_mount_service_account_token of this V1beta1SecurityConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_node_group_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelNodeGroupSpec
class V1alpha1LocalModelNodeGroupSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(persistent_volume_claim_spec=None,
persistent_volume_spec=None,
storage_limit=None,
local_vars_configuration=None)
V1alpha1LocalModelNodeGroupSpec - a model defined in OpenAPI
persistent_volume_claim_spec
@property
def persistent_volume_claim_spec()
Gets the persistent_volume_claim_spec of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
Returns:
V1PersistentVolumeClaimSpec
: The persistent_volume_claim_spec of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
persistent_volume_claim_spec
@persistent_volume_claim_spec.setter
def persistent_volume_claim_spec(persistent_volume_claim_spec)
Sets the persistent_volume_claim_spec of this V1alpha1LocalModelNodeGroupSpec.
Arguments:
persistent_volume_claim_spec
: The persistent_volume_claim_spec of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
persistent_volume_spec
@property
def persistent_volume_spec()
Gets the persistent_volume_spec of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
Returns:
V1PersistentVolumeSpec
: The persistent_volume_spec of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
persistent_volume_spec
@persistent_volume_spec.setter
def persistent_volume_spec(persistent_volume_spec)
Sets the persistent_volume_spec of this V1alpha1LocalModelNodeGroupSpec.
Arguments:
persistent_volume_spec
: The persistent_volume_spec of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
storage_limit
@property
def storage_limit()
Gets the storage_limit of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
Returns:
ResourceQuantity
: The storage_limit of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
storage_limit
@storage_limit.setter
def storage_limit(storage_limit)
Sets the storage_limit of this V1alpha1LocalModelNodeGroupSpec.
Arguments:
storage_limit
: The storage_limit of this V1alpha1LocalModelNodeGroupSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_inference_service_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1InferenceServiceSpec
class V1beta1InferenceServiceSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(explainer=None,
predictor=None,
transformer=None,
local_vars_configuration=None)
V1beta1InferenceServiceSpec - a model defined in OpenAPI
explainer
@property
def explainer()
Gets the explainer of this V1beta1InferenceServiceSpec. # noqa: E501
Returns:
V1beta1ExplainerSpec
: The explainer of this V1beta1InferenceServiceSpec. # noqa: E501
explainer
@explainer.setter
def explainer(explainer)
Sets the explainer of this V1beta1InferenceServiceSpec.
Arguments:
explainer
: The explainer of this V1beta1InferenceServiceSpec. # noqa: E501
predictor
@property
def predictor()
Gets the predictor of this V1beta1InferenceServiceSpec. # noqa: E501
Returns:
V1beta1PredictorSpec
: The predictor of this V1beta1InferenceServiceSpec. # noqa: E501
predictor
@predictor.setter
def predictor(predictor)
Sets the predictor of this V1beta1InferenceServiceSpec.
Arguments:
predictor
: The predictor of this V1beta1InferenceServiceSpec. # noqa: E501
transformer
@property
def transformer()
Gets the transformer of this V1beta1InferenceServiceSpec. # noqa: E501
Returns:
V1beta1TransformerSpec
: The transformer of this V1beta1InferenceServiceSpec. # noqa: E501
transformer
@transformer.setter
def transformer(transformer)
Sets the transformer of this V1beta1InferenceServiceSpec.
Arguments:
transformer
: The transformer of this V1beta1InferenceServiceSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_predictor_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PredictorSpec
class V1beta1PredictorSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
annotations=None,
auto_scaling=None,
automount_service_account_token=None,
batcher=None,
canary_traffic_percent=None,
container_concurrency=None,
containers=None,
deployment_strategy=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
huggingface=None,
image_pull_secrets=None,
init_containers=None,
labels=None,
lightgbm=None,
logger=None,
max_replicas=None,
min_replicas=None,
model=None,
node_name=None,
node_selector=None,
onnx=None,
os=None,
overhead=None,
paddle=None,
pmml=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
pytorch=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scale_metric=None,
scale_metric_type=None,
scale_target=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
sklearn=None,
subdomain=None,
tensorflow=None,
termination_grace_period_seconds=None,
timeout=None,
tolerations=None,
topology_spread_constraints=None,
triton=None,
volumes=None,
worker_spec=None,
xgboost=None,
local_vars_configuration=None)
V1beta1PredictorSpec - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1PredictorSpec. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1PredictorSpec. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1PredictorSpec.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1PredictorSpec. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1PredictorSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1PredictorSpec.
Arguments:
affinity
: The affinity of this V1beta1PredictorSpec. # noqa: E501
annotations
@property
def annotations()
Gets the annotations of this V1beta1PredictorSpec. # noqa: E501
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1beta1PredictorSpec. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1beta1PredictorSpec.
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Arguments:
annotations
: The annotations of this V1beta1PredictorSpec. # noqa: E501
auto_scaling
@property
def auto_scaling()
Gets the auto_scaling of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1AutoScalingSpec
: The auto_scaling of this V1beta1PredictorSpec. # noqa: E501
auto_scaling
@auto_scaling.setter
def auto_scaling(auto_scaling)
Sets the auto_scaling of this V1beta1PredictorSpec.
Arguments:
auto_scaling
: The auto_scaling of this V1beta1PredictorSpec. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1PredictorSpec. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1PredictorSpec. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1PredictorSpec.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1PredictorSpec. # noqa: E501
batcher
@property
def batcher()
Gets the batcher of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1Batcher
: The batcher of this V1beta1PredictorSpec. # noqa: E501
batcher
@batcher.setter
def batcher(batcher)
Sets the batcher of this V1beta1PredictorSpec.
Arguments:
batcher
: The batcher of this V1beta1PredictorSpec. # noqa: E501
canary_traffic_percent
@property
def canary_traffic_percent()
Gets the canary_traffic_percent of this V1beta1PredictorSpec. # noqa: E501
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Returns:
int
: The canary_traffic_percent of this V1beta1PredictorSpec. # noqa: E501
canary_traffic_percent
@canary_traffic_percent.setter
def canary_traffic_percent(canary_traffic_percent)
Sets the canary_traffic_percent of this V1beta1PredictorSpec.
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Arguments:
canary_traffic_percent
: The canary_traffic_percent of this V1beta1PredictorSpec. # noqa: E501
container_concurrency
@property
def container_concurrency()
Gets the container_concurrency of this V1beta1PredictorSpec. # noqa: E501
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Returns:
int
: The container_concurrency of this V1beta1PredictorSpec. # noqa: E501
container_concurrency
@container_concurrency.setter
def container_concurrency(container_concurrency)
Sets the container_concurrency of this V1beta1PredictorSpec.
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Arguments:
container_concurrency
: The container_concurrency of this V1beta1PredictorSpec. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1PredictorSpec. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1PredictorSpec. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1PredictorSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1PredictorSpec. # noqa: E501
deployment_strategy
@property
def deployment_strategy()
Gets the deployment_strategy of this V1beta1PredictorSpec. # noqa: E501
Returns:
K8sIoApiAppsV1DeploymentStrategy
: The deployment_strategy of this V1beta1PredictorSpec. # noqa: E501
deployment_strategy
@deployment_strategy.setter
def deployment_strategy(deployment_strategy)
Sets the deployment_strategy of this V1beta1PredictorSpec.
Arguments:
deployment_strategy
: The deployment_strategy of this V1beta1PredictorSpec. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1PredictorSpec. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1PredictorSpec.
Arguments:
dns_config
: The dns_config of this V1beta1PredictorSpec. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1PredictorSpec. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1PredictorSpec. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1PredictorSpec.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1PredictorSpec. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1PredictorSpec. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1PredictorSpec. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1PredictorSpec.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1PredictorSpec. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1PredictorSpec. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1PredictorSpec. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1PredictorSpec.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1PredictorSpec. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1PredictorSpec. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1PredictorSpec. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1PredictorSpec.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1PredictorSpec. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1PredictorSpec. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1PredictorSpec. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1PredictorSpec.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1PredictorSpec. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1PredictorSpec. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1PredictorSpec. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1PredictorSpec.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1PredictorSpec. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1PredictorSpec. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1PredictorSpec. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1PredictorSpec.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1PredictorSpec. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1PredictorSpec. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1PredictorSpec. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1PredictorSpec.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1PredictorSpec. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1PredictorSpec. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1PredictorSpec. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1PredictorSpec.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1PredictorSpec. # noqa: E501
huggingface
@property
def huggingface()
Gets the huggingface of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1HuggingFaceRuntimeSpec
: The huggingface of this V1beta1PredictorSpec. # noqa: E501
huggingface
@huggingface.setter
def huggingface(huggingface)
Sets the huggingface of this V1beta1PredictorSpec.
Arguments:
huggingface
: The huggingface of this V1beta1PredictorSpec. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1PredictorSpec. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1PredictorSpec. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1PredictorSpec.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1PredictorSpec. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1PredictorSpec. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1PredictorSpec. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1PredictorSpec.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1PredictorSpec. # noqa: E501
labels
@property
def labels()
Gets the labels of this V1beta1PredictorSpec. # noqa: E501
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Returns:
dict(str, str)
: The labels of this V1beta1PredictorSpec. # noqa: E501
labels
@labels.setter
def labels(labels)
Sets the labels of this V1beta1PredictorSpec.
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Arguments:
labels
: The labels of this V1beta1PredictorSpec. # noqa: E501
lightgbm
@property
def lightgbm()
Gets the lightgbm of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1LightGBMSpec
: The lightgbm of this V1beta1PredictorSpec. # noqa: E501
lightgbm
@lightgbm.setter
def lightgbm(lightgbm)
Sets the lightgbm of this V1beta1PredictorSpec.
Arguments:
lightgbm
: The lightgbm of this V1beta1PredictorSpec. # noqa: E501
logger
@property
def logger()
Gets the logger of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1LoggerSpec
: The logger of this V1beta1PredictorSpec. # noqa: E501
logger
@logger.setter
def logger(logger)
Sets the logger of this V1beta1PredictorSpec.
Arguments:
logger
: The logger of this V1beta1PredictorSpec. # noqa: E501
max_replicas
@property
def max_replicas()
Gets the max_replicas of this V1beta1PredictorSpec. # noqa: E501
Maximum number of replicas for autoscaling. # noqa: E501
Returns:
int
: The max_replicas of this V1beta1PredictorSpec. # noqa: E501
max_replicas
@max_replicas.setter
def max_replicas(max_replicas)
Sets the max_replicas of this V1beta1PredictorSpec.
Maximum number of replicas for autoscaling. # noqa: E501
Arguments:
max_replicas
: The max_replicas of this V1beta1PredictorSpec. # noqa: E501
min_replicas
@property
def min_replicas()
Gets the min_replicas of this V1beta1PredictorSpec. # noqa: E501
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Returns:
int
: The min_replicas of this V1beta1PredictorSpec. # noqa: E501
min_replicas
@min_replicas.setter
def min_replicas(min_replicas)
Sets the min_replicas of this V1beta1PredictorSpec.
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Arguments:
min_replicas
: The min_replicas of this V1beta1PredictorSpec. # noqa: E501
model
@property
def model()
Gets the model of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1ModelSpec
: The model of this V1beta1PredictorSpec. # noqa: E501
model
@model.setter
def model(model)
Sets the model of this V1beta1PredictorSpec.
Arguments:
model
: The model of this V1beta1PredictorSpec. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1PredictorSpec. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1PredictorSpec. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1PredictorSpec.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1PredictorSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1PredictorSpec. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1PredictorSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1PredictorSpec.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1PredictorSpec. # noqa: E501
onnx
@property
def onnx()
Gets the onnx of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1ONNXRuntimeSpec
: The onnx of this V1beta1PredictorSpec. # noqa: E501
onnx
@onnx.setter
def onnx(onnx)
Sets the onnx of this V1beta1PredictorSpec.
Arguments:
onnx
: The onnx of this V1beta1PredictorSpec. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1PredictorSpec. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1PredictorSpec.
Arguments:
os
: The os of this V1beta1PredictorSpec. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1PredictorSpec. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1PredictorSpec. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1PredictorSpec.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1PredictorSpec. # noqa: E501
paddle
@property
def paddle()
Gets the paddle of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1PaddleServerSpec
: The paddle of this V1beta1PredictorSpec. # noqa: E501
paddle
@paddle.setter
def paddle(paddle)
Sets the paddle of this V1beta1PredictorSpec.
Arguments:
paddle
: The paddle of this V1beta1PredictorSpec. # noqa: E501
pmml
@property
def pmml()
Gets the pmml of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1PMMLSpec
: The pmml of this V1beta1PredictorSpec. # noqa: E501
pmml
@pmml.setter
def pmml(pmml)
Sets the pmml of this V1beta1PredictorSpec.
Arguments:
pmml
: The pmml of this V1beta1PredictorSpec. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1PredictorSpec. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1PredictorSpec. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1PredictorSpec.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1PredictorSpec. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1PredictorSpec. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1PredictorSpec. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1PredictorSpec.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1PredictorSpec. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1PredictorSpec. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1PredictorSpec. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1PredictorSpec.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1PredictorSpec. # noqa: E501
pytorch
@property
def pytorch()
Gets the pytorch of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1TorchServeSpec
: The pytorch of this V1beta1PredictorSpec. # noqa: E501
pytorch
@pytorch.setter
def pytorch(pytorch)
Sets the pytorch of this V1beta1PredictorSpec.
Arguments:
pytorch
: The pytorch of this V1beta1PredictorSpec. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1PredictorSpec. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1PredictorSpec. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1PredictorSpec.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1PredictorSpec. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1PredictorSpec. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1PredictorSpec. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1PredictorSpec.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1PredictorSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1PredictorSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1PredictorSpec.
Arguments:
resources
: The resources of this V1beta1PredictorSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1PredictorSpec. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1PredictorSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1PredictorSpec.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1PredictorSpec. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1PredictorSpec. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1PredictorSpec. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1PredictorSpec.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1PredictorSpec. # noqa: E501
scale_metric
@property
def scale_metric()
Gets the scale_metric of this V1beta1PredictorSpec. # noqa: E501
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Returns:
str
: The scale_metric of this V1beta1PredictorSpec. # noqa: E501
scale_metric
@scale_metric.setter
def scale_metric(scale_metric)
Sets the scale_metric of this V1beta1PredictorSpec.
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Arguments:
scale_metric
: The scale_metric of this V1beta1PredictorSpec. # noqa: E501
scale_metric_type
@property
def scale_metric_type()
Gets the scale_metric_type of this V1beta1PredictorSpec. # noqa: E501
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Returns:
str
: The scale_metric_type of this V1beta1PredictorSpec. # noqa: E501
scale_metric_type
@scale_metric_type.setter
def scale_metric_type(scale_metric_type)
Sets the scale_metric_type of this V1beta1PredictorSpec.
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Arguments:
scale_metric_type
: The scale_metric_type of this V1beta1PredictorSpec. # noqa: E501
scale_target
@property
def scale_target()
Gets the scale_target of this V1beta1PredictorSpec. # noqa: E501
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Returns:
int
: The scale_target of this V1beta1PredictorSpec. # noqa: E501
scale_target
@scale_target.setter
def scale_target(scale_target)
Sets the scale_target of this V1beta1PredictorSpec.
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Arguments:
scale_target
: The scale_target of this V1beta1PredictorSpec. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1PredictorSpec. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1PredictorSpec. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1PredictorSpec.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1PredictorSpec. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1PredictorSpec. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1PredictorSpec. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1PredictorSpec.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1PredictorSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1PredictorSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1PredictorSpec.
Arguments:
security_context
: The security_context of this V1beta1PredictorSpec. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1PredictorSpec. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1PredictorSpec. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1PredictorSpec.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1PredictorSpec. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1PredictorSpec. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1PredictorSpec. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1PredictorSpec.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1PredictorSpec. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1PredictorSpec. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1PredictorSpec. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1PredictorSpec.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1PredictorSpec. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1PredictorSpec. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1PredictorSpec. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1PredictorSpec.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1PredictorSpec. # noqa: E501
sklearn
@property
def sklearn()
Gets the sklearn of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1SKLearnSpec
: The sklearn of this V1beta1PredictorSpec. # noqa: E501
sklearn
@sklearn.setter
def sklearn(sklearn)
Sets the sklearn of this V1beta1PredictorSpec.
Arguments:
sklearn
: The sklearn of this V1beta1PredictorSpec. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1PredictorSpec. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1PredictorSpec. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1PredictorSpec.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1PredictorSpec. # noqa: E501
tensorflow
@property
def tensorflow()
Gets the tensorflow of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1TFServingSpec
: The tensorflow of this V1beta1PredictorSpec. # noqa: E501
tensorflow
@tensorflow.setter
def tensorflow(tensorflow)
Sets the tensorflow of this V1beta1PredictorSpec.
Arguments:
tensorflow
: The tensorflow of this V1beta1PredictorSpec. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1PredictorSpec. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1PredictorSpec. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1PredictorSpec.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1PredictorSpec. # noqa: E501
timeout
@property
def timeout()
Gets the timeout of this V1beta1PredictorSpec. # noqa: E501
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Returns:
int
: The timeout of this V1beta1PredictorSpec. # noqa: E501
timeout
@timeout.setter
def timeout(timeout)
Sets the timeout of this V1beta1PredictorSpec.
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Arguments:
timeout
: The timeout of this V1beta1PredictorSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1PredictorSpec. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1PredictorSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1PredictorSpec.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1PredictorSpec. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1PredictorSpec. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1PredictorSpec. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1PredictorSpec.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1PredictorSpec. # noqa: E501
triton
@property
def triton()
Gets the triton of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1TritonSpec
: The triton of this V1beta1PredictorSpec. # noqa: E501
triton
@triton.setter
def triton(triton)
Sets the triton of this V1beta1PredictorSpec.
Arguments:
triton
: The triton of this V1beta1PredictorSpec. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1PredictorSpec. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1PredictorSpec. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1PredictorSpec.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1PredictorSpec. # noqa: E501
worker_spec
@property
def worker_spec()
Gets the worker_spec of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1WorkerSpec
: The worker_spec of this V1beta1PredictorSpec. # noqa: E501
worker_spec
@worker_spec.setter
def worker_spec(worker_spec)
Sets the worker_spec of this V1beta1PredictorSpec.
Arguments:
worker_spec
: The worker_spec of this V1beta1PredictorSpec. # noqa: E501
xgboost
@property
def xgboost()
Gets the xgboost of this V1beta1PredictorSpec. # noqa: E501
Returns:
V1beta1XGBoostSpec
: The xgboost of this V1beta1PredictorSpec. # noqa: E501
xgboost
@xgboost.setter
def xgboost(xgboost)
Sets the xgboost of this V1beta1PredictorSpec.
Arguments:
xgboost
: The xgboost of this V1beta1PredictorSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_node_group
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelNodeGroup
class V1alpha1LocalModelNodeGroup(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1LocalModelNodeGroup - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LocalModelNodeGroup. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LocalModelNodeGroup. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LocalModelNodeGroup.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LocalModelNodeGroup. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LocalModelNodeGroup. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LocalModelNodeGroup. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LocalModelNodeGroup.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LocalModelNodeGroup. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LocalModelNodeGroup. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1LocalModelNodeGroup. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LocalModelNodeGroup.
Arguments:
metadata
: The metadata of this V1alpha1LocalModelNodeGroup. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1LocalModelNodeGroup. # noqa: E501
Returns:
V1alpha1LocalModelNodeGroupSpec
: The spec of this V1alpha1LocalModelNodeGroup. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1LocalModelNodeGroup.
Arguments:
spec
: The spec of this V1alpha1LocalModelNodeGroup. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1LocalModelNodeGroup. # noqa: E501
Returns:
V1alpha1LocalModelNodeGroupStatus
: The status of this V1alpha1LocalModelNodeGroup. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1LocalModelNodeGroup.
Arguments:
status
: The status of this V1alpha1LocalModelNodeGroup. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_metrics_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1MetricsSpec
class V1beta1MetricsSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(external=None,
podmetric=None,
resource=None,
type='',
local_vars_configuration=None)
V1beta1MetricsSpec - a model defined in OpenAPI
external
@property
def external()
Gets the external of this V1beta1MetricsSpec. # noqa: E501
Returns:
V1beta1ExternalMetricSource
: The external of this V1beta1MetricsSpec. # noqa: E501
external
@external.setter
def external(external)
Sets the external of this V1beta1MetricsSpec.
Arguments:
external
: The external of this V1beta1MetricsSpec. # noqa: E501
podmetric
@property
def podmetric()
Gets the podmetric of this V1beta1MetricsSpec. # noqa: E501
Returns:
V1beta1PodMetricSource
: The podmetric of this V1beta1MetricsSpec. # noqa: E501
podmetric
@podmetric.setter
def podmetric(podmetric)
Sets the podmetric of this V1beta1MetricsSpec.
Arguments:
podmetric
: The podmetric of this V1beta1MetricsSpec. # noqa: E501
resource
@property
def resource()
Gets the resource of this V1beta1MetricsSpec. # noqa: E501
Returns:
V1beta1ResourceMetricSource
: The resource of this V1beta1MetricsSpec. # noqa: E501
resource
@resource.setter
def resource(resource)
Sets the resource of this V1beta1MetricsSpec.
Arguments:
resource
: The resource of this V1beta1MetricsSpec. # noqa: E501
type
@property
def type()
Gets the type of this V1beta1MetricsSpec. # noqa: E501
type is the type of metric source. It should be one of "Resource", "External", "PodMetric". "Resource" or "External" each mapping to a matching field in the object. # noqa: E501
Returns:
str
: The type of this V1beta1MetricsSpec. # noqa: E501
type
@type.setter
def type(type)
Sets the type of this V1beta1MetricsSpec.
type is the type of metric source. It should be one of "Resource", "External", "PodMetric". "Resource" or "External" each mapping to a matching field in the object. # noqa: E501
Arguments:
type
: The type of this V1beta1MetricsSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_node_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelNodeSpec
class V1alpha1LocalModelNodeSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(local_models=None, local_vars_configuration=None)
V1alpha1LocalModelNodeSpec - a model defined in OpenAPI
local_models
@property
def local_models()
Gets the local_models of this V1alpha1LocalModelNodeSpec. # noqa: E501
List of model source URI and their names # noqa: E501
Returns:
list[V1alpha1LocalModelInfo]
: The local_models of this V1alpha1LocalModelNodeSpec. # noqa: E501
local_models
@local_models.setter
def local_models(local_models)
Sets the local_models of this V1alpha1LocalModelNodeSpec.
List of model source URI and their names # noqa: E501
Arguments:
local_models
: The local_models of this V1alpha1LocalModelNodeSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_model_format
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ModelFormat
class V1beta1ModelFormat(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(name='', version=None, local_vars_configuration=None)
V1beta1ModelFormat - a model defined in OpenAPI
name
@property
def name()
Gets the name of this V1beta1ModelFormat. # noqa: E501
Name of the model format. # noqa: E501
Returns:
str
: The name of this V1beta1ModelFormat. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1ModelFormat.
Name of the model format. # noqa: E501
Arguments:
name
: The name of this V1beta1ModelFormat. # noqa: E501
version
@property
def version()
Gets the version of this V1beta1ModelFormat. # noqa: E501
Version of the model format. Used in validating that a predictor is supported by a runtime. Can be "major", "major.minor" or "major.minor.patch". # noqa: E501
Returns:
str
: The version of this V1beta1ModelFormat. # noqa: E501
version
@version.setter
def version(version)
Sets the version of this V1beta1ModelFormat.
Version of the model format. Used in validating that a predictor is supported by a runtime. Can be "major", "major.minor" or "major.minor.patch". # noqa: E501
Arguments:
version
: The version of this V1beta1ModelFormat. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inference_step
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InferenceStep
class V1alpha1InferenceStep(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(condition=None,
data=None,
dependency=None,
name=None,
node_name=None,
service_name=None,
service_url=None,
weight=None,
local_vars_configuration=None)
V1alpha1InferenceStep - a model defined in OpenAPI
condition
@property
def condition()
Gets the condition of this V1alpha1InferenceStep. # noqa: E501
routing based on the condition # noqa: E501
Returns:
str
: The condition of this V1alpha1InferenceStep. # noqa: E501
condition
@condition.setter
def condition(condition)
Sets the condition of this V1alpha1InferenceStep.
routing based on the condition # noqa: E501
Arguments:
condition
: The condition of this V1alpha1InferenceStep. # noqa: E501
data
@property
def data()
Gets the data of this V1alpha1InferenceStep. # noqa: E501
request data sent to the next route with input/output from the previous step $request $response.predictions # noqa: E501
Returns:
str
: The data of this V1alpha1InferenceStep. # noqa: E501
data
@data.setter
def data(data)
Sets the data of this V1alpha1InferenceStep.
request data sent to the next route with input/output from the previous step $request $response.predictions # noqa: E501
Arguments:
data
: The data of this V1alpha1InferenceStep. # noqa: E501
dependency
@property
def dependency()
Gets the dependency of this V1alpha1InferenceStep. # noqa: E501
to decide whether a step is a hard or a soft dependency in the Inference Graph # noqa: E501
Returns:
str
: The dependency of this V1alpha1InferenceStep. # noqa: E501
dependency
@dependency.setter
def dependency(dependency)
Sets the dependency of this V1alpha1InferenceStep.
to decide whether a step is a hard or a soft dependency in the Inference Graph # noqa: E501
Arguments:
dependency
: The dependency of this V1alpha1InferenceStep. # noqa: E501
name
@property
def name()
Gets the name of this V1alpha1InferenceStep. # noqa: E501
Unique name for the step within this node # noqa: E501
Returns:
str
: The name of this V1alpha1InferenceStep. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1alpha1InferenceStep.
Unique name for the step within this node # noqa: E501
Arguments:
name
: The name of this V1alpha1InferenceStep. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1alpha1InferenceStep. # noqa: E501
The node name for routing as next step # noqa: E501
Returns:
str
: The node_name of this V1alpha1InferenceStep. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1alpha1InferenceStep.
The node name for routing as next step # noqa: E501
Arguments:
node_name
: The node_name of this V1alpha1InferenceStep. # noqa: E501
service_name
@property
def service_name()
Gets the service_name of this V1alpha1InferenceStep. # noqa: E501
named reference for InferenceService # noqa: E501
Returns:
str
: The service_name of this V1alpha1InferenceStep. # noqa: E501
service_name
@service_name.setter
def service_name(service_name)
Sets the service_name of this V1alpha1InferenceStep.
named reference for InferenceService # noqa: E501
Arguments:
service_name
: The service_name of this V1alpha1InferenceStep. # noqa: E501
service_url
@property
def service_url()
Gets the service_url of this V1alpha1InferenceStep. # noqa: E501
InferenceService URL, mutually exclusive with ServiceName # noqa: E501
Returns:
str
: The service_url of this V1alpha1InferenceStep. # noqa: E501
service_url
@service_url.setter
def service_url(service_url)
Sets the service_url of this V1alpha1InferenceStep.
InferenceService URL, mutually exclusive with ServiceName # noqa: E501
Arguments:
service_url
: The service_url of this V1alpha1InferenceStep. # noqa: E501
weight
@property
def weight()
Gets the weight of this V1alpha1InferenceStep. # noqa: E501
the weight for split of the traffic, only used for Split Router when weight is specified all the routing targets should be sum to 100 # noqa: E501
Returns:
int
: The weight of this V1alpha1InferenceStep. # noqa: E501
weight
@weight.setter
def weight(weight)
Sets the weight of this V1alpha1InferenceStep.
the weight for split of the traffic, only used for Split Router when weight is specified all the routing targets should be sum to 100 # noqa: E501
Arguments:
weight
: The weight of this V1alpha1InferenceStep. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_cache
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelCache
class V1alpha1LocalModelCache(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1LocalModelCache - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LocalModelCache. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LocalModelCache. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LocalModelCache.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LocalModelCache. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LocalModelCache. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LocalModelCache. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LocalModelCache.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LocalModelCache. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LocalModelCache. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1LocalModelCache. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LocalModelCache.
Arguments:
metadata
: The metadata of this V1alpha1LocalModelCache. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1LocalModelCache. # noqa: E501
Returns:
V1alpha1LocalModelCacheSpec
: The spec of this V1alpha1LocalModelCache. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1LocalModelCache.
Arguments:
spec
: The spec of this V1alpha1LocalModelCache. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1LocalModelCache. # noqa: E501
Returns:
V1alpha1LocalModelCacheStatus
: The status of this V1alpha1LocalModelCache. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1LocalModelCache.
Arguments:
status
: The status of this V1alpha1LocalModelCache. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_resource_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ResourceConfig
class V1beta1ResourceConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(cpu_limit=None,
cpu_request=None,
memory_limit=None,
memory_request=None,
local_vars_configuration=None)
V1beta1ResourceConfig - a model defined in OpenAPI
cpu_limit
@property
def cpu_limit()
Gets the cpu_limit of this V1beta1ResourceConfig. # noqa: E501
Returns:
str
: The cpu_limit of this V1beta1ResourceConfig. # noqa: E501
cpu_limit
@cpu_limit.setter
def cpu_limit(cpu_limit)
Sets the cpu_limit of this V1beta1ResourceConfig.
Arguments:
cpu_limit
: The cpu_limit of this V1beta1ResourceConfig. # noqa: E501
cpu_request
@property
def cpu_request()
Gets the cpu_request of this V1beta1ResourceConfig. # noqa: E501
Returns:
str
: The cpu_request of this V1beta1ResourceConfig. # noqa: E501
cpu_request
@cpu_request.setter
def cpu_request(cpu_request)
Sets the cpu_request of this V1beta1ResourceConfig.
Arguments:
cpu_request
: The cpu_request of this V1beta1ResourceConfig. # noqa: E501
memory_limit
@property
def memory_limit()
Gets the memory_limit of this V1beta1ResourceConfig. # noqa: E501
Returns:
str
: The memory_limit of this V1beta1ResourceConfig. # noqa: E501
memory_limit
@memory_limit.setter
def memory_limit(memory_limit)
Sets the memory_limit of this V1beta1ResourceConfig.
Arguments:
memory_limit
: The memory_limit of this V1beta1ResourceConfig. # noqa: E501
memory_request
@property
def memory_request()
Gets the memory_request of this V1beta1ResourceConfig. # noqa: E501
Returns:
str
: The memory_request of this V1beta1ResourceConfig. # noqa: E501
memory_request
@memory_request.setter
def memory_request(memory_request)
Sets the memory_request of this V1beta1ResourceConfig.
Arguments:
memory_request
: The memory_request of this V1beta1ResourceConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_external_metrics
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ExternalMetrics
class V1beta1ExternalMetrics(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(backend='',
namespace=None,
query=None,
server_address=None,
local_vars_configuration=None)
V1beta1ExternalMetrics - a model defined in OpenAPI
backend
@property
def backend()
Gets the backend of this V1beta1ExternalMetrics. # noqa: E501
MetricsBackend defines the scaling metric type watched by autoscaler possible values are prometheus, graphite. # noqa: E501
Returns:
str
: The backend of this V1beta1ExternalMetrics. # noqa: E501
backend
@backend.setter
def backend(backend)
Sets the backend of this V1beta1ExternalMetrics.
MetricsBackend defines the scaling metric type watched by autoscaler possible values are prometheus, graphite. # noqa: E501
Arguments:
backend
: The backend of this V1beta1ExternalMetrics. # noqa: E501
namespace
@property
def namespace()
Gets the namespace of this V1beta1ExternalMetrics. # noqa: E501
For namespaced query # noqa: E501
Returns:
str
: The namespace of this V1beta1ExternalMetrics. # noqa: E501
namespace
@namespace.setter
def namespace(namespace)
Sets the namespace of this V1beta1ExternalMetrics.
For namespaced query # noqa: E501
Arguments:
namespace
: The namespace of this V1beta1ExternalMetrics. # noqa: E501
query
@property
def query()
Gets the query of this V1beta1ExternalMetrics. # noqa: E501
Query to run to get metrics from MetricsBackend # noqa: E501
Returns:
str
: The query of this V1beta1ExternalMetrics. # noqa: E501
query
@query.setter
def query(query)
Sets the query of this V1beta1ExternalMetrics.
Query to run to get metrics from MetricsBackend # noqa: E501
Arguments:
query
: The query of this V1beta1ExternalMetrics. # noqa: E501
server_address
@property
def server_address()
Gets the server_address of this V1beta1ExternalMetrics. # noqa: E501
Address of MetricsBackend server. # noqa: E501
Returns:
str
: The server_address of this V1beta1ExternalMetrics. # noqa: E501
server_address
@server_address.setter
def server_address(server_address)
Sets the server_address of this V1beta1ExternalMetrics.
Address of MetricsBackend server. # noqa: E501
Arguments:
server_address
: The server_address of this V1beta1ExternalMetrics. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1_time
KServe
Python SDK for KServe # noqa: E501
OpenAPI spec version: v0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
V1Time
class V1Time(object)
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
__init__
def __init__()
V1Time - a model defined in Swagger
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_predictors_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PredictorsConfig
class V1beta1PredictorsConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(lightgbm=None,
onnx=None,
paddle=None,
pmml=None,
pytorch=None,
sklearn=None,
tensorflow=None,
triton=None,
xgboost=None,
local_vars_configuration=None)
V1beta1PredictorsConfig - a model defined in OpenAPI
lightgbm
@property
def lightgbm()
Gets the lightgbm of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorConfig
: The lightgbm of this V1beta1PredictorsConfig. # noqa: E501
lightgbm
@lightgbm.setter
def lightgbm(lightgbm)
Sets the lightgbm of this V1beta1PredictorsConfig.
Arguments:
lightgbm
: The lightgbm of this V1beta1PredictorsConfig. # noqa: E501
onnx
@property
def onnx()
Gets the onnx of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorConfig
: The onnx of this V1beta1PredictorsConfig. # noqa: E501
onnx
@onnx.setter
def onnx(onnx)
Sets the onnx of this V1beta1PredictorsConfig.
Arguments:
onnx
: The onnx of this V1beta1PredictorsConfig. # noqa: E501
paddle
@property
def paddle()
Gets the paddle of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorConfig
: The paddle of this V1beta1PredictorsConfig. # noqa: E501
paddle
@paddle.setter
def paddle(paddle)
Sets the paddle of this V1beta1PredictorsConfig.
Arguments:
paddle
: The paddle of this V1beta1PredictorsConfig. # noqa: E501
pmml
@property
def pmml()
Gets the pmml of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorConfig
: The pmml of this V1beta1PredictorsConfig. # noqa: E501
pmml
@pmml.setter
def pmml(pmml)
Sets the pmml of this V1beta1PredictorsConfig.
Arguments:
pmml
: The pmml of this V1beta1PredictorsConfig. # noqa: E501
pytorch
@property
def pytorch()
Gets the pytorch of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorConfig
: The pytorch of this V1beta1PredictorsConfig. # noqa: E501
pytorch
@pytorch.setter
def pytorch(pytorch)
Sets the pytorch of this V1beta1PredictorsConfig.
Arguments:
pytorch
: The pytorch of this V1beta1PredictorsConfig. # noqa: E501
sklearn
@property
def sklearn()
Gets the sklearn of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorProtocols
: The sklearn of this V1beta1PredictorsConfig. # noqa: E501
sklearn
@sklearn.setter
def sklearn(sklearn)
Sets the sklearn of this V1beta1PredictorsConfig.
Arguments:
sklearn
: The sklearn of this V1beta1PredictorsConfig. # noqa: E501
tensorflow
@property
def tensorflow()
Gets the tensorflow of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorConfig
: The tensorflow of this V1beta1PredictorsConfig. # noqa: E501
tensorflow
@tensorflow.setter
def tensorflow(tensorflow)
Sets the tensorflow of this V1beta1PredictorsConfig.
Arguments:
tensorflow
: The tensorflow of this V1beta1PredictorsConfig. # noqa: E501
triton
@property
def triton()
Gets the triton of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorConfig
: The triton of this V1beta1PredictorsConfig. # noqa: E501
triton
@triton.setter
def triton(triton)
Sets the triton of this V1beta1PredictorsConfig.
Arguments:
triton
: The triton of this V1beta1PredictorsConfig. # noqa: E501
xgboost
@property
def xgboost()
Gets the xgboost of this V1beta1PredictorsConfig. # noqa: E501
Returns:
V1beta1PredictorProtocols
: The xgboost of this V1beta1PredictorsConfig. # noqa: E501
xgboost
@xgboost.setter
def xgboost(xgboost)
Sets the xgboost of this V1beta1PredictorsConfig.
Arguments:
xgboost
: The xgboost of this V1beta1PredictorsConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_llm_inference_service_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LLMInferenceServiceConfig
class V1alpha1LLMInferenceServiceConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
local_vars_configuration=None)
V1alpha1LLMInferenceServiceConfig - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LLMInferenceServiceConfig.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LLMInferenceServiceConfig.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LLMInferenceServiceConfig.
Arguments:
metadata
: The metadata of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
Returns:
V1alpha1LLMInferenceServiceSpec
: The spec of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1LLMInferenceServiceConfig.
Arguments:
spec
: The spec of this V1alpha1LLMInferenceServiceConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_container
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1Container
class V1alpha1Container(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(args=None,
command=None,
env=None,
image=None,
image_pull_policy=None,
liveness_probe=None,
name=None,
readiness_probe=None,
resources=None,
working_dir=None,
local_vars_configuration=None)
V1alpha1Container - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1alpha1Container. # noqa: E501
Returns:
list[str]
: The args of this V1alpha1Container. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1alpha1Container.
Arguments:
args
: The args of this V1alpha1Container. # noqa: E501
command
@property
def command()
Gets the command of this V1alpha1Container. # noqa: E501
Returns:
list[str]
: The command of this V1alpha1Container. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1alpha1Container.
Arguments:
command
: The command of this V1alpha1Container. # noqa: E501
env
@property
def env()
Gets the env of this V1alpha1Container. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1alpha1Container. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1alpha1Container.
Arguments:
env
: The env of this V1alpha1Container. # noqa: E501
image
@property
def image()
Gets the image of this V1alpha1Container. # noqa: E501
Returns:
str
: The image of this V1alpha1Container. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1alpha1Container.
Arguments:
image
: The image of this V1alpha1Container. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1alpha1Container. # noqa: E501
Returns:
str
: The image_pull_policy of this V1alpha1Container. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1alpha1Container.
Arguments:
image_pull_policy
: The image_pull_policy of this V1alpha1Container. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1alpha1Container. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1alpha1Container. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1alpha1Container.
Arguments:
liveness_probe
: The liveness_probe of this V1alpha1Container. # noqa: E501
name
@property
def name()
Gets the name of this V1alpha1Container. # noqa: E501
Returns:
str
: The name of this V1alpha1Container. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1alpha1Container.
Arguments:
name
: The name of this V1alpha1Container. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1alpha1Container. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1alpha1Container. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1alpha1Container.
Arguments:
readiness_probe
: The readiness_probe of this V1alpha1Container. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1alpha1Container. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1alpha1Container. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1alpha1Container.
Arguments:
resources
: The resources of this V1alpha1Container. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1alpha1Container. # noqa: E501
Returns:
str
: The working_dir of this V1alpha1Container. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1alpha1Container.
Arguments:
working_dir
: The working_dir of this V1alpha1Container. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_built_in_adapter
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1BuiltInAdapter
class V1alpha1BuiltInAdapter(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(env=None,
mem_buffer_bytes=None,
model_loading_timeout_millis=None,
runtime_management_port=None,
server_type=None,
local_vars_configuration=None)
V1alpha1BuiltInAdapter - a model defined in OpenAPI
env
@property
def env()
Gets the env of this V1alpha1BuiltInAdapter. # noqa: E501
Environment variables used to control other aspects of the built-in adapter's behaviour (uncommon) # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1alpha1BuiltInAdapter. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1alpha1BuiltInAdapter.
Environment variables used to control other aspects of the built-in adapter's behaviour (uncommon) # noqa: E501
Arguments:
env
: The env of this V1alpha1BuiltInAdapter. # noqa: E501
mem_buffer_bytes
@property
def mem_buffer_bytes()
Gets the mem_buffer_bytes of this V1alpha1BuiltInAdapter. # noqa: E501
Fixed memory overhead to subtract from runtime container's memory allocation to determine model capacity # noqa: E501
Returns:
int
: The mem_buffer_bytes of this V1alpha1BuiltInAdapter. # noqa: E501
mem_buffer_bytes
@mem_buffer_bytes.setter
def mem_buffer_bytes(mem_buffer_bytes)
Sets the mem_buffer_bytes of this V1alpha1BuiltInAdapter.
Fixed memory overhead to subtract from runtime container's memory allocation to determine model capacity # noqa: E501
Arguments:
mem_buffer_bytes
: The mem_buffer_bytes of this V1alpha1BuiltInAdapter. # noqa: E501
model_loading_timeout_millis
@property
def model_loading_timeout_millis()
Gets the model_loading_timeout_millis of this V1alpha1BuiltInAdapter. # noqa: E501
Timeout for model loading operations in milliseconds # noqa: E501
Returns:
int
: The model_loading_timeout_millis of this V1alpha1BuiltInAdapter. # noqa: E501
model_loading_timeout_millis
@model_loading_timeout_millis.setter
def model_loading_timeout_millis(model_loading_timeout_millis)
Sets the model_loading_timeout_millis of this V1alpha1BuiltInAdapter.
Timeout for model loading operations in milliseconds # noqa: E501
Arguments:
model_loading_timeout_millis
: The model_loading_timeout_millis of this V1alpha1BuiltInAdapter. # noqa: E501
runtime_management_port
@property
def runtime_management_port()
Gets the runtime_management_port of this V1alpha1BuiltInAdapter. # noqa: E501
Port which the runtime server listens for model management requests # noqa: E501
Returns:
int
: The runtime_management_port of this V1alpha1BuiltInAdapter. # noqa: E501
runtime_management_port
@runtime_management_port.setter
def runtime_management_port(runtime_management_port)
Sets the runtime_management_port of this V1alpha1BuiltInAdapter.
Port which the runtime server listens for model management requests # noqa: E501
Arguments:
runtime_management_port
: The runtime_management_port of this V1alpha1BuiltInAdapter. # noqa: E501
server_type
@property
def server_type()
Gets the server_type of this V1alpha1BuiltInAdapter. # noqa: E501
ServerType must be one of the supported built-in types such as "triton" or "mlserver", and the runtime's container must have the same name # noqa: E501
Returns:
str
: The server_type of this V1alpha1BuiltInAdapter. # noqa: E501
server_type
@server_type.setter
def server_type(server_type)
Sets the server_type of this V1alpha1BuiltInAdapter.
ServerType must be one of the supported built-in types such as "triton" or "mlserver", and the runtime's container must have the same name # noqa: E501
Arguments:
server_type
: The server_type of this V1alpha1BuiltInAdapter. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_transformers_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1TransformersConfig
class V1beta1TransformersConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(feast=None, local_vars_configuration=None)
V1beta1TransformersConfig - a model defined in OpenAPI
feast
@property
def feast()
Gets the feast of this V1beta1TransformersConfig. # noqa: E501
Returns:
V1beta1TransformerConfig
: The feast of this V1beta1TransformersConfig. # noqa: E501
feast
@feast.setter
def feast(feast)
Sets the feast of this V1beta1TransformersConfig.
Arguments:
feast
: The feast of this V1beta1TransformersConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_multi_node_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1MultiNodeConfig
class V1beta1MultiNodeConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(custom_gpu_resource_type_list=None,
local_vars_configuration=None)
V1beta1MultiNodeConfig - a model defined in OpenAPI
custom_gpu_resource_type_list
@property
def custom_gpu_resource_type_list()
Gets the custom_gpu_resource_type_list of this V1beta1MultiNodeConfig. # noqa: E501
CustomGPUResourceTypeList is a list of custom GPU resource types that are allowed to be used in the ServingRuntime and inferenceService # noqa: E501
Returns:
list[str]
: The custom_gpu_resource_type_list of this V1beta1MultiNodeConfig. # noqa: E501
custom_gpu_resource_type_list
@custom_gpu_resource_type_list.setter
def custom_gpu_resource_type_list(custom_gpu_resource_type_list)
Sets the custom_gpu_resource_type_list of this V1beta1MultiNodeConfig.
CustomGPUResourceTypeList is a list of custom GPU resource types that are allowed to be used in the ServingRuntime and inferenceService # noqa: E501
Arguments:
custom_gpu_resource_type_list
: The custom_gpu_resource_type_list of this V1beta1MultiNodeConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.knative_addressable
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
KnativeAddressable
class KnativeAddressable(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(url=None, local_vars_configuration=None)
KnativeAddressable - a model defined in OpenAPI
url
@property
def url()
Gets the url of this KnativeAddressable. # noqa: E501
Returns:
KnativeURL
: The url of this KnativeAddressable. # noqa: E501
url
@url.setter
def url(url)
Sets the url of this KnativeAddressable.
Arguments:
url
: The url of this KnativeAddressable. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_logger_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1LoggerSpec
class V1beta1LoggerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(metadata_annotations=None,
metadata_headers=None,
mode=None,
storage=None,
url=None,
local_vars_configuration=None)
V1beta1LoggerSpec - a model defined in OpenAPI
metadata_annotations
@property
def metadata_annotations()
Gets the metadata_annotations of this V1beta1LoggerSpec. # noqa: E501
Matched inference service annotations for propagating to inference logger cloud events. # noqa: E501
Returns:
list[str]
: The metadata_annotations of this V1beta1LoggerSpec. # noqa: E501
metadata_annotations
@metadata_annotations.setter
def metadata_annotations(metadata_annotations)
Sets the metadata_annotations of this V1beta1LoggerSpec.
Matched inference service annotations for propagating to inference logger cloud events. # noqa: E501
Arguments:
metadata_annotations
: The metadata_annotations of this V1beta1LoggerSpec. # noqa: E501
metadata_headers
@property
def metadata_headers()
Gets the metadata_headers of this V1beta1LoggerSpec. # noqa: E501
Matched metadata HTTP headers for propagating to inference logger cloud events. # noqa: E501
Returns:
list[str]
: The metadata_headers of this V1beta1LoggerSpec. # noqa: E501
metadata_headers
@metadata_headers.setter
def metadata_headers(metadata_headers)
Sets the metadata_headers of this V1beta1LoggerSpec.
Matched metadata HTTP headers for propagating to inference logger cloud events. # noqa: E501
Arguments:
metadata_headers
: The metadata_headers of this V1beta1LoggerSpec. # noqa: E501
mode
@property
def mode()
Gets the mode of this V1beta1LoggerSpec. # noqa: E501
Specifies the scope of the loggers.
Valid values are:
- "all" (default): log both request and response;
- "request": log only request;
- "response": log only response
# noqa: E501
Returns:
str
: The mode of this V1beta1LoggerSpec. # noqa: E501
mode
@mode.setter
def mode(mode)
Sets the mode of this V1beta1LoggerSpec.
Specifies the scope of the loggers.
Valid values are:
- "all" (default): log both request and response;
- "request": log only request;
- "response": log only response
# noqa: E501
Arguments:
mode
: The mode of this V1beta1LoggerSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1LoggerSpec. # noqa: E501
Returns:
V1beta1LoggerStorageSpec
: The storage of this V1beta1LoggerSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1LoggerSpec.
Arguments:
storage
: The storage of this V1beta1LoggerSpec. # noqa: E501
url
@property
def url()
Gets the url of this V1beta1LoggerSpec. # noqa: E501
URL to send logging events # noqa: E501
Returns:
str
: The url of this V1beta1LoggerSpec. # noqa: E501
url
@url.setter
def url(url)
Sets the url of this V1beta1LoggerSpec.
URL to send logging events # noqa: E501
Arguments:
url
: The url of this V1beta1LoggerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_hugging_face_runtime_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1HuggingFaceRuntimeSpec
class V1beta1HuggingFaceRuntimeSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1HuggingFaceRuntimeSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1HuggingFaceRuntimeSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1HuggingFaceRuntimeSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1HuggingFaceRuntimeSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1HuggingFaceRuntimeSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1HuggingFaceRuntimeSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1HuggingFaceRuntimeSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1HuggingFaceRuntimeSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1HuggingFaceRuntimeSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1HuggingFaceRuntimeSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1HuggingFaceRuntimeSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1HuggingFaceRuntimeSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1HuggingFaceRuntimeSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1HuggingFaceRuntimeSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1HuggingFaceRuntimeSpec.
Arguments:
resources
: The resources of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1HuggingFaceRuntimeSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1HuggingFaceRuntimeSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1HuggingFaceRuntimeSpec.
Arguments:
security_context
: The security_context of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1HuggingFaceRuntimeSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1HuggingFaceRuntimeSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1HuggingFaceRuntimeSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1HuggingFaceRuntimeSpec.
Arguments:
storage
: The storage of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1HuggingFaceRuntimeSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1HuggingFaceRuntimeSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1HuggingFaceRuntimeSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1HuggingFaceRuntimeSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1HuggingFaceRuntimeSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1HuggingFaceRuntimeSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1HuggingFaceRuntimeSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1HuggingFaceRuntimeSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_authentication_ref
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1AuthenticationRef
class V1beta1AuthenticationRef(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(name='', local_vars_configuration=None)
V1beta1AuthenticationRef - a model defined in OpenAPI
name
@property
def name()
Gets the name of this V1beta1AuthenticationRef. # noqa: E501
name is the name of the authentication secret # noqa: E501
Returns:
str
: The name of this V1beta1AuthenticationRef. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1AuthenticationRef.
name is the name of the authentication secret # noqa: E501
Arguments:
name
: The name of this V1beta1AuthenticationRef. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_predictor_extension_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PredictorExtensionSpec
class V1beta1PredictorExtensionSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1PredictorExtensionSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1PredictorExtensionSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1PredictorExtensionSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1PredictorExtensionSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1PredictorExtensionSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1PredictorExtensionSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1PredictorExtensionSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1PredictorExtensionSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1PredictorExtensionSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1PredictorExtensionSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1PredictorExtensionSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1PredictorExtensionSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1PredictorExtensionSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1PredictorExtensionSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1PredictorExtensionSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1PredictorExtensionSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1PredictorExtensionSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1PredictorExtensionSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1PredictorExtensionSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1PredictorExtensionSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1PredictorExtensionSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1PredictorExtensionSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1PredictorExtensionSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1PredictorExtensionSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1PredictorExtensionSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1PredictorExtensionSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1PredictorExtensionSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1PredictorExtensionSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1PredictorExtensionSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1PredictorExtensionSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1PredictorExtensionSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1PredictorExtensionSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1PredictorExtensionSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1PredictorExtensionSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1PredictorExtensionSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1PredictorExtensionSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1PredictorExtensionSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1PredictorExtensionSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1PredictorExtensionSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1PredictorExtensionSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1PredictorExtensionSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1PredictorExtensionSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1PredictorExtensionSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1PredictorExtensionSpec.
Arguments:
resources
: The resources of this V1beta1PredictorExtensionSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1PredictorExtensionSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1PredictorExtensionSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1PredictorExtensionSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1PredictorExtensionSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1PredictorExtensionSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1PredictorExtensionSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1PredictorExtensionSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1PredictorExtensionSpec.
Arguments:
security_context
: The security_context of this V1beta1PredictorExtensionSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1PredictorExtensionSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1PredictorExtensionSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1PredictorExtensionSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1PredictorExtensionSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1PredictorExtensionSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1PredictorExtensionSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1PredictorExtensionSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1PredictorExtensionSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1PredictorExtensionSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1PredictorExtensionSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1PredictorExtensionSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1PredictorExtensionSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1PredictorExtensionSpec.
Arguments:
storage
: The storage of this V1beta1PredictorExtensionSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1PredictorExtensionSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1PredictorExtensionSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1PredictorExtensionSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1PredictorExtensionSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1PredictorExtensionSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1PredictorExtensionSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1PredictorExtensionSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1PredictorExtensionSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1PredictorExtensionSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1PredictorExtensionSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1PredictorExtensionSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1PredictorExtensionSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1PredictorExtensionSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1PredictorExtensionSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1PredictorExtensionSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1PredictorExtensionSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1PredictorExtensionSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1PredictorExtensionSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1PredictorExtensionSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1PredictorExtensionSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1PredictorExtensionSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1PredictorExtensionSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1PredictorExtensionSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1PredictorExtensionSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1PredictorExtensionSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1PredictorExtensionSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_onnx_runtime_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ONNXRuntimeSpec
class V1beta1ONNXRuntimeSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1ONNXRuntimeSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1ONNXRuntimeSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1ONNXRuntimeSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1ONNXRuntimeSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1ONNXRuntimeSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1ONNXRuntimeSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1ONNXRuntimeSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1ONNXRuntimeSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1ONNXRuntimeSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1ONNXRuntimeSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1ONNXRuntimeSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1ONNXRuntimeSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1ONNXRuntimeSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1ONNXRuntimeSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1ONNXRuntimeSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1ONNXRuntimeSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1ONNXRuntimeSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1ONNXRuntimeSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1ONNXRuntimeSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1ONNXRuntimeSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1ONNXRuntimeSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1ONNXRuntimeSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1ONNXRuntimeSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1ONNXRuntimeSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1ONNXRuntimeSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1ONNXRuntimeSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1ONNXRuntimeSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1ONNXRuntimeSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1ONNXRuntimeSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1ONNXRuntimeSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1ONNXRuntimeSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1ONNXRuntimeSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1ONNXRuntimeSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1ONNXRuntimeSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1ONNXRuntimeSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1ONNXRuntimeSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1ONNXRuntimeSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1ONNXRuntimeSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1ONNXRuntimeSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1ONNXRuntimeSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1ONNXRuntimeSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1ONNXRuntimeSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1ONNXRuntimeSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1ONNXRuntimeSpec.
Arguments:
resources
: The resources of this V1beta1ONNXRuntimeSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1ONNXRuntimeSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1ONNXRuntimeSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1ONNXRuntimeSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1ONNXRuntimeSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1ONNXRuntimeSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1ONNXRuntimeSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1ONNXRuntimeSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1ONNXRuntimeSpec.
Arguments:
security_context
: The security_context of this V1beta1ONNXRuntimeSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1ONNXRuntimeSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1ONNXRuntimeSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1ONNXRuntimeSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1ONNXRuntimeSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1ONNXRuntimeSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1ONNXRuntimeSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1ONNXRuntimeSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1ONNXRuntimeSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1ONNXRuntimeSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1ONNXRuntimeSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1ONNXRuntimeSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1ONNXRuntimeSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1ONNXRuntimeSpec.
Arguments:
storage
: The storage of this V1beta1ONNXRuntimeSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1ONNXRuntimeSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1ONNXRuntimeSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1ONNXRuntimeSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1ONNXRuntimeSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1ONNXRuntimeSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1ONNXRuntimeSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1ONNXRuntimeSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1ONNXRuntimeSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1ONNXRuntimeSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1ONNXRuntimeSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1ONNXRuntimeSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1ONNXRuntimeSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1ONNXRuntimeSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1ONNXRuntimeSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1ONNXRuntimeSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1ONNXRuntimeSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1ONNXRuntimeSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1ONNXRuntimeSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1ONNXRuntimeSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1ONNXRuntimeSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1ONNXRuntimeSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1ONNXRuntimeSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1ONNXRuntimeSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1ONNXRuntimeSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1ONNXRuntimeSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1ONNXRuntimeSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_resource_metric_source
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ResourceMetricSource
class V1beta1ResourceMetricSource(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(name='', target=None, local_vars_configuration=None)
V1beta1ResourceMetricSource - a model defined in OpenAPI
name
@property
def name()
Gets the name of this V1beta1ResourceMetricSource. # noqa: E501
name is the name of the resource in question. # noqa: E501
Returns:
str
: The name of this V1beta1ResourceMetricSource. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1ResourceMetricSource.
name is the name of the resource in question. # noqa: E501
Arguments:
name
: The name of this V1beta1ResourceMetricSource. # noqa: E501
target
@property
def target()
Gets the target of this V1beta1ResourceMetricSource. # noqa: E501
Returns:
V1beta1MetricTarget
: The target of this V1beta1ResourceMetricSource. # noqa: E501
target
@target.setter
def target(target)
Sets the target of this V1beta1ResourceMetricSource.
Arguments:
target
: The target of this V1beta1ResourceMetricSource. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_pod_metrics
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PodMetrics
class V1beta1PodMetrics(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(backend='',
metric_names=None,
operation_over_time=None,
query=None,
server_address=None,
local_vars_configuration=None)
V1beta1PodMetrics - a model defined in OpenAPI
backend
@property
def backend()
Gets the backend of this V1beta1PodMetrics. # noqa: E501
Backend defines the scaling metric type watched by the autoscaler. Possible value: opentelemetry. # noqa: E501
Returns:
str
: The backend of this V1beta1PodMetrics. # noqa: E501
backend
@backend.setter
def backend(backend)
Sets the backend of this V1beta1PodMetrics.
Backend defines the scaling metric type watched by the autoscaler. Possible value: opentelemetry. # noqa: E501
Arguments:
backend
: The backend of this V1beta1PodMetrics. # noqa: E501
metric_names
@property
def metric_names()
Gets the metric_names of this V1beta1PodMetrics. # noqa: E501
MetricNames is the list of metric names in the backend. # noqa: E501
Returns:
list[str]
: The metric_names of this V1beta1PodMetrics. # noqa: E501
metric_names
@metric_names.setter
def metric_names(metric_names)
Sets the metric_names of this V1beta1PodMetrics.
MetricNames is the list of metric names in the backend. # noqa: E501
Arguments:
metric_names
: The metric_names of this V1beta1PodMetrics. # noqa: E501
operation_over_time
@property
def operation_over_time()
Gets the operation_over_time of this V1beta1PodMetrics. # noqa: E501
OperationOverTime specifies the operation to aggregate the metrics over time. Possible values are last_one, avg, max, min, rate, count. Default is 'last_one'. # noqa: E501
Returns:
str
: The operation_over_time of this V1beta1PodMetrics. # noqa: E501
operation_over_time
@operation_over_time.setter
def operation_over_time(operation_over_time)
Sets the operation_over_time of this V1beta1PodMetrics.
OperationOverTime specifies the operation to aggregate the metrics over time. Possible values are last_one, avg, max, min, rate, count. Default is 'last_one'. # noqa: E501
Arguments:
operation_over_time
: The operation_over_time of this V1beta1PodMetrics. # noqa: E501
query
@property
def query()
Gets the query of this V1beta1PodMetrics. # noqa: E501
Query specifies the query to run to get metrics from the PodsMetricsBackend. # noqa: E501
Returns:
str
: The query of this V1beta1PodMetrics. # noqa: E501
query
@query.setter
def query(query)
Sets the query of this V1beta1PodMetrics.
Query specifies the query to run to get metrics from the PodsMetricsBackend. # noqa: E501
Arguments:
query
: The query of this V1beta1PodMetrics. # noqa: E501
server_address
@property
def server_address()
Gets the server_address of this V1beta1PodMetrics. # noqa: E501
ServerAddress specifies the address of the PodsMetricsBackend server. # noqa: E501
Returns:
str
: The server_address of this V1beta1PodMetrics. # noqa: E501
server_address
@server_address.setter
def server_address(server_address)
Sets the server_address of this V1beta1PodMetrics.
ServerAddress specifies the address of the PodsMetricsBackend server. # noqa: E501
Arguments:
server_address
: The server_address of this V1beta1PodMetrics. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_predictor_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PredictorConfig
class V1beta1PredictorConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(default_gpu_image_version='',
default_image_version='',
default_timeout=None,
image='',
multi_model_server=None,
supported_frameworks=None,
local_vars_configuration=None)
V1beta1PredictorConfig - a model defined in OpenAPI
default_gpu_image_version
@property
def default_gpu_image_version()
Gets the default_gpu_image_version of this V1beta1PredictorConfig. # noqa: E501
default predictor docker image version on gpu # noqa: E501
Returns:
str
: The default_gpu_image_version of this V1beta1PredictorConfig. # noqa: E501
default_gpu_image_version
@default_gpu_image_version.setter
def default_gpu_image_version(default_gpu_image_version)
Sets the default_gpu_image_version of this V1beta1PredictorConfig.
default predictor docker image version on gpu # noqa: E501
Arguments:
default_gpu_image_version
: The default_gpu_image_version of this V1beta1PredictorConfig. # noqa: E501
default_image_version
@property
def default_image_version()
Gets the default_image_version of this V1beta1PredictorConfig. # noqa: E501
default predictor docker image version on cpu # noqa: E501
Returns:
str
: The default_image_version of this V1beta1PredictorConfig. # noqa: E501
default_image_version
@default_image_version.setter
def default_image_version(default_image_version)
Sets the default_image_version of this V1beta1PredictorConfig.
default predictor docker image version on cpu # noqa: E501
Arguments:
default_image_version
: The default_image_version of this V1beta1PredictorConfig. # noqa: E501
default_timeout
@property
def default_timeout()
Gets the default_timeout of this V1beta1PredictorConfig. # noqa: E501
Default timeout of predictor for serving a request, in seconds # noqa: E501
Returns:
str
: The default_timeout of this V1beta1PredictorConfig. # noqa: E501
default_timeout
@default_timeout.setter
def default_timeout(default_timeout)
Sets the default_timeout of this V1beta1PredictorConfig.
Default timeout of predictor for serving a request, in seconds # noqa: E501
Arguments:
default_timeout
: The default_timeout of this V1beta1PredictorConfig. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1PredictorConfig. # noqa: E501
predictor docker image name # noqa: E501
Returns:
str
: The image of this V1beta1PredictorConfig. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1PredictorConfig.
predictor docker image name # noqa: E501
Arguments:
image
: The image of this V1beta1PredictorConfig. # noqa: E501
multi_model_server
@property
def multi_model_server()
Gets the multi_model_server of this V1beta1PredictorConfig. # noqa: E501
Flag to determine if multi-model serving is supported # noqa: E501
Returns:
bool
: The multi_model_server of this V1beta1PredictorConfig. # noqa: E501
multi_model_server
@multi_model_server.setter
def multi_model_server(multi_model_server)
Sets the multi_model_server of this V1beta1PredictorConfig.
Flag to determine if multi-model serving is supported # noqa: E501
Arguments:
multi_model_server
: The multi_model_server of this V1beta1PredictorConfig. # noqa: E501
supported_frameworks
@property
def supported_frameworks()
Gets the supported_frameworks of this V1beta1PredictorConfig. # noqa: E501
frameworks the model agent is able to run # noqa: E501
Returns:
list[str]
: The supported_frameworks of this V1beta1PredictorConfig. # noqa: E501
supported_frameworks
@supported_frameworks.setter
def supported_frameworks(supported_frameworks)
Sets the supported_frameworks of this V1beta1PredictorConfig.
frameworks the model agent is able to run # noqa: E501
Arguments:
supported_frameworks
: The supported_frameworks of this V1beta1PredictorConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_scaler_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ScalerSpec
class V1beta1ScalerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(max_replicas=None,
metric_backend=None,
metric_query=None,
min_replicas=None,
query_parameters=None,
query_time=None,
scale_metric=None,
scale_metric_type=None,
scale_target=None,
server_address=None,
local_vars_configuration=None)
V1beta1ScalerSpec - a model defined in OpenAPI
max_replicas
@property
def max_replicas()
Gets the max_replicas of this V1beta1ScalerSpec. # noqa: E501
Maximum number of replicas for autoscaling. # noqa: E501
Returns:
int
: The max_replicas of this V1beta1ScalerSpec. # noqa: E501
max_replicas
@max_replicas.setter
def max_replicas(max_replicas)
Sets the max_replicas of this V1beta1ScalerSpec.
Maximum number of replicas for autoscaling. # noqa: E501
Arguments:
max_replicas
: The max_replicas of this V1beta1ScalerSpec. # noqa: E501
metric_backend
@property
def metric_backend()
Gets the metric_backend of this V1beta1ScalerSpec. # noqa: E501
MetricsBackend defines the scaling metric type watched by autoscaler possible values are prometheus, graphite. # noqa: E501
Returns:
str
: The metric_backend of this V1beta1ScalerSpec. # noqa: E501
metric_backend
@metric_backend.setter
def metric_backend(metric_backend)
Sets the metric_backend of this V1beta1ScalerSpec.
MetricsBackend defines the scaling metric type watched by autoscaler possible values are prometheus, graphite. # noqa: E501
Arguments:
metric_backend
: The metric_backend of this V1beta1ScalerSpec. # noqa: E501
metric_query
@property
def metric_query()
Gets the metric_query of this V1beta1ScalerSpec. # noqa: E501
Query to run to get metrics from MetricsBackend # noqa: E501
Returns:
str
: The metric_query of this V1beta1ScalerSpec. # noqa: E501
metric_query
@metric_query.setter
def metric_query(metric_query)
Sets the metric_query of this V1beta1ScalerSpec.
Query to run to get metrics from MetricsBackend # noqa: E501
Arguments:
metric_query
: The metric_query of this V1beta1ScalerSpec. # noqa: E501
min_replicas
@property
def min_replicas()
Gets the min_replicas of this V1beta1ScalerSpec. # noqa: E501
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Returns:
int
: The min_replicas of this V1beta1ScalerSpec. # noqa: E501
min_replicas
@min_replicas.setter
def min_replicas(min_replicas)
Sets the min_replicas of this V1beta1ScalerSpec.
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Arguments:
min_replicas
: The min_replicas of this V1beta1ScalerSpec. # noqa: E501
query_parameters
@property
def query_parameters()
Gets the query_parameters of this V1beta1ScalerSpec. # noqa: E501
A comma-separated list of query Parameters to include while querying the MetricsBackend endpoint. # noqa: E501
Returns:
str
: The query_parameters of this V1beta1ScalerSpec. # noqa: E501
query_parameters
@query_parameters.setter
def query_parameters(query_parameters)
Sets the query_parameters of this V1beta1ScalerSpec.
A comma-separated list of query Parameters to include while querying the MetricsBackend endpoint. # noqa: E501
Arguments:
query_parameters
: The query_parameters of this V1beta1ScalerSpec. # noqa: E501
query_time
@property
def query_time()
Gets the query_time of this V1beta1ScalerSpec. # noqa: E501
queryTime is relative time range to execute query against. specialized for graphite (https://graphite-api.readthedocs.io/en/latest/api.html#from-until) # noqa: E501
Returns:
str
: The query_time of this V1beta1ScalerSpec. # noqa: E501
query_time
@query_time.setter
def query_time(query_time)
Sets the query_time of this V1beta1ScalerSpec.
queryTime is relative time range to execute query against. specialized for graphite (https://graphite-api.readthedocs.io/en/latest/api.html#from-until) # noqa: E501
Arguments:
query_time
: The query_time of this V1beta1ScalerSpec. # noqa: E501
scale_metric
@property
def scale_metric()
Gets the scale_metric of this V1beta1ScalerSpec. # noqa: E501
ScaleMetric defines the scaling metric type watched by autoscaler possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Returns:
str
: The scale_metric of this V1beta1ScalerSpec. # noqa: E501
scale_metric
@scale_metric.setter
def scale_metric(scale_metric)
Sets the scale_metric of this V1beta1ScalerSpec.
ScaleMetric defines the scaling metric type watched by autoscaler possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Arguments:
scale_metric
: The scale_metric of this V1beta1ScalerSpec. # noqa: E501
scale_metric_type
@property
def scale_metric_type()
Gets the scale_metric_type of this V1beta1ScalerSpec. # noqa: E501
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Returns:
str
: The scale_metric_type of this V1beta1ScalerSpec. # noqa: E501
scale_metric_type
@scale_metric_type.setter
def scale_metric_type(scale_metric_type)
Sets the scale_metric_type of this V1beta1ScalerSpec.
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Arguments:
scale_metric_type
: The scale_metric_type of this V1beta1ScalerSpec. # noqa: E501
scale_target
@property
def scale_target()
Gets the scale_target of this V1beta1ScalerSpec. # noqa: E501
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Returns:
int
: The scale_target of this V1beta1ScalerSpec. # noqa: E501
scale_target
@scale_target.setter
def scale_target(scale_target)
Sets the scale_target of this V1beta1ScalerSpec.
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Arguments:
scale_target
: The scale_target of this V1beta1ScalerSpec. # noqa: E501
server_address
@property
def server_address()
Gets the server_address of this V1beta1ScalerSpec. # noqa: E501
Address of MetricsBackend server. # noqa: E501
Returns:
str
: The server_address of this V1beta1ScalerSpec. # noqa: E501
server_address
@server_address.setter
def server_address(server_address)
Sets the server_address of this V1beta1ScalerSpec.
Address of MetricsBackend server. # noqa: E501
Arguments:
server_address
: The server_address of this V1beta1ScalerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inference_graph_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InferenceGraphList
class V1alpha1InferenceGraphList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1InferenceGraphList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1InferenceGraphList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1InferenceGraphList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1InferenceGraphList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1InferenceGraphList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1InferenceGraphList. # noqa: E501
Returns:
list[V1alpha1InferenceGraph]
: The items of this V1alpha1InferenceGraphList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1InferenceGraphList.
Arguments:
items
: The items of this V1alpha1InferenceGraphList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1InferenceGraphList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1InferenceGraphList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1InferenceGraphList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1InferenceGraphList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1InferenceGraphList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1InferenceGraphList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1InferenceGraphList.
Arguments:
metadata
: The metadata of this V1alpha1InferenceGraphList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_metric_source
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1MetricSource
class V1beta1MetricSource(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(backend=None,
namespace=None,
query=None,
server_address=None,
local_vars_configuration=None)
V1beta1MetricSource - a model defined in OpenAPI
backend
@property
def backend()
Gets the backend of this V1beta1MetricSource. # noqa: E501
MetricsBackend defines the scaling metric type watched by autoscaler possible values are prometheus, graphite. # noqa: E501
Returns:
str
: The backend of this V1beta1MetricSource. # noqa: E501
backend
@backend.setter
def backend(backend)
Sets the backend of this V1beta1MetricSource.
MetricsBackend defines the scaling metric type watched by autoscaler possible values are prometheus, graphite. # noqa: E501
Arguments:
backend
: The backend of this V1beta1MetricSource. # noqa: E501
namespace
@property
def namespace()
Gets the namespace of this V1beta1MetricSource. # noqa: E501
For namespaced query # noqa: E501
Returns:
str
: The namespace of this V1beta1MetricSource. # noqa: E501
namespace
@namespace.setter
def namespace(namespace)
Sets the namespace of this V1beta1MetricSource.
For namespaced query # noqa: E501
Arguments:
namespace
: The namespace of this V1beta1MetricSource. # noqa: E501
query
@property
def query()
Gets the query of this V1beta1MetricSource. # noqa: E501
Query to run to get metrics from MetricsBackend # noqa: E501
Returns:
str
: The query of this V1beta1MetricSource. # noqa: E501
query
@query.setter
def query(query)
Sets the query of this V1beta1MetricSource.
Query to run to get metrics from MetricsBackend # noqa: E501
Arguments:
query
: The query of this V1beta1MetricSource. # noqa: E501
server_address
@property
def server_address()
Gets the server_address of this V1beta1MetricSource. # noqa: E501
Address of MetricsBackend server. # noqa: E501
Returns:
str
: The server_address of this V1beta1MetricSource. # noqa: E501
server_address
@server_address.setter
def server_address(server_address)
Sets the server_address of this V1beta1MetricSource.
Address of MetricsBackend server. # noqa: E501
Arguments:
server_address
: The server_address of this V1beta1MetricSource. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_otel_collector_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1OtelCollectorConfig
class V1beta1OtelCollectorConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(metric_receiver_endpoint=None,
metric_scaler_endpoint=None,
scrape_interval=None,
local_vars_configuration=None)
V1beta1OtelCollectorConfig - a model defined in OpenAPI
metric_receiver_endpoint
@property
def metric_receiver_endpoint()
Gets the metric_receiver_endpoint of this V1beta1OtelCollectorConfig. # noqa: E501
Returns:
str
: The metric_receiver_endpoint of this V1beta1OtelCollectorConfig. # noqa: E501
metric_receiver_endpoint
@metric_receiver_endpoint.setter
def metric_receiver_endpoint(metric_receiver_endpoint)
Sets the metric_receiver_endpoint of this V1beta1OtelCollectorConfig.
Arguments:
metric_receiver_endpoint
: The metric_receiver_endpoint of this V1beta1OtelCollectorConfig. # noqa: E501
metric_scaler_endpoint
@property
def metric_scaler_endpoint()
Gets the metric_scaler_endpoint of this V1beta1OtelCollectorConfig. # noqa: E501
Returns:
str
: The metric_scaler_endpoint of this V1beta1OtelCollectorConfig. # noqa: E501
metric_scaler_endpoint
@metric_scaler_endpoint.setter
def metric_scaler_endpoint(metric_scaler_endpoint)
Sets the metric_scaler_endpoint of this V1beta1OtelCollectorConfig.
Arguments:
metric_scaler_endpoint
: The metric_scaler_endpoint of this V1beta1OtelCollectorConfig. # noqa: E501
scrape_interval
@property
def scrape_interval()
Gets the scrape_interval of this V1beta1OtelCollectorConfig. # noqa: E501
Returns:
str
: The scrape_interval of this V1beta1OtelCollectorConfig. # noqa: E501
scrape_interval
@scrape_interval.setter
def scrape_interval(scrape_interval)
Sets the scrape_interval of this V1beta1OtelCollectorConfig.
Arguments:
scrape_interval
: The scrape_interval of this V1beta1OtelCollectorConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_model_storage_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ModelStorageSpec
class V1beta1ModelStorageSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(key=None,
parameters=None,
path=None,
schema_path=None,
local_vars_configuration=None)
V1beta1ModelStorageSpec - a model defined in OpenAPI
key
@property
def key()
Gets the key of this V1beta1ModelStorageSpec. # noqa: E501
The Storage Key in the secret for this object. # noqa: E501
Returns:
str
: The key of this V1beta1ModelStorageSpec. # noqa: E501
key
@key.setter
def key(key)
Sets the key of this V1beta1ModelStorageSpec.
The Storage Key in the secret for this object. # noqa: E501
Arguments:
key
: The key of this V1beta1ModelStorageSpec. # noqa: E501
parameters
@property
def parameters()
Gets the parameters of this V1beta1ModelStorageSpec. # noqa: E501
Parameters to override the default storage credentials and config. # noqa: E501
Returns:
dict(str, str)
: The parameters of this V1beta1ModelStorageSpec. # noqa: E501
parameters
@parameters.setter
def parameters(parameters)
Sets the parameters of this V1beta1ModelStorageSpec.
Parameters to override the default storage credentials and config. # noqa: E501
Arguments:
parameters
: The parameters of this V1beta1ModelStorageSpec. # noqa: E501
path
@property
def path()
Gets the path of this V1beta1ModelStorageSpec. # noqa: E501
The path to the object in the storage. Note that this path is relative to the storage URI. # noqa: E501
Returns:
str
: The path of this V1beta1ModelStorageSpec. # noqa: E501
path
@path.setter
def path(path)
Sets the path of this V1beta1ModelStorageSpec.
The path to the object in the storage. Note that this path is relative to the storage URI. # noqa: E501
Arguments:
path
: The path of this V1beta1ModelStorageSpec. # noqa: E501
schema_path
@property
def schema_path()
Gets the schema_path of this V1beta1ModelStorageSpec. # noqa: E501
The path to the model schema file in the storage. # noqa: E501
Returns:
str
: The schema_path of this V1beta1ModelStorageSpec. # noqa: E501
schema_path
@schema_path.setter
def schema_path(schema_path)
Sets the schema_path of this V1beta1ModelStorageSpec.
The path to the model schema file in the storage. # noqa: E501
Arguments:
schema_path
: The schema_path of this V1beta1ModelStorageSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_inference_services_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1InferenceServicesConfig
class V1beta1InferenceServicesConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(explainers=None,
resource=None,
service_annotation_disallowed_list=None,
service_label_disallowed_list=None,
local_vars_configuration=None)
V1beta1InferenceServicesConfig - a model defined in OpenAPI
explainers
@property
def explainers()
Gets the explainers of this V1beta1InferenceServicesConfig. # noqa: E501
Returns:
V1beta1ExplainersConfig
: The explainers of this V1beta1InferenceServicesConfig. # noqa: E501
explainers
@explainers.setter
def explainers(explainers)
Sets the explainers of this V1beta1InferenceServicesConfig.
Arguments:
explainers
: The explainers of this V1beta1InferenceServicesConfig. # noqa: E501
resource
@property
def resource()
Gets the resource of this V1beta1InferenceServicesConfig. # noqa: E501
Returns:
V1beta1ResourceConfig
: The resource of this V1beta1InferenceServicesConfig. # noqa: E501
resource
@resource.setter
def resource(resource)
Sets the resource of this V1beta1InferenceServicesConfig.
Arguments:
resource
: The resource of this V1beta1InferenceServicesConfig. # noqa: E501
service_annotation_disallowed_list
@property
def service_annotation_disallowed_list()
Gets the service_annotation_disallowed_list of this V1beta1InferenceServicesConfig. # noqa: E501
ServiceAnnotationDisallowedList is a list of annotations that are not allowed to be propagated to Knative revisions # noqa: E501
Returns:
list[str]
: The service_annotation_disallowed_list of this V1beta1InferenceServicesConfig. # noqa: E501
service_annotation_disallowed_list
@service_annotation_disallowed_list.setter
def service_annotation_disallowed_list(service_annotation_disallowed_list)
Sets the service_annotation_disallowed_list of this V1beta1InferenceServicesConfig.
ServiceAnnotationDisallowedList is a list of annotations that are not allowed to be propagated to Knative revisions # noqa: E501
Arguments:
service_annotation_disallowed_list
: The service_annotation_disallowed_list of this V1beta1InferenceServicesConfig. # noqa: E501
service_label_disallowed_list
@property
def service_label_disallowed_list()
Gets the service_label_disallowed_list of this V1beta1InferenceServicesConfig. # noqa: E501
ServiceLabelDisallowedList is a list of labels that are not allowed to be propagated to Knative revisions # noqa: E501
Returns:
list[str]
: The service_label_disallowed_list of this V1beta1InferenceServicesConfig. # noqa: E501
service_label_disallowed_list
@service_label_disallowed_list.setter
def service_label_disallowed_list(service_label_disallowed_list)
Sets the service_label_disallowed_list of this V1beta1InferenceServicesConfig.
ServiceLabelDisallowedList is a list of labels that are not allowed to be propagated to Knative revisions # noqa: E501
Arguments:
service_label_disallowed_list
: The service_label_disallowed_list of this V1beta1InferenceServicesConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_deploy_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1DeployConfig
class V1beta1DeployConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(default_deployment_mode=None, local_vars_configuration=None)
V1beta1DeployConfig - a model defined in OpenAPI
default_deployment_mode
@property
def default_deployment_mode()
Gets the default_deployment_mode of this V1beta1DeployConfig. # noqa: E501
Returns:
str
: The default_deployment_mode of this V1beta1DeployConfig. # noqa: E501
default_deployment_mode
@default_deployment_mode.setter
def default_deployment_mode(default_deployment_mode)
Sets the default_deployment_mode of this V1beta1DeployConfig.
Arguments:
default_deployment_mode
: The default_deployment_mode of this V1beta1DeployConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_trained_model
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1TrainedModel
class V1alpha1TrainedModel(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1TrainedModel - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1TrainedModel. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1TrainedModel. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1TrainedModel.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1TrainedModel. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1TrainedModel. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1TrainedModel. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1TrainedModel.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1TrainedModel. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1TrainedModel. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1TrainedModel. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1TrainedModel.
Arguments:
metadata
: The metadata of this V1alpha1TrainedModel. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1TrainedModel. # noqa: E501
Returns:
V1alpha1TrainedModelSpec
: The spec of this V1alpha1TrainedModel. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1TrainedModel.
Arguments:
spec
: The spec of this V1alpha1TrainedModel. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1TrainedModel. # noqa: E501
Returns:
V1alpha1TrainedModelStatus
: The status of this V1alpha1TrainedModel. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1TrainedModel.
Arguments:
status
: The status of this V1alpha1TrainedModel. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_component_extension_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ComponentExtensionSpec
class V1beta1ComponentExtensionSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(annotations=None,
auto_scaling=None,
batcher=None,
canary_traffic_percent=None,
container_concurrency=None,
deployment_strategy=None,
labels=None,
logger=None,
max_replicas=None,
min_replicas=None,
scale_metric=None,
scale_metric_type=None,
scale_target=None,
timeout=None,
local_vars_configuration=None)
V1beta1ComponentExtensionSpec - a model defined in OpenAPI
annotations
@property
def annotations()
Gets the annotations of this V1beta1ComponentExtensionSpec. # noqa: E501
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1beta1ComponentExtensionSpec. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1beta1ComponentExtensionSpec.
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Arguments:
annotations
: The annotations of this V1beta1ComponentExtensionSpec. # noqa: E501
auto_scaling
@property
def auto_scaling()
Gets the auto_scaling of this V1beta1ComponentExtensionSpec. # noqa: E501
Returns:
V1beta1AutoScalingSpec
: The auto_scaling of this V1beta1ComponentExtensionSpec. # noqa: E501
auto_scaling
@auto_scaling.setter
def auto_scaling(auto_scaling)
Sets the auto_scaling of this V1beta1ComponentExtensionSpec.
Arguments:
auto_scaling
: The auto_scaling of this V1beta1ComponentExtensionSpec. # noqa: E501
batcher
@property
def batcher()
Gets the batcher of this V1beta1ComponentExtensionSpec. # noqa: E501
Returns:
V1beta1Batcher
: The batcher of this V1beta1ComponentExtensionSpec. # noqa: E501
batcher
@batcher.setter
def batcher(batcher)
Sets the batcher of this V1beta1ComponentExtensionSpec.
Arguments:
batcher
: The batcher of this V1beta1ComponentExtensionSpec. # noqa: E501
canary_traffic_percent
@property
def canary_traffic_percent()
Gets the canary_traffic_percent of this V1beta1ComponentExtensionSpec. # noqa: E501
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Returns:
int
: The canary_traffic_percent of this V1beta1ComponentExtensionSpec. # noqa: E501
canary_traffic_percent
@canary_traffic_percent.setter
def canary_traffic_percent(canary_traffic_percent)
Sets the canary_traffic_percent of this V1beta1ComponentExtensionSpec.
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Arguments:
canary_traffic_percent
: The canary_traffic_percent of this V1beta1ComponentExtensionSpec. # noqa: E501
container_concurrency
@property
def container_concurrency()
Gets the container_concurrency of this V1beta1ComponentExtensionSpec. # noqa: E501
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Returns:
int
: The container_concurrency of this V1beta1ComponentExtensionSpec. # noqa: E501
container_concurrency
@container_concurrency.setter
def container_concurrency(container_concurrency)
Sets the container_concurrency of this V1beta1ComponentExtensionSpec.
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Arguments:
container_concurrency
: The container_concurrency of this V1beta1ComponentExtensionSpec. # noqa: E501
deployment_strategy
@property
def deployment_strategy()
Gets the deployment_strategy of this V1beta1ComponentExtensionSpec. # noqa: E501
Returns:
K8sIoApiAppsV1DeploymentStrategy
: The deployment_strategy of this V1beta1ComponentExtensionSpec. # noqa: E501
deployment_strategy
@deployment_strategy.setter
def deployment_strategy(deployment_strategy)
Sets the deployment_strategy of this V1beta1ComponentExtensionSpec.
Arguments:
deployment_strategy
: The deployment_strategy of this V1beta1ComponentExtensionSpec. # noqa: E501
labels
@property
def labels()
Gets the labels of this V1beta1ComponentExtensionSpec. # noqa: E501
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Returns:
dict(str, str)
: The labels of this V1beta1ComponentExtensionSpec. # noqa: E501
labels
@labels.setter
def labels(labels)
Sets the labels of this V1beta1ComponentExtensionSpec.
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Arguments:
labels
: The labels of this V1beta1ComponentExtensionSpec. # noqa: E501
logger
@property
def logger()
Gets the logger of this V1beta1ComponentExtensionSpec. # noqa: E501
Returns:
V1beta1LoggerSpec
: The logger of this V1beta1ComponentExtensionSpec. # noqa: E501
logger
@logger.setter
def logger(logger)
Sets the logger of this V1beta1ComponentExtensionSpec.
Arguments:
logger
: The logger of this V1beta1ComponentExtensionSpec. # noqa: E501
max_replicas
@property
def max_replicas()
Gets the max_replicas of this V1beta1ComponentExtensionSpec. # noqa: E501
Maximum number of replicas for autoscaling. # noqa: E501
Returns:
int
: The max_replicas of this V1beta1ComponentExtensionSpec. # noqa: E501
max_replicas
@max_replicas.setter
def max_replicas(max_replicas)
Sets the max_replicas of this V1beta1ComponentExtensionSpec.
Maximum number of replicas for autoscaling. # noqa: E501
Arguments:
max_replicas
: The max_replicas of this V1beta1ComponentExtensionSpec. # noqa: E501
min_replicas
@property
def min_replicas()
Gets the min_replicas of this V1beta1ComponentExtensionSpec. # noqa: E501
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Returns:
int
: The min_replicas of this V1beta1ComponentExtensionSpec. # noqa: E501
min_replicas
@min_replicas.setter
def min_replicas(min_replicas)
Sets the min_replicas of this V1beta1ComponentExtensionSpec.
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Arguments:
min_replicas
: The min_replicas of this V1beta1ComponentExtensionSpec. # noqa: E501
scale_metric
@property
def scale_metric()
Gets the scale_metric of this V1beta1ComponentExtensionSpec. # noqa: E501
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Returns:
str
: The scale_metric of this V1beta1ComponentExtensionSpec. # noqa: E501
scale_metric
@scale_metric.setter
def scale_metric(scale_metric)
Sets the scale_metric of this V1beta1ComponentExtensionSpec.
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Arguments:
scale_metric
: The scale_metric of this V1beta1ComponentExtensionSpec. # noqa: E501
scale_metric_type
@property
def scale_metric_type()
Gets the scale_metric_type of this V1beta1ComponentExtensionSpec. # noqa: E501
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Returns:
str
: The scale_metric_type of this V1beta1ComponentExtensionSpec. # noqa: E501
scale_metric_type
@scale_metric_type.setter
def scale_metric_type(scale_metric_type)
Sets the scale_metric_type of this V1beta1ComponentExtensionSpec.
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Arguments:
scale_metric_type
: The scale_metric_type of this V1beta1ComponentExtensionSpec. # noqa: E501
scale_target
@property
def scale_target()
Gets the scale_target of this V1beta1ComponentExtensionSpec. # noqa: E501
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Returns:
int
: The scale_target of this V1beta1ComponentExtensionSpec. # noqa: E501
scale_target
@scale_target.setter
def scale_target(scale_target)
Sets the scale_target of this V1beta1ComponentExtensionSpec.
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Arguments:
scale_target
: The scale_target of this V1beta1ComponentExtensionSpec. # noqa: E501
timeout
@property
def timeout()
Gets the timeout of this V1beta1ComponentExtensionSpec. # noqa: E501
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Returns:
int
: The timeout of this V1beta1ComponentExtensionSpec. # noqa: E501
timeout
@timeout.setter
def timeout(timeout)
Sets the timeout of this V1beta1ComponentExtensionSpec.
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Arguments:
timeout
: The timeout of this V1beta1ComponentExtensionSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_custom_transformer
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1CustomTransformer
class V1beta1CustomTransformer(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
automount_service_account_token=None,
containers=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
image_pull_secrets=None,
init_containers=None,
node_name=None,
node_selector=None,
os=None,
overhead=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
subdomain=None,
termination_grace_period_seconds=None,
tolerations=None,
topology_spread_constraints=None,
volumes=None,
local_vars_configuration=None)
V1beta1CustomTransformer - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1CustomTransformer. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1CustomTransformer. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1CustomTransformer.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1CustomTransformer. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1CustomTransformer. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1CustomTransformer. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1CustomTransformer.
Arguments:
affinity
: The affinity of this V1beta1CustomTransformer. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1CustomTransformer. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1CustomTransformer. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1CustomTransformer.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1CustomTransformer. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1CustomTransformer. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1CustomTransformer. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1CustomTransformer.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1CustomTransformer. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1CustomTransformer. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1CustomTransformer. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1CustomTransformer.
Arguments:
dns_config
: The dns_config of this V1beta1CustomTransformer. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1CustomTransformer. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1CustomTransformer. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1CustomTransformer.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1CustomTransformer. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1CustomTransformer. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1CustomTransformer. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1CustomTransformer.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1CustomTransformer. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1CustomTransformer. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1CustomTransformer. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1CustomTransformer.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1CustomTransformer. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1CustomTransformer. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1CustomTransformer. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1CustomTransformer.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1CustomTransformer. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1CustomTransformer. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1CustomTransformer. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1CustomTransformer.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1CustomTransformer. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1CustomTransformer. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1CustomTransformer. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1CustomTransformer.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1CustomTransformer. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1CustomTransformer. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1CustomTransformer. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1CustomTransformer.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1CustomTransformer. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1CustomTransformer. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1CustomTransformer. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1CustomTransformer.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1CustomTransformer. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1CustomTransformer. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1CustomTransformer. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1CustomTransformer.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1CustomTransformer. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1CustomTransformer. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1CustomTransformer. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1CustomTransformer.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1CustomTransformer. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1CustomTransformer. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1CustomTransformer. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1CustomTransformer.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1CustomTransformer. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1CustomTransformer. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1CustomTransformer. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1CustomTransformer.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1CustomTransformer. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1CustomTransformer. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1CustomTransformer. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1CustomTransformer.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1CustomTransformer. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1CustomTransformer. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1CustomTransformer. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1CustomTransformer.
Arguments:
os
: The os of this V1beta1CustomTransformer. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1CustomTransformer. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1CustomTransformer. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1CustomTransformer.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1CustomTransformer. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1CustomTransformer. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1CustomTransformer. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1CustomTransformer.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1CustomTransformer. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1CustomTransformer. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1CustomTransformer. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1CustomTransformer.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1CustomTransformer. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1CustomTransformer. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1CustomTransformer. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1CustomTransformer.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1CustomTransformer. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1CustomTransformer. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1CustomTransformer. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1CustomTransformer.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1CustomTransformer. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1CustomTransformer. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1CustomTransformer. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1CustomTransformer.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1CustomTransformer. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1CustomTransformer. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1CustomTransformer. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1CustomTransformer.
Arguments:
resources
: The resources of this V1beta1CustomTransformer. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1CustomTransformer. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1CustomTransformer. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1CustomTransformer.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1CustomTransformer. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1CustomTransformer. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1CustomTransformer. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1CustomTransformer.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1CustomTransformer. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1CustomTransformer. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1CustomTransformer. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1CustomTransformer.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1CustomTransformer. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1CustomTransformer. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1CustomTransformer. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1CustomTransformer.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1CustomTransformer. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1CustomTransformer. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1CustomTransformer. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1CustomTransformer.
Arguments:
security_context
: The security_context of this V1beta1CustomTransformer. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1CustomTransformer. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1CustomTransformer. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1CustomTransformer.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1CustomTransformer. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1CustomTransformer. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1CustomTransformer. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1CustomTransformer.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1CustomTransformer. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1CustomTransformer. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1CustomTransformer. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1CustomTransformer.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1CustomTransformer. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1CustomTransformer. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1CustomTransformer. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1CustomTransformer.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1CustomTransformer. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1CustomTransformer. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1CustomTransformer. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1CustomTransformer.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1CustomTransformer. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1CustomTransformer. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1CustomTransformer. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1CustomTransformer.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1CustomTransformer. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1CustomTransformer. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1CustomTransformer. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1CustomTransformer.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1CustomTransformer. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1CustomTransformer. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1CustomTransformer. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1CustomTransformer.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1CustomTransformer. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1CustomTransformer. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1CustomTransformer. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1CustomTransformer.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1CustomTransformer. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_pod_metric_source
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PodMetricSource
class V1beta1PodMetricSource(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(metric=None, target=None, local_vars_configuration=None)
V1beta1PodMetricSource - a model defined in OpenAPI
metric
@property
def metric()
Gets the metric of this V1beta1PodMetricSource. # noqa: E501
Returns:
V1beta1PodMetrics
: The metric of this V1beta1PodMetricSource. # noqa: E501
metric
@metric.setter
def metric(metric)
Sets the metric of this V1beta1PodMetricSource.
Arguments:
metric
: The metric of this V1beta1PodMetricSource. # noqa: E501
target
@property
def target()
Gets the target of this V1beta1PodMetricSource. # noqa: E501
Returns:
V1beta1MetricTarget
: The target of this V1beta1PodMetricSource. # noqa: E501
target
@target.setter
def target(target)
Sets the target of this V1beta1PodMetricSource.
Arguments:
target
: The target of this V1beta1PodMetricSource. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_model_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ModelSpec
class V1alpha1ModelSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(framework='',
memory=None,
storage_uri='',
local_vars_configuration=None)
V1alpha1ModelSpec - a model defined in OpenAPI
framework
@property
def framework()
Gets the framework of this V1alpha1ModelSpec. # noqa: E501
Machine Learning <framework name>
The values could be: "tensorflow","pytorch","sklearn","onnx","xgboost", "myawesomeinternalframework" etc. # noqa: E501
Returns:
str
: The framework of this V1alpha1ModelSpec. # noqa: E501
framework
@framework.setter
def framework(framework)
Sets the framework of this V1alpha1ModelSpec.
Machine Learning <framework name>
The values could be: "tensorflow","pytorch","sklearn","onnx","xgboost", "myawesomeinternalframework" etc. # noqa: E501
Arguments:
framework
: The framework of this V1alpha1ModelSpec. # noqa: E501
memory
@property
def memory()
Gets the memory of this V1alpha1ModelSpec. # noqa: E501
Returns:
ResourceQuantity
: The memory of this V1alpha1ModelSpec. # noqa: E501
memory
@memory.setter
def memory(memory)
Sets the memory of this V1alpha1ModelSpec.
Arguments:
memory
: The memory of this V1alpha1ModelSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1alpha1ModelSpec. # noqa: E501
Storage URI for the model repository # noqa: E501
Returns:
str
: The storage_uri of this V1alpha1ModelSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1alpha1ModelSpec.
Storage URI for the model repository # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1alpha1ModelSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_llm_inference_service_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LLMInferenceServiceList
class V1alpha1LLMInferenceServiceList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1LLMInferenceServiceList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LLMInferenceServiceList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LLMInferenceServiceList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LLMInferenceServiceList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LLMInferenceServiceList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1LLMInferenceServiceList. # noqa: E501
Returns:
list[V1alpha1LLMInferenceService]
: The items of this V1alpha1LLMInferenceServiceList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1LLMInferenceServiceList.
Arguments:
items
: The items of this V1alpha1LLMInferenceServiceList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LLMInferenceServiceList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LLMInferenceServiceList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LLMInferenceServiceList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LLMInferenceServiceList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LLMInferenceServiceList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1LLMInferenceServiceList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LLMInferenceServiceList.
Arguments:
metadata
: The metadata of this V1alpha1LLMInferenceServiceList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_custom_predictor
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1CustomPredictor
class V1beta1CustomPredictor(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
automount_service_account_token=None,
containers=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
image_pull_secrets=None,
init_containers=None,
node_name=None,
node_selector=None,
os=None,
overhead=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
subdomain=None,
termination_grace_period_seconds=None,
tolerations=None,
topology_spread_constraints=None,
volumes=None,
local_vars_configuration=None)
V1beta1CustomPredictor - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1CustomPredictor. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1CustomPredictor. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1CustomPredictor.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1CustomPredictor. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1CustomPredictor. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1CustomPredictor. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1CustomPredictor.
Arguments:
affinity
: The affinity of this V1beta1CustomPredictor. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1CustomPredictor. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1CustomPredictor. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1CustomPredictor.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1CustomPredictor. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1CustomPredictor. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1CustomPredictor. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1CustomPredictor.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1CustomPredictor. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1CustomPredictor. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1CustomPredictor. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1CustomPredictor.
Arguments:
dns_config
: The dns_config of this V1beta1CustomPredictor. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1CustomPredictor. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1CustomPredictor. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1CustomPredictor.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1CustomPredictor. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1CustomPredictor. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1CustomPredictor. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1CustomPredictor.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1CustomPredictor. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1CustomPredictor. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1CustomPredictor. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1CustomPredictor.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1CustomPredictor. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1CustomPredictor. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1CustomPredictor. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1CustomPredictor.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1CustomPredictor. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1CustomPredictor. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1CustomPredictor. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1CustomPredictor.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1CustomPredictor. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1CustomPredictor. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1CustomPredictor. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1CustomPredictor.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1CustomPredictor. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1CustomPredictor. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1CustomPredictor. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1CustomPredictor.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1CustomPredictor. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1CustomPredictor. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1CustomPredictor. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1CustomPredictor.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1CustomPredictor. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1CustomPredictor. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1CustomPredictor. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1CustomPredictor.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1CustomPredictor. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1CustomPredictor. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1CustomPredictor. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1CustomPredictor.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1CustomPredictor. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1CustomPredictor. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1CustomPredictor. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1CustomPredictor.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1CustomPredictor. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1CustomPredictor. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1CustomPredictor. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1CustomPredictor.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1CustomPredictor. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1CustomPredictor. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1CustomPredictor. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1CustomPredictor.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1CustomPredictor. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1CustomPredictor. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1CustomPredictor. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1CustomPredictor.
Arguments:
os
: The os of this V1beta1CustomPredictor. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1CustomPredictor. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1CustomPredictor. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1CustomPredictor.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1CustomPredictor. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1CustomPredictor. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1CustomPredictor. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1CustomPredictor.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1CustomPredictor. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1CustomPredictor. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1CustomPredictor. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1CustomPredictor.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1CustomPredictor. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1CustomPredictor. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1CustomPredictor. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1CustomPredictor.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1CustomPredictor. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1CustomPredictor. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1CustomPredictor. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1CustomPredictor.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1CustomPredictor. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1CustomPredictor. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1CustomPredictor. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1CustomPredictor.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1CustomPredictor. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1CustomPredictor. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1CustomPredictor. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1CustomPredictor.
Arguments:
resources
: The resources of this V1beta1CustomPredictor. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1CustomPredictor. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1CustomPredictor. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1CustomPredictor.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1CustomPredictor. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1CustomPredictor. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1CustomPredictor. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1CustomPredictor.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1CustomPredictor. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1CustomPredictor. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1CustomPredictor. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1CustomPredictor.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1CustomPredictor. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1CustomPredictor. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1CustomPredictor. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1CustomPredictor.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1CustomPredictor. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1CustomPredictor. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1CustomPredictor. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1CustomPredictor.
Arguments:
security_context
: The security_context of this V1beta1CustomPredictor. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1CustomPredictor. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1CustomPredictor. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1CustomPredictor.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1CustomPredictor. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1CustomPredictor. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1CustomPredictor. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1CustomPredictor.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1CustomPredictor. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1CustomPredictor. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1CustomPredictor. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1CustomPredictor.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1CustomPredictor. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1CustomPredictor. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1CustomPredictor. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1CustomPredictor.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1CustomPredictor. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1CustomPredictor. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1CustomPredictor. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1CustomPredictor.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1CustomPredictor. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1CustomPredictor. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1CustomPredictor. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1CustomPredictor.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1CustomPredictor. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1CustomPredictor. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1CustomPredictor. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1CustomPredictor.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1CustomPredictor. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1CustomPredictor. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1CustomPredictor. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1CustomPredictor.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1CustomPredictor. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1CustomPredictor. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1CustomPredictor. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1CustomPredictor.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1CustomPredictor. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.knative_status
KServe
Python SDK for KServe # noqa: E501
OpenAPI spec version: v0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
KnativeStatus
class KnativeStatus(object)
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
__init__
def __init__(conditions=None, observed_generation=None)
KnativeStatus - a model defined in Swagger
conditions
@property
def conditions()
Gets the conditions of this KnativeStatus. # noqa: E501
Conditions the latest available observations of a resource's current state. # noqa: E501
Returns:
list[KnativeCondition]
: The conditions of this KnativeStatus. # noqa: E501
conditions
@conditions.setter
def conditions(conditions)
Sets the conditions of this KnativeStatus.
Conditions the latest available observations of a resource's current state. # noqa: E501
Arguments:
conditions
: The conditions of this KnativeStatus. # noqa: E501
observed_generation
@property
def observed_generation()
Gets the observed_generation of this KnativeStatus. # noqa: E501
ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. # noqa: E501
Returns:
int
: The observed_generation of this KnativeStatus. # noqa: E501
observed_generation
@observed_generation.setter
def observed_generation(observed_generation)
Sets the observed_generation of this KnativeStatus.
ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. # noqa: E501
Arguments:
observed_generation
: The observed_generation of this KnativeStatus. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_supported_uri_format
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1SupportedUriFormat
class V1alpha1SupportedUriFormat(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(prefix=None, regex=None, local_vars_configuration=None)
V1alpha1SupportedUriFormat - a model defined in OpenAPI
prefix
@property
def prefix()
Gets the prefix of this V1alpha1SupportedUriFormat. # noqa: E501
Returns:
str
: The prefix of this V1alpha1SupportedUriFormat. # noqa: E501
prefix
@prefix.setter
def prefix(prefix)
Sets the prefix of this V1alpha1SupportedUriFormat.
Arguments:
prefix
: The prefix of this V1alpha1SupportedUriFormat. # noqa: E501
regex
@property
def regex()
Gets the regex of this V1alpha1SupportedUriFormat. # noqa: E501
Returns:
str
: The regex of this V1alpha1SupportedUriFormat. # noqa: E501
regex
@regex.setter
def regex(regex)
Sets the regex of this V1alpha1SupportedUriFormat.
Arguments:
regex
: The regex of this V1alpha1SupportedUriFormat. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_keda_scaler
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1KedaScaler
class V1beta1KedaScaler(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(idle_replica_count=None,
max_replica_count=None,
min_replica_count=None,
triggers=None,
local_vars_configuration=None)
V1beta1KedaScaler - a model defined in OpenAPI
idle_replica_count
@property
def idle_replica_count()
Gets the idle_replica_count of this V1beta1KedaScaler. # noqa: E501
Number of idle replicas, Default: ignored, must be less than minReplicaCount # noqa: E501
Returns:
int
: The idle_replica_count of this V1beta1KedaScaler. # noqa: E501
idle_replica_count
@idle_replica_count.setter
def idle_replica_count(idle_replica_count)
Sets the idle_replica_count of this V1beta1KedaScaler.
Number of idle replicas, Default: ignored, must be less than minReplicaCount # noqa: E501
Arguments:
idle_replica_count
: The idle_replica_count of this V1beta1KedaScaler. # noqa: E501
max_replica_count
@property
def max_replica_count()
Gets the max_replica_count of this V1beta1KedaScaler. # noqa: E501
Maximum number of replicas for autoscaling. # noqa: E501
Returns:
int
: The max_replica_count of this V1beta1KedaScaler. # noqa: E501
max_replica_count
@max_replica_count.setter
def max_replica_count(max_replica_count)
Sets the max_replica_count of this V1beta1KedaScaler.
Maximum number of replicas for autoscaling. # noqa: E501
Arguments:
max_replica_count
: The max_replica_count of this V1beta1KedaScaler. # noqa: E501
min_replica_count
@property
def min_replica_count()
Gets the min_replica_count of this V1beta1KedaScaler. # noqa: E501
Minimum number of replicas, default: 0 # noqa: E501
Returns:
int
: The min_replica_count of this V1beta1KedaScaler. # noqa: E501
min_replica_count
@min_replica_count.setter
def min_replica_count(min_replica_count)
Sets the min_replica_count of this V1beta1KedaScaler.
Minimum number of replicas, default: 0 # noqa: E501
Arguments:
min_replica_count
: The min_replica_count of this V1beta1KedaScaler. # noqa: E501
triggers
@property
def triggers()
Gets the triggers of this V1beta1KedaScaler. # noqa: E501
Returns:
list[GithubComKedacoreKedaV2ApisKedaV1alpha1ScaleTriggers]
: The triggers of this V1beta1KedaScaler. # noqa: E501
triggers
@triggers.setter
def triggers(triggers)
Sets the triggers of this V1beta1KedaScaler.
Arguments:
triggers
: The triggers of this V1beta1KedaScaler. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_serving_runtime_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ServingRuntimeSpec
class V1alpha1ServingRuntimeSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(affinity=None,
annotations=None,
built_in_adapter=None,
containers=None,
disabled=None,
grpc_data_endpoint=None,
grpc_endpoint=None,
host_ipc=None,
http_data_endpoint=None,
image_pull_secrets=None,
labels=None,
multi_model=None,
node_selector=None,
protocol_versions=None,
replicas=None,
storage_helper=None,
supported_model_formats=None,
tolerations=None,
volumes=None,
worker_spec=None,
local_vars_configuration=None)
V1alpha1ServingRuntimeSpec - a model defined in OpenAPI
affinity
@property
def affinity()
Gets the affinity of this V1alpha1ServingRuntimeSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1alpha1ServingRuntimeSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1alpha1ServingRuntimeSpec.
Arguments:
affinity
: The affinity of this V1alpha1ServingRuntimeSpec. # noqa: E501
annotations
@property
def annotations()
Gets the annotations of this V1alpha1ServingRuntimeSpec. # noqa: E501
Annotations that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/annotations # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1alpha1ServingRuntimeSpec. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1alpha1ServingRuntimeSpec.
Annotations that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/annotations # noqa: E501
Arguments:
annotations
: The annotations of this V1alpha1ServingRuntimeSpec. # noqa: E501
built_in_adapter
@property
def built_in_adapter()
Gets the built_in_adapter of this V1alpha1ServingRuntimeSpec. # noqa: E501
Returns:
V1alpha1BuiltInAdapter
: The built_in_adapter of this V1alpha1ServingRuntimeSpec. # noqa: E501
built_in_adapter
@built_in_adapter.setter
def built_in_adapter(built_in_adapter)
Sets the built_in_adapter of this V1alpha1ServingRuntimeSpec.
Arguments:
built_in_adapter
: The built_in_adapter of this V1alpha1ServingRuntimeSpec. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1alpha1ServingRuntimeSpec. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1alpha1ServingRuntimeSpec. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1alpha1ServingRuntimeSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1alpha1ServingRuntimeSpec. # noqa: E501
disabled
@property
def disabled()
Gets the disabled of this V1alpha1ServingRuntimeSpec. # noqa: E501
Set to true to disable use of this runtime # noqa: E501
Returns:
bool
: The disabled of this V1alpha1ServingRuntimeSpec. # noqa: E501
disabled
@disabled.setter
def disabled(disabled)
Sets the disabled of this V1alpha1ServingRuntimeSpec.
Set to true to disable use of this runtime # noqa: E501
Arguments:
disabled
: The disabled of this V1alpha1ServingRuntimeSpec. # noqa: E501
grpc_data_endpoint
@property
def grpc_data_endpoint()
Gets the grpc_data_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
Grpc endpoint for inferencing # noqa: E501
Returns:
str
: The grpc_data_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
grpc_data_endpoint
@grpc_data_endpoint.setter
def grpc_data_endpoint(grpc_data_endpoint)
Sets the grpc_data_endpoint of this V1alpha1ServingRuntimeSpec.
Grpc endpoint for inferencing # noqa: E501
Arguments:
grpc_data_endpoint
: The grpc_data_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
grpc_endpoint
@property
def grpc_endpoint()
Gets the grpc_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
Grpc endpoint for internal model-management (implementing mmesh.ModelRuntime gRPC service) Assumed to be single-model runtime if omitted # noqa: E501
Returns:
str
: The grpc_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
grpc_endpoint
@grpc_endpoint.setter
def grpc_endpoint(grpc_endpoint)
Sets the grpc_endpoint of this V1alpha1ServingRuntimeSpec.
Grpc endpoint for internal model-management (implementing mmesh.ModelRuntime gRPC service) Assumed to be single-model runtime if omitted # noqa: E501
Arguments:
grpc_endpoint
: The grpc_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1alpha1ServingRuntimeSpec. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1alpha1ServingRuntimeSpec. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1alpha1ServingRuntimeSpec.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1alpha1ServingRuntimeSpec. # noqa: E501
http_data_endpoint
@property
def http_data_endpoint()
Gets the http_data_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
HTTP endpoint for inferencing # noqa: E501
Returns:
str
: The http_data_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
http_data_endpoint
@http_data_endpoint.setter
def http_data_endpoint(http_data_endpoint)
Sets the http_data_endpoint of this V1alpha1ServingRuntimeSpec.
HTTP endpoint for inferencing # noqa: E501
Arguments:
http_data_endpoint
: The http_data_endpoint of this V1alpha1ServingRuntimeSpec. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1alpha1ServingRuntimeSpec. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1alpha1ServingRuntimeSpec. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1alpha1ServingRuntimeSpec.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1alpha1ServingRuntimeSpec. # noqa: E501
labels
@property
def labels()
Gets the labels of this V1alpha1ServingRuntimeSpec. # noqa: E501
Labels that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/labels # noqa: E501
Returns:
dict(str, str)
: The labels of this V1alpha1ServingRuntimeSpec. # noqa: E501
labels
@labels.setter
def labels(labels)
Sets the labels of this V1alpha1ServingRuntimeSpec.
Labels that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/labels # noqa: E501
Arguments:
labels
: The labels of this V1alpha1ServingRuntimeSpec. # noqa: E501
multi_model
@property
def multi_model()
Gets the multi_model of this V1alpha1ServingRuntimeSpec. # noqa: E501
Whether this ServingRuntime is intended for multi-model usage or not. # noqa: E501
Returns:
bool
: The multi_model of this V1alpha1ServingRuntimeSpec. # noqa: E501
multi_model
@multi_model.setter
def multi_model(multi_model)
Sets the multi_model of this V1alpha1ServingRuntimeSpec.
Whether this ServingRuntime is intended for multi-model usage or not. # noqa: E501
Arguments:
multi_model
: The multi_model of this V1alpha1ServingRuntimeSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1alpha1ServingRuntimeSpec. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1alpha1ServingRuntimeSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1alpha1ServingRuntimeSpec.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1alpha1ServingRuntimeSpec. # noqa: E501
protocol_versions
@property
def protocol_versions()
Gets the protocol_versions of this V1alpha1ServingRuntimeSpec. # noqa: E501
Supported protocol versions (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
list[str]
: The protocol_versions of this V1alpha1ServingRuntimeSpec. # noqa: E501
protocol_versions
@protocol_versions.setter
def protocol_versions(protocol_versions)
Sets the protocol_versions of this V1alpha1ServingRuntimeSpec.
Supported protocol versions (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_versions
: The protocol_versions of this V1alpha1ServingRuntimeSpec. # noqa: E501
replicas
@property
def replicas()
Gets the replicas of this V1alpha1ServingRuntimeSpec. # noqa: E501
Configure the number of replicas in the Deployment generated by this ServingRuntime If specified, this overrides the podsPerRuntime configuration value # noqa: E501
Returns:
int
: The replicas of this V1alpha1ServingRuntimeSpec. # noqa: E501
replicas
@replicas.setter
def replicas(replicas)
Sets the replicas of this V1alpha1ServingRuntimeSpec.
Configure the number of replicas in the Deployment generated by this ServingRuntime If specified, this overrides the podsPerRuntime configuration value # noqa: E501
Arguments:
replicas
: The replicas of this V1alpha1ServingRuntimeSpec. # noqa: E501
storage_helper
@property
def storage_helper()
Gets the storage_helper of this V1alpha1ServingRuntimeSpec. # noqa: E501
Returns:
V1alpha1StorageHelper
: The storage_helper of this V1alpha1ServingRuntimeSpec. # noqa: E501
storage_helper
@storage_helper.setter
def storage_helper(storage_helper)
Sets the storage_helper of this V1alpha1ServingRuntimeSpec.
Arguments:
storage_helper
: The storage_helper of this V1alpha1ServingRuntimeSpec. # noqa: E501
supported_model_formats
@property
def supported_model_formats()
Gets the supported_model_formats of this V1alpha1ServingRuntimeSpec. # noqa: E501
Model formats and version supported by this runtime # noqa: E501
Returns:
list[V1alpha1SupportedModelFormat]
: The supported_model_formats of this V1alpha1ServingRuntimeSpec. # noqa: E501
supported_model_formats
@supported_model_formats.setter
def supported_model_formats(supported_model_formats)
Sets the supported_model_formats of this V1alpha1ServingRuntimeSpec.
Model formats and version supported by this runtime # noqa: E501
Arguments:
supported_model_formats
: The supported_model_formats of this V1alpha1ServingRuntimeSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1alpha1ServingRuntimeSpec. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1alpha1ServingRuntimeSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1alpha1ServingRuntimeSpec.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1alpha1ServingRuntimeSpec. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1alpha1ServingRuntimeSpec. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1alpha1ServingRuntimeSpec. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1alpha1ServingRuntimeSpec.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1alpha1ServingRuntimeSpec. # noqa: E501
worker_spec
@property
def worker_spec()
Gets the worker_spec of this V1alpha1ServingRuntimeSpec. # noqa: E501
Returns:
V1alpha1WorkerSpec
: The worker_spec of this V1alpha1ServingRuntimeSpec. # noqa: E501
worker_spec
@worker_spec.setter
def worker_spec(worker_spec)
Sets the worker_spec of this V1alpha1ServingRuntimeSpec.
Arguments:
worker_spec
: The worker_spec of this V1alpha1ServingRuntimeSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_serving_runtime
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ServingRuntime
class V1alpha1ServingRuntime(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1ServingRuntime - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1ServingRuntime. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1ServingRuntime. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1ServingRuntime.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1ServingRuntime. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1ServingRuntime. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1ServingRuntime. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1ServingRuntime.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1ServingRuntime. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1ServingRuntime. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1ServingRuntime. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1ServingRuntime.
Arguments:
metadata
: The metadata of this V1alpha1ServingRuntime. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1ServingRuntime. # noqa: E501
Returns:
V1alpha1ServingRuntimeSpec
: The spec of this V1alpha1ServingRuntime. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1ServingRuntime.
Arguments:
spec
: The spec of this V1alpha1ServingRuntime. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1ServingRuntime. # noqa: E501
ServingRuntimeStatus defines the observed state of ServingRuntime # noqa: E501
Returns:
object
: The status of this V1alpha1ServingRuntime. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1ServingRuntime.
ServingRuntimeStatus defines the observed state of ServingRuntime # noqa: E501
Arguments:
status
: The status of this V1alpha1ServingRuntime. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_ext_metric_authentication
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ExtMetricAuthentication
class V1beta1ExtMetricAuthentication(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(auth_modes=None,
authentication_ref=None,
local_vars_configuration=None)
V1beta1ExtMetricAuthentication - a model defined in OpenAPI
auth_modes
@property
def auth_modes()
Gets the auth_modes of this V1beta1ExtMetricAuthentication. # noqa: E501
authModes defines the authentication modes for the metrics backend possible values are bearer, basic, tls. for more information see: https://keda.sh/docs/2.17/scalers/prometheus/`authentication`-parameters # noqa: E501
Returns:
str
: The auth_modes of this V1beta1ExtMetricAuthentication. # noqa: E501
auth_modes
@auth_modes.setter
def auth_modes(auth_modes)
Sets the auth_modes of this V1beta1ExtMetricAuthentication.
authModes defines the authentication modes for the metrics backend possible values are bearer, basic, tls. for more information see: https://keda.sh/docs/2.17/scalers/prometheus/`authentication`-parameters # noqa: E501
Arguments:
auth_modes
: The auth_modes of this V1beta1ExtMetricAuthentication. # noqa: E501
authentication_ref
@property
def authentication_ref()
Gets the authentication_ref of this V1beta1ExtMetricAuthentication. # noqa: E501
Returns:
V1beta1AuthenticationRef
: The authentication_ref of this V1beta1ExtMetricAuthentication. # noqa: E501
authentication_ref
@authentication_ref.setter
def authentication_ref(authentication_ref)
Sets the authentication_ref of this V1beta1ExtMetricAuthentication.
Arguments:
authentication_ref
: The authentication_ref of this V1beta1ExtMetricAuthentication. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_trained_model_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1TrainedModelSpec
class V1alpha1TrainedModelSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(inference_service='', model=None, local_vars_configuration=None)
V1alpha1TrainedModelSpec - a model defined in OpenAPI
inference_service
@property
def inference_service()
Gets the inference_service of this V1alpha1TrainedModelSpec. # noqa: E501
parent inference service to deploy to # noqa: E501
Returns:
str
: The inference_service of this V1alpha1TrainedModelSpec. # noqa: E501
inference_service
@inference_service.setter
def inference_service(inference_service)
Sets the inference_service of this V1alpha1TrainedModelSpec.
parent inference service to deploy to # noqa: E501
Arguments:
inference_service
: The inference_service of this V1alpha1TrainedModelSpec. # noqa: E501
model
@property
def model()
Gets the model of this V1alpha1TrainedModelSpec. # noqa: E501
Returns:
V1alpha1ModelSpec
: The model of this V1alpha1TrainedModelSpec. # noqa: E501
model
@model.setter
def model(model)
Sets the model of this V1alpha1TrainedModelSpec.
Arguments:
model
: The model of this V1alpha1TrainedModelSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_paddle_server_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PaddleServerSpec
class V1beta1PaddleServerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1PaddleServerSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1PaddleServerSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1PaddleServerSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1PaddleServerSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1PaddleServerSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1PaddleServerSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1PaddleServerSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1PaddleServerSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1PaddleServerSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1PaddleServerSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1PaddleServerSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1PaddleServerSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1PaddleServerSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1PaddleServerSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1PaddleServerSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1PaddleServerSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1PaddleServerSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1PaddleServerSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1PaddleServerSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1PaddleServerSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1PaddleServerSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1PaddleServerSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1PaddleServerSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1PaddleServerSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1PaddleServerSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1PaddleServerSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1PaddleServerSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1PaddleServerSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1PaddleServerSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1PaddleServerSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1PaddleServerSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1PaddleServerSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1PaddleServerSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1PaddleServerSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1PaddleServerSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1PaddleServerSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1PaddleServerSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1PaddleServerSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1PaddleServerSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1PaddleServerSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1PaddleServerSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1PaddleServerSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1PaddleServerSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1PaddleServerSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1PaddleServerSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1PaddleServerSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1PaddleServerSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1PaddleServerSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1PaddleServerSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1PaddleServerSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1PaddleServerSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1PaddleServerSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1PaddleServerSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1PaddleServerSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1PaddleServerSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1PaddleServerSpec.
Arguments:
resources
: The resources of this V1beta1PaddleServerSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1PaddleServerSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1PaddleServerSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1PaddleServerSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1PaddleServerSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1PaddleServerSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1PaddleServerSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1PaddleServerSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1PaddleServerSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1PaddleServerSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1PaddleServerSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1PaddleServerSpec.
Arguments:
security_context
: The security_context of this V1beta1PaddleServerSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1PaddleServerSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1PaddleServerSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1PaddleServerSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1PaddleServerSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1PaddleServerSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1PaddleServerSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1PaddleServerSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1PaddleServerSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1PaddleServerSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1PaddleServerSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1PaddleServerSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1PaddleServerSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1PaddleServerSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1PaddleServerSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1PaddleServerSpec.
Arguments:
storage
: The storage of this V1beta1PaddleServerSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1PaddleServerSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1PaddleServerSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1PaddleServerSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1PaddleServerSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1PaddleServerSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1PaddleServerSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1PaddleServerSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1PaddleServerSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1PaddleServerSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1PaddleServerSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1PaddleServerSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1PaddleServerSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1PaddleServerSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1PaddleServerSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1PaddleServerSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1PaddleServerSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1PaddleServerSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1PaddleServerSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1PaddleServerSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1PaddleServerSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1PaddleServerSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1PaddleServerSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1PaddleServerSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1PaddleServerSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1PaddleServerSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1PaddleServerSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1PaddleServerSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1PaddleServerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_storage_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1StorageSpec
class V1beta1StorageSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(key=None,
parameters=None,
path=None,
local_vars_configuration=None)
V1beta1StorageSpec - a model defined in OpenAPI
key
@property
def key()
Gets the key of this V1beta1StorageSpec. # noqa: E501
The Storage Key in the secret for this object. # noqa: E501
Returns:
str
: The key of this V1beta1StorageSpec. # noqa: E501
key
@key.setter
def key(key)
Sets the key of this V1beta1StorageSpec.
The Storage Key in the secret for this object. # noqa: E501
Arguments:
key
: The key of this V1beta1StorageSpec. # noqa: E501
parameters
@property
def parameters()
Gets the parameters of this V1beta1StorageSpec. # noqa: E501
Parameters to override the default storage credentials and config. # noqa: E501
Returns:
dict(str, str)
: The parameters of this V1beta1StorageSpec. # noqa: E501
parameters
@parameters.setter
def parameters(parameters)
Sets the parameters of this V1beta1StorageSpec.
Parameters to override the default storage credentials and config. # noqa: E501
Arguments:
parameters
: The parameters of this V1beta1StorageSpec. # noqa: E501
path
@property
def path()
Gets the path of this V1beta1StorageSpec. # noqa: E501
The path to the object in the storage. Note that this path is relative to the storage URI. # noqa: E501
Returns:
str
: The path of this V1beta1StorageSpec. # noqa: E501
path
@path.setter
def path(path)
Sets the path of this V1beta1StorageSpec.
The path to the object in the storage. Note that this path is relative to the storage URI. # noqa: E501
Arguments:
path
: The path of this V1beta1StorageSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_external_metric_source
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ExternalMetricSource
class V1beta1ExternalMetricSource(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(authentication_ref=None,
metric=None,
target=None,
local_vars_configuration=None)
V1beta1ExternalMetricSource - a model defined in OpenAPI
authentication_ref
@property
def authentication_ref()
Gets the authentication_ref of this V1beta1ExternalMetricSource. # noqa: E501
Returns:
V1beta1ExtMetricAuthentication
: The authentication_ref of this V1beta1ExternalMetricSource. # noqa: E501
authentication_ref
@authentication_ref.setter
def authentication_ref(authentication_ref)
Sets the authentication_ref of this V1beta1ExternalMetricSource.
Arguments:
authentication_ref
: The authentication_ref of this V1beta1ExternalMetricSource. # noqa: E501
metric
@property
def metric()
Gets the metric of this V1beta1ExternalMetricSource. # noqa: E501
Returns:
V1beta1ExternalMetrics
: The metric of this V1beta1ExternalMetricSource. # noqa: E501
metric
@metric.setter
def metric(metric)
Sets the metric of this V1beta1ExternalMetricSource.
Arguments:
metric
: The metric of this V1beta1ExternalMetricSource. # noqa: E501
target
@property
def target()
Gets the target of this V1beta1ExternalMetricSource. # noqa: E501
Returns:
V1beta1MetricTarget
: The target of this V1beta1ExternalMetricSource. # noqa: E501
target
@target.setter
def target(target)
Sets the target of this V1beta1ExternalMetricSource.
Arguments:
target
: The target of this V1beta1ExternalMetricSource. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_service_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ServiceConfig
class V1beta1ServiceConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(service_cluster_ip_none=None, local_vars_configuration=None)
V1beta1ServiceConfig - a model defined in OpenAPI
service_cluster_ip_none
@property
def service_cluster_ip_none()
Gets the service_cluster_ip_none of this V1beta1ServiceConfig. # noqa: E501
ServiceClusterIPNone is a boolean flag to indicate if the service should have a clusterIP set to None. If the DeploymentMode is Raw, the default value for ServiceClusterIPNone is false when the value is absent. # noqa: E501
Returns:
bool
: The service_cluster_ip_none of this V1beta1ServiceConfig. # noqa: E501
service_cluster_ip_none
@service_cluster_ip_none.setter
def service_cluster_ip_none(service_cluster_ip_none)
Sets the service_cluster_ip_none of this V1beta1ServiceConfig.
ServiceClusterIPNone is a boolean flag to indicate if the service should have a clusterIP set to None. If the DeploymentMode is Raw, the default value for ServiceClusterIPNone is false when the value is absent. # noqa: E501
Arguments:
service_cluster_ip_none
: The service_cluster_ip_none of this V1beta1ServiceConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_node_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelNodeList
class V1alpha1LocalModelNodeList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1LocalModelNodeList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LocalModelNodeList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LocalModelNodeList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LocalModelNodeList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LocalModelNodeList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1LocalModelNodeList. # noqa: E501
Returns:
list[V1alpha1LocalModelNode]
: The items of this V1alpha1LocalModelNodeList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1LocalModelNodeList.
Arguments:
items
: The items of this V1alpha1LocalModelNodeList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LocalModelNodeList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LocalModelNodeList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LocalModelNodeList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LocalModelNodeList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LocalModelNodeList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1LocalModelNodeList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LocalModelNodeList.
Arguments:
metadata
: The metadata of this V1alpha1LocalModelNodeList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_model_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ModelSpec
class V1beta1ModelSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(args=None,
command=None,
env=None,
env_from=None,
image=None,
image_pull_policy=None,
lifecycle=None,
liveness_probe=None,
model_format=None,
name='',
ports=None,
protocol_version=None,
readiness_probe=None,
resize_policy=None,
resources=None,
restart_policy=None,
runtime=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1ModelSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1ModelSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1ModelSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1ModelSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1ModelSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1ModelSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1ModelSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1ModelSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1ModelSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1ModelSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1ModelSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1ModelSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1ModelSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1ModelSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1ModelSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1ModelSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1ModelSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1ModelSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1ModelSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1ModelSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1ModelSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1ModelSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1ModelSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1ModelSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1ModelSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1ModelSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1ModelSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1ModelSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1ModelSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1ModelSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1ModelSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1ModelSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1ModelSpec. # noqa: E501
model_format
@property
def model_format()
Gets the model_format of this V1beta1ModelSpec. # noqa: E501
Returns:
V1beta1ModelFormat
: The model_format of this V1beta1ModelSpec. # noqa: E501
model_format
@model_format.setter
def model_format(model_format)
Sets the model_format of this V1beta1ModelSpec.
Arguments:
model_format
: The model_format of this V1beta1ModelSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1ModelSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1ModelSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1ModelSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1ModelSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1ModelSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1ModelSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1ModelSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1ModelSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1ModelSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1ModelSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1ModelSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1ModelSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1ModelSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1ModelSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1ModelSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1ModelSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1ModelSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1ModelSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1ModelSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1ModelSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1ModelSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1ModelSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1ModelSpec.
Arguments:
resources
: The resources of this V1beta1ModelSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1ModelSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1ModelSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1ModelSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1ModelSpec. # noqa: E501
runtime
@property
def runtime()
Gets the runtime of this V1beta1ModelSpec. # noqa: E501
Specific ClusterServingRuntime/ServingRuntime name to use for deployment. # noqa: E501
Returns:
str
: The runtime of this V1beta1ModelSpec. # noqa: E501
runtime
@runtime.setter
def runtime(runtime)
Sets the runtime of this V1beta1ModelSpec.
Specific ClusterServingRuntime/ServingRuntime name to use for deployment. # noqa: E501
Arguments:
runtime
: The runtime of this V1beta1ModelSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1ModelSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1ModelSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1ModelSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1ModelSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1ModelSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1ModelSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1ModelSpec.
Arguments:
security_context
: The security_context of this V1beta1ModelSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1ModelSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1ModelSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1ModelSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1ModelSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1ModelSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1ModelSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1ModelSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1ModelSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1ModelSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1ModelSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1ModelSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1ModelSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1ModelSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1ModelSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1ModelSpec.
Arguments:
storage
: The storage of this V1beta1ModelSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1ModelSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1ModelSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1ModelSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1ModelSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1ModelSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1ModelSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1ModelSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1ModelSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1ModelSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1ModelSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1ModelSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1ModelSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1ModelSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1ModelSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1ModelSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1ModelSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1ModelSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1ModelSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1ModelSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1ModelSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1ModelSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1ModelSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1ModelSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1ModelSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1ModelSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1ModelSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1ModelSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1ModelSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_model_status
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ModelStatus
class V1beta1ModelStatus(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(copies=None,
last_failure_info=None,
states=None,
transition_status='',
local_vars_configuration=None)
V1beta1ModelStatus - a model defined in OpenAPI
copies
@property
def copies()
Gets the copies of this V1beta1ModelStatus. # noqa: E501
Returns:
V1beta1ModelCopies
: The copies of this V1beta1ModelStatus. # noqa: E501
copies
@copies.setter
def copies(copies)
Sets the copies of this V1beta1ModelStatus.
Arguments:
copies
: The copies of this V1beta1ModelStatus. # noqa: E501
last_failure_info
@property
def last_failure_info()
Gets the last_failure_info of this V1beta1ModelStatus. # noqa: E501
Returns:
V1beta1FailureInfo
: The last_failure_info of this V1beta1ModelStatus. # noqa: E501
last_failure_info
@last_failure_info.setter
def last_failure_info(last_failure_info)
Sets the last_failure_info of this V1beta1ModelStatus.
Arguments:
last_failure_info
: The last_failure_info of this V1beta1ModelStatus. # noqa: E501
states
@property
def states()
Gets the states of this V1beta1ModelStatus. # noqa: E501
Returns:
V1beta1ModelRevisionStates
: The states of this V1beta1ModelStatus. # noqa: E501
states
@states.setter
def states(states)
Sets the states of this V1beta1ModelStatus.
Arguments:
states
: The states of this V1beta1ModelStatus. # noqa: E501
transition_status
@property
def transition_status()
Gets the transition_status of this V1beta1ModelStatus. # noqa: E501
Whether the available predictor endpoints reflect the current Spec or is in transition # noqa: E501
Returns:
str
: The transition_status of this V1beta1ModelStatus. # noqa: E501
transition_status
@transition_status.setter
def transition_status(transition_status)
Sets the transition_status of this V1beta1ModelStatus.
Whether the available predictor endpoints reflect the current Spec or is in transition # noqa: E501
Arguments:
transition_status
: The transition_status of this V1beta1ModelStatus. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_custom_explainer
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1CustomExplainer
class V1beta1CustomExplainer(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
automount_service_account_token=None,
containers=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
image_pull_secrets=None,
init_containers=None,
node_name=None,
node_selector=None,
os=None,
overhead=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
subdomain=None,
termination_grace_period_seconds=None,
tolerations=None,
topology_spread_constraints=None,
volumes=None,
local_vars_configuration=None)
V1beta1CustomExplainer - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1CustomExplainer. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1CustomExplainer. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1CustomExplainer.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1CustomExplainer. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1CustomExplainer. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1CustomExplainer. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1CustomExplainer.
Arguments:
affinity
: The affinity of this V1beta1CustomExplainer. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1CustomExplainer. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1CustomExplainer. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1CustomExplainer.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1CustomExplainer. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1CustomExplainer. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1CustomExplainer. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1CustomExplainer.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1CustomExplainer. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1CustomExplainer. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1CustomExplainer. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1CustomExplainer.
Arguments:
dns_config
: The dns_config of this V1beta1CustomExplainer. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1CustomExplainer. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1CustomExplainer. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1CustomExplainer.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1CustomExplainer. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1CustomExplainer. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1CustomExplainer. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1CustomExplainer.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1CustomExplainer. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1CustomExplainer. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1CustomExplainer. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1CustomExplainer.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1CustomExplainer. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1CustomExplainer. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1CustomExplainer. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1CustomExplainer.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1CustomExplainer. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1CustomExplainer. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1CustomExplainer. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1CustomExplainer.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1CustomExplainer. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1CustomExplainer. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1CustomExplainer. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1CustomExplainer.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1CustomExplainer. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1CustomExplainer. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1CustomExplainer. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1CustomExplainer.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1CustomExplainer. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1CustomExplainer. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1CustomExplainer. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1CustomExplainer.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1CustomExplainer. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1CustomExplainer. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1CustomExplainer. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1CustomExplainer.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1CustomExplainer. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1CustomExplainer. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1CustomExplainer. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1CustomExplainer.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1CustomExplainer. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1CustomExplainer. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1CustomExplainer. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1CustomExplainer.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1CustomExplainer. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1CustomExplainer. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1CustomExplainer. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1CustomExplainer.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1CustomExplainer. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1CustomExplainer. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1CustomExplainer. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1CustomExplainer.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1CustomExplainer. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1CustomExplainer. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1CustomExplainer. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1CustomExplainer.
Arguments:
os
: The os of this V1beta1CustomExplainer. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1CustomExplainer. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1CustomExplainer. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1CustomExplainer.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1CustomExplainer. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1CustomExplainer. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1CustomExplainer. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1CustomExplainer.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1CustomExplainer. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1CustomExplainer. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1CustomExplainer. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1CustomExplainer.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1CustomExplainer. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1CustomExplainer. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1CustomExplainer. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1CustomExplainer.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1CustomExplainer. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1CustomExplainer. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1CustomExplainer. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1CustomExplainer.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1CustomExplainer. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1CustomExplainer. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1CustomExplainer. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1CustomExplainer.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1CustomExplainer. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1CustomExplainer. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1CustomExplainer. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1CustomExplainer.
Arguments:
resources
: The resources of this V1beta1CustomExplainer. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1CustomExplainer. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1CustomExplainer. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1CustomExplainer.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1CustomExplainer. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1CustomExplainer. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1CustomExplainer. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1CustomExplainer.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1CustomExplainer. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1CustomExplainer. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1CustomExplainer. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1CustomExplainer.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1CustomExplainer. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1CustomExplainer. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1CustomExplainer. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1CustomExplainer.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1CustomExplainer. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1CustomExplainer. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1CustomExplainer. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1CustomExplainer.
Arguments:
security_context
: The security_context of this V1beta1CustomExplainer. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1CustomExplainer. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1CustomExplainer. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1CustomExplainer.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1CustomExplainer. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1CustomExplainer. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1CustomExplainer. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1CustomExplainer.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1CustomExplainer. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1CustomExplainer. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1CustomExplainer. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1CustomExplainer.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1CustomExplainer. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1CustomExplainer. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1CustomExplainer. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1CustomExplainer.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1CustomExplainer. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1CustomExplainer. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1CustomExplainer. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1CustomExplainer.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1CustomExplainer. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1CustomExplainer. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1CustomExplainer. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1CustomExplainer.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1CustomExplainer. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1CustomExplainer. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1CustomExplainer. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1CustomExplainer.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1CustomExplainer. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1CustomExplainer. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1CustomExplainer. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1CustomExplainer.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1CustomExplainer. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1CustomExplainer. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1CustomExplainer. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1CustomExplainer.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1CustomExplainer. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_explainers_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ExplainersConfig
class V1beta1ExplainersConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(art=None, local_vars_configuration=None)
V1beta1ExplainersConfig - a model defined in OpenAPI
art
@property
def art()
Gets the art of this V1beta1ExplainersConfig. # noqa: E501
Returns:
V1beta1ExplainerConfig
: The art of this V1beta1ExplainersConfig. # noqa: E501
art
@art.setter
def art(art)
Sets the art of this V1beta1ExplainersConfig.
Arguments:
art
: The art of this V1beta1ExplainersConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_pmml_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PMMLSpec
class V1beta1PMMLSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1PMMLSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1PMMLSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1PMMLSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1PMMLSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1PMMLSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1PMMLSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1PMMLSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1PMMLSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1PMMLSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1PMMLSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1PMMLSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1PMMLSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1PMMLSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1PMMLSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1PMMLSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1PMMLSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1PMMLSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1PMMLSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1PMMLSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1PMMLSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1PMMLSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1PMMLSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1PMMLSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1PMMLSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1PMMLSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1PMMLSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1PMMLSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1PMMLSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1PMMLSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1PMMLSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1PMMLSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1PMMLSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1PMMLSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1PMMLSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1PMMLSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1PMMLSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1PMMLSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1PMMLSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1PMMLSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1PMMLSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1PMMLSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1PMMLSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1PMMLSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1PMMLSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1PMMLSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1PMMLSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1PMMLSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1PMMLSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1PMMLSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1PMMLSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1PMMLSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1PMMLSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1PMMLSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1PMMLSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1PMMLSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1PMMLSpec.
Arguments:
resources
: The resources of this V1beta1PMMLSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1PMMLSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1PMMLSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1PMMLSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1PMMLSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1PMMLSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1PMMLSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1PMMLSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1PMMLSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1PMMLSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1PMMLSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1PMMLSpec.
Arguments:
security_context
: The security_context of this V1beta1PMMLSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1PMMLSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1PMMLSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1PMMLSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1PMMLSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1PMMLSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1PMMLSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1PMMLSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1PMMLSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1PMMLSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1PMMLSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1PMMLSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1PMMLSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1PMMLSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1PMMLSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1PMMLSpec.
Arguments:
storage
: The storage of this V1beta1PMMLSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1PMMLSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1PMMLSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1PMMLSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1PMMLSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1PMMLSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1PMMLSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1PMMLSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1PMMLSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1PMMLSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1PMMLSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1PMMLSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1PMMLSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1PMMLSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1PMMLSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1PMMLSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1PMMLSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1PMMLSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1PMMLSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1PMMLSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1PMMLSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1PMMLSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1PMMLSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1PMMLSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1PMMLSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1PMMLSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1PMMLSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1PMMLSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1PMMLSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_cluster_storage_container_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ClusterStorageContainerList
class V1alpha1ClusterStorageContainerList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1ClusterStorageContainerList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1ClusterStorageContainerList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1ClusterStorageContainerList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1ClusterStorageContainerList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1ClusterStorageContainerList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1ClusterStorageContainerList. # noqa: E501
Returns:
list[V1alpha1ClusterStorageContainer]
: The items of this V1alpha1ClusterStorageContainerList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1ClusterStorageContainerList.
Arguments:
items
: The items of this V1alpha1ClusterStorageContainerList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1ClusterStorageContainerList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1ClusterStorageContainerList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1ClusterStorageContainerList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1ClusterStorageContainerList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1ClusterStorageContainerList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1ClusterStorageContainerList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1ClusterStorageContainerList.
Arguments:
metadata
: The metadata of this V1alpha1ClusterStorageContainerList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inference_graph_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InferenceGraphSpec
class V1alpha1InferenceGraphSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(affinity=None,
max_replicas=None,
min_replicas=None,
node_name=None,
node_selector=None,
nodes=None,
resources=None,
router_timeouts=None,
scale_metric=None,
scale_target=None,
service_account_name=None,
timeout=None,
tolerations=None,
local_vars_configuration=None)
V1alpha1InferenceGraphSpec - a model defined in OpenAPI
affinity
@property
def affinity()
Gets the affinity of this V1alpha1InferenceGraphSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1alpha1InferenceGraphSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1alpha1InferenceGraphSpec.
Arguments:
affinity
: The affinity of this V1alpha1InferenceGraphSpec. # noqa: E501
max_replicas
@property
def max_replicas()
Gets the max_replicas of this V1alpha1InferenceGraphSpec. # noqa: E501
Maximum number of replicas for autoscaling. # noqa: E501
Returns:
int
: The max_replicas of this V1alpha1InferenceGraphSpec. # noqa: E501
max_replicas
@max_replicas.setter
def max_replicas(max_replicas)
Sets the max_replicas of this V1alpha1InferenceGraphSpec.
Maximum number of replicas for autoscaling. # noqa: E501
Arguments:
max_replicas
: The max_replicas of this V1alpha1InferenceGraphSpec. # noqa: E501
min_replicas
@property
def min_replicas()
Gets the min_replicas of this V1alpha1InferenceGraphSpec. # noqa: E501
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Returns:
int
: The min_replicas of this V1alpha1InferenceGraphSpec. # noqa: E501
min_replicas
@min_replicas.setter
def min_replicas(min_replicas)
Sets the min_replicas of this V1alpha1InferenceGraphSpec.
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Arguments:
min_replicas
: The min_replicas of this V1alpha1InferenceGraphSpec. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1alpha1InferenceGraphSpec. # noqa: E501
NodeName specifies the node name for the InferenceGraph. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ # noqa: E501
Returns:
str
: The node_name of this V1alpha1InferenceGraphSpec. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1alpha1InferenceGraphSpec.
NodeName specifies the node name for the InferenceGraph. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ # noqa: E501
Arguments:
node_name
: The node_name of this V1alpha1InferenceGraphSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1alpha1InferenceGraphSpec. # noqa: E501
NodeSelector specifies the node selector for the InferenceGraph. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1alpha1InferenceGraphSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1alpha1InferenceGraphSpec.
NodeSelector specifies the node selector for the InferenceGraph. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1alpha1InferenceGraphSpec. # noqa: E501
nodes
@property
def nodes()
Gets the nodes of this V1alpha1InferenceGraphSpec. # noqa: E501
Map of InferenceGraph router nodes Each node defines the router which can be different routing types # noqa: E501
Returns:
dict(str, V1alpha1InferenceRouter)
: The nodes of this V1alpha1InferenceGraphSpec. # noqa: E501
nodes
@nodes.setter
def nodes(nodes)
Sets the nodes of this V1alpha1InferenceGraphSpec.
Map of InferenceGraph router nodes Each node defines the router which can be different routing types # noqa: E501
Arguments:
nodes
: The nodes of this V1alpha1InferenceGraphSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1alpha1InferenceGraphSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1alpha1InferenceGraphSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1alpha1InferenceGraphSpec.
Arguments:
resources
: The resources of this V1alpha1InferenceGraphSpec. # noqa: E501
router_timeouts
@property
def router_timeouts()
Gets the router_timeouts of this V1alpha1InferenceGraphSpec. # noqa: E501
Returns:
V1alpha1InfereceGraphRouterTimeouts
: The router_timeouts of this V1alpha1InferenceGraphSpec. # noqa: E501
router_timeouts
@router_timeouts.setter
def router_timeouts(router_timeouts)
Sets the router_timeouts of this V1alpha1InferenceGraphSpec.
Arguments:
router_timeouts
: The router_timeouts of this V1alpha1InferenceGraphSpec. # noqa: E501
scale_metric
@property
def scale_metric()
Gets the scale_metric of this V1alpha1InferenceGraphSpec. # noqa: E501
ScaleMetric defines the scaling metric type watched by autoscaler possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Returns:
str
: The scale_metric of this V1alpha1InferenceGraphSpec. # noqa: E501
scale_metric
@scale_metric.setter
def scale_metric(scale_metric)
Sets the scale_metric of this V1alpha1InferenceGraphSpec.
ScaleMetric defines the scaling metric type watched by autoscaler possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Arguments:
scale_metric
: The scale_metric of this V1alpha1InferenceGraphSpec. # noqa: E501
scale_target
@property
def scale_target()
Gets the scale_target of this V1alpha1InferenceGraphSpec. # noqa: E501
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Returns:
int
: The scale_target of this V1alpha1InferenceGraphSpec. # noqa: E501
scale_target
@scale_target.setter
def scale_target(scale_target)
Sets the scale_target of this V1alpha1InferenceGraphSpec.
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Arguments:
scale_target
: The scale_target of this V1alpha1InferenceGraphSpec. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1alpha1InferenceGraphSpec. # noqa: E501
ServiceAccountName specifies the service account name for the InferenceGraph. https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1alpha1InferenceGraphSpec. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1alpha1InferenceGraphSpec.
ServiceAccountName specifies the service account name for the InferenceGraph. https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1alpha1InferenceGraphSpec. # noqa: E501
timeout
@property
def timeout()
Gets the timeout of this V1alpha1InferenceGraphSpec. # noqa: E501
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Returns:
int
: The timeout of this V1alpha1InferenceGraphSpec. # noqa: E501
timeout
@timeout.setter
def timeout(timeout)
Sets the timeout of this V1alpha1InferenceGraphSpec.
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Arguments:
timeout
: The timeout of this V1alpha1InferenceGraphSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1alpha1InferenceGraphSpec. # noqa: E501
Toleration specifies the toleration for the InferenceGraph. https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1alpha1InferenceGraphSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1alpha1InferenceGraphSpec.
Toleration specifies the toleration for the InferenceGraph. https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ # noqa: E501
Arguments:
tolerations
: The tolerations of this V1alpha1InferenceGraphSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_tf_serving_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1TFServingSpec
class V1beta1TFServingSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1TFServingSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1TFServingSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1TFServingSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1TFServingSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1TFServingSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1TFServingSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1TFServingSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1TFServingSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1TFServingSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1TFServingSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1TFServingSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1TFServingSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1TFServingSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1TFServingSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1TFServingSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1TFServingSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1TFServingSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1TFServingSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1TFServingSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1TFServingSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1TFServingSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1TFServingSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1TFServingSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1TFServingSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1TFServingSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1TFServingSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1TFServingSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1TFServingSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1TFServingSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1TFServingSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1TFServingSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1TFServingSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1TFServingSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1TFServingSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1TFServingSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1TFServingSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1TFServingSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1TFServingSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1TFServingSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1TFServingSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1TFServingSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1TFServingSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1TFServingSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1TFServingSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1TFServingSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1TFServingSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1TFServingSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1TFServingSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1TFServingSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1TFServingSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1TFServingSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1TFServingSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1TFServingSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1TFServingSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1TFServingSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1TFServingSpec.
Arguments:
resources
: The resources of this V1beta1TFServingSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1TFServingSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1TFServingSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1TFServingSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1TFServingSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1TFServingSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1TFServingSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1TFServingSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1TFServingSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1TFServingSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1TFServingSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1TFServingSpec.
Arguments:
security_context
: The security_context of this V1beta1TFServingSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1TFServingSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1TFServingSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1TFServingSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1TFServingSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1TFServingSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1TFServingSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1TFServingSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1TFServingSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1TFServingSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1TFServingSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1TFServingSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1TFServingSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1TFServingSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1TFServingSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1TFServingSpec.
Arguments:
storage
: The storage of this V1beta1TFServingSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1TFServingSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1TFServingSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1TFServingSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1TFServingSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1TFServingSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1TFServingSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1TFServingSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1TFServingSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1TFServingSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1TFServingSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1TFServingSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1TFServingSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1TFServingSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1TFServingSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1TFServingSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1TFServingSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1TFServingSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1TFServingSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1TFServingSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1TFServingSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1TFServingSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1TFServingSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1TFServingSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1TFServingSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1TFServingSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1TFServingSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1TFServingSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1TFServingSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_failure_info
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1FailureInfo
class V1beta1FailureInfo(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(exit_code=None,
location=None,
message=None,
model_revision_name=None,
reason=None,
time=None,
local_vars_configuration=None)
V1beta1FailureInfo - a model defined in OpenAPI
exit_code
@property
def exit_code()
Gets the exit_code of this V1beta1FailureInfo. # noqa: E501
Exit status from the last termination of the container # noqa: E501
Returns:
int
: The exit_code of this V1beta1FailureInfo. # noqa: E501
exit_code
@exit_code.setter
def exit_code(exit_code)
Sets the exit_code of this V1beta1FailureInfo.
Exit status from the last termination of the container # noqa: E501
Arguments:
exit_code
: The exit_code of this V1beta1FailureInfo. # noqa: E501
location
@property
def location()
Gets the location of this V1beta1FailureInfo. # noqa: E501
Name of component to which the failure relates (usually Pod name) # noqa: E501
Returns:
str
: The location of this V1beta1FailureInfo. # noqa: E501
location
@location.setter
def location(location)
Sets the location of this V1beta1FailureInfo.
Name of component to which the failure relates (usually Pod name) # noqa: E501
Arguments:
location
: The location of this V1beta1FailureInfo. # noqa: E501
message
@property
def message()
Gets the message of this V1beta1FailureInfo. # noqa: E501
Detailed error message # noqa: E501
Returns:
str
: The message of this V1beta1FailureInfo. # noqa: E501
message
@message.setter
def message(message)
Sets the message of this V1beta1FailureInfo.
Detailed error message # noqa: E501
Arguments:
message
: The message of this V1beta1FailureInfo. # noqa: E501
model_revision_name
@property
def model_revision_name()
Gets the model_revision_name of this V1beta1FailureInfo. # noqa: E501
Internal Revision/ID of model, tied to specific Spec contents # noqa: E501
Returns:
str
: The model_revision_name of this V1beta1FailureInfo. # noqa: E501
model_revision_name
@model_revision_name.setter
def model_revision_name(model_revision_name)
Sets the model_revision_name of this V1beta1FailureInfo.
Internal Revision/ID of model, tied to specific Spec contents # noqa: E501
Arguments:
model_revision_name
: The model_revision_name of this V1beta1FailureInfo. # noqa: E501
reason
@property
def reason()
Gets the reason of this V1beta1FailureInfo. # noqa: E501
High level class of failure # noqa: E501
Returns:
str
: The reason of this V1beta1FailureInfo. # noqa: E501
reason
@reason.setter
def reason(reason)
Sets the reason of this V1beta1FailureInfo.
High level class of failure # noqa: E501
Arguments:
reason
: The reason of this V1beta1FailureInfo. # noqa: E501
time
@property
def time()
Gets the time of this V1beta1FailureInfo. # noqa: E501
Returns:
V1Time
: The time of this V1beta1FailureInfo. # noqa: E501
time
@time.setter
def time(time)
Sets the time of this V1beta1FailureInfo.
Arguments:
time
: The time of this V1beta1FailureInfo. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_model_copies
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ModelCopies
class V1beta1ModelCopies(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(failed_copies=0,
total_copies=None,
local_vars_configuration=None)
V1beta1ModelCopies - a model defined in OpenAPI
failed_copies
@property
def failed_copies()
Gets the failed_copies of this V1beta1ModelCopies. # noqa: E501
How many copies of this predictor's models failed to load recently # noqa: E501
Returns:
int
: The failed_copies of this V1beta1ModelCopies. # noqa: E501
failed_copies
@failed_copies.setter
def failed_copies(failed_copies)
Sets the failed_copies of this V1beta1ModelCopies.
How many copies of this predictor's models failed to load recently # noqa: E501
Arguments:
failed_copies
: The failed_copies of this V1beta1ModelCopies. # noqa: E501
total_copies
@property
def total_copies()
Gets the total_copies of this V1beta1ModelCopies. # noqa: E501
Total number copies of this predictor's models that are currently loaded # noqa: E501
Returns:
int
: The total_copies of this V1beta1ModelCopies. # noqa: E501
total_copies
@total_copies.setter
def total_copies(total_copies)
Sets the total_copies of this V1beta1ModelCopies.
Total number copies of this predictor's models that are currently loaded # noqa: E501
Arguments:
total_copies
: The total_copies of this V1beta1ModelCopies. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_cluster_serving_runtime
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ClusterServingRuntime
class V1alpha1ClusterServingRuntime(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1ClusterServingRuntime - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1ClusterServingRuntime. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1ClusterServingRuntime. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1ClusterServingRuntime.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1ClusterServingRuntime. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1ClusterServingRuntime. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1ClusterServingRuntime. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1ClusterServingRuntime.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1ClusterServingRuntime. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1ClusterServingRuntime. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1ClusterServingRuntime. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1ClusterServingRuntime.
Arguments:
metadata
: The metadata of this V1alpha1ClusterServingRuntime. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1ClusterServingRuntime. # noqa: E501
Returns:
V1alpha1ServingRuntimeSpec
: The spec of this V1alpha1ClusterServingRuntime. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1ClusterServingRuntime.
Arguments:
spec
: The spec of this V1alpha1ClusterServingRuntime. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1ClusterServingRuntime. # noqa: E501
ServingRuntimeStatus defines the observed state of ServingRuntime # noqa: E501
Returns:
object
: The status of this V1alpha1ClusterServingRuntime. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1ClusterServingRuntime.
ServingRuntimeStatus defines the observed state of ServingRuntime # noqa: E501
Arguments:
status
: The status of this V1alpha1ClusterServingRuntime. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_torch_serve_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1TorchServeSpec
class V1beta1TorchServeSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1TorchServeSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1TorchServeSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1TorchServeSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1TorchServeSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1TorchServeSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1TorchServeSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1TorchServeSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1TorchServeSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1TorchServeSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1TorchServeSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1TorchServeSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1TorchServeSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1TorchServeSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1TorchServeSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1TorchServeSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1TorchServeSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1TorchServeSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1TorchServeSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1TorchServeSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1TorchServeSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1TorchServeSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1TorchServeSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1TorchServeSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1TorchServeSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1TorchServeSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1TorchServeSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1TorchServeSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1TorchServeSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1TorchServeSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1TorchServeSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1TorchServeSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1TorchServeSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1TorchServeSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1TorchServeSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1TorchServeSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1TorchServeSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1TorchServeSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1TorchServeSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1TorchServeSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1TorchServeSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1TorchServeSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1TorchServeSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1TorchServeSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1TorchServeSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1TorchServeSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1TorchServeSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1TorchServeSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1TorchServeSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1TorchServeSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1TorchServeSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1TorchServeSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1TorchServeSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1TorchServeSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1TorchServeSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1TorchServeSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1TorchServeSpec.
Arguments:
resources
: The resources of this V1beta1TorchServeSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1TorchServeSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1TorchServeSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1TorchServeSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1TorchServeSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1TorchServeSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1TorchServeSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1TorchServeSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1TorchServeSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1TorchServeSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1TorchServeSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1TorchServeSpec.
Arguments:
security_context
: The security_context of this V1beta1TorchServeSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1TorchServeSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1TorchServeSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1TorchServeSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1TorchServeSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1TorchServeSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1TorchServeSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1TorchServeSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1TorchServeSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1TorchServeSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1TorchServeSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1TorchServeSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1TorchServeSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1TorchServeSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1TorchServeSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1TorchServeSpec.
Arguments:
storage
: The storage of this V1beta1TorchServeSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1TorchServeSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1TorchServeSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1TorchServeSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1TorchServeSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1TorchServeSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1TorchServeSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1TorchServeSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1TorchServeSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1TorchServeSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1TorchServeSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1TorchServeSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1TorchServeSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1TorchServeSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1TorchServeSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1TorchServeSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1TorchServeSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1TorchServeSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1TorchServeSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1TorchServeSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1TorchServeSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1TorchServeSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1TorchServeSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1TorchServeSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1TorchServeSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1TorchServeSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1TorchServeSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1TorchServeSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1TorchServeSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_component_status_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ComponentStatusSpec
class V1beta1ComponentStatusSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(address=None,
grpc_url=None,
latest_created_revision=None,
latest_ready_revision=None,
latest_rolledout_revision=None,
previous_rolledout_revision=None,
rest_url=None,
traffic=None,
url=None,
local_vars_configuration=None)
V1beta1ComponentStatusSpec - a model defined in OpenAPI
address
@property
def address()
Gets the address of this V1beta1ComponentStatusSpec. # noqa: E501
Returns:
KnativeAddressable
: The address of this V1beta1ComponentStatusSpec. # noqa: E501
address
@address.setter
def address(address)
Sets the address of this V1beta1ComponentStatusSpec.
Arguments:
address
: The address of this V1beta1ComponentStatusSpec. # noqa: E501
grpc_url
@property
def grpc_url()
Gets the grpc_url of this V1beta1ComponentStatusSpec. # noqa: E501
Returns:
KnativeURL
: The grpc_url of this V1beta1ComponentStatusSpec. # noqa: E501
grpc_url
@grpc_url.setter
def grpc_url(grpc_url)
Sets the grpc_url of this V1beta1ComponentStatusSpec.
Arguments:
grpc_url
: The grpc_url of this V1beta1ComponentStatusSpec. # noqa: E501
latest_created_revision
@property
def latest_created_revision()
Gets the latest_created_revision of this V1beta1ComponentStatusSpec. # noqa: E501
Latest revision name that is created # noqa: E501
Returns:
str
: The latest_created_revision of this V1beta1ComponentStatusSpec. # noqa: E501
latest_created_revision
@latest_created_revision.setter
def latest_created_revision(latest_created_revision)
Sets the latest_created_revision of this V1beta1ComponentStatusSpec.
Latest revision name that is created # noqa: E501
Arguments:
latest_created_revision
: The latest_created_revision of this V1beta1ComponentStatusSpec. # noqa: E501
latest_ready_revision
@property
def latest_ready_revision()
Gets the latest_ready_revision of this V1beta1ComponentStatusSpec. # noqa: E501
Latest revision name that is in ready state # noqa: E501
Returns:
str
: The latest_ready_revision of this V1beta1ComponentStatusSpec. # noqa: E501
latest_ready_revision
@latest_ready_revision.setter
def latest_ready_revision(latest_ready_revision)
Sets the latest_ready_revision of this V1beta1ComponentStatusSpec.
Latest revision name that is in ready state # noqa: E501
Arguments:
latest_ready_revision
: The latest_ready_revision of this V1beta1ComponentStatusSpec. # noqa: E501
latest_rolledout_revision
@property
def latest_rolledout_revision()
Gets the latest_rolledout_revision of this V1beta1ComponentStatusSpec. # noqa: E501
Latest revision name that is rolled out with 100 percent traffic # noqa: E501
Returns:
str
: The latest_rolledout_revision of this V1beta1ComponentStatusSpec. # noqa: E501
latest_rolledout_revision
@latest_rolledout_revision.setter
def latest_rolledout_revision(latest_rolledout_revision)
Sets the latest_rolledout_revision of this V1beta1ComponentStatusSpec.
Latest revision name that is rolled out with 100 percent traffic # noqa: E501
Arguments:
latest_rolledout_revision
: The latest_rolledout_revision of this V1beta1ComponentStatusSpec. # noqa: E501
previous_rolledout_revision
@property
def previous_rolledout_revision()
Gets the previous_rolledout_revision of this V1beta1ComponentStatusSpec. # noqa: E501
Previous revision name that is rolled out with 100 percent traffic # noqa: E501
Returns:
str
: The previous_rolledout_revision of this V1beta1ComponentStatusSpec. # noqa: E501
previous_rolledout_revision
@previous_rolledout_revision.setter
def previous_rolledout_revision(previous_rolledout_revision)
Sets the previous_rolledout_revision of this V1beta1ComponentStatusSpec.
Previous revision name that is rolled out with 100 percent traffic # noqa: E501
Arguments:
previous_rolledout_revision
: The previous_rolledout_revision of this V1beta1ComponentStatusSpec. # noqa: E501
rest_url
@property
def rest_url()
Gets the rest_url of this V1beta1ComponentStatusSpec. # noqa: E501
Returns:
KnativeURL
: The rest_url of this V1beta1ComponentStatusSpec. # noqa: E501
rest_url
@rest_url.setter
def rest_url(rest_url)
Sets the rest_url of this V1beta1ComponentStatusSpec.
Arguments:
rest_url
: The rest_url of this V1beta1ComponentStatusSpec. # noqa: E501
traffic
@property
def traffic()
Gets the traffic of this V1beta1ComponentStatusSpec. # noqa: E501
Traffic holds the configured traffic distribution for latest ready revision and previous rolled out revision. # noqa: E501
Returns:
list[KnativeDevServingPkgApisServingV1TrafficTarget]
: The traffic of this V1beta1ComponentStatusSpec. # noqa: E501
traffic
@traffic.setter
def traffic(traffic)
Sets the traffic of this V1beta1ComponentStatusSpec.
Traffic holds the configured traffic distribution for latest ready revision and previous rolled out revision. # noqa: E501
Arguments:
traffic
: The traffic of this V1beta1ComponentStatusSpec. # noqa: E501
url
@property
def url()
Gets the url of this V1beta1ComponentStatusSpec. # noqa: E501
Returns:
KnativeURL
: The url of this V1beta1ComponentStatusSpec. # noqa: E501
url
@url.setter
def url(url)
Sets the url of this V1beta1ComponentStatusSpec.
Arguments:
url
: The url of this V1beta1ComponentStatusSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_supported_model_format
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1SupportedModelFormat
class V1alpha1SupportedModelFormat(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(auto_select=None,
name='',
priority=None,
version=None,
local_vars_configuration=None)
V1alpha1SupportedModelFormat - a model defined in OpenAPI
auto_select
@property
def auto_select()
Gets the auto_select of this V1alpha1SupportedModelFormat. # noqa: E501
Set to true to allow the ServingRuntime to be used for automatic model placement if this model format is specified with no explicit runtime. # noqa: E501
Returns:
bool
: The auto_select of this V1alpha1SupportedModelFormat. # noqa: E501
auto_select
@auto_select.setter
def auto_select(auto_select)
Sets the auto_select of this V1alpha1SupportedModelFormat.
Set to true to allow the ServingRuntime to be used for automatic model placement if this model format is specified with no explicit runtime. # noqa: E501
Arguments:
auto_select
: The auto_select of this V1alpha1SupportedModelFormat. # noqa: E501
name
@property
def name()
Gets the name of this V1alpha1SupportedModelFormat. # noqa: E501
Name of the model format. # noqa: E501
Returns:
str
: The name of this V1alpha1SupportedModelFormat. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1alpha1SupportedModelFormat.
Name of the model format. # noqa: E501
Arguments:
name
: The name of this V1alpha1SupportedModelFormat. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1alpha1SupportedModelFormat. # noqa: E501
Priority of this serving runtime for auto selection. This is used to select the serving runtime if more than one serving runtime supports the same model format. The value should be greater than zero. The higher the value, the higher the priority. Priority is not considered if AutoSelect is either false or not specified. Priority can be overridden by specifying the runtime in the InferenceService. # noqa: E501
Returns:
int
: The priority of this V1alpha1SupportedModelFormat. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1alpha1SupportedModelFormat.
Priority of this serving runtime for auto selection. This is used to select the serving runtime if more than one serving runtime supports the same model format. The value should be greater than zero. The higher the value, the higher the priority. Priority is not considered if AutoSelect is either false or not specified. Priority can be overridden by specifying the runtime in the InferenceService. # noqa: E501
Arguments:
priority
: The priority of this V1alpha1SupportedModelFormat. # noqa: E501
version
@property
def version()
Gets the version of this V1alpha1SupportedModelFormat. # noqa: E501
Version of the model format. Used in validating that a predictor is supported by a runtime. Can be "major", "major.minor" or "major.minor.patch". # noqa: E501
Returns:
str
: The version of this V1alpha1SupportedModelFormat. # noqa: E501
version
@version.setter
def version(version)
Sets the version of this V1alpha1SupportedModelFormat.
Version of the model format. Used in validating that a predictor is supported by a runtime. Can be "major", "major.minor" or "major.minor.patch". # noqa: E501
Arguments:
version
: The version of this V1alpha1SupportedModelFormat. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_xg_boost_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1XGBoostSpec
class V1beta1XGBoostSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1XGBoostSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1XGBoostSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1XGBoostSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1XGBoostSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1XGBoostSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1XGBoostSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1XGBoostSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1XGBoostSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1XGBoostSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1XGBoostSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1XGBoostSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1XGBoostSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1XGBoostSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1XGBoostSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1XGBoostSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1XGBoostSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1XGBoostSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1XGBoostSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1XGBoostSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1XGBoostSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1XGBoostSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1XGBoostSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1XGBoostSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1XGBoostSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1XGBoostSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1XGBoostSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1XGBoostSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1XGBoostSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1XGBoostSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1XGBoostSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1XGBoostSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1XGBoostSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1XGBoostSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1XGBoostSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1XGBoostSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1XGBoostSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1XGBoostSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1XGBoostSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1XGBoostSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1XGBoostSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1XGBoostSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1XGBoostSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1XGBoostSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1XGBoostSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1XGBoostSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1XGBoostSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1XGBoostSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1XGBoostSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1XGBoostSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1XGBoostSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1XGBoostSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1XGBoostSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1XGBoostSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1XGBoostSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1XGBoostSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1XGBoostSpec.
Arguments:
resources
: The resources of this V1beta1XGBoostSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1XGBoostSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1XGBoostSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1XGBoostSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1XGBoostSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1XGBoostSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1XGBoostSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1XGBoostSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1XGBoostSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1XGBoostSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1XGBoostSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1XGBoostSpec.
Arguments:
security_context
: The security_context of this V1beta1XGBoostSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1XGBoostSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1XGBoostSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1XGBoostSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1XGBoostSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1XGBoostSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1XGBoostSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1XGBoostSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1XGBoostSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1XGBoostSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1XGBoostSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1XGBoostSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1XGBoostSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1XGBoostSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1XGBoostSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1XGBoostSpec.
Arguments:
storage
: The storage of this V1beta1XGBoostSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1XGBoostSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1XGBoostSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1XGBoostSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1XGBoostSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1XGBoostSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1XGBoostSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1XGBoostSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1XGBoostSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1XGBoostSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1XGBoostSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1XGBoostSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1XGBoostSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1XGBoostSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1XGBoostSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1XGBoostSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1XGBoostSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1XGBoostSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1XGBoostSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1XGBoostSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1XGBoostSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1XGBoostSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1XGBoostSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1XGBoostSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1XGBoostSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1XGBoostSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1XGBoostSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1XGBoostSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1XGBoostSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_predictor_protocols
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1PredictorProtocols
class V1beta1PredictorProtocols(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(v1=None, v2=None, local_vars_configuration=None)
V1beta1PredictorProtocols - a model defined in OpenAPI
v1
@property
def v1()
Gets the v1 of this V1beta1PredictorProtocols. # noqa: E501
Returns:
V1beta1PredictorConfig
: The v1 of this V1beta1PredictorProtocols. # noqa: E501
v1
@v1.setter
def v1(v1)
Sets the v1 of this V1beta1PredictorProtocols.
Arguments:
v1
: The v1 of this V1beta1PredictorProtocols. # noqa: E501
v2
@property
def v2()
Gets the v2 of this V1beta1PredictorProtocols. # noqa: E501
Returns:
V1beta1PredictorConfig
: The v2 of this V1beta1PredictorProtocols. # noqa: E501
v2
@v2.setter
def v2(v2)
Sets the v2 of this V1beta1PredictorProtocols.
Arguments:
v2
: The v2 of this V1beta1PredictorProtocols. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_model_revision_states
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ModelRevisionStates
class V1beta1ModelRevisionStates(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_model_state='',
target_model_state=None,
local_vars_configuration=None)
V1beta1ModelRevisionStates - a model defined in OpenAPI
active_model_state
@property
def active_model_state()
Gets the active_model_state of this V1beta1ModelRevisionStates. # noqa: E501
High level state string: Pending, Standby, Loading, Loaded, FailedToLoad # noqa: E501
Returns:
str
: The active_model_state of this V1beta1ModelRevisionStates. # noqa: E501
active_model_state
@active_model_state.setter
def active_model_state(active_model_state)
Sets the active_model_state of this V1beta1ModelRevisionStates.
High level state string: Pending, Standby, Loading, Loaded, FailedToLoad # noqa: E501
Arguments:
active_model_state
: The active_model_state of this V1beta1ModelRevisionStates. # noqa: E501
target_model_state
@property
def target_model_state()
Gets the target_model_state of this V1beta1ModelRevisionStates. # noqa: E501
Returns:
str
: The target_model_state of this V1beta1ModelRevisionStates. # noqa: E501
target_model_state
@target_model_state.setter
def target_model_state(target_model_state)
Sets the target_model_state of this V1beta1ModelRevisionStates.
Arguments:
target_model_state
: The target_model_state of this V1beta1ModelRevisionStates. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_local_model_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1LocalModelConfig
class V1beta1LocalModelConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(default_job_image=None,
disable_volume_management=None,
enabled=False,
fs_group=None,
job_namespace='',
job_ttl_seconds_after_finished=None,
reconcilation_frequency_in_secs=None,
local_vars_configuration=None)
V1beta1LocalModelConfig - a model defined in OpenAPI
default_job_image
@property
def default_job_image()
Gets the default_job_image of this V1beta1LocalModelConfig. # noqa: E501
Returns:
str
: The default_job_image of this V1beta1LocalModelConfig. # noqa: E501
default_job_image
@default_job_image.setter
def default_job_image(default_job_image)
Sets the default_job_image of this V1beta1LocalModelConfig.
Arguments:
default_job_image
: The default_job_image of this V1beta1LocalModelConfig. # noqa: E501
disable_volume_management
@property
def disable_volume_management()
Gets the disable_volume_management of this V1beta1LocalModelConfig. # noqa: E501
Returns:
bool
: The disable_volume_management of this V1beta1LocalModelConfig. # noqa: E501
disable_volume_management
@disable_volume_management.setter
def disable_volume_management(disable_volume_management)
Sets the disable_volume_management of this V1beta1LocalModelConfig.
Arguments:
disable_volume_management
: The disable_volume_management of this V1beta1LocalModelConfig. # noqa: E501
enabled
@property
def enabled()
Gets the enabled of this V1beta1LocalModelConfig. # noqa: E501
Returns:
bool
: The enabled of this V1beta1LocalModelConfig. # noqa: E501
enabled
@enabled.setter
def enabled(enabled)
Sets the enabled of this V1beta1LocalModelConfig.
Arguments:
enabled
: The enabled of this V1beta1LocalModelConfig. # noqa: E501
fs_group
@property
def fs_group()
Gets the fs_group of this V1beta1LocalModelConfig. # noqa: E501
Returns:
int
: The fs_group of this V1beta1LocalModelConfig. # noqa: E501
fs_group
@fs_group.setter
def fs_group(fs_group)
Sets the fs_group of this V1beta1LocalModelConfig.
Arguments:
fs_group
: The fs_group of this V1beta1LocalModelConfig. # noqa: E501
job_namespace
@property
def job_namespace()
Gets the job_namespace of this V1beta1LocalModelConfig. # noqa: E501
Returns:
str
: The job_namespace of this V1beta1LocalModelConfig. # noqa: E501
job_namespace
@job_namespace.setter
def job_namespace(job_namespace)
Sets the job_namespace of this V1beta1LocalModelConfig.
Arguments:
job_namespace
: The job_namespace of this V1beta1LocalModelConfig. # noqa: E501
job_ttl_seconds_after_finished
@property
def job_ttl_seconds_after_finished()
Gets the job_ttl_seconds_after_finished of this V1beta1LocalModelConfig. # noqa: E501
Returns:
int
: The job_ttl_seconds_after_finished of this V1beta1LocalModelConfig. # noqa: E501
job_ttl_seconds_after_finished
@job_ttl_seconds_after_finished.setter
def job_ttl_seconds_after_finished(job_ttl_seconds_after_finished)
Sets the job_ttl_seconds_after_finished of this V1beta1LocalModelConfig.
Arguments:
job_ttl_seconds_after_finished
: The job_ttl_seconds_after_finished of this V1beta1LocalModelConfig. # noqa: E501
reconcilation_frequency_in_secs
@property
def reconcilation_frequency_in_secs()
Gets the reconcilation_frequency_in_secs of this V1beta1LocalModelConfig. # noqa: E501
Returns:
int
: The reconcilation_frequency_in_secs of this V1beta1LocalModelConfig. # noqa: E501
reconcilation_frequency_in_secs
@reconcilation_frequency_in_secs.setter
def reconcilation_frequency_in_secs(reconcilation_frequency_in_secs)
Sets the reconcilation_frequency_in_secs of this V1beta1LocalModelConfig.
Arguments:
reconcilation_frequency_in_secs
: The reconcilation_frequency_in_secs of this V1beta1LocalModelConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inference_graph_status
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InferenceGraphStatus
class V1alpha1InferenceGraphStatus(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(annotations=None,
conditions=None,
deployment_mode=None,
observed_generation=None,
url=None,
local_vars_configuration=None)
V1alpha1InferenceGraphStatus - a model defined in OpenAPI
annotations
@property
def annotations()
Gets the annotations of this V1alpha1InferenceGraphStatus. # noqa: E501
Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards. # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1alpha1InferenceGraphStatus. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1alpha1InferenceGraphStatus.
Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards. # noqa: E501
Arguments:
annotations
: The annotations of this V1alpha1InferenceGraphStatus. # noqa: E501
conditions
@property
def conditions()
Gets the conditions of this V1alpha1InferenceGraphStatus. # noqa: E501
Conditions the latest available observations of a resource's current state. # noqa: E501
Returns:
list[KnativeCondition]
: The conditions of this V1alpha1InferenceGraphStatus. # noqa: E501
conditions
@conditions.setter
def conditions(conditions)
Sets the conditions of this V1alpha1InferenceGraphStatus.
Conditions the latest available observations of a resource's current state. # noqa: E501
Arguments:
conditions
: The conditions of this V1alpha1InferenceGraphStatus. # noqa: E501
deployment_mode
@property
def deployment_mode()
Gets the deployment_mode of this V1alpha1InferenceGraphStatus. # noqa: E501
InferenceGraph DeploymentMode # noqa: E501
Returns:
str
: The deployment_mode of this V1alpha1InferenceGraphStatus. # noqa: E501
deployment_mode
@deployment_mode.setter
def deployment_mode(deployment_mode)
Sets the deployment_mode of this V1alpha1InferenceGraphStatus.
InferenceGraph DeploymentMode # noqa: E501
Arguments:
deployment_mode
: The deployment_mode of this V1alpha1InferenceGraphStatus. # noqa: E501
observed_generation
@property
def observed_generation()
Gets the observed_generation of this V1alpha1InferenceGraphStatus. # noqa: E501
ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. # noqa: E501
Returns:
int
: The observed_generation of this V1alpha1InferenceGraphStatus. # noqa: E501
observed_generation
@observed_generation.setter
def observed_generation(observed_generation)
Sets the observed_generation of this V1alpha1InferenceGraphStatus.
ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. # noqa: E501
Arguments:
observed_generation
: The observed_generation of this V1alpha1InferenceGraphStatus. # noqa: E501
url
@property
def url()
Gets the url of this V1alpha1InferenceGraphStatus. # noqa: E501
Returns:
KnativeURL
: The url of this V1alpha1InferenceGraphStatus. # noqa: E501
url
@url.setter
def url(url)
Sets the url of this V1alpha1InferenceGraphStatus.
Arguments:
url
: The url of this V1alpha1InferenceGraphStatus. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.knative_volatile_time
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
KnativeVolatileTime
class KnativeVolatileTime(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(time=None, local_vars_configuration=None)
KnativeVolatileTime - a model defined in OpenAPI
time
@property
def time()
Gets the time of this KnativeVolatileTime. # noqa: E501
Returns:
datetime
: The time of this KnativeVolatileTime. # noqa: E501
time
@time.setter
def time(time)
Sets the time of this KnativeVolatileTime.
Arguments:
time
: The time of this KnativeVolatileTime. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inference_graph
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InferenceGraph
class V1alpha1InferenceGraph(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1InferenceGraph - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1InferenceGraph. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1InferenceGraph. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1InferenceGraph.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1InferenceGraph. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1InferenceGraph. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1InferenceGraph. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1InferenceGraph.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1InferenceGraph. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1InferenceGraph. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1InferenceGraph. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1InferenceGraph.
Arguments:
metadata
: The metadata of this V1alpha1InferenceGraph. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1InferenceGraph. # noqa: E501
Returns:
V1alpha1InferenceGraphSpec
: The spec of this V1alpha1InferenceGraph. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1InferenceGraph.
Arguments:
spec
: The spec of this V1alpha1InferenceGraph. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1InferenceGraph. # noqa: E501
Returns:
V1alpha1InferenceGraphStatus
: The status of this V1alpha1InferenceGraph. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1InferenceGraph.
Arguments:
status
: The status of this V1alpha1InferenceGraph. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_transformer_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1TransformerConfig
class V1beta1TransformerConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(default_image_version='',
image='',
local_vars_configuration=None)
V1beta1TransformerConfig - a model defined in OpenAPI
default_image_version
@property
def default_image_version()
Gets the default_image_version of this V1beta1TransformerConfig. # noqa: E501
default transformer docker image version # noqa: E501
Returns:
str
: The default_image_version of this V1beta1TransformerConfig. # noqa: E501
default_image_version
@default_image_version.setter
def default_image_version(default_image_version)
Sets the default_image_version of this V1beta1TransformerConfig.
default transformer docker image version # noqa: E501
Arguments:
default_image_version
: The default_image_version of this V1beta1TransformerConfig. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1TransformerConfig. # noqa: E501
transformer docker image name # noqa: E501
Returns:
str
: The image of this V1beta1TransformerConfig. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1TransformerConfig.
transformer docker image name # noqa: E501
Arguments:
image
: The image of this V1beta1TransformerConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_metrics_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1MetricsConfig
class V1beta1MetricsConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(metrics_backend=None,
server_address=None,
local_vars_configuration=None)
V1beta1MetricsConfig - a model defined in OpenAPI
metrics_backend
@property
def metrics_backend()
Gets the metrics_backend of this V1beta1MetricsConfig. # noqa: E501
Returns:
str
: The metrics_backend of this V1beta1MetricsConfig. # noqa: E501
metrics_backend
@metrics_backend.setter
def metrics_backend(metrics_backend)
Sets the metrics_backend of this V1beta1MetricsConfig.
Arguments:
metrics_backend
: The metrics_backend of this V1beta1MetricsConfig. # noqa: E501
server_address
@property
def server_address()
Gets the server_address of this V1beta1MetricsConfig. # noqa: E501
Returns:
str
: The server_address of this V1beta1MetricsConfig. # noqa: E501
server_address
@server_address.setter
def server_address(server_address)
Sets the server_address of this V1beta1MetricsConfig.
Arguments:
server_address
: The server_address of this V1beta1MetricsConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_llm_inference_service
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LLMInferenceService
class V1alpha1LLMInferenceService(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1LLMInferenceService - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LLMInferenceService. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LLMInferenceService. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LLMInferenceService.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LLMInferenceService. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LLMInferenceService. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LLMInferenceService. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LLMInferenceService.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LLMInferenceService. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LLMInferenceService. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1LLMInferenceService. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LLMInferenceService.
Arguments:
metadata
: The metadata of this V1alpha1LLMInferenceService. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1LLMInferenceService. # noqa: E501
Returns:
V1alpha1LLMInferenceServiceSpec
: The spec of this V1alpha1LLMInferenceService. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1LLMInferenceService.
Arguments:
spec
: The spec of this V1alpha1LLMInferenceService. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1LLMInferenceService. # noqa: E501
Returns:
V1alpha1LLMInferenceServiceStatus
: The status of this V1alpha1LLMInferenceService. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1LLMInferenceService.
Arguments:
status
: The status of this V1alpha1LLMInferenceService. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_llm_inference_service_config_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LLMInferenceServiceConfigList
class V1alpha1LLMInferenceServiceConfigList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1LLMInferenceServiceConfigList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LLMInferenceServiceConfigList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
Returns:
list[V1alpha1LLMInferenceServiceConfig]
: The items of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1LLMInferenceServiceConfigList.
Arguments:
items
: The items of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LLMInferenceServiceConfigList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LLMInferenceServiceConfigList.
Arguments:
metadata
: The metadata of this V1alpha1LLMInferenceServiceConfigList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_cache_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelCacheList
class V1alpha1LocalModelCacheList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1LocalModelCacheList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LocalModelCacheList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LocalModelCacheList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LocalModelCacheList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LocalModelCacheList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1LocalModelCacheList. # noqa: E501
Returns:
list[V1alpha1LocalModelCache]
: The items of this V1alpha1LocalModelCacheList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1LocalModelCacheList.
Arguments:
items
: The items of this V1alpha1LocalModelCacheList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LocalModelCacheList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LocalModelCacheList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LocalModelCacheList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LocalModelCacheList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LocalModelCacheList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1LocalModelCacheList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LocalModelCacheList.
Arguments:
metadata
: The metadata of this V1alpha1LocalModelCacheList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_serving_runtime_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ServingRuntimeList
class V1alpha1ServingRuntimeList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1ServingRuntimeList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1ServingRuntimeList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1ServingRuntimeList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1ServingRuntimeList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1ServingRuntimeList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1ServingRuntimeList. # noqa: E501
Returns:
list[V1alpha1ServingRuntime]
: The items of this V1alpha1ServingRuntimeList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1ServingRuntimeList.
Arguments:
items
: The items of this V1alpha1ServingRuntimeList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1ServingRuntimeList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1ServingRuntimeList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1ServingRuntimeList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1ServingRuntimeList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1ServingRuntimeList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1ServingRuntimeList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1ServingRuntimeList.
Arguments:
metadata
: The metadata of this V1alpha1ServingRuntimeList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_cache_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelCacheSpec
class V1alpha1LocalModelCacheSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(model_size=None,
node_groups=None,
source_model_uri='',
local_vars_configuration=None)
V1alpha1LocalModelCacheSpec - a model defined in OpenAPI
model_size
@property
def model_size()
Gets the model_size of this V1alpha1LocalModelCacheSpec. # noqa: E501
Returns:
ResourceQuantity
: The model_size of this V1alpha1LocalModelCacheSpec. # noqa: E501
model_size
@model_size.setter
def model_size(model_size)
Sets the model_size of this V1alpha1LocalModelCacheSpec.
Arguments:
model_size
: The model_size of this V1alpha1LocalModelCacheSpec. # noqa: E501
node_groups
@property
def node_groups()
Gets the node_groups of this V1alpha1LocalModelCacheSpec. # noqa: E501
group of nodes to cache the model on. Todo: support more than 1 node groups # noqa: E501
Returns:
list[str]
: The node_groups of this V1alpha1LocalModelCacheSpec. # noqa: E501
node_groups
@node_groups.setter
def node_groups(node_groups)
Sets the node_groups of this V1alpha1LocalModelCacheSpec.
group of nodes to cache the model on. Todo: support more than 1 node groups # noqa: E501
Arguments:
node_groups
: The node_groups of this V1alpha1LocalModelCacheSpec. # noqa: E501
source_model_uri
@property
def source_model_uri()
Gets the source_model_uri of this V1alpha1LocalModelCacheSpec. # noqa: E501
Original StorageUri # noqa: E501
Returns:
str
: The source_model_uri of this V1alpha1LocalModelCacheSpec. # noqa: E501
source_model_uri
@source_model_uri.setter
def source_model_uri(source_model_uri)
Sets the source_model_uri of this V1alpha1LocalModelCacheSpec.
Original StorageUri # noqa: E501
Arguments:
source_model_uri
: The source_model_uri of this V1alpha1LocalModelCacheSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_node_group_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelNodeGroupList
class V1alpha1LocalModelNodeGroupList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1LocalModelNodeGroupList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LocalModelNodeGroupList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LocalModelNodeGroupList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LocalModelNodeGroupList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LocalModelNodeGroupList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1LocalModelNodeGroupList. # noqa: E501
Returns:
list[V1alpha1LocalModelNodeGroup]
: The items of this V1alpha1LocalModelNodeGroupList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1LocalModelNodeGroupList.
Arguments:
items
: The items of this V1alpha1LocalModelNodeGroupList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LocalModelNodeGroupList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LocalModelNodeGroupList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LocalModelNodeGroupList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LocalModelNodeGroupList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LocalModelNodeGroupList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1LocalModelNodeGroupList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LocalModelNodeGroupList.
Arguments:
metadata
: The metadata of this V1alpha1LocalModelNodeGroupList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_cluster_storage_container
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ClusterStorageContainer
class V1alpha1ClusterStorageContainer(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
disabled=None,
kind=None,
metadata=None,
spec=None,
local_vars_configuration=None)
V1alpha1ClusterStorageContainer - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1ClusterStorageContainer. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1ClusterStorageContainer. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1ClusterStorageContainer.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1ClusterStorageContainer. # noqa: E501
disabled
@property
def disabled()
Gets the disabled of this V1alpha1ClusterStorageContainer. # noqa: E501
Returns:
bool
: The disabled of this V1alpha1ClusterStorageContainer. # noqa: E501
disabled
@disabled.setter
def disabled(disabled)
Sets the disabled of this V1alpha1ClusterStorageContainer.
Arguments:
disabled
: The disabled of this V1alpha1ClusterStorageContainer. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1ClusterStorageContainer. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1ClusterStorageContainer. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1ClusterStorageContainer.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1ClusterStorageContainer. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1ClusterStorageContainer. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1ClusterStorageContainer. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1ClusterStorageContainer.
Arguments:
metadata
: The metadata of this V1alpha1ClusterStorageContainer. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1ClusterStorageContainer. # noqa: E501
Returns:
V1alpha1StorageContainerSpec
: The spec of this V1alpha1ClusterStorageContainer. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1ClusterStorageContainer.
Arguments:
spec
: The spec of this V1alpha1ClusterStorageContainer. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_art_explainer_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ARTExplainerSpec
class V1beta1ARTExplainerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(args=None,
command=None,
config=None,
env=None,
env_from=None,
image=None,
image_pull_policy=None,
lifecycle=None,
liveness_probe=None,
name='',
ports=None,
readiness_probe=None,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=None,
storage_uri=None,
termination_message_path=None,
termination_message_policy=None,
tty=None,
type='',
volume_devices=None,
volume_mounts=None,
working_dir=None,
local_vars_configuration=None)
V1beta1ARTExplainerSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1ARTExplainerSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1ARTExplainerSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1ARTExplainerSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1ARTExplainerSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1ARTExplainerSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1ARTExplainerSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1ARTExplainerSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1ARTExplainerSpec. # noqa: E501
config
@property
def config()
Gets the config of this V1beta1ARTExplainerSpec. # noqa: E501
Inline custom parameter settings for explainer # noqa: E501
Returns:
dict(str, str)
: The config of this V1beta1ARTExplainerSpec. # noqa: E501
config
@config.setter
def config(config)
Sets the config of this V1beta1ARTExplainerSpec.
Inline custom parameter settings for explainer # noqa: E501
Arguments:
config
: The config of this V1beta1ARTExplainerSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1ARTExplainerSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1ARTExplainerSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1ARTExplainerSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1ARTExplainerSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1ARTExplainerSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1ARTExplainerSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1ARTExplainerSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1ARTExplainerSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1ARTExplainerSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1ARTExplainerSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1ARTExplainerSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1ARTExplainerSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1ARTExplainerSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1ARTExplainerSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1ARTExplainerSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1ARTExplainerSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1ARTExplainerSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1ARTExplainerSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1ARTExplainerSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1ARTExplainerSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1ARTExplainerSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1ARTExplainerSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1ARTExplainerSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1ARTExplainerSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1ARTExplainerSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1ARTExplainerSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1ARTExplainerSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1ARTExplainerSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1ARTExplainerSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1ARTExplainerSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1ARTExplainerSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1ARTExplainerSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1ARTExplainerSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1ARTExplainerSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1ARTExplainerSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1ARTExplainerSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1ARTExplainerSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1ARTExplainerSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1ARTExplainerSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1ARTExplainerSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1ARTExplainerSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1ARTExplainerSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1ARTExplainerSpec.
Arguments:
resources
: The resources of this V1beta1ARTExplainerSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1ARTExplainerSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1ARTExplainerSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1ARTExplainerSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1ARTExplainerSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1ARTExplainerSpec. # noqa: E501
Defaults to latest Explainer Version # noqa: E501
Returns:
str
: The runtime_version of this V1beta1ARTExplainerSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1ARTExplainerSpec.
Defaults to latest Explainer Version # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1ARTExplainerSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1ARTExplainerSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1ARTExplainerSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1ARTExplainerSpec.
Arguments:
security_context
: The security_context of this V1beta1ARTExplainerSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1ARTExplainerSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1ARTExplainerSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1ARTExplainerSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1ARTExplainerSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1ARTExplainerSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1ARTExplainerSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1ARTExplainerSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1ARTExplainerSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1ARTExplainerSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1ARTExplainerSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1ARTExplainerSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1ARTExplainerSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1ARTExplainerSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1ARTExplainerSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1ARTExplainerSpec.
Arguments:
storage
: The storage of this V1beta1ARTExplainerSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1ARTExplainerSpec. # noqa: E501
The location of a trained explanation model # noqa: E501
Returns:
str
: The storage_uri of this V1beta1ARTExplainerSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1ARTExplainerSpec.
The location of a trained explanation model # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1ARTExplainerSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1ARTExplainerSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1ARTExplainerSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1ARTExplainerSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1ARTExplainerSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1ARTExplainerSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1ARTExplainerSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1ARTExplainerSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1ARTExplainerSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1ARTExplainerSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1ARTExplainerSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1ARTExplainerSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1ARTExplainerSpec. # noqa: E501
type
@property
def type()
Gets the type of this V1beta1ARTExplainerSpec. # noqa: E501
The type of ART explainer # noqa: E501
Returns:
str
: The type of this V1beta1ARTExplainerSpec. # noqa: E501
type
@type.setter
def type(type)
Sets the type of this V1beta1ARTExplainerSpec.
The type of ART explainer # noqa: E501
Arguments:
type
: The type of this V1beta1ARTExplainerSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1ARTExplainerSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1ARTExplainerSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1ARTExplainerSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1ARTExplainerSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1ARTExplainerSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1ARTExplainerSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1ARTExplainerSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1ARTExplainerSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1ARTExplainerSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1ARTExplainerSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1ARTExplainerSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1ARTExplainerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_cluster_serving_runtime_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ClusterServingRuntimeList
class V1alpha1ClusterServingRuntimeList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1ClusterServingRuntimeList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1ClusterServingRuntimeList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1ClusterServingRuntimeList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1ClusterServingRuntimeList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1ClusterServingRuntimeList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1ClusterServingRuntimeList. # noqa: E501
Returns:
list[V1alpha1ClusterServingRuntime]
: The items of this V1alpha1ClusterServingRuntimeList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1ClusterServingRuntimeList.
Arguments:
items
: The items of this V1alpha1ClusterServingRuntimeList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1ClusterServingRuntimeList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1ClusterServingRuntimeList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1ClusterServingRuntimeList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1ClusterServingRuntimeList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1ClusterServingRuntimeList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1ClusterServingRuntimeList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1ClusterServingRuntimeList.
Arguments:
metadata
: The metadata of this V1alpha1ClusterServingRuntimeList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inferece_graph_router_timeouts
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InfereceGraphRouterTimeouts
class V1alpha1InfereceGraphRouterTimeouts(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(server_idle=None,
server_read=None,
server_write=None,
service_client=None,
local_vars_configuration=None)
V1alpha1InfereceGraphRouterTimeouts - a model defined in OpenAPI
server_idle
@property
def server_idle()
Gets the server_idle of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
ServerIdle specifies the maximum amount of time in seconds to wait for the next request when keep-alives are enabled. # noqa: E501
Returns:
int
: The server_idle of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
server_idle
@server_idle.setter
def server_idle(server_idle)
Sets the server_idle of this V1alpha1InfereceGraphRouterTimeouts.
ServerIdle specifies the maximum amount of time in seconds to wait for the next request when keep-alives are enabled. # noqa: E501
Arguments:
server_idle
: The server_idle of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
server_read
@property
def server_read()
Gets the server_read of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
ServerRead specifies the number of seconds to wait before timing out a request read by the server. # noqa: E501
Returns:
int
: The server_read of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
server_read
@server_read.setter
def server_read(server_read)
Sets the server_read of this V1alpha1InfereceGraphRouterTimeouts.
ServerRead specifies the number of seconds to wait before timing out a request read by the server. # noqa: E501
Arguments:
server_read
: The server_read of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
server_write
@property
def server_write()
Gets the server_write of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
ServerWrite specifies the maximum duration in seconds before timing out writes of the response. # noqa: E501
Returns:
int
: The server_write of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
server_write
@server_write.setter
def server_write(server_write)
Sets the server_write of this V1alpha1InfereceGraphRouterTimeouts.
ServerWrite specifies the maximum duration in seconds before timing out writes of the response. # noqa: E501
Arguments:
server_write
: The server_write of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
service_client
@property
def service_client()
Gets the service_client of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
ServiceClient specifies a time limit in seconds for requests made to the graph components by HTTP client. # noqa: E501
Returns:
int
: The service_client of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
service_client
@service_client.setter
def service_client(service_client)
Sets the service_client of this V1alpha1InfereceGraphRouterTimeouts.
ServiceClient specifies a time limit in seconds for requests made to the graph components by HTTP client. # noqa: E501
Arguments:
service_client
: The service_client of this V1alpha1InfereceGraphRouterTimeouts. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_trained_model_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1TrainedModelList
class V1alpha1TrainedModelList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1alpha1TrainedModelList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1TrainedModelList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1TrainedModelList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1TrainedModelList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1TrainedModelList. # noqa: E501
items
@property
def items()
Gets the items of this V1alpha1TrainedModelList. # noqa: E501
Returns:
list[V1alpha1TrainedModel]
: The items of this V1alpha1TrainedModelList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1alpha1TrainedModelList.
Arguments:
items
: The items of this V1alpha1TrainedModelList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1TrainedModelList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1TrainedModelList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1TrainedModelList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1TrainedModelList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1TrainedModelList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1alpha1TrainedModelList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1TrainedModelList.
Arguments:
metadata
: The metadata of this V1alpha1TrainedModelList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_explainer_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ExplainerSpec
class V1beta1ExplainerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(active_deadline_seconds=None,
affinity=None,
annotations=None,
art=None,
auto_scaling=None,
automount_service_account_token=None,
batcher=None,
canary_traffic_percent=None,
container_concurrency=None,
containers=None,
deployment_strategy=None,
dns_config=None,
dns_policy=None,
enable_service_links=None,
ephemeral_containers=None,
host_aliases=None,
host_ipc=None,
host_network=None,
host_pid=None,
host_users=None,
hostname=None,
image_pull_secrets=None,
init_containers=None,
labels=None,
logger=None,
max_replicas=None,
min_replicas=None,
node_name=None,
node_selector=None,
os=None,
overhead=None,
preemption_policy=None,
priority=None,
priority_class_name=None,
readiness_gates=None,
resource_claims=None,
resources=None,
restart_policy=None,
runtime_class_name=None,
scale_metric=None,
scale_metric_type=None,
scale_target=None,
scheduler_name=None,
scheduling_gates=None,
security_context=None,
service_account=None,
service_account_name=None,
set_hostname_as_fqdn=None,
share_process_namespace=None,
subdomain=None,
termination_grace_period_seconds=None,
timeout=None,
tolerations=None,
topology_spread_constraints=None,
volumes=None,
local_vars_configuration=None)
V1beta1ExplainerSpec - a model defined in OpenAPI
active_deadline_seconds
@property
def active_deadline_seconds()
Gets the active_deadline_seconds of this V1beta1ExplainerSpec. # noqa: E501
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Returns:
int
: The active_deadline_seconds of this V1beta1ExplainerSpec. # noqa: E501
active_deadline_seconds
@active_deadline_seconds.setter
def active_deadline_seconds(active_deadline_seconds)
Sets the active_deadline_seconds of this V1beta1ExplainerSpec.
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501
Arguments:
active_deadline_seconds
: The active_deadline_seconds of this V1beta1ExplainerSpec. # noqa: E501
affinity
@property
def affinity()
Gets the affinity of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1beta1ExplainerSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1beta1ExplainerSpec.
Arguments:
affinity
: The affinity of this V1beta1ExplainerSpec. # noqa: E501
annotations
@property
def annotations()
Gets the annotations of this V1beta1ExplainerSpec. # noqa: E501
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1beta1ExplainerSpec. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1beta1ExplainerSpec.
Annotations that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ # noqa: E501
Arguments:
annotations
: The annotations of this V1beta1ExplainerSpec. # noqa: E501
art
@property
def art()
Gets the art of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1beta1ARTExplainerSpec
: The art of this V1beta1ExplainerSpec. # noqa: E501
art
@art.setter
def art(art)
Sets the art of this V1beta1ExplainerSpec.
Arguments:
art
: The art of this V1beta1ExplainerSpec. # noqa: E501
auto_scaling
@property
def auto_scaling()
Gets the auto_scaling of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1beta1AutoScalingSpec
: The auto_scaling of this V1beta1ExplainerSpec. # noqa: E501
auto_scaling
@auto_scaling.setter
def auto_scaling(auto_scaling)
Sets the auto_scaling of this V1beta1ExplainerSpec.
Arguments:
auto_scaling
: The auto_scaling of this V1beta1ExplainerSpec. # noqa: E501
automount_service_account_token
@property
def automount_service_account_token()
Gets the automount_service_account_token of this V1beta1ExplainerSpec. # noqa: E501
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Returns:
bool
: The automount_service_account_token of this V1beta1ExplainerSpec. # noqa: E501
automount_service_account_token
@automount_service_account_token.setter
def automount_service_account_token(automount_service_account_token)
Sets the automount_service_account_token of this V1beta1ExplainerSpec.
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501
Arguments:
automount_service_account_token
: The automount_service_account_token of this V1beta1ExplainerSpec. # noqa: E501
batcher
@property
def batcher()
Gets the batcher of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1beta1Batcher
: The batcher of this V1beta1ExplainerSpec. # noqa: E501
batcher
@batcher.setter
def batcher(batcher)
Sets the batcher of this V1beta1ExplainerSpec.
Arguments:
batcher
: The batcher of this V1beta1ExplainerSpec. # noqa: E501
canary_traffic_percent
@property
def canary_traffic_percent()
Gets the canary_traffic_percent of this V1beta1ExplainerSpec. # noqa: E501
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Returns:
int
: The canary_traffic_percent of this V1beta1ExplainerSpec. # noqa: E501
canary_traffic_percent
@canary_traffic_percent.setter
def canary_traffic_percent(canary_traffic_percent)
Sets the canary_traffic_percent of this V1beta1ExplainerSpec.
CanaryTrafficPercent defines the traffic split percentage between the candidate revision and the last ready revision # noqa: E501
Arguments:
canary_traffic_percent
: The canary_traffic_percent of this V1beta1ExplainerSpec. # noqa: E501
container_concurrency
@property
def container_concurrency()
Gets the container_concurrency of this V1beta1ExplainerSpec. # noqa: E501
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Returns:
int
: The container_concurrency of this V1beta1ExplainerSpec. # noqa: E501
container_concurrency
@container_concurrency.setter
def container_concurrency(container_concurrency)
Sets the container_concurrency of this V1beta1ExplainerSpec.
ContainerConcurrency specifies how many requests can be processed concurrently, this sets the hard limit of the container concurrency(https://knative.dev/docs/serving/autoscaling/concurrency). # noqa: E501
Arguments:
container_concurrency
: The container_concurrency of this V1beta1ExplainerSpec. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1beta1ExplainerSpec. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1beta1ExplainerSpec. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1beta1ExplainerSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1beta1ExplainerSpec. # noqa: E501
deployment_strategy
@property
def deployment_strategy()
Gets the deployment_strategy of this V1beta1ExplainerSpec. # noqa: E501
Returns:
K8sIoApiAppsV1DeploymentStrategy
: The deployment_strategy of this V1beta1ExplainerSpec. # noqa: E501
deployment_strategy
@deployment_strategy.setter
def deployment_strategy(deployment_strategy)
Sets the deployment_strategy of this V1beta1ExplainerSpec.
Arguments:
deployment_strategy
: The deployment_strategy of this V1beta1ExplainerSpec. # noqa: E501
dns_config
@property
def dns_config()
Gets the dns_config of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1PodDNSConfig
: The dns_config of this V1beta1ExplainerSpec. # noqa: E501
dns_config
@dns_config.setter
def dns_config(dns_config)
Sets the dns_config of this V1beta1ExplainerSpec.
Arguments:
dns_config
: The dns_config of this V1beta1ExplainerSpec. # noqa: E501
dns_policy
@property
def dns_policy()
Gets the dns_policy of this V1beta1ExplainerSpec. # noqa: E501
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Returns:
str
: The dns_policy of this V1beta1ExplainerSpec. # noqa: E501
dns_policy
@dns_policy.setter
def dns_policy(dns_policy)
Sets the dns_policy of this V1beta1ExplainerSpec.
Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
Arguments:
dns_policy
: The dns_policy of this V1beta1ExplainerSpec. # noqa: E501
enable_service_links
@property
def enable_service_links()
Gets the enable_service_links of this V1beta1ExplainerSpec. # noqa: E501
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Returns:
bool
: The enable_service_links of this V1beta1ExplainerSpec. # noqa: E501
enable_service_links
@enable_service_links.setter
def enable_service_links(enable_service_links)
Sets the enable_service_links of this V1beta1ExplainerSpec.
EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501
Arguments:
enable_service_links
: The enable_service_links of this V1beta1ExplainerSpec. # noqa: E501
ephemeral_containers
@property
def ephemeral_containers()
Gets the ephemeral_containers of this V1beta1ExplainerSpec. # noqa: E501
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Returns:
list[V1EphemeralContainer]
: The ephemeral_containers of this V1beta1ExplainerSpec. # noqa: E501
ephemeral_containers
@ephemeral_containers.setter
def ephemeral_containers(ephemeral_containers)
Sets the ephemeral_containers of this V1beta1ExplainerSpec.
List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. # noqa: E501
Arguments:
ephemeral_containers
: The ephemeral_containers of this V1beta1ExplainerSpec. # noqa: E501
host_aliases
@property
def host_aliases()
Gets the host_aliases of this V1beta1ExplainerSpec. # noqa: E501
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Returns:
list[V1HostAlias]
: The host_aliases of this V1beta1ExplainerSpec. # noqa: E501
host_aliases
@host_aliases.setter
def host_aliases(host_aliases)
Sets the host_aliases of this V1beta1ExplainerSpec.
HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. # noqa: E501
Arguments:
host_aliases
: The host_aliases of this V1beta1ExplainerSpec. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1beta1ExplainerSpec. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1beta1ExplainerSpec. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1beta1ExplainerSpec.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1beta1ExplainerSpec. # noqa: E501
host_network
@property
def host_network()
Gets the host_network of this V1beta1ExplainerSpec. # noqa: E501
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Returns:
bool
: The host_network of this V1beta1ExplainerSpec. # noqa: E501
host_network
@host_network.setter
def host_network(host_network)
Sets the host_network of this V1beta1ExplainerSpec.
Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
Arguments:
host_network
: The host_network of this V1beta1ExplainerSpec. # noqa: E501
host_pid
@property
def host_pid()
Gets the host_pid of this V1beta1ExplainerSpec. # noqa: E501
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_pid of this V1beta1ExplainerSpec. # noqa: E501
host_pid
@host_pid.setter
def host_pid(host_pid)
Sets the host_pid of this V1beta1ExplainerSpec.
Use the host's pid namespace. Optional: Default to false. # noqa: E501
Arguments:
host_pid
: The host_pid of this V1beta1ExplainerSpec. # noqa: E501
host_users
@property
def host_users()
Gets the host_users of this V1beta1ExplainerSpec. # noqa: E501
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Returns:
bool
: The host_users of this V1beta1ExplainerSpec. # noqa: E501
host_users
@host_users.setter
def host_users(host_users)
Sets the host_users of this V1beta1ExplainerSpec.
Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. # noqa: E501
Arguments:
host_users
: The host_users of this V1beta1ExplainerSpec. # noqa: E501
hostname
@property
def hostname()
Gets the hostname of this V1beta1ExplainerSpec. # noqa: E501
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Returns:
str
: The hostname of this V1beta1ExplainerSpec. # noqa: E501
hostname
@hostname.setter
def hostname(hostname)
Sets the hostname of this V1beta1ExplainerSpec.
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501
Arguments:
hostname
: The hostname of this V1beta1ExplainerSpec. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1beta1ExplainerSpec. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1beta1ExplainerSpec. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1beta1ExplainerSpec.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1beta1ExplainerSpec. # noqa: E501
init_containers
@property
def init_containers()
Gets the init_containers of this V1beta1ExplainerSpec. # noqa: E501
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Returns:
list[V1Container]
: The init_containers of this V1beta1ExplainerSpec. # noqa: E501
init_containers
@init_containers.setter
def init_containers(init_containers)
Sets the init_containers of this V1beta1ExplainerSpec.
List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501
Arguments:
init_containers
: The init_containers of this V1beta1ExplainerSpec. # noqa: E501
labels
@property
def labels()
Gets the labels of this V1beta1ExplainerSpec. # noqa: E501
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Returns:
dict(str, str)
: The labels of this V1beta1ExplainerSpec. # noqa: E501
labels
@labels.setter
def labels(labels)
Sets the labels of this V1beta1ExplainerSpec.
Labels that will be added to the component pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ # noqa: E501
Arguments:
labels
: The labels of this V1beta1ExplainerSpec. # noqa: E501
logger
@property
def logger()
Gets the logger of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1beta1LoggerSpec
: The logger of this V1beta1ExplainerSpec. # noqa: E501
logger
@logger.setter
def logger(logger)
Sets the logger of this V1beta1ExplainerSpec.
Arguments:
logger
: The logger of this V1beta1ExplainerSpec. # noqa: E501
max_replicas
@property
def max_replicas()
Gets the max_replicas of this V1beta1ExplainerSpec. # noqa: E501
Maximum number of replicas for autoscaling. # noqa: E501
Returns:
int
: The max_replicas of this V1beta1ExplainerSpec. # noqa: E501
max_replicas
@max_replicas.setter
def max_replicas(max_replicas)
Sets the max_replicas of this V1beta1ExplainerSpec.
Maximum number of replicas for autoscaling. # noqa: E501
Arguments:
max_replicas
: The max_replicas of this V1beta1ExplainerSpec. # noqa: E501
min_replicas
@property
def min_replicas()
Gets the min_replicas of this V1beta1ExplainerSpec. # noqa: E501
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Returns:
int
: The min_replicas of this V1beta1ExplainerSpec. # noqa: E501
min_replicas
@min_replicas.setter
def min_replicas(min_replicas)
Sets the min_replicas of this V1beta1ExplainerSpec.
Minimum number of replicas, defaults to 1 but can be set to 0 to enable scale-to-zero. # noqa: E501
Arguments:
min_replicas
: The min_replicas of this V1beta1ExplainerSpec. # noqa: E501
node_name
@property
def node_name()
Gets the node_name of this V1beta1ExplainerSpec. # noqa: E501
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Returns:
str
: The node_name of this V1beta1ExplainerSpec. # noqa: E501
node_name
@node_name.setter
def node_name(node_name)
Sets the node_name of this V1beta1ExplainerSpec.
NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/`nodename` # noqa: E501
Arguments:
node_name
: The node_name of this V1beta1ExplainerSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1beta1ExplainerSpec. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1beta1ExplainerSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1beta1ExplainerSpec.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1beta1ExplainerSpec. # noqa: E501
os
@property
def os()
Gets the os of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1PodOS
: The os of this V1beta1ExplainerSpec. # noqa: E501
os
@os.setter
def os(os)
Sets the os of this V1beta1ExplainerSpec.
Arguments:
os
: The os of this V1beta1ExplainerSpec. # noqa: E501
overhead
@property
def overhead()
Gets the overhead of this V1beta1ExplainerSpec. # noqa: E501
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Returns:
dict(str, ResourceQuantity)
: The overhead of this V1beta1ExplainerSpec. # noqa: E501
overhead
@overhead.setter
def overhead(overhead)
Sets the overhead of this V1beta1ExplainerSpec.
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md # noqa: E501
Arguments:
overhead
: The overhead of this V1beta1ExplainerSpec. # noqa: E501
preemption_policy
@property
def preemption_policy()
Gets the preemption_policy of this V1beta1ExplainerSpec. # noqa: E501
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Returns:
str
: The preemption_policy of this V1beta1ExplainerSpec. # noqa: E501
preemption_policy
@preemption_policy.setter
def preemption_policy(preemption_policy)
Sets the preemption_policy of this V1beta1ExplainerSpec.
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. # noqa: E501
Arguments:
preemption_policy
: The preemption_policy of this V1beta1ExplainerSpec. # noqa: E501
priority
@property
def priority()
Gets the priority of this V1beta1ExplainerSpec. # noqa: E501
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Returns:
int
: The priority of this V1beta1ExplainerSpec. # noqa: E501
priority
@priority.setter
def priority(priority)
Sets the priority of this V1beta1ExplainerSpec.
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
Arguments:
priority
: The priority of this V1beta1ExplainerSpec. # noqa: E501
priority_class_name
@property
def priority_class_name()
Gets the priority_class_name of this V1beta1ExplainerSpec. # noqa: E501
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Returns:
str
: The priority_class_name of this V1beta1ExplainerSpec. # noqa: E501
priority_class_name
@priority_class_name.setter
def priority_class_name(priority_class_name)
Sets the priority_class_name of this V1beta1ExplainerSpec.
If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
Arguments:
priority_class_name
: The priority_class_name of this V1beta1ExplainerSpec. # noqa: E501
readiness_gates
@property
def readiness_gates()
Gets the readiness_gates of this V1beta1ExplainerSpec. # noqa: E501
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Returns:
list[V1PodReadinessGate]
: The readiness_gates of this V1beta1ExplainerSpec. # noqa: E501
readiness_gates
@readiness_gates.setter
def readiness_gates(readiness_gates)
Sets the readiness_gates of this V1beta1ExplainerSpec.
If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates # noqa: E501
Arguments:
readiness_gates
: The readiness_gates of this V1beta1ExplainerSpec. # noqa: E501
resource_claims
@property
def resource_claims()
Gets the resource_claims of this V1beta1ExplainerSpec. # noqa: E501
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Returns:
list[V1PodResourceClaim]
: The resource_claims of this V1beta1ExplainerSpec. # noqa: E501
resource_claims
@resource_claims.setter
def resource_claims(resource_claims)
Sets the resource_claims of this V1beta1ExplainerSpec.
ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. # noqa: E501
Arguments:
resource_claims
: The resource_claims of this V1beta1ExplainerSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1ExplainerSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1ExplainerSpec.
Arguments:
resources
: The resources of this V1beta1ExplainerSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1ExplainerSpec. # noqa: E501
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Returns:
str
: The restart_policy of this V1beta1ExplainerSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1ExplainerSpec.
Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/`restart`-policy # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1ExplainerSpec. # noqa: E501
runtime_class_name
@property
def runtime_class_name()
Gets the runtime_class_name of this V1beta1ExplainerSpec. # noqa: E501
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Returns:
str
: The runtime_class_name of this V1beta1ExplainerSpec. # noqa: E501
runtime_class_name
@runtime_class_name.setter
def runtime_class_name(runtime_class_name)
Sets the runtime_class_name of this V1beta1ExplainerSpec.
RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class # noqa: E501
Arguments:
runtime_class_name
: The runtime_class_name of this V1beta1ExplainerSpec. # noqa: E501
scale_metric
@property
def scale_metric()
Gets the scale_metric of this V1beta1ExplainerSpec. # noqa: E501
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Returns:
str
: The scale_metric of this V1beta1ExplainerSpec. # noqa: E501
scale_metric
@scale_metric.setter
def scale_metric(scale_metric)
Sets the scale_metric of this V1beta1ExplainerSpec.
ScaleMetric defines the scaling metric type watched by autoscaler. possible values are concurrency, rps, cpu, memory. concurrency, rps are supported via Knative Pod Autoscaler(https://knative.dev/docs/serving/autoscaling/autoscaling-metrics). # noqa: E501
Arguments:
scale_metric
: The scale_metric of this V1beta1ExplainerSpec. # noqa: E501
scale_metric_type
@property
def scale_metric_type()
Gets the scale_metric_type of this V1beta1ExplainerSpec. # noqa: E501
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Returns:
str
: The scale_metric_type of this V1beta1ExplainerSpec. # noqa: E501
scale_metric_type
@scale_metric_type.setter
def scale_metric_type(scale_metric_type)
Sets the scale_metric_type of this V1beta1ExplainerSpec.
Type of metric to use. Options are Utilization, or AverageValue. # noqa: E501
Arguments:
scale_metric_type
: The scale_metric_type of this V1beta1ExplainerSpec. # noqa: E501
scale_target
@property
def scale_target()
Gets the scale_target of this V1beta1ExplainerSpec. # noqa: E501
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Returns:
int
: The scale_target of this V1beta1ExplainerSpec. # noqa: E501
scale_target
@scale_target.setter
def scale_target(scale_target)
Sets the scale_target of this V1beta1ExplainerSpec.
ScaleTarget specifies the integer target value of the metric type the Autoscaler watches for. concurrency and rps targets are supported by Knative Pod Autoscaler (https://knative.dev/docs/serving/autoscaling/autoscaling-targets/). # noqa: E501
Arguments:
scale_target
: The scale_target of this V1beta1ExplainerSpec. # noqa: E501
scheduler_name
@property
def scheduler_name()
Gets the scheduler_name of this V1beta1ExplainerSpec. # noqa: E501
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Returns:
str
: The scheduler_name of this V1beta1ExplainerSpec. # noqa: E501
scheduler_name
@scheduler_name.setter
def scheduler_name(scheduler_name)
Sets the scheduler_name of this V1beta1ExplainerSpec.
If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501
Arguments:
scheduler_name
: The scheduler_name of this V1beta1ExplainerSpec. # noqa: E501
scheduling_gates
@property
def scheduling_gates()
Gets the scheduling_gates of this V1beta1ExplainerSpec. # noqa: E501
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Returns:
list[V1PodSchedulingGate]
: The scheduling_gates of this V1beta1ExplainerSpec. # noqa: E501
scheduling_gates
@scheduling_gates.setter
def scheduling_gates(scheduling_gates)
Sets the scheduling_gates of this V1beta1ExplainerSpec.
SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. # noqa: E501
Arguments:
scheduling_gates
: The scheduling_gates of this V1beta1ExplainerSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1ExplainerSpec. # noqa: E501
Returns:
V1PodSecurityContext
: The security_context of this V1beta1ExplainerSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1ExplainerSpec.
Arguments:
security_context
: The security_context of this V1beta1ExplainerSpec. # noqa: E501
service_account
@property
def service_account()
Gets the service_account of this V1beta1ExplainerSpec. # noqa: E501
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Returns:
str
: The service_account of this V1beta1ExplainerSpec. # noqa: E501
service_account
@service_account.setter
def service_account(service_account)
Sets the service_account of this V1beta1ExplainerSpec.
DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501
Arguments:
service_account
: The service_account of this V1beta1ExplainerSpec. # noqa: E501
service_account_name
@property
def service_account_name()
Gets the service_account_name of this V1beta1ExplainerSpec. # noqa: E501
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Returns:
str
: The service_account_name of this V1beta1ExplainerSpec. # noqa: E501
service_account_name
@service_account_name.setter
def service_account_name(service_account_name)
Sets the service_account_name of this V1beta1ExplainerSpec.
ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501
Arguments:
service_account_name
: The service_account_name of this V1beta1ExplainerSpec. # noqa: E501
set_hostname_as_fqdn
@property
def set_hostname_as_fqdn()
Gets the set_hostname_as_fqdn of this V1beta1ExplainerSpec. # noqa: E501
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Returns:
bool
: The set_hostname_as_fqdn of this V1beta1ExplainerSpec. # noqa: E501
set_hostname_as_fqdn
@set_hostname_as_fqdn.setter
def set_hostname_as_fqdn(set_hostname_as_fqdn)
Sets the set_hostname_as_fqdn of this V1beta1ExplainerSpec.
If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. # noqa: E501
Arguments:
set_hostname_as_fqdn
: The set_hostname_as_fqdn of this V1beta1ExplainerSpec. # noqa: E501
share_process_namespace
@property
def share_process_namespace()
Gets the share_process_namespace of this V1beta1ExplainerSpec. # noqa: E501
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Returns:
bool
: The share_process_namespace of this V1beta1ExplainerSpec. # noqa: E501
share_process_namespace
@share_process_namespace.setter
def share_process_namespace(share_process_namespace)
Sets the share_process_namespace of this V1beta1ExplainerSpec.
Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. # noqa: E501
Arguments:
share_process_namespace
: The share_process_namespace of this V1beta1ExplainerSpec. # noqa: E501
subdomain
@property
def subdomain()
Gets the subdomain of this V1beta1ExplainerSpec. # noqa: E501
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Returns:
str
: The subdomain of this V1beta1ExplainerSpec. # noqa: E501
subdomain
@subdomain.setter
def subdomain(subdomain)
Sets the subdomain of this V1beta1ExplainerSpec.
If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>"
. If not specified, the pod will not have a domainname at all. # noqa: E501
Arguments:
subdomain
: The subdomain of this V1beta1ExplainerSpec. # noqa: E501
termination_grace_period_seconds
@property
def termination_grace_period_seconds()
Gets the termination_grace_period_seconds of this V1beta1ExplainerSpec. # noqa: E501
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Returns:
int
: The termination_grace_period_seconds of this V1beta1ExplainerSpec. # noqa: E501
termination_grace_period_seconds
@termination_grace_period_seconds.setter
def termination_grace_period_seconds(termination_grace_period_seconds)
Sets the termination_grace_period_seconds of this V1beta1ExplainerSpec.
Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501
Arguments:
termination_grace_period_seconds
: The termination_grace_period_seconds of this V1beta1ExplainerSpec. # noqa: E501
timeout
@property
def timeout()
Gets the timeout of this V1beta1ExplainerSpec. # noqa: E501
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Returns:
int
: The timeout of this V1beta1ExplainerSpec. # noqa: E501
timeout
@timeout.setter
def timeout(timeout)
Sets the timeout of this V1beta1ExplainerSpec.
TimeoutSeconds specifies the number of seconds to wait before timing out a request to the component. # noqa: E501
Arguments:
timeout
: The timeout of this V1beta1ExplainerSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1beta1ExplainerSpec. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1beta1ExplainerSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1beta1ExplainerSpec.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1beta1ExplainerSpec. # noqa: E501
topology_spread_constraints
@property
def topology_spread_constraints()
Gets the topology_spread_constraints of this V1beta1ExplainerSpec. # noqa: E501
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Returns:
list[V1TopologySpreadConstraint]
: The topology_spread_constraints of this V1beta1ExplainerSpec. # noqa: E501
topology_spread_constraints
@topology_spread_constraints.setter
def topology_spread_constraints(topology_spread_constraints)
Sets the topology_spread_constraints of this V1beta1ExplainerSpec.
TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. # noqa: E501
Arguments:
topology_spread_constraints
: The topology_spread_constraints of this V1beta1ExplainerSpec. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1beta1ExplainerSpec. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1beta1ExplainerSpec. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1beta1ExplainerSpec.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1beta1ExplainerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_inference_service_list
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1InferenceServiceList
class V1beta1InferenceServiceList(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
items=None,
kind=None,
metadata=None,
local_vars_configuration=None)
V1beta1InferenceServiceList - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1beta1InferenceServiceList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1beta1InferenceServiceList. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1beta1InferenceServiceList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1beta1InferenceServiceList. # noqa: E501
items
@property
def items()
Gets the items of this V1beta1InferenceServiceList. # noqa: E501
Returns:
list[V1beta1InferenceService]
: The items of this V1beta1InferenceServiceList. # noqa: E501
items
@items.setter
def items(items)
Sets the items of this V1beta1InferenceServiceList.
Arguments:
items
: The items of this V1beta1InferenceServiceList. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1beta1InferenceServiceList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1beta1InferenceServiceList. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1beta1InferenceServiceList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1beta1InferenceServiceList. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1beta1InferenceServiceList. # noqa: E501
Returns:
V1ListMeta
: The metadata of this V1beta1InferenceServiceList. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1beta1InferenceServiceList.
Arguments:
metadata
: The metadata of this V1beta1InferenceServiceList. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_explainer_config
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1ExplainerConfig
class V1beta1ExplainerConfig(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(default_image_version='',
image='',
local_vars_configuration=None)
V1beta1ExplainerConfig - a model defined in OpenAPI
default_image_version
@property
def default_image_version()
Gets the default_image_version of this V1beta1ExplainerConfig. # noqa: E501
default explainer docker image version # noqa: E501
Returns:
str
: The default_image_version of this V1beta1ExplainerConfig. # noqa: E501
default_image_version
@default_image_version.setter
def default_image_version(default_image_version)
Sets the default_image_version of this V1beta1ExplainerConfig.
default explainer docker image version # noqa: E501
Arguments:
default_image_version
: The default_image_version of this V1beta1ExplainerConfig. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1ExplainerConfig. # noqa: E501
explainer docker image name # noqa: E501
Returns:
str
: The image of this V1beta1ExplainerConfig. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1ExplainerConfig.
explainer docker image name # noqa: E501
Arguments:
image
: The image of this V1beta1ExplainerConfig. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.knative_condition
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
KnativeCondition
class KnativeCondition(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(last_transition_time=None,
message=None,
reason=None,
severity=None,
status=None,
type=None,
local_vars_configuration=None)
KnativeCondition - a model defined in OpenAPI
last_transition_time
@property
def last_transition_time()
Gets the last_transition_time of this KnativeCondition. # noqa: E501
Returns:
KnativeVolatileTime
: The last_transition_time of this KnativeCondition. # noqa: E501
last_transition_time
@last_transition_time.setter
def last_transition_time(last_transition_time)
Sets the last_transition_time of this KnativeCondition.
Arguments:
last_transition_time
: The last_transition_time of this KnativeCondition. # noqa: E501
message
@property
def message()
Gets the message of this KnativeCondition. # noqa: E501
A human readable message indicating details about the transition. # noqa: E501
Returns:
str
: The message of this KnativeCondition. # noqa: E501
message
@message.setter
def message(message)
Sets the message of this KnativeCondition.
A human readable message indicating details about the transition. # noqa: E501
Arguments:
message
: The message of this KnativeCondition. # noqa: E501
reason
@property
def reason()
Gets the reason of this KnativeCondition. # noqa: E501
The reason for the condition's last transition. # noqa: E501
Returns:
str
: The reason of this KnativeCondition. # noqa: E501
reason
@reason.setter
def reason(reason)
Sets the reason of this KnativeCondition.
The reason for the condition's last transition. # noqa: E501
Arguments:
reason
: The reason of this KnativeCondition. # noqa: E501
severity
@property
def severity()
Gets the severity of this KnativeCondition. # noqa: E501
Severity with which to treat failures of this type of condition. When this is not specified, it defaults to Error. # noqa: E501
Returns:
str
: The severity of this KnativeCondition. # noqa: E501
severity
@severity.setter
def severity(severity)
Sets the severity of this KnativeCondition.
Severity with which to treat failures of this type of condition. When this is not specified, it defaults to Error. # noqa: E501
Arguments:
severity
: The severity of this KnativeCondition. # noqa: E501
status
@property
def status()
Gets the status of this KnativeCondition. # noqa: E501
Status of the condition, one of True, False, Unknown. # noqa: E501
Returns:
str
: The status of this KnativeCondition. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this KnativeCondition.
Status of the condition, one of True, False, Unknown. # noqa: E501
Arguments:
status
: The status of this KnativeCondition. # noqa: E501
type
@property
def type()
Gets the type of this KnativeCondition. # noqa: E501
Type of condition. # noqa: E501
Returns:
str
: The type of this KnativeCondition. # noqa: E501
type
@type.setter
def type(type)
Sets the type of this KnativeCondition.
Type of condition. # noqa: E501
Arguments:
type
: The type of this KnativeCondition. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_inference_service
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1InferenceService
class V1beta1InferenceService(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1beta1InferenceService - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1beta1InferenceService. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1beta1InferenceService. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1beta1InferenceService.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1beta1InferenceService. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1beta1InferenceService. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1beta1InferenceService. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1beta1InferenceService.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1beta1InferenceService. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1beta1InferenceService. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1beta1InferenceService. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1beta1InferenceService.
Arguments:
metadata
: The metadata of this V1beta1InferenceService. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1beta1InferenceService. # noqa: E501
Returns:
V1beta1InferenceServiceSpec
: The spec of this V1beta1InferenceService. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1beta1InferenceService.
Arguments:
spec
: The spec of this V1beta1InferenceService. # noqa: E501
status
@property
def status()
Gets the status of this V1beta1InferenceService. # noqa: E501
Returns:
V1beta1InferenceServiceStatus
: The status of this V1beta1InferenceService. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1beta1InferenceService.
Arguments:
status
: The status of this V1beta1InferenceService. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_metric_target
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1MetricTarget
class V1beta1MetricTarget(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(average_utilization=None,
average_value=None,
type='',
value=None,
local_vars_configuration=None)
V1beta1MetricTarget - a model defined in OpenAPI
average_utilization
@property
def average_utilization()
Gets the average_utilization of this V1beta1MetricTarget. # noqa: E501
averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type # noqa: E501
Returns:
int
: The average_utilization of this V1beta1MetricTarget. # noqa: E501
average_utilization
@average_utilization.setter
def average_utilization(average_utilization)
Sets the average_utilization of this V1beta1MetricTarget.
averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type # noqa: E501
Arguments:
average_utilization
: The average_utilization of this V1beta1MetricTarget. # noqa: E501
average_value
@property
def average_value()
Gets the average_value of this V1beta1MetricTarget. # noqa: E501
Returns:
ResourceQuantity
: The average_value of this V1beta1MetricTarget. # noqa: E501
average_value
@average_value.setter
def average_value(average_value)
Sets the average_value of this V1beta1MetricTarget.
Arguments:
average_value
: The average_value of this V1beta1MetricTarget. # noqa: E501
type
@property
def type()
Gets the type of this V1beta1MetricTarget. # noqa: E501
type represents whether the metric type is Utilization, Value, or AverageValue # noqa: E501
Returns:
str
: The type of this V1beta1MetricTarget. # noqa: E501
type
@type.setter
def type(type)
Sets the type of this V1beta1MetricTarget.
type represents whether the metric type is Utilization, Value, or AverageValue # noqa: E501
Arguments:
type
: The type of this V1beta1MetricTarget. # noqa: E501
value
@property
def value()
Gets the value of this V1beta1MetricTarget. # noqa: E501
Returns:
ResourceQuantity
: The value of this V1beta1MetricTarget. # noqa: E501
value
@value.setter
def value(value)
Sets the value of this V1beta1MetricTarget.
Arguments:
value
: The value of this V1beta1MetricTarget. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_auto_scaling_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1AutoScalingSpec
class V1beta1AutoScalingSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(metrics=None, local_vars_configuration=None)
V1beta1AutoScalingSpec - a model defined in OpenAPI
metrics
@property
def metrics()
Gets the metrics of this V1beta1AutoScalingSpec. # noqa: E501
metrics is a list of metrics spec to be used for autoscaling # noqa: E501
Returns:
list[V1beta1MetricsSpec]
: The metrics of this V1beta1AutoScalingSpec. # noqa: E501
metrics
@metrics.setter
def metrics(metrics)
Sets the metrics of this V1beta1AutoScalingSpec.
metrics is a list of metrics spec to be used for autoscaling # noqa: E501
Arguments:
metrics
: The metrics of this V1beta1AutoScalingSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_inference_router
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1InferenceRouter
class V1alpha1InferenceRouter(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(router_type='', steps=None, local_vars_configuration=None)
V1alpha1InferenceRouter - a model defined in OpenAPI
router_type
@property
def router_type()
Gets the router_type of this V1alpha1InferenceRouter. # noqa: E501
RouterType - Sequence:
chain multiple inference steps with input/output from previous step - Splitter:
randomly routes to the target service according to the weight - Ensemble:
routes the request to multiple models and then merge the responses - Switch:
routes the request to one of the steps based on condition # noqa: E501
Returns:
str
: The router_type of this V1alpha1InferenceRouter. # noqa: E501
router_type
@router_type.setter
def router_type(router_type)
Sets the router_type of this V1alpha1InferenceRouter.
RouterType - Sequence:
chain multiple inference steps with input/output from previous step - Splitter:
randomly routes to the target service according to the weight - Ensemble:
routes the request to multiple models and then merge the responses - Switch:
routes the request to one of the steps based on condition # noqa: E501
Arguments:
router_type
: The router_type of this V1alpha1InferenceRouter. # noqa: E501
steps
@property
def steps()
Gets the steps of this V1alpha1InferenceRouter. # noqa: E501
Steps defines destinations for the current router node # noqa: E501
Returns:
list[V1alpha1InferenceStep]
: The steps of this V1alpha1InferenceRouter. # noqa: E501
steps
@steps.setter
def steps(steps)
Sets the steps of this V1alpha1InferenceRouter.
Steps defines destinations for the current router node # noqa: E501
Arguments:
steps
: The steps of this V1alpha1InferenceRouter. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_sk_learn_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1SKLearnSpec
class V1beta1SKLearnSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1SKLearnSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1SKLearnSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1SKLearnSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1SKLearnSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1SKLearnSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1SKLearnSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1SKLearnSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1SKLearnSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1SKLearnSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1SKLearnSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1SKLearnSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1SKLearnSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1SKLearnSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1SKLearnSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1SKLearnSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1SKLearnSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1SKLearnSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1SKLearnSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1SKLearnSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1SKLearnSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1SKLearnSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1SKLearnSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1SKLearnSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1SKLearnSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1SKLearnSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1SKLearnSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1SKLearnSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1SKLearnSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1SKLearnSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1SKLearnSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1SKLearnSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1SKLearnSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1SKLearnSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1SKLearnSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1SKLearnSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1SKLearnSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1SKLearnSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1SKLearnSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1SKLearnSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1SKLearnSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1SKLearnSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1SKLearnSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1SKLearnSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1SKLearnSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1SKLearnSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1SKLearnSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1SKLearnSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1SKLearnSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1SKLearnSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1SKLearnSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1SKLearnSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1SKLearnSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1SKLearnSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1SKLearnSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1SKLearnSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1SKLearnSpec.
Arguments:
resources
: The resources of this V1beta1SKLearnSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1SKLearnSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1SKLearnSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1SKLearnSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1SKLearnSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1SKLearnSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1SKLearnSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1SKLearnSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1SKLearnSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1SKLearnSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1SKLearnSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1SKLearnSpec.
Arguments:
security_context
: The security_context of this V1beta1SKLearnSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1SKLearnSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1SKLearnSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1SKLearnSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1SKLearnSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1SKLearnSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1SKLearnSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1SKLearnSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1SKLearnSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1SKLearnSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1SKLearnSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1SKLearnSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1SKLearnSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1SKLearnSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1SKLearnSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1SKLearnSpec.
Arguments:
storage
: The storage of this V1beta1SKLearnSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1SKLearnSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1SKLearnSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1SKLearnSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1SKLearnSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1SKLearnSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1SKLearnSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1SKLearnSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1SKLearnSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1SKLearnSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1SKLearnSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1SKLearnSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1SKLearnSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1SKLearnSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1SKLearnSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1SKLearnSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1SKLearnSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1SKLearnSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1SKLearnSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1SKLearnSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1SKLearnSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1SKLearnSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1SKLearnSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1SKLearnSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1SKLearnSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1SKLearnSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1SKLearnSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1SKLearnSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1SKLearnSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_storage_container_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1StorageContainerSpec
class V1alpha1StorageContainerSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(container=None,
supported_uri_formats=None,
workload_type=None,
local_vars_configuration=None)
V1alpha1StorageContainerSpec - a model defined in OpenAPI
container
@property
def container()
Gets the container of this V1alpha1StorageContainerSpec. # noqa: E501
Returns:
V1Container
: The container of this V1alpha1StorageContainerSpec. # noqa: E501
container
@container.setter
def container(container)
Sets the container of this V1alpha1StorageContainerSpec.
Arguments:
container
: The container of this V1alpha1StorageContainerSpec. # noqa: E501
supported_uri_formats
@property
def supported_uri_formats()
Gets the supported_uri_formats of this V1alpha1StorageContainerSpec. # noqa: E501
List of URI formats that this container supports # noqa: E501
Returns:
list[V1alpha1SupportedUriFormat]
: The supported_uri_formats of this V1alpha1StorageContainerSpec. # noqa: E501
supported_uri_formats
@supported_uri_formats.setter
def supported_uri_formats(supported_uri_formats)
Sets the supported_uri_formats of this V1alpha1StorageContainerSpec.
List of URI formats that this container supports # noqa: E501
Arguments:
supported_uri_formats
: The supported_uri_formats of this V1alpha1StorageContainerSpec. # noqa: E501
workload_type
@property
def workload_type()
Gets the workload_type of this V1alpha1StorageContainerSpec. # noqa: E501
Returns:
str
: The workload_type of this V1alpha1StorageContainerSpec. # noqa: E501
workload_type
@workload_type.setter
def workload_type(workload_type)
Sets the workload_type of this V1alpha1StorageContainerSpec.
Arguments:
workload_type
: The workload_type of this V1alpha1StorageContainerSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_serving_runtime_pod_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1ServingRuntimePodSpec
class V1alpha1ServingRuntimePodSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(affinity=None,
annotations=None,
containers=None,
host_ipc=None,
image_pull_secrets=None,
labels=None,
node_selector=None,
tolerations=None,
volumes=None,
local_vars_configuration=None)
V1alpha1ServingRuntimePodSpec - a model defined in OpenAPI
affinity
@property
def affinity()
Gets the affinity of this V1alpha1ServingRuntimePodSpec. # noqa: E501
Returns:
V1Affinity
: The affinity of this V1alpha1ServingRuntimePodSpec. # noqa: E501
affinity
@affinity.setter
def affinity(affinity)
Sets the affinity of this V1alpha1ServingRuntimePodSpec.
Arguments:
affinity
: The affinity of this V1alpha1ServingRuntimePodSpec. # noqa: E501
annotations
@property
def annotations()
Gets the annotations of this V1alpha1ServingRuntimePodSpec. # noqa: E501
Annotations that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/annotations # noqa: E501
Returns:
dict(str, str)
: The annotations of this V1alpha1ServingRuntimePodSpec. # noqa: E501
annotations
@annotations.setter
def annotations(annotations)
Sets the annotations of this V1alpha1ServingRuntimePodSpec.
Annotations that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/annotations # noqa: E501
Arguments:
annotations
: The annotations of this V1alpha1ServingRuntimePodSpec. # noqa: E501
containers
@property
def containers()
Gets the containers of this V1alpha1ServingRuntimePodSpec. # noqa: E501
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Returns:
list[V1Container]
: The containers of this V1alpha1ServingRuntimePodSpec. # noqa: E501
containers
@containers.setter
def containers(containers)
Sets the containers of this V1alpha1ServingRuntimePodSpec.
List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501
Arguments:
containers
: The containers of this V1alpha1ServingRuntimePodSpec. # noqa: E501
host_ipc
@property
def host_ipc()
Gets the host_ipc of this V1alpha1ServingRuntimePodSpec. # noqa: E501
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Returns:
bool
: The host_ipc of this V1alpha1ServingRuntimePodSpec. # noqa: E501
host_ipc
@host_ipc.setter
def host_ipc(host_ipc)
Sets the host_ipc of this V1alpha1ServingRuntimePodSpec.
Use the host's ipc namespace. Optional: Default to false. # noqa: E501
Arguments:
host_ipc
: The host_ipc of this V1alpha1ServingRuntimePodSpec. # noqa: E501
image_pull_secrets
@property
def image_pull_secrets()
Gets the image_pull_secrets of this V1alpha1ServingRuntimePodSpec. # noqa: E501
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Returns:
list[V1LocalObjectReference]
: The image_pull_secrets of this V1alpha1ServingRuntimePodSpec. # noqa: E501
image_pull_secrets
@image_pull_secrets.setter
def image_pull_secrets(image_pull_secrets)
Sets the image_pull_secrets of this V1alpha1ServingRuntimePodSpec.
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501
Arguments:
image_pull_secrets
: The image_pull_secrets of this V1alpha1ServingRuntimePodSpec. # noqa: E501
labels
@property
def labels()
Gets the labels of this V1alpha1ServingRuntimePodSpec. # noqa: E501
Labels that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/labels # noqa: E501
Returns:
dict(str, str)
: The labels of this V1alpha1ServingRuntimePodSpec. # noqa: E501
labels
@labels.setter
def labels(labels)
Sets the labels of this V1alpha1ServingRuntimePodSpec.
Labels that will be add to the pod. More info: http://kubernetes.io/docs/user-guide/labels # noqa: E501
Arguments:
labels
: The labels of this V1alpha1ServingRuntimePodSpec. # noqa: E501
node_selector
@property
def node_selector()
Gets the node_selector of this V1alpha1ServingRuntimePodSpec. # noqa: E501
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Returns:
dict(str, str)
: The node_selector of this V1alpha1ServingRuntimePodSpec. # noqa: E501
node_selector
@node_selector.setter
def node_selector(node_selector)
Sets the node_selector of this V1alpha1ServingRuntimePodSpec.
NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501
Arguments:
node_selector
: The node_selector of this V1alpha1ServingRuntimePodSpec. # noqa: E501
tolerations
@property
def tolerations()
Gets the tolerations of this V1alpha1ServingRuntimePodSpec. # noqa: E501
If specified, the pod's tolerations. # noqa: E501
Returns:
list[V1Toleration]
: The tolerations of this V1alpha1ServingRuntimePodSpec. # noqa: E501
tolerations
@tolerations.setter
def tolerations(tolerations)
Sets the tolerations of this V1alpha1ServingRuntimePodSpec.
If specified, the pod's tolerations. # noqa: E501
Arguments:
tolerations
: The tolerations of this V1alpha1ServingRuntimePodSpec. # noqa: E501
volumes
@property
def volumes()
Gets the volumes of this V1alpha1ServingRuntimePodSpec. # noqa: E501
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Returns:
list[V1Volume]
: The volumes of this V1alpha1ServingRuntimePodSpec. # noqa: E501
volumes
@volumes.setter
def volumes(volumes)
Sets the volumes of this V1alpha1ServingRuntimePodSpec.
List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501
Arguments:
volumes
: The volumes of this V1alpha1ServingRuntimePodSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_batcher
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1Batcher
class V1beta1Batcher(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(max_batch_size=None,
max_latency=None,
timeout=None,
local_vars_configuration=None)
V1beta1Batcher - a model defined in OpenAPI
max_batch_size
@property
def max_batch_size()
Gets the max_batch_size of this V1beta1Batcher. # noqa: E501
Specifies the max number of requests to trigger a batch # noqa: E501
Returns:
int
: The max_batch_size of this V1beta1Batcher. # noqa: E501
max_batch_size
@max_batch_size.setter
def max_batch_size(max_batch_size)
Sets the max_batch_size of this V1beta1Batcher.
Specifies the max number of requests to trigger a batch # noqa: E501
Arguments:
max_batch_size
: The max_batch_size of this V1beta1Batcher. # noqa: E501
max_latency
@property
def max_latency()
Gets the max_latency of this V1beta1Batcher. # noqa: E501
Specifies the max latency to trigger a batch # noqa: E501
Returns:
int
: The max_latency of this V1beta1Batcher. # noqa: E501
max_latency
@max_latency.setter
def max_latency(max_latency)
Sets the max_latency of this V1beta1Batcher.
Specifies the max latency to trigger a batch # noqa: E501
Arguments:
max_latency
: The max_latency of this V1beta1Batcher. # noqa: E501
timeout
@property
def timeout()
Gets the timeout of this V1beta1Batcher. # noqa: E501
Specifies the timeout of a batch # noqa: E501
Returns:
int
: The timeout of this V1beta1Batcher. # noqa: E501
timeout
@timeout.setter
def timeout(timeout)
Sets the timeout of this V1beta1Batcher.
Specifies the timeout of a batch # noqa: E501
Arguments:
timeout
: The timeout of this V1beta1Batcher. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1alpha1_local_model_node
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1alpha1LocalModelNode
class V1alpha1LocalModelNode(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(api_version=None,
kind=None,
metadata=None,
spec=None,
status=None,
local_vars_configuration=None)
V1alpha1LocalModelNode - a model defined in OpenAPI
api_version
@property
def api_version()
Gets the api_version of this V1alpha1LocalModelNode. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Returns:
str
: The api_version of this V1alpha1LocalModelNode. # noqa: E501
api_version
@api_version.setter
def api_version(api_version)
Sets the api_version of this V1alpha1LocalModelNode.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
Arguments:
api_version
: The api_version of this V1alpha1LocalModelNode. # noqa: E501
kind
@property
def kind()
Gets the kind of this V1alpha1LocalModelNode. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Returns:
str
: The kind of this V1alpha1LocalModelNode. # noqa: E501
kind
@kind.setter
def kind(kind)
Sets the kind of this V1alpha1LocalModelNode.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
Arguments:
kind
: The kind of this V1alpha1LocalModelNode. # noqa: E501
metadata
@property
def metadata()
Gets the metadata of this V1alpha1LocalModelNode. # noqa: E501
Returns:
V1ObjectMeta
: The metadata of this V1alpha1LocalModelNode. # noqa: E501
metadata
@metadata.setter
def metadata(metadata)
Sets the metadata of this V1alpha1LocalModelNode.
Arguments:
metadata
: The metadata of this V1alpha1LocalModelNode. # noqa: E501
spec
@property
def spec()
Gets the spec of this V1alpha1LocalModelNode. # noqa: E501
Returns:
V1alpha1LocalModelNodeSpec
: The spec of this V1alpha1LocalModelNode. # noqa: E501
spec
@spec.setter
def spec(spec)
Sets the spec of this V1alpha1LocalModelNode.
Arguments:
spec
: The spec of this V1alpha1LocalModelNode. # noqa: E501
status
@property
def status()
Gets the status of this V1alpha1LocalModelNode. # noqa: E501
Returns:
V1alpha1LocalModelNodeStatus
: The status of this V1alpha1LocalModelNode. # noqa: E501
status
@status.setter
def status(status)
Sets the status of this V1alpha1LocalModelNode.
Arguments:
status
: The status of this V1alpha1LocalModelNode. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.knative_url
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
KnativeURL
class KnativeURL(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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)
KnativeURL - a model defined in OpenAPI
force_query
@property
def force_query()
Gets the force_query of this KnativeURL. # noqa: E501
encoded path hint (see EscapedPath method) # noqa: E501
Returns:
bool
: The force_query of this KnativeURL. # noqa: E501
force_query
@force_query.setter
def force_query(force_query)
Sets the force_query of this KnativeURL.
encoded path hint (see EscapedPath method) # noqa: E501
Arguments:
force_query
: The force_query of this KnativeURL. # noqa: E501
fragment
@property
def fragment()
Gets the fragment of this KnativeURL. # noqa: E501
encoded query values, without '?' # noqa: E501
Returns:
str
: The fragment of this KnativeURL. # noqa: E501
fragment
@fragment.setter
def fragment(fragment)
Sets the fragment of this KnativeURL.
encoded query values, without '?' # noqa: E501
Arguments:
fragment
: The fragment of this KnativeURL. # noqa: E501
host
@property
def host()
Gets the host of this KnativeURL. # noqa: E501
username and password information # noqa: E501
Returns:
str
: The host of this KnativeURL. # noqa: E501
host
@host.setter
def host(host)
Sets the host of this KnativeURL.
username and password information # noqa: E501
Arguments:
host
: The host of this KnativeURL. # noqa: E501
opaque
@property
def opaque()
Gets the opaque of this KnativeURL. # noqa: E501
Returns:
str
: The opaque of this KnativeURL. # noqa: E501
opaque
@opaque.setter
def opaque(opaque)
Sets the opaque of this KnativeURL.
Arguments:
opaque
: The opaque of this KnativeURL. # noqa: E501
path
@property
def path()
Gets the path of this KnativeURL. # noqa: E501
host or host:port # noqa: E501
Returns:
str
: The path of this KnativeURL. # noqa: E501
path
@path.setter
def path(path)
Sets the path of this KnativeURL.
host or host:port # noqa: E501
Arguments:
path
: The path of this KnativeURL. # noqa: E501
raw_path
@property
def raw_path()
Gets the raw_path of this KnativeURL. # noqa: E501
path (relative paths may omit leading slash) # noqa: E501
Returns:
str
: The raw_path of this KnativeURL. # noqa: E501
raw_path
@raw_path.setter
def raw_path(raw_path)
Sets the raw_path of this KnativeURL.
path (relative paths may omit leading slash) # noqa: E501
Arguments:
raw_path
: The raw_path of this KnativeURL. # noqa: E501
raw_query
@property
def raw_query()
Gets the raw_query of this KnativeURL. # noqa: E501
append a query ('?') even if RawQuery is empty # noqa: E501
Returns:
str
: The raw_query of this KnativeURL. # noqa: E501
raw_query
@raw_query.setter
def raw_query(raw_query)
Sets the raw_query of this KnativeURL.
append a query ('?') even if RawQuery is empty # noqa: E501
Arguments:
raw_query
: The raw_query of this KnativeURL. # noqa: E501
scheme
@property
def scheme()
Gets the scheme of this KnativeURL. # noqa: E501
Returns:
str
: The scheme of this KnativeURL. # noqa: E501
scheme
@scheme.setter
def scheme(scheme)
Sets the scheme of this KnativeURL.
Arguments:
scheme
: The scheme of this KnativeURL. # noqa: E501
user
@property
def user()
Gets the user of this KnativeURL. # noqa: E501
Returns:
NetUrlUserinfo
: The user of this KnativeURL. # noqa: E501
user
@user.setter
def user(user)
Sets the user of this KnativeURL.
Arguments:
user
: The user of this KnativeURL. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.net_url_userinfo
KServe
Python SDK for KServe # noqa: E501
OpenAPI spec version: v0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
NetUrlUserinfo
class NetUrlUserinfo(object)
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
__init__
def __init__(password=None, password_set=None, username=None)
NetUrlUserinfo - a model defined in Swagger
password
@property
def password()
Gets the password of this NetUrlUserinfo. # noqa: E501
Returns:
str
: The password of this NetUrlUserinfo. # noqa: E501
password
@password.setter
def password(password)
Sets the password of this NetUrlUserinfo.
Arguments:
password
: The password of this NetUrlUserinfo. # noqa: E501
password_set
@property
def password_set()
Gets the password_set of this NetUrlUserinfo. # noqa: E501
Returns:
bool
: The password_set of this NetUrlUserinfo. # noqa: E501
password_set
@password_set.setter
def password_set(password_set)
Sets the password_set of this NetUrlUserinfo.
Arguments:
password_set
: The password_set of this NetUrlUserinfo. # noqa: E501
username
@property
def username()
Gets the username of this NetUrlUserinfo. # noqa: E501
Returns:
str
: The username of this NetUrlUserinfo. # noqa: E501
username
@username.setter
def username(username)
Sets the username of this NetUrlUserinfo.
Arguments:
username
: The username of this NetUrlUserinfo. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal
kserve.models.v1beta1_light_gbm_spec
KServe
Python SDK for KServe # noqa: E501
The version of the OpenAPI document: v0.1 Generated by: https://openapi-generator.tech
V1beta1LightGBMSpec
class V1beta1LightGBMSpec(object)
NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
__init__
def __init__(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,
resize_policy=None,
resources=None,
restart_policy=None,
runtime_version=None,
security_context=None,
startup_probe=None,
stdin=None,
stdin_once=None,
storage=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)
V1beta1LightGBMSpec - a model defined in OpenAPI
args
@property
def args()
Gets the args of this V1beta1LightGBMSpec. # noqa: E501
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The args of this V1beta1LightGBMSpec. # noqa: E501
args
@args.setter
def args(args)
Sets the args of this V1beta1LightGBMSpec.
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
args
: The args of this V1beta1LightGBMSpec. # noqa: E501
command
@property
def command()
Gets the command of this V1beta1LightGBMSpec. # noqa: E501
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Returns:
list[str]
: The command of this V1beta1LightGBMSpec. # noqa: E501
command
@command.setter
def command(command)
Sets the command of this V1beta1LightGBMSpec.
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/`running`-a-command-in-a-shell # noqa: E501
Arguments:
command
: The command of this V1beta1LightGBMSpec. # noqa: E501
env
@property
def env()
Gets the env of this V1beta1LightGBMSpec. # noqa: E501
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Returns:
list[V1EnvVar]
: The env of this V1beta1LightGBMSpec. # noqa: E501
env
@env.setter
def env(env)
Sets the env of this V1beta1LightGBMSpec.
List of environment variables to set in the container. Cannot be updated. # noqa: E501
Arguments:
env
: The env of this V1beta1LightGBMSpec. # noqa: E501
env_from
@property
def env_from()
Gets the env_from of this V1beta1LightGBMSpec. # noqa: E501
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Returns:
list[V1EnvFromSource]
: The env_from of this V1beta1LightGBMSpec. # noqa: E501
env_from
@env_from.setter
def env_from(env_from)
Sets the env_from of this V1beta1LightGBMSpec.
List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
Arguments:
env_from
: The env_from of this V1beta1LightGBMSpec. # noqa: E501
image
@property
def image()
Gets the image of this V1beta1LightGBMSpec. # noqa: E501
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Returns:
str
: The image of this V1beta1LightGBMSpec. # noqa: E501
image
@image.setter
def image(image)
Sets the image of this V1beta1LightGBMSpec.
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501
Arguments:
image
: The image of this V1beta1LightGBMSpec. # noqa: E501
image_pull_policy
@property
def image_pull_policy()
Gets the image_pull_policy of this V1beta1LightGBMSpec. # noqa: E501
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Returns:
str
: The image_pull_policy of this V1beta1LightGBMSpec. # noqa: E501
image_pull_policy
@image_pull_policy.setter
def image_pull_policy(image_pull_policy)
Sets the image_pull_policy of this V1beta1LightGBMSpec.
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
Arguments:
image_pull_policy
: The image_pull_policy of this V1beta1LightGBMSpec. # noqa: E501
lifecycle
@property
def lifecycle()
Gets the lifecycle of this V1beta1LightGBMSpec. # noqa: E501
Returns:
V1Lifecycle
: The lifecycle of this V1beta1LightGBMSpec. # noqa: E501
lifecycle
@lifecycle.setter
def lifecycle(lifecycle)
Sets the lifecycle of this V1beta1LightGBMSpec.
Arguments:
lifecycle
: The lifecycle of this V1beta1LightGBMSpec. # noqa: E501
liveness_probe
@property
def liveness_probe()
Gets the liveness_probe of this V1beta1LightGBMSpec. # noqa: E501
Returns:
V1Probe
: The liveness_probe of this V1beta1LightGBMSpec. # noqa: E501
liveness_probe
@liveness_probe.setter
def liveness_probe(liveness_probe)
Sets the liveness_probe of this V1beta1LightGBMSpec.
Arguments:
liveness_probe
: The liveness_probe of this V1beta1LightGBMSpec. # noqa: E501
name
@property
def name()
Gets the name of this V1beta1LightGBMSpec. # noqa: E501
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Returns:
str
: The name of this V1beta1LightGBMSpec. # noqa: E501
name
@name.setter
def name(name)
Sets the name of this V1beta1LightGBMSpec.
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501
Arguments:
name
: The name of this V1beta1LightGBMSpec. # noqa: E501
ports
@property
def ports()
Gets the ports of this V1beta1LightGBMSpec. # noqa: E501
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Returns:
list[V1ContainerPort]
: The ports of this V1beta1LightGBMSpec. # noqa: E501
ports
@ports.setter
def ports(ports)
Sets the ports of this V1beta1LightGBMSpec.
List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. # noqa: E501
Arguments:
ports
: The ports of this V1beta1LightGBMSpec. # noqa: E501
protocol_version
@property
def protocol_version()
Gets the protocol_version of this V1beta1LightGBMSpec. # noqa: E501
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Returns:
str
: The protocol_version of this V1beta1LightGBMSpec. # noqa: E501
protocol_version
@protocol_version.setter
def protocol_version(protocol_version)
Sets the protocol_version of this V1beta1LightGBMSpec.
Protocol version to use by the predictor (i.e. v1 or v2 or grpc-v1 or grpc-v2) # noqa: E501
Arguments:
protocol_version
: The protocol_version of this V1beta1LightGBMSpec. # noqa: E501
readiness_probe
@property
def readiness_probe()
Gets the readiness_probe of this V1beta1LightGBMSpec. # noqa: E501
Returns:
V1Probe
: The readiness_probe of this V1beta1LightGBMSpec. # noqa: E501
readiness_probe
@readiness_probe.setter
def readiness_probe(readiness_probe)
Sets the readiness_probe of this V1beta1LightGBMSpec.
Arguments:
readiness_probe
: The readiness_probe of this V1beta1LightGBMSpec. # noqa: E501
resize_policy
@property
def resize_policy()
Gets the resize_policy of this V1beta1LightGBMSpec. # noqa: E501
Resources resize policy for the container. # noqa: E501
Returns:
list[V1ContainerResizePolicy]
: The resize_policy of this V1beta1LightGBMSpec. # noqa: E501
resize_policy
@resize_policy.setter
def resize_policy(resize_policy)
Sets the resize_policy of this V1beta1LightGBMSpec.
Resources resize policy for the container. # noqa: E501
Arguments:
resize_policy
: The resize_policy of this V1beta1LightGBMSpec. # noqa: E501
resources
@property
def resources()
Gets the resources of this V1beta1LightGBMSpec. # noqa: E501
Returns:
V1ResourceRequirements
: The resources of this V1beta1LightGBMSpec. # noqa: E501
resources
@resources.setter
def resources(resources)
Sets the resources of this V1beta1LightGBMSpec.
Arguments:
resources
: The resources of this V1beta1LightGBMSpec. # noqa: E501
restart_policy
@property
def restart_policy()
Gets the restart_policy of this V1beta1LightGBMSpec. # noqa: E501
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Returns:
str
: The restart_policy of this V1beta1LightGBMSpec. # noqa: E501
restart_policy
@restart_policy.setter
def restart_policy(restart_policy)
Sets the restart_policy of this V1beta1LightGBMSpec.
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
Arguments:
restart_policy
: The restart_policy of this V1beta1LightGBMSpec. # noqa: E501
runtime_version
@property
def runtime_version()
Gets the runtime_version of this V1beta1LightGBMSpec. # noqa: E501
Runtime version of the predictor docker image # noqa: E501
Returns:
str
: The runtime_version of this V1beta1LightGBMSpec. # noqa: E501
runtime_version
@runtime_version.setter
def runtime_version(runtime_version)
Sets the runtime_version of this V1beta1LightGBMSpec.
Runtime version of the predictor docker image # noqa: E501
Arguments:
runtime_version
: The runtime_version of this V1beta1LightGBMSpec. # noqa: E501
security_context
@property
def security_context()
Gets the security_context of this V1beta1LightGBMSpec. # noqa: E501
Returns:
V1SecurityContext
: The security_context of this V1beta1LightGBMSpec. # noqa: E501
security_context
@security_context.setter
def security_context(security_context)
Sets the security_context of this V1beta1LightGBMSpec.
Arguments:
security_context
: The security_context of this V1beta1LightGBMSpec. # noqa: E501
startup_probe
@property
def startup_probe()
Gets the startup_probe of this V1beta1LightGBMSpec. # noqa: E501
Returns:
V1Probe
: The startup_probe of this V1beta1LightGBMSpec. # noqa: E501
startup_probe
@startup_probe.setter
def startup_probe(startup_probe)
Sets the startup_probe of this V1beta1LightGBMSpec.
Arguments:
startup_probe
: The startup_probe of this V1beta1LightGBMSpec. # noqa: E501
stdin
@property
def stdin()
Gets the stdin of this V1beta1LightGBMSpec. # noqa: E501
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Returns:
bool
: The stdin of this V1beta1LightGBMSpec. # noqa: E501
stdin
@stdin.setter
def stdin(stdin)
Sets the stdin of this V1beta1LightGBMSpec.
Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501
Arguments:
stdin
: The stdin of this V1beta1LightGBMSpec. # noqa: E501
stdin_once
@property
def stdin_once()
Gets the stdin_once of this V1beta1LightGBMSpec. # noqa: E501
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Returns:
bool
: The stdin_once of this V1beta1LightGBMSpec. # noqa: E501
stdin_once
@stdin_once.setter
def stdin_once(stdin_once)
Sets the stdin_once of this V1beta1LightGBMSpec.
Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501
Arguments:
stdin_once
: The stdin_once of this V1beta1LightGBMSpec. # noqa: E501
storage
@property
def storage()
Gets the storage of this V1beta1LightGBMSpec. # noqa: E501
Returns:
V1beta1ModelStorageSpec
: The storage of this V1beta1LightGBMSpec. # noqa: E501
storage
@storage.setter
def storage(storage)
Sets the storage of this V1beta1LightGBMSpec.
Arguments:
storage
: The storage of this V1beta1LightGBMSpec. # noqa: E501
storage_uri
@property
def storage_uri()
Gets the storage_uri of this V1beta1LightGBMSpec. # noqa: E501
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Returns:
str
: The storage_uri of this V1beta1LightGBMSpec. # noqa: E501
storage_uri
@storage_uri.setter
def storage_uri(storage_uri)
Sets the storage_uri of this V1beta1LightGBMSpec.
This field points to the location of the trained model which is mounted onto the pod. # noqa: E501
Arguments:
storage_uri
: The storage_uri of this V1beta1LightGBMSpec. # noqa: E501
termination_message_path
@property
def termination_message_path()
Gets the termination_message_path of this V1beta1LightGBMSpec. # noqa: E501
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_path of this V1beta1LightGBMSpec. # noqa: E501
termination_message_path
@termination_message_path.setter
def termination_message_path(termination_message_path)
Sets the termination_message_path of this V1beta1LightGBMSpec.
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501
Arguments:
termination_message_path
: The termination_message_path of this V1beta1LightGBMSpec. # noqa: E501
termination_message_policy
@property
def termination_message_policy()
Gets the termination_message_policy of this V1beta1LightGBMSpec. # noqa: E501
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Returns:
str
: The termination_message_policy of this V1beta1LightGBMSpec. # noqa: E501
termination_message_policy
@termination_message_policy.setter
def termination_message_policy(termination_message_policy)
Sets the termination_message_policy of this V1beta1LightGBMSpec.
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
Arguments:
termination_message_policy
: The termination_message_policy of this V1beta1LightGBMSpec. # noqa: E501
tty
@property
def tty()
Gets the tty of this V1beta1LightGBMSpec. # noqa: E501
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Returns:
bool
: The tty of this V1beta1LightGBMSpec. # noqa: E501
tty
@tty.setter
def tty(tty)
Sets the tty of this V1beta1LightGBMSpec.
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501
Arguments:
tty
: The tty of this V1beta1LightGBMSpec. # noqa: E501
volume_devices
@property
def volume_devices()
Gets the volume_devices of this V1beta1LightGBMSpec. # noqa: E501
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Returns:
list[V1VolumeDevice]
: The volume_devices of this V1beta1LightGBMSpec. # noqa: E501
volume_devices
@volume_devices.setter
def volume_devices(volume_devices)
Sets the volume_devices of this V1beta1LightGBMSpec.
volumeDevices is the list of block devices to be used by the container. # noqa: E501
Arguments:
volume_devices
: The volume_devices of this V1beta1LightGBMSpec. # noqa: E501
volume_mounts
@property
def volume_mounts()
Gets the volume_mounts of this V1beta1LightGBMSpec. # noqa: E501
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Returns:
list[V1VolumeMount]
: The volume_mounts of this V1beta1LightGBMSpec. # noqa: E501
volume_mounts
@volume_mounts.setter
def volume_mounts(volume_mounts)
Sets the volume_mounts of this V1beta1LightGBMSpec.
Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501
Arguments:
volume_mounts
: The volume_mounts of this V1beta1LightGBMSpec. # noqa: E501
working_dir
@property
def working_dir()
Gets the working_dir of this V1beta1LightGBMSpec. # noqa: E501
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Returns:
str
: The working_dir of this V1beta1LightGBMSpec. # noqa: E501
working_dir
@working_dir.setter
def working_dir(working_dir)
Sets the working_dir of this V1beta1LightGBMSpec.
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501
Arguments:
working_dir
: The working_dir of this V1beta1LightGBMSpec. # noqa: E501
to_dict
def to_dict()
Returns the model properties as a dict
to_str
def to_str()
Returns the string representation of the model
__repr__
def __repr__()
For print
and pprint
__eq__
def __eq__(other)
Returns true if both objects are equal
__ne__
def __ne__(other)
Returns true if both objects are not equal