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 UpdateReferenceDetails(object): 12 """ 13 Application references that need to be updated. 14 """ 15 16 def __init__(self, **kwargs): 17 """ 18 Initializes a new UpdateReferenceDetails object with values from keyword arguments. 19 The following keyword arguments are supported (corresponding to the getters/setters of this class): 20 21 :param options: 22 The value to assign to the options property of this UpdateReferenceDetails. 23 :type options: dict(str, str) 24 25 :param target_object: 26 The value to assign to the target_object property of this UpdateReferenceDetails. 27 :type target_object: object 28 29 :param child_references: 30 The value to assign to the child_references property of this UpdateReferenceDetails. 31 :type child_references: list[oci.data_integration.models.ChildReferenceDetail] 32 33 """ 34 self.swagger_types = { 35 'options': 'dict(str, str)', 36 'target_object': 'object', 37 'child_references': 'list[ChildReferenceDetail]' 38 } 39 40 self.attribute_map = { 41 'options': 'options', 42 'target_object': 'targetObject', 43 'child_references': 'childReferences' 44 } 45 46 self._options = None 47 self._target_object = None 48 self._child_references = None 49 50 @property 51 def options(self): 52 """ 53 Gets the options of this UpdateReferenceDetails. 54 A list of options such as `ignoreObjectOnError`. 55 56 57 :return: The options of this UpdateReferenceDetails. 58 :rtype: dict(str, str) 59 """ 60 return self._options 61 62 @options.setter 63 def options(self, options): 64 """ 65 Sets the options of this UpdateReferenceDetails. 66 A list of options such as `ignoreObjectOnError`. 67 68 69 :param options: The options of this UpdateReferenceDetails. 70 :type: dict(str, str) 71 """ 72 self._options = options 73 74 @property 75 def target_object(self): 76 """ 77 Gets the target_object of this UpdateReferenceDetails. 78 The new target object to reference. This should be of type `DataAsset`. The child references can be of type `Connection`. 79 80 81 :return: The target_object of this UpdateReferenceDetails. 82 :rtype: object 83 """ 84 return self._target_object 85 86 @target_object.setter 87 def target_object(self, target_object): 88 """ 89 Sets the target_object of this UpdateReferenceDetails. 90 The new target object to reference. This should be of type `DataAsset`. The child references can be of type `Connection`. 91 92 93 :param target_object: The target_object of this UpdateReferenceDetails. 94 :type: object 95 """ 96 self._target_object = target_object 97 98 @property 99 def child_references(self): 100 """ 101 Gets the child_references of this UpdateReferenceDetails. 102 The list of child references that also need to be updated. 103 104 105 :return: The child_references of this UpdateReferenceDetails. 106 :rtype: list[oci.data_integration.models.ChildReferenceDetail] 107 """ 108 return self._child_references 109 110 @child_references.setter 111 def child_references(self, child_references): 112 """ 113 Sets the child_references of this UpdateReferenceDetails. 114 The list of child references that also need to be updated. 115 116 117 :param child_references: The child_references of this UpdateReferenceDetails. 118 :type: list[oci.data_integration.models.ChildReferenceDetail] 119 """ 120 self._child_references = child_references 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