Bot

class oci.oda.models.Bot(**kwargs)

Bases: object

Metadata for a Bot resource.

Attributes

LIFECYCLE_DETAILS_DRAFT A constant which can be used with the lifecycle_details property of a Bot.
LIFECYCLE_DETAILS_PUBLISHED A constant which can be used with the lifecycle_details property of a Bot.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Bot.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a Bot.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a Bot.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a Bot.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Bot.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a Bot.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a Bot.
MULTILINGUAL_MODE_NATIVE A constant which can be used with the multilingual_mode property of a Bot.
MULTILINGUAL_MODE_TRANSLATION A constant which can be used with the multilingual_mode property of a Bot.
base_id Gets the base_id of this Bot.
category Gets the category of this Bot.
defined_tags Gets the defined_tags of this Bot.
description Gets the description of this Bot.
dialog_version Gets the dialog_version of this Bot.
display_name [Required] Gets the display_name of this Bot.
freeform_tags Gets the freeform_tags of this Bot.
id [Required] Gets the id of this Bot.
lifecycle_details [Required] Gets the lifecycle_details of this Bot.
lifecycle_state [Required] Gets the lifecycle_state of this Bot.
multilingual_mode Gets the multilingual_mode of this Bot.
name [Required] Gets the name of this Bot.
namespace Gets the namespace of this Bot.
native_language_tags Gets the native_language_tags of this Bot.
platform_version [Required] Gets the platform_version of this Bot.
primary_language_tag Gets the primary_language_tag of this Bot.
time_created [Required] Gets the time_created of this Bot.
time_updated [Required] Gets the time_updated of this Bot.
version [Required] Gets the version of this Bot.

Methods

__init__(**kwargs) Initializes a new Bot object with values from keyword arguments.
LIFECYCLE_DETAILS_DRAFT = 'DRAFT'

A constant which can be used with the lifecycle_details property of a Bot. This constant has a value of “DRAFT”

LIFECYCLE_DETAILS_PUBLISHED = 'PUBLISHED'

A constant which can be used with the lifecycle_details property of a Bot. This constant has a value of “PUBLISHED”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Bot. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a Bot. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a Bot. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a Bot. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a Bot. This constant has a value of “FAILED”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a Bot. This constant has a value of “INACTIVE”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a Bot. This constant has a value of “UPDATING”

MULTILINGUAL_MODE_NATIVE = 'NATIVE'

A constant which can be used with the multilingual_mode property of a Bot. This constant has a value of “NATIVE”

MULTILINGUAL_MODE_TRANSLATION = 'TRANSLATION'

A constant which can be used with the multilingual_mode property of a Bot. This constant has a value of “TRANSLATION”

__init__(**kwargs)

Initializes a new Bot object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this Bot.
  • name (str) – The value to assign to the name property of this Bot.
  • version (str) – The value to assign to the version property of this Bot.
  • display_name (str) – The value to assign to the display_name property of this Bot.
  • category (str) – The value to assign to the category property of this Bot.
  • description (str) – The value to assign to the description property of this Bot.
  • namespace (str) – The value to assign to the namespace property of this Bot.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Bot. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this Bot. Allowed values for this property are: “PUBLISHED”, “DRAFT”
  • platform_version (str) – The value to assign to the platform_version property of this Bot.
  • dialog_version (str) – The value to assign to the dialog_version property of this Bot.
  • base_id (str) – The value to assign to the base_id property of this Bot.
  • multilingual_mode (str) – The value to assign to the multilingual_mode property of this Bot. Allowed values for this property are: “NATIVE”, “TRANSLATION”
  • primary_language_tag (str) – The value to assign to the primary_language_tag property of this Bot.
  • native_language_tags (list[str]) – The value to assign to the native_language_tags property of this Bot.
  • time_created (datetime) – The value to assign to the time_created property of this Bot.
  • time_updated (datetime) – The value to assign to the time_updated property of this Bot.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Bot.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Bot.
base_id

Gets the base_id of this Bot. The unique identifier for the base reource (when this resource extends another).

Returns:The base_id of this Bot.
Return type:str
category

Gets the category of this Bot. The resource’s category. This is used to group resource’s together.

Returns:The category of this Bot.
Return type:str
defined_tags

Gets the defined_tags of this Bot. Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this Bot.
Return type:dict(str, dict(str, object))
description

Gets the description of this Bot. A short description of the resource.

Returns:The description of this Bot.
Return type:str
dialog_version

Gets the dialog_version of this Bot. The resource’s dialog version.

Returns:The dialog_version of this Bot.
Return type:str
display_name

[Required] Gets the display_name of this Bot. The resource’s display name.

Returns:The display_name of this Bot.
Return type:str
freeform_tags

Gets the freeform_tags of this Bot. Simple key-value pair that is applied without any predefined name, type, or scope. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this Bot.
Return type:dict(str, str)
id

[Required] Gets the id of this Bot. Unique immutable identifier that was assigned when the resource was created.

Returns:The id of this Bot.
Return type:str
lifecycle_details

[Required] Gets the lifecycle_details of this Bot. The resource’s publish state.

Allowed values for this property are: “PUBLISHED”, “DRAFT”

Returns:The lifecycle_details of this Bot.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this Bot. The resource’s current state.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”

Returns:The lifecycle_state of this Bot.
Return type:str
multilingual_mode

Gets the multilingual_mode of this Bot. The multilingual mode for the resource.

Allowed values for this property are: “NATIVE”, “TRANSLATION”

Returns:The multilingual_mode of this Bot.
Return type:str
name

[Required] Gets the name of this Bot. The reource’s name. The name can contain only letters, numbers, periods, and underscores. The name must begin with a letter.

Returns:The name of this Bot.
Return type:str
namespace

Gets the namespace of this Bot. The resource’s namespace.

Returns:The namespace of this Bot.
Return type:str
native_language_tags

Gets the native_language_tags of this Bot. A list of native languages supported by this resource.

Returns:The native_language_tags of this Bot.
Return type:list[str]
platform_version

[Required] Gets the platform_version of this Bot. The ODA Platform Version for this resource.

Returns:The platform_version of this Bot.
Return type:str
primary_language_tag

Gets the primary_language_tag of this Bot. The primary language for the resource.

Returns:The primary_language_tag of this Bot.
Return type:str
time_created

[Required] Gets the time_created of this Bot. When the resource was created. A date-time string as described in RFC 3339, section 14.29.

Returns:The time_created of this Bot.
Return type:datetime
time_updated

[Required] Gets the time_updated of this Bot. When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.

Returns:The time_updated of this Bot.
Return type:datetime
version

[Required] Gets the version of this Bot. The resource’s version. The version can only contain numbers, letters, periods, underscores, dashes or spaces. The version must begin with a letter or a number.

Returns:The version of this Bot.
Return type:str