Server IP : 103.119.228.120 / Your IP : 52.14.209.100 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/mysqlsh/lib/python3.9/site-packages/oci/apm_traces/models/ |
Upload File : |
# 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: 20200630 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 AttributePinResponse(object): """ Response of an individual attribute item in the bulk pin operation. """ #: A constant which can be used with the operation_type property of a AttributePinResponse. #: This constant has a value of "PIN" OPERATION_TYPE_PIN = "PIN" #: A constant which can be used with the attribute_name_space property of a AttributePinResponse. #: This constant has a value of "TRACES" ATTRIBUTE_NAME_SPACE_TRACES = "TRACES" #: A constant which can be used with the attribute_name_space property of a AttributePinResponse. #: This constant has a value of "SYNTHETIC" ATTRIBUTE_NAME_SPACE_SYNTHETIC = "SYNTHETIC" #: A constant which can be used with the attribute_status property of a AttributePinResponse. #: This constant has a value of "ATTRIBUTE_ALREADY_PINNED" ATTRIBUTE_STATUS_ATTRIBUTE_ALREADY_PINNED = "ATTRIBUTE_ALREADY_PINNED" #: A constant which can be used with the attribute_status property of a AttributePinResponse. #: This constant has a value of "ATTRIBUTE_PINNED" ATTRIBUTE_STATUS_ATTRIBUTE_PINNED = "ATTRIBUTE_PINNED" #: A constant which can be used with the attribute_status property of a AttributePinResponse. #: This constant has a value of "PIN_NOT_ALLOWED" ATTRIBUTE_STATUS_PIN_NOT_ALLOWED = "PIN_NOT_ALLOWED" #: A constant which can be used with the attribute_status property of a AttributePinResponse. #: This constant has a value of "DUPLICATE_ATTRIBUTE" ATTRIBUTE_STATUS_DUPLICATE_ATTRIBUTE = "DUPLICATE_ATTRIBUTE" #: A constant which can be used with the attribute_status property of a AttributePinResponse. #: This constant has a value of "INVALID_ATTRIBUTE" ATTRIBUTE_STATUS_INVALID_ATTRIBUTE = "INVALID_ATTRIBUTE" #: A constant which can be used with the attribute_status property of a AttributePinResponse. #: This constant has a value of "ATTRIBUTE_NOT_PROCESSED" ATTRIBUTE_STATUS_ATTRIBUTE_NOT_PROCESSED = "ATTRIBUTE_NOT_PROCESSED" def __init__(self, **kwargs): """ Initializes a new AttributePinResponse object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param attribute_name: The value to assign to the attribute_name property of this AttributePinResponse. :type attribute_name: str :param notes: The value to assign to the notes property of this AttributePinResponse. :type notes: str :param operation_type: The value to assign to the operation_type property of this AttributePinResponse. Allowed values for this property are: "PIN", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str :param attribute_name_space: The value to assign to the attribute_name_space property of this AttributePinResponse. Allowed values for this property are: "TRACES", "SYNTHETIC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type attribute_name_space: str :param attribute_status: The value to assign to the attribute_status property of this AttributePinResponse. Allowed values for this property are: "ATTRIBUTE_ALREADY_PINNED", "ATTRIBUTE_PINNED", "PIN_NOT_ALLOWED", "DUPLICATE_ATTRIBUTE", "INVALID_ATTRIBUTE", "ATTRIBUTE_NOT_PROCESSED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type attribute_status: str :param time_updated: The value to assign to the time_updated property of this AttributePinResponse. :type time_updated: datetime """ self.swagger_types = { 'attribute_name': 'str', 'notes': 'str', 'operation_type': 'str', 'attribute_name_space': 'str', 'attribute_status': 'str', 'time_updated': 'datetime' } self.attribute_map = { 'attribute_name': 'attributeName', 'notes': 'notes', 'operation_type': 'operationType', 'attribute_name_space': 'attributeNameSpace', 'attribute_status': 'attributeStatus', 'time_updated': 'timeUpdated' } self._attribute_name = None self._notes = None self._operation_type = None self._attribute_name_space = None self._attribute_status = None self._time_updated = None @property def attribute_name(self): """ **[Required]** Gets the attribute_name of this AttributePinResponse. Attribute that was pinned by this bulk operation. :return: The attribute_name of this AttributePinResponse. :rtype: str """ return self._attribute_name @attribute_name.setter def attribute_name(self, attribute_name): """ Sets the attribute_name of this AttributePinResponse. Attribute that was pinned by this bulk operation. :param attribute_name: The attribute_name of this AttributePinResponse. :type: str """ self._attribute_name = attribute_name @property def notes(self): """ **[Required]** Gets the notes of this AttributePinResponse. Notes added to this attribute. :return: The notes of this AttributePinResponse. :rtype: str """ return self._notes @notes.setter def notes(self, notes): """ Sets the notes of this AttributePinResponse. Notes added to this attribute. :param notes: The notes of this AttributePinResponse. :type: str """ self._notes = notes @property def operation_type(self): """ **[Required]** Gets the operation_type of this AttributePinResponse. Type of operation - pin. Allowed values for this property are: "PIN", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The operation_type of this AttributePinResponse. :rtype: str """ return self._operation_type @operation_type.setter def operation_type(self, operation_type): """ Sets the operation_type of this AttributePinResponse. Type of operation - pin. :param operation_type: The operation_type of this AttributePinResponse. :type: str """ allowed_values = ["PIN"] if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): operation_type = 'UNKNOWN_ENUM_VALUE' self._operation_type = operation_type @property def attribute_name_space(self): """ **[Required]** Gets the attribute_name_space of this AttributePinResponse. Namespace of the attribute whose properties were updated. The attributeNameSpace will default to TRACES if it is not passed in. Allowed values for this property are: "TRACES", "SYNTHETIC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The attribute_name_space of this AttributePinResponse. :rtype: str """ return self._attribute_name_space @attribute_name_space.setter def attribute_name_space(self, attribute_name_space): """ Sets the attribute_name_space of this AttributePinResponse. Namespace of the attribute whose properties were updated. The attributeNameSpace will default to TRACES if it is not passed in. :param attribute_name_space: The attribute_name_space of this AttributePinResponse. :type: str """ allowed_values = ["TRACES", "SYNTHETIC"] if not value_allowed_none_or_none_sentinel(attribute_name_space, allowed_values): attribute_name_space = 'UNKNOWN_ENUM_VALUE' self._attribute_name_space = attribute_name_space @property def attribute_status(self): """ **[Required]** Gets the attribute_status of this AttributePinResponse. Status of the attribute after this operation. The attribute can have one of the following statuses after the pin operation. The attribute can have either a success status or an error status. The status of the attribute must be correlated with the operation status property in the bulk operation metadata object. The bulk operation will be successful only when all attributes in the bulk request are processed successfully and they get a success status back. The following are successful status values of individual attribute items in a bulk attribute pin operation. ATTRIBUTE_PINNED - The attribute is marked pinned and associated notes have been added. ATTRIBUTE_ALREADY_PINNED - The caller is trying to pin an attribute that has already been pinned. DUPLICATE_ATTRIBUTE - The attribute is a duplicate of an attribute that was present in this bulk request. Note that we deduplicate the attribute collection, process only unique attributes, and call out duplicates. A duplicate attribute in a bulk request will not prevent the processing of further attributes in the bulk operation. The following values are error statuses and the bulk processing is stopped when the first error is encountered. PIN_NOT_ALLOWED - The caller has asked to pin an active attribute which is not allowed. INVALID_ATTRIBUTE - The attribute is invalid. ATTRIBUTE_NOT_PROCESSED - The attribute was not processed, as there was another attribute in this bulk request collection that resulted in a processing error. Allowed values for this property are: "ATTRIBUTE_ALREADY_PINNED", "ATTRIBUTE_PINNED", "PIN_NOT_ALLOWED", "DUPLICATE_ATTRIBUTE", "INVALID_ATTRIBUTE", "ATTRIBUTE_NOT_PROCESSED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The attribute_status of this AttributePinResponse. :rtype: str """ return self._attribute_status @attribute_status.setter def attribute_status(self, attribute_status): """ Sets the attribute_status of this AttributePinResponse. Status of the attribute after this operation. The attribute can have one of the following statuses after the pin operation. The attribute can have either a success status or an error status. The status of the attribute must be correlated with the operation status property in the bulk operation metadata object. The bulk operation will be successful only when all attributes in the bulk request are processed successfully and they get a success status back. The following are successful status values of individual attribute items in a bulk attribute pin operation. ATTRIBUTE_PINNED - The attribute is marked pinned and associated notes have been added. ATTRIBUTE_ALREADY_PINNED - The caller is trying to pin an attribute that has already been pinned. DUPLICATE_ATTRIBUTE - The attribute is a duplicate of an attribute that was present in this bulk request. Note that we deduplicate the attribute collection, process only unique attributes, and call out duplicates. A duplicate attribute in a bulk request will not prevent the processing of further attributes in the bulk operation. The following values are error statuses and the bulk processing is stopped when the first error is encountered. PIN_NOT_ALLOWED - The caller has asked to pin an active attribute which is not allowed. INVALID_ATTRIBUTE - The attribute is invalid. ATTRIBUTE_NOT_PROCESSED - The attribute was not processed, as there was another attribute in this bulk request collection that resulted in a processing error. :param attribute_status: The attribute_status of this AttributePinResponse. :type: str """ allowed_values = ["ATTRIBUTE_ALREADY_PINNED", "ATTRIBUTE_PINNED", "PIN_NOT_ALLOWED", "DUPLICATE_ATTRIBUTE", "INVALID_ATTRIBUTE", "ATTRIBUTE_NOT_PROCESSED"] if not value_allowed_none_or_none_sentinel(attribute_status, allowed_values): attribute_status = 'UNKNOWN_ENUM_VALUE' self._attribute_status = attribute_status @property def time_updated(self): """ **[Required]** Gets the time_updated of this AttributePinResponse. Time when the attribute was activated or deactivated. Note that ingest might not have picked up the changes even if this time has elapsed. :return: The time_updated of this AttributePinResponse. :rtype: datetime """ return self._time_updated @time_updated.setter def time_updated(self, time_updated): """ Sets the time_updated of this AttributePinResponse. Time when the attribute was activated or deactivated. Note that ingest might not have picked up the changes even if this time has elapsed. :param time_updated: The time_updated of this AttributePinResponse. :type: datetime """ self._time_updated = time_updated 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