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
5from .update_resolver_endpoint_details import UpdateResolverEndpointDetails
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 UpdateResolverVnicEndpointDetails(UpdateResolverEndpointDetails):
12    """
13    The body for updating an existing resolver VNIC endpoint.
14
15    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
16    """
17
18    def __init__(self, **kwargs):
19        """
20        Initializes a new UpdateResolverVnicEndpointDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.dns.models.UpdateResolverVnicEndpointDetails.endpoint_type` attribute
21        of this class is ``VNIC`` and it should not be changed.
22        The following keyword arguments are supported (corresponding to the getters/setters of this class):
23
24        :param endpoint_type:
25            The value to assign to the endpoint_type property of this UpdateResolverVnicEndpointDetails.
26            Allowed values for this property are: "VNIC"
27        :type endpoint_type: str
28
29        :param nsg_ids:
30            The value to assign to the nsg_ids property of this UpdateResolverVnicEndpointDetails.
31        :type nsg_ids: list[str]
32
33        """
34        self.swagger_types = {
35            'endpoint_type': 'str',
36            'nsg_ids': 'list[str]'
37        }
38
39        self.attribute_map = {
40            'endpoint_type': 'endpointType',
41            'nsg_ids': 'nsgIds'
42        }
43
44        self._endpoint_type = None
45        self._nsg_ids = None
46        self._endpoint_type = 'VNIC'
47
48    @property
49    def nsg_ids(self):
50        """
51        Gets the nsg_ids of this UpdateResolverVnicEndpointDetails.
52        An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the
53        resolver endpoint is a part of.
54
55
56        :return: The nsg_ids of this UpdateResolverVnicEndpointDetails.
57        :rtype: list[str]
58        """
59        return self._nsg_ids
60
61    @nsg_ids.setter
62    def nsg_ids(self, nsg_ids):
63        """
64        Sets the nsg_ids of this UpdateResolverVnicEndpointDetails.
65        An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the
66        resolver endpoint is a part of.
67
68
69        :param nsg_ids: The nsg_ids of this UpdateResolverVnicEndpointDetails.
70        :type: list[str]
71        """
72        self._nsg_ids = nsg_ids
73
74    def __repr__(self):
75        return formatted_flat_dict(self)
76
77    def __eq__(self, other):
78        if other is None:
79            return False
80
81        return self.__dict__ == other.__dict__
82
83    def __ne__(self, other):
84        return not self == other
85