1# coding: utf-8 2# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. 3# 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. 4 5 6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 7from oci.decorators import init_model_state_from_kwargs 8 9 10@init_model_state_from_kwargs 11class MetadataDetails(object): 12 """ 13 Metadata parameter details 14 """ 15 16 def __init__(self, **kwargs): 17 """ 18 Initializes a new MetadataDetails object with values from keyword arguments. 19 The following keyword arguments are supported (corresponding to the getters/setters of this class): 20 21 :param param_name: 22 The value to assign to the param_name property of this MetadataDetails. 23 :type param_name: str 24 25 :param param_value: 26 The value to assign to the param_value property of this MetadataDetails. 27 :type param_value: str 28 29 :param is_json_value: 30 The value to assign to the is_json_value property of this MetadataDetails. 31 :type is_json_value: bool 32 33 """ 34 self.swagger_types = { 35 'param_name': 'str', 36 'param_value': 'str', 37 'is_json_value': 'bool' 38 } 39 40 self.attribute_map = { 41 'param_name': 'paramName', 42 'param_value': 'paramValue', 43 'is_json_value': 'isJsonValue' 44 } 45 46 self._param_name = None 47 self._param_value = None 48 self._is_json_value = None 49 50 @property 51 def param_name(self): 52 """ 53 **[Required]** Gets the param_name of this MetadataDetails. 54 Metadata param name 55 56 57 :return: The param_name of this MetadataDetails. 58 :rtype: str 59 """ 60 return self._param_name 61 62 @param_name.setter 63 def param_name(self, param_name): 64 """ 65 Sets the param_name of this MetadataDetails. 66 Metadata param name 67 68 69 :param param_name: The param_name of this MetadataDetails. 70 :type: str 71 """ 72 self._param_name = param_name 73 74 @property 75 def param_value(self): 76 """ 77 **[Required]** Gets the param_value of this MetadataDetails. 78 Metadata param value. Complex value will be a JSON string. 79 80 81 :return: The param_value of this MetadataDetails. 82 :rtype: str 83 """ 84 return self._param_value 85 86 @param_value.setter 87 def param_value(self, param_value): 88 """ 89 Sets the param_value of this MetadataDetails. 90 Metadata param value. Complex value will be a JSON string. 91 92 93 :param param_value: The param_value of this MetadataDetails. 94 :type: str 95 """ 96 self._param_value = param_value 97 98 @property 99 def is_json_value(self): 100 """ 101 **[Required]** Gets the is_json_value of this MetadataDetails. 102 Indicates if the value is a JSON string 103 104 105 :return: The is_json_value of this MetadataDetails. 106 :rtype: bool 107 """ 108 return self._is_json_value 109 110 @is_json_value.setter 111 def is_json_value(self, is_json_value): 112 """ 113 Sets the is_json_value of this MetadataDetails. 114 Indicates if the value is a JSON string 115 116 117 :param is_json_value: The is_json_value of this MetadataDetails. 118 :type: bool 119 """ 120 self._is_json_value = is_json_value 121 122 def __repr__(self): 123 return formatted_flat_dict(self) 124 125 def __eq__(self, other): 126 if other is None: 127 return False 128 129 return self.__dict__ == other.__dict__ 130 131 def __ne__(self, other): 132 return not self == other 133