ServingMode

class oci.generative_ai_inference.models.ServingMode(**kwargs)

Bases: object

The model’s serving mode, which is either on-demand serving or dedicated serving.

Attributes:

SERVING_TYPE_DEDICATED

A constant which can be used with the serving_type property of a ServingMode.

SERVING_TYPE_ON_DEMAND

A constant which can be used with the serving_type property of a ServingMode.

serving_type

[Required] Gets the serving_type of this ServingMode.

Methods:

__init__(**kwargs)

Initializes a new ServingMode object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

SERVING_TYPE_DEDICATED = 'DEDICATED'

A constant which can be used with the serving_type property of a ServingMode. This constant has a value of “DEDICATED”

SERVING_TYPE_ON_DEMAND = 'ON_DEMAND'

A constant which can be used with the serving_type property of a ServingMode. This constant has a value of “ON_DEMAND”

__init__(**kwargs)

Initializes a new ServingMode object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters

serving_type (str) – The value to assign to the serving_type property of this ServingMode. Allowed values for this property are: “ON_DEMAND”, “DEDICATED”

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property serving_type

[Required] Gets the serving_type of this ServingMode. The serving mode type, which is either on-demand serving or dedicated serving.

Allowed values for this property are: “ON_DEMAND”, “DEDICATED”

Returns

The serving_type of this ServingMode.

Return type

str