-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
333 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# coding: utf-8 | ||
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. | ||
|
||
from .dhcp_option import DhcpOption | ||
from ...util import formatted_flat_dict | ||
|
||
|
||
class DhcpSearchDomainOption(DhcpOption): | ||
|
||
def __init__(self): | ||
|
||
self.swagger_types = { | ||
'type': 'str', | ||
'search_domain_names': 'list[str]' | ||
} | ||
|
||
self.attribute_map = { | ||
'type': 'type', | ||
'search_domain_names': 'searchDomainNames' | ||
} | ||
|
||
self._type = None | ||
self._search_domain_names = None | ||
self._type = 'SearchDomain' | ||
|
||
@property | ||
def search_domain_names(self): | ||
""" | ||
Gets the search_domain_names of this DhcpSearchDomainOption. | ||
A single search domain name according to `RFC 952`__ | ||
and `RFC 1123`__. During a DNS query, | ||
the OS will append this search domain name to the value being queried, but only if | ||
that value is not a fully qualified domain name (FQDN). | ||
If you set :class:`DhcpDnsOption` to `VcnLocalPlusInternet`, | ||
and you assign a DNS label to the VCN during creation, the search domain name in the | ||
VCN's default set of DHCP options is automatically set to the VCN domain | ||
(e.g., `vcn1.oraclevcn.com`). | ||
If you don't want to use a search domain name, omit this option from the | ||
set of DHCP options. Do not include this option with an empty list | ||
of search domain names, or with an empty string as the value for any search | ||
domain name. | ||
__ https://tools.ietf.org/html/rfc952 | ||
__ https://tools.ietf.org/html/rfc1123 | ||
:return: The search_domain_names of this DhcpSearchDomainOption. | ||
:rtype: list[str] | ||
""" | ||
return self._search_domain_names | ||
|
||
@search_domain_names.setter | ||
def search_domain_names(self, search_domain_names): | ||
""" | ||
Sets the search_domain_names of this DhcpSearchDomainOption. | ||
A single search domain name according to `RFC 952`__ | ||
and `RFC 1123`__. During a DNS query, | ||
the OS will append this search domain name to the value being queried, but only if | ||
that value is not a fully qualified domain name (FQDN). | ||
If you set :class:`DhcpDnsOption` to `VcnLocalPlusInternet`, | ||
and you assign a DNS label to the VCN during creation, the search domain name in the | ||
VCN's default set of DHCP options is automatically set to the VCN domain | ||
(e.g., `vcn1.oraclevcn.com`). | ||
If you don't want to use a search domain name, omit this option from the | ||
set of DHCP options. Do not include this option with an empty list | ||
of search domain names, or with an empty string as the value for any search | ||
domain name. | ||
__ https://tools.ietf.org/html/rfc952 | ||
__ https://tools.ietf.org/html/rfc1123 | ||
:param search_domain_names: The search_domain_names of this DhcpSearchDomainOption. | ||
:type: list[str] | ||
""" | ||
self._search_domain_names = search_domain_names | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.