# coding: utf-8 # Copyright (c) 2016, 2021, 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. 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 NetworkSourcesVirtualSourceList(object): """ NetworkSourcesVirtualSourceList model. """ def __init__(self, **kwargs): """ Initializes a new NetworkSourcesVirtualSourceList object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param vcn_id: The value to assign to the vcn_id property of this NetworkSourcesVirtualSourceList. :type vcn_id: str :param ip_ranges: The value to assign to the ip_ranges property of this NetworkSourcesVirtualSourceList. :type ip_ranges: list[str] """ self.swagger_types = { 'vcn_id': 'str', 'ip_ranges': 'list[str]' } self.attribute_map = { 'vcn_id': 'vcnId', 'ip_ranges': 'ipRanges' } self._vcn_id = None self._ip_ranges = None @property def vcn_id(self): """ Gets the vcn_id of this NetworkSourcesVirtualSourceList. :return: The vcn_id of this NetworkSourcesVirtualSourceList. :rtype: str """ return self._vcn_id @vcn_id.setter def vcn_id(self, vcn_id): """ Sets the vcn_id of this NetworkSourcesVirtualSourceList. :param vcn_id: The vcn_id of this NetworkSourcesVirtualSourceList. :type: str """ self._vcn_id = vcn_id @property def ip_ranges(self): """ Gets the ip_ranges of this NetworkSourcesVirtualSourceList. :return: The ip_ranges of this NetworkSourcesVirtualSourceList. :rtype: list[str] """ return self._ip_ranges @ip_ranges.setter def ip_ranges(self, ip_ranges): """ Sets the ip_ranges of this NetworkSourcesVirtualSourceList. :param ip_ranges: The ip_ranges of this NetworkSourcesVirtualSourceList. :type: list[str] """ self._ip_ranges = ip_ranges 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