ruạṛ
# 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: 20200601 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 Dependency(object): """ Details of a dependency an object or feature defines on another. For example, a source may depend on a parser either directly or indirectly. """ def __init__(self, **kwargs): """ Initializes a new Dependency object with values from keyword arguments. 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 Dependency. :type type: str :param reference_type: The value to assign to the reference_type property of this Dependency. :type reference_type: str :param reference_id: The value to assign to the reference_id property of this Dependency. :type reference_id: int """ self.swagger_types = { 'type': 'str', 'reference_type': 'str', 'reference_id': 'int' } self.attribute_map = { 'type': 'type', 'reference_type': 'referenceType', 'reference_id': 'referenceId' } self._type = None self._reference_type = None self._reference_id = None @property def type(self): """ Gets the type of this Dependency. The dependency type. :return: The type of this Dependency. :rtype: str """ return self._type @type.setter def type(self, type): """ Sets the type of this Dependency. The dependency type. :param type: The type of this Dependency. :type: str """ self._type = type @property def reference_type(self): """ Gets the reference_type of this Dependency. The type of reference that defines the dependency. :return: The reference_type of this Dependency. :rtype: str """ return self._reference_type @reference_type.setter def reference_type(self, reference_type): """ Sets the reference_type of this Dependency. The type of reference that defines the dependency. :param reference_type: The reference_type of this Dependency. :type: str """ self._reference_type = reference_type @property def reference_id(self): """ Gets the reference_id of this Dependency. The unique identifier of the reference, if available. :return: The reference_id of this Dependency. :rtype: int """ return self._reference_id @reference_id.setter def reference_id(self, reference_id): """ Sets the reference_id of this Dependency. The unique identifier of the reference, if available. :param reference_id: The reference_id of this Dependency. :type: int """ self._reference_id = reference_id 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
cải xoăn