File: //lib/mysqlsh/lib/python3.8/site-packages/oci/oda/models/clone_digital_assistant_details.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190506
from .create_digital_assistant_details import CreateDigitalAssistantDetails
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class CloneDigitalAssistantDetails(CreateDigitalAssistantDetails):
"""
Properties that are required to create a new Digital Assistant by cloning an existing Digital Assistant.
"""
def __init__(self, **kwargs):
"""
Initializes a new CloneDigitalAssistantDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.oda.models.CloneDigitalAssistantDetails.kind` attribute
of this class is ``CLONE`` and it should not be changed.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param kind:
The value to assign to the kind property of this CloneDigitalAssistantDetails.
Allowed values for this property are: "NEW", "CLONE", "VERSION", "EXTEND"
:type kind: str
:param category:
The value to assign to the category property of this CloneDigitalAssistantDetails.
:type category: str
:param description:
The value to assign to the description property of this CloneDigitalAssistantDetails.
:type description: str
:param platform_version:
The value to assign to the platform_version property of this CloneDigitalAssistantDetails.
:type platform_version: str
:param multilingual_mode:
The value to assign to the multilingual_mode property of this CloneDigitalAssistantDetails.
Allowed values for this property are: "NATIVE", "TRANSLATION"
:type multilingual_mode: str
:param primary_language_tag:
The value to assign to the primary_language_tag property of this CloneDigitalAssistantDetails.
:type primary_language_tag: str
:param freeform_tags:
The value to assign to the freeform_tags property of this CloneDigitalAssistantDetails.
:type freeform_tags: dict(str, str)
:param defined_tags:
The value to assign to the defined_tags property of this CloneDigitalAssistantDetails.
:type defined_tags: dict(str, dict(str, object))
:param id:
The value to assign to the id property of this CloneDigitalAssistantDetails.
:type id: str
:param name:
The value to assign to the name property of this CloneDigitalAssistantDetails.
:type name: str
:param display_name:
The value to assign to the display_name property of this CloneDigitalAssistantDetails.
:type display_name: str
:param version:
The value to assign to the version property of this CloneDigitalAssistantDetails.
:type version: str
"""
self.swagger_types = {
'kind': 'str',
'category': 'str',
'description': 'str',
'platform_version': 'str',
'multilingual_mode': 'str',
'primary_language_tag': 'str',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
'id': 'str',
'name': 'str',
'display_name': 'str',
'version': 'str'
}
self.attribute_map = {
'kind': 'kind',
'category': 'category',
'description': 'description',
'platform_version': 'platformVersion',
'multilingual_mode': 'multilingualMode',
'primary_language_tag': 'primaryLanguageTag',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
'id': 'id',
'name': 'name',
'display_name': 'displayName',
'version': 'version'
}
self._kind = None
self._category = None
self._description = None
self._platform_version = None
self._multilingual_mode = None
self._primary_language_tag = None
self._freeform_tags = None
self._defined_tags = None
self._id = None
self._name = None
self._display_name = None
self._version = None
self._kind = 'CLONE'
@property
def id(self):
"""
**[Required]** Gets the id of this CloneDigitalAssistantDetails.
The unique identifier of the Digital Assistant to clone.
:return: The id of this CloneDigitalAssistantDetails.
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""
Sets the id of this CloneDigitalAssistantDetails.
The unique identifier of the Digital Assistant to clone.
:param id: The id of this CloneDigitalAssistantDetails.
:type: str
"""
self._id = id
@property
def name(self):
"""
**[Required]** Gets the name of this CloneDigitalAssistantDetails.
The reource's name. The name can contain only letters, numbers, periods, and underscores. The name must begin with a letter.
:return: The name of this CloneDigitalAssistantDetails.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""
Sets the name of this CloneDigitalAssistantDetails.
The reource's name. The name can contain only letters, numbers, periods, and underscores. The name must begin with a letter.
:param name: The name of this CloneDigitalAssistantDetails.
:type: str
"""
self._name = name
@property
def display_name(self):
"""
**[Required]** Gets the display_name of this CloneDigitalAssistantDetails.
The resource's display name.
:return: The display_name of this CloneDigitalAssistantDetails.
:rtype: str
"""
return self._display_name
@display_name.setter
def display_name(self, display_name):
"""
Sets the display_name of this CloneDigitalAssistantDetails.
The resource's display name.
:param display_name: The display_name of this CloneDigitalAssistantDetails.
:type: str
"""
self._display_name = display_name
@property
def version(self):
"""
Gets the version of this CloneDigitalAssistantDetails.
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.
:return: The version of this CloneDigitalAssistantDetails.
:rtype: str
"""
return self._version
@version.setter
def version(self, version):
"""
Sets the version of this CloneDigitalAssistantDetails.
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.
:param version: The version of this CloneDigitalAssistantDetails.
:type: str
"""
self._version = version
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other