2
0
openapi-client-udm/openapi_client_udm/models/container_cn_policies.py

922 lines
42 KiB
Python
Raw Normal View History

# coding: utf-8
"""
Univention Directory Manager REST interface
Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501
The version of the OpenAPI document: 1.0.2
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
from openapi_client_udm.configuration import Configuration
class ContainerCnPolicies(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
'policies_slavepackages': 'list[str]',
'policies_dhcp_dns': 'list[str]',
'policies_printserver': 'list[str]',
'policies_dhcp_scope': 'list[str]',
'policies_dhcp_dnsupdate': 'list[str]',
'policies_dhcp_boot': 'list[str]',
'policies_repositorysync': 'list[str]',
'policies_dhcp_statements': 'list[str]',
'policies_nfsmounts': 'list[str]',
'policies_memberpackages': 'list[str]',
'policies_umc': 'list[str]',
'policies_maintenance': 'list[str]',
'policies_desktop': 'list[str]',
'policies_dhcp_netbios': 'list[str]',
'policies_admin_container': 'list[str]',
'policies_dhcp_routing': 'list[str]',
'policies_release': 'list[str]',
'policies_share_userquota': 'list[str]',
'policies_pwhistory': 'list[str]',
'policies_dhcp_leasetime': 'list[str]',
'policies_registry': 'list[str]',
'policies_masterpackages': 'list[str]',
'policies_ldapserver': 'list[str]',
'policies_repositoryserver': 'list[str]'
}
attribute_map = {
'policies_slavepackages': 'policies/slavepackages',
'policies_dhcp_dns': 'policies/dhcp_dns',
'policies_printserver': 'policies/printserver',
'policies_dhcp_scope': 'policies/dhcp_scope',
'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate',
'policies_dhcp_boot': 'policies/dhcp_boot',
'policies_repositorysync': 'policies/repositorysync',
'policies_dhcp_statements': 'policies/dhcp_statements',
'policies_nfsmounts': 'policies/nfsmounts',
'policies_memberpackages': 'policies/memberpackages',
'policies_umc': 'policies/umc',
'policies_maintenance': 'policies/maintenance',
'policies_desktop': 'policies/desktop',
'policies_dhcp_netbios': 'policies/dhcp_netbios',
'policies_admin_container': 'policies/admin_container',
'policies_dhcp_routing': 'policies/dhcp_routing',
'policies_release': 'policies/release',
'policies_share_userquota': 'policies/share_userquota',
'policies_pwhistory': 'policies/pwhistory',
'policies_dhcp_leasetime': 'policies/dhcp_leasetime',
'policies_registry': 'policies/registry',
'policies_masterpackages': 'policies/masterpackages',
'policies_ldapserver': 'policies/ldapserver',
'policies_repositoryserver': 'policies/repositoryserver'
}
def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501
"""ContainerCnPolicies - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
self.local_vars_configuration = local_vars_configuration
self._policies_slavepackages = None
self._policies_dhcp_dns = None
self._policies_printserver = None
self._policies_dhcp_scope = None
self._policies_dhcp_dnsupdate = None
self._policies_dhcp_boot = None
self._policies_repositorysync = None
self._policies_dhcp_statements = None
self._policies_nfsmounts = None
self._policies_memberpackages = None
self._policies_umc = None
self._policies_maintenance = None
self._policies_desktop = None
self._policies_dhcp_netbios = None
self._policies_admin_container = None
self._policies_dhcp_routing = None
self._policies_release = None
self._policies_share_userquota = None
self._policies_pwhistory = None
self._policies_dhcp_leasetime = None
self._policies_registry = None
self._policies_masterpackages = None
self._policies_ldapserver = None
self._policies_repositoryserver = None
self.discriminator = None
if policies_slavepackages is not None:
self.policies_slavepackages = policies_slavepackages
if policies_dhcp_dns is not None:
self.policies_dhcp_dns = policies_dhcp_dns
if policies_printserver is not None:
self.policies_printserver = policies_printserver
if policies_dhcp_scope is not None:
self.policies_dhcp_scope = policies_dhcp_scope
if policies_dhcp_dnsupdate is not None:
self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate
if policies_dhcp_boot is not None:
self.policies_dhcp_boot = policies_dhcp_boot
if policies_repositorysync is not None:
self.policies_repositorysync = policies_repositorysync
if policies_dhcp_statements is not None:
self.policies_dhcp_statements = policies_dhcp_statements
if policies_nfsmounts is not None:
self.policies_nfsmounts = policies_nfsmounts
if policies_memberpackages is not None:
self.policies_memberpackages = policies_memberpackages
if policies_umc is not None:
self.policies_umc = policies_umc
if policies_maintenance is not None:
self.policies_maintenance = policies_maintenance
if policies_desktop is not None:
self.policies_desktop = policies_desktop
if policies_dhcp_netbios is not None:
self.policies_dhcp_netbios = policies_dhcp_netbios
if policies_admin_container is not None:
self.policies_admin_container = policies_admin_container
if policies_dhcp_routing is not None:
self.policies_dhcp_routing = policies_dhcp_routing
if policies_release is not None:
self.policies_release = policies_release
if policies_share_userquota is not None:
self.policies_share_userquota = policies_share_userquota
if policies_pwhistory is not None:
self.policies_pwhistory = policies_pwhistory
if policies_dhcp_leasetime is not None:
self.policies_dhcp_leasetime = policies_dhcp_leasetime
if policies_registry is not None:
self.policies_registry = policies_registry
if policies_masterpackages is not None:
self.policies_masterpackages = policies_masterpackages
if policies_ldapserver is not None:
self.policies_ldapserver = policies_ldapserver
if policies_repositoryserver is not None:
self.policies_repositoryserver = policies_repositoryserver
@property
def policies_slavepackages(self):
"""Gets the policies_slavepackages of this ContainerCnPolicies. # noqa: E501
Policy: Packages for Replica Nodes # noqa: E501
:return: The policies_slavepackages of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_slavepackages
@policies_slavepackages.setter
def policies_slavepackages(self, policies_slavepackages):
"""Sets the policies_slavepackages of this ContainerCnPolicies.
Policy: Packages for Replica Nodes # noqa: E501
:param policies_slavepackages: The policies_slavepackages of this ContainerCnPolicies. # noqa: E501
:type policies_slavepackages: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_slavepackages is not None and len(policies_slavepackages) > 1):
raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_slavepackages is not None and len(policies_slavepackages) < 0):
raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_slavepackages = policies_slavepackages
@property
def policies_dhcp_dns(self):
"""Gets the policies_dhcp_dns of this ContainerCnPolicies. # noqa: E501
Policy: DHCP DNS # noqa: E501
:return: The policies_dhcp_dns of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_dns
@policies_dhcp_dns.setter
def policies_dhcp_dns(self, policies_dhcp_dns):
"""Sets the policies_dhcp_dns of this ContainerCnPolicies.
Policy: DHCP DNS # noqa: E501
:param policies_dhcp_dns: The policies_dhcp_dns of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_dns: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1):
raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0):
raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_dns = policies_dhcp_dns
@property
def policies_printserver(self):
"""Gets the policies_printserver of this ContainerCnPolicies. # noqa: E501
Policy: Print server # noqa: E501
:return: The policies_printserver of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_printserver
@policies_printserver.setter
def policies_printserver(self, policies_printserver):
"""Sets the policies_printserver of this ContainerCnPolicies.
Policy: Print server # noqa: E501
:param policies_printserver: The policies_printserver of this ContainerCnPolicies. # noqa: E501
:type policies_printserver: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_printserver is not None and len(policies_printserver) > 1):
raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_printserver is not None and len(policies_printserver) < 0):
raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_printserver = policies_printserver
@property
def policies_dhcp_scope(self):
"""Gets the policies_dhcp_scope of this ContainerCnPolicies. # noqa: E501
Policy: DHCP Allow/Deny # noqa: E501
:return: The policies_dhcp_scope of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_scope
@policies_dhcp_scope.setter
def policies_dhcp_scope(self, policies_dhcp_scope):
"""Sets the policies_dhcp_scope of this ContainerCnPolicies.
Policy: DHCP Allow/Deny # noqa: E501
:param policies_dhcp_scope: The policies_dhcp_scope of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_scope: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1):
raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0):
raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_scope = policies_dhcp_scope
@property
def policies_dhcp_dnsupdate(self):
"""Gets the policies_dhcp_dnsupdate of this ContainerCnPolicies. # noqa: E501
Policy: DHCP Dynamic DNS # noqa: E501
:return: The policies_dhcp_dnsupdate of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_dnsupdate
@policies_dhcp_dnsupdate.setter
def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate):
"""Sets the policies_dhcp_dnsupdate of this ContainerCnPolicies.
Policy: DHCP Dynamic DNS # noqa: E501
:param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_dnsupdate: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1):
raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0):
raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate
@property
def policies_dhcp_boot(self):
"""Gets the policies_dhcp_boot of this ContainerCnPolicies. # noqa: E501
Policy: DHCP Boot # noqa: E501
:return: The policies_dhcp_boot of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_boot
@policies_dhcp_boot.setter
def policies_dhcp_boot(self, policies_dhcp_boot):
"""Sets the policies_dhcp_boot of this ContainerCnPolicies.
Policy: DHCP Boot # noqa: E501
:param policies_dhcp_boot: The policies_dhcp_boot of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_boot: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1):
raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0):
raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_boot = policies_dhcp_boot
@property
def policies_repositorysync(self):
"""Gets the policies_repositorysync of this ContainerCnPolicies. # noqa: E501
Policy: Repository synchronisation # noqa: E501
:return: The policies_repositorysync of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_repositorysync
@policies_repositorysync.setter
def policies_repositorysync(self, policies_repositorysync):
"""Sets the policies_repositorysync of this ContainerCnPolicies.
Policy: Repository synchronisation # noqa: E501
:param policies_repositorysync: The policies_repositorysync of this ContainerCnPolicies. # noqa: E501
:type policies_repositorysync: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_repositorysync is not None and len(policies_repositorysync) > 1):
raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_repositorysync is not None and len(policies_repositorysync) < 0):
raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_repositorysync = policies_repositorysync
@property
def policies_dhcp_statements(self):
"""Gets the policies_dhcp_statements of this ContainerCnPolicies. # noqa: E501
Policy: DHCP statements # noqa: E501
:return: The policies_dhcp_statements of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_statements
@policies_dhcp_statements.setter
def policies_dhcp_statements(self, policies_dhcp_statements):
"""Sets the policies_dhcp_statements of this ContainerCnPolicies.
Policy: DHCP statements # noqa: E501
:param policies_dhcp_statements: The policies_dhcp_statements of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_statements: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1):
raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0):
raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_statements = policies_dhcp_statements
@property
def policies_nfsmounts(self):
"""Gets the policies_nfsmounts of this ContainerCnPolicies. # noqa: E501
Policy: NFS mounts # noqa: E501
:return: The policies_nfsmounts of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_nfsmounts
@policies_nfsmounts.setter
def policies_nfsmounts(self, policies_nfsmounts):
"""Sets the policies_nfsmounts of this ContainerCnPolicies.
Policy: NFS mounts # noqa: E501
:param policies_nfsmounts: The policies_nfsmounts of this ContainerCnPolicies. # noqa: E501
:type policies_nfsmounts: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_nfsmounts is not None and len(policies_nfsmounts) > 1):
raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_nfsmounts is not None and len(policies_nfsmounts) < 0):
raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_nfsmounts = policies_nfsmounts
@property
def policies_memberpackages(self):
"""Gets the policies_memberpackages of this ContainerCnPolicies. # noqa: E501
Policy: Packages for Managed Nodes # noqa: E501
:return: The policies_memberpackages of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_memberpackages
@policies_memberpackages.setter
def policies_memberpackages(self, policies_memberpackages):
"""Sets the policies_memberpackages of this ContainerCnPolicies.
Policy: Packages for Managed Nodes # noqa: E501
:param policies_memberpackages: The policies_memberpackages of this ContainerCnPolicies. # noqa: E501
:type policies_memberpackages: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_memberpackages is not None and len(policies_memberpackages) > 1):
raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_memberpackages is not None and len(policies_memberpackages) < 0):
raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_memberpackages = policies_memberpackages
@property
def policies_umc(self):
"""Gets the policies_umc of this ContainerCnPolicies. # noqa: E501
Policy: UMC # noqa: E501
:return: The policies_umc of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_umc
@policies_umc.setter
def policies_umc(self, policies_umc):
"""Sets the policies_umc of this ContainerCnPolicies.
Policy: UMC # noqa: E501
:param policies_umc: The policies_umc of this ContainerCnPolicies. # noqa: E501
:type policies_umc: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_umc is not None and len(policies_umc) > 1):
raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_umc is not None and len(policies_umc) < 0):
raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_umc = policies_umc
@property
def policies_maintenance(self):
"""Gets the policies_maintenance of this ContainerCnPolicies. # noqa: E501
Policy: Maintenance # noqa: E501
:return: The policies_maintenance of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_maintenance
@policies_maintenance.setter
def policies_maintenance(self, policies_maintenance):
"""Sets the policies_maintenance of this ContainerCnPolicies.
Policy: Maintenance # noqa: E501
:param policies_maintenance: The policies_maintenance of this ContainerCnPolicies. # noqa: E501
:type policies_maintenance: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_maintenance is not None and len(policies_maintenance) > 1):
raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_maintenance is not None and len(policies_maintenance) < 0):
raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_maintenance = policies_maintenance
@property
def policies_desktop(self):
"""Gets the policies_desktop of this ContainerCnPolicies. # noqa: E501
Policy: Desktop # noqa: E501
:return: The policies_desktop of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_desktop
@policies_desktop.setter
def policies_desktop(self, policies_desktop):
"""Sets the policies_desktop of this ContainerCnPolicies.
Policy: Desktop # noqa: E501
:param policies_desktop: The policies_desktop of this ContainerCnPolicies. # noqa: E501
:type policies_desktop: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_desktop is not None and len(policies_desktop) > 1):
raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_desktop is not None and len(policies_desktop) < 0):
raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_desktop = policies_desktop
@property
def policies_dhcp_netbios(self):
"""Gets the policies_dhcp_netbios of this ContainerCnPolicies. # noqa: E501
Policy: DHCP NetBIOS # noqa: E501
:return: The policies_dhcp_netbios of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_netbios
@policies_dhcp_netbios.setter
def policies_dhcp_netbios(self, policies_dhcp_netbios):
"""Sets the policies_dhcp_netbios of this ContainerCnPolicies.
Policy: DHCP NetBIOS # noqa: E501
:param policies_dhcp_netbios: The policies_dhcp_netbios of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_netbios: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1):
raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0):
raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_netbios = policies_dhcp_netbios
@property
def policies_admin_container(self):
"""Gets the policies_admin_container of this ContainerCnPolicies. # noqa: E501
Policy: Univention Directory Manager container settings # noqa: E501
:return: The policies_admin_container of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_admin_container
@policies_admin_container.setter
def policies_admin_container(self, policies_admin_container):
"""Sets the policies_admin_container of this ContainerCnPolicies.
Policy: Univention Directory Manager container settings # noqa: E501
:param policies_admin_container: The policies_admin_container of this ContainerCnPolicies. # noqa: E501
:type policies_admin_container: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_admin_container is not None and len(policies_admin_container) > 1):
raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_admin_container is not None and len(policies_admin_container) < 0):
raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_admin_container = policies_admin_container
@property
def policies_dhcp_routing(self):
"""Gets the policies_dhcp_routing of this ContainerCnPolicies. # noqa: E501
Policy: DHCP routing # noqa: E501
:return: The policies_dhcp_routing of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_routing
@policies_dhcp_routing.setter
def policies_dhcp_routing(self, policies_dhcp_routing):
"""Sets the policies_dhcp_routing of this ContainerCnPolicies.
Policy: DHCP routing # noqa: E501
:param policies_dhcp_routing: The policies_dhcp_routing of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_routing: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1):
raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0):
raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_routing = policies_dhcp_routing
@property
def policies_release(self):
"""Gets the policies_release of this ContainerCnPolicies. # noqa: E501
Policy: Automatic updates # noqa: E501
:return: The policies_release of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_release
@policies_release.setter
def policies_release(self, policies_release):
"""Sets the policies_release of this ContainerCnPolicies.
Policy: Automatic updates # noqa: E501
:param policies_release: The policies_release of this ContainerCnPolicies. # noqa: E501
:type policies_release: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_release is not None and len(policies_release) > 1):
raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_release is not None and len(policies_release) < 0):
raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_release = policies_release
@property
def policies_share_userquota(self):
"""Gets the policies_share_userquota of this ContainerCnPolicies. # noqa: E501
Policy: User quota # noqa: E501
:return: The policies_share_userquota of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_share_userquota
@policies_share_userquota.setter
def policies_share_userquota(self, policies_share_userquota):
"""Sets the policies_share_userquota of this ContainerCnPolicies.
Policy: User quota # noqa: E501
:param policies_share_userquota: The policies_share_userquota of this ContainerCnPolicies. # noqa: E501
:type policies_share_userquota: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_share_userquota is not None and len(policies_share_userquota) > 1):
raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_share_userquota is not None and len(policies_share_userquota) < 0):
raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_share_userquota = policies_share_userquota
@property
def policies_pwhistory(self):
"""Gets the policies_pwhistory of this ContainerCnPolicies. # noqa: E501
Policy: Passwords # noqa: E501
:return: The policies_pwhistory of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_pwhistory
@policies_pwhistory.setter
def policies_pwhistory(self, policies_pwhistory):
"""Sets the policies_pwhistory of this ContainerCnPolicies.
Policy: Passwords # noqa: E501
:param policies_pwhistory: The policies_pwhistory of this ContainerCnPolicies. # noqa: E501
:type policies_pwhistory: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_pwhistory is not None and len(policies_pwhistory) > 1):
raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_pwhistory is not None and len(policies_pwhistory) < 0):
raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_pwhistory = policies_pwhistory
@property
def policies_dhcp_leasetime(self):
"""Gets the policies_dhcp_leasetime of this ContainerCnPolicies. # noqa: E501
Policy: DHCP lease time # noqa: E501
:return: The policies_dhcp_leasetime of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_dhcp_leasetime
@policies_dhcp_leasetime.setter
def policies_dhcp_leasetime(self, policies_dhcp_leasetime):
"""Sets the policies_dhcp_leasetime of this ContainerCnPolicies.
Policy: DHCP lease time # noqa: E501
:param policies_dhcp_leasetime: The policies_dhcp_leasetime of this ContainerCnPolicies. # noqa: E501
:type policies_dhcp_leasetime: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1):
raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0):
raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_dhcp_leasetime = policies_dhcp_leasetime
@property
def policies_registry(self):
"""Gets the policies_registry of this ContainerCnPolicies. # noqa: E501
Policy: Univention Configuration Registry # noqa: E501
:return: The policies_registry of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_registry
@policies_registry.setter
def policies_registry(self, policies_registry):
"""Sets the policies_registry of this ContainerCnPolicies.
Policy: Univention Configuration Registry # noqa: E501
:param policies_registry: The policies_registry of this ContainerCnPolicies. # noqa: E501
:type policies_registry: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_registry is not None and len(policies_registry) > 1):
raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_registry is not None and len(policies_registry) < 0):
raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_registry = policies_registry
@property
def policies_masterpackages(self):
"""Gets the policies_masterpackages of this ContainerCnPolicies. # noqa: E501
Policy: Packages for Primary/Backup Nodes # noqa: E501
:return: The policies_masterpackages of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_masterpackages
@policies_masterpackages.setter
def policies_masterpackages(self, policies_masterpackages):
"""Sets the policies_masterpackages of this ContainerCnPolicies.
Policy: Packages for Primary/Backup Nodes # noqa: E501
:param policies_masterpackages: The policies_masterpackages of this ContainerCnPolicies. # noqa: E501
:type policies_masterpackages: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_masterpackages is not None and len(policies_masterpackages) > 1):
raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_masterpackages is not None and len(policies_masterpackages) < 0):
raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_masterpackages = policies_masterpackages
@property
def policies_ldapserver(self):
"""Gets the policies_ldapserver of this ContainerCnPolicies. # noqa: E501
Policy: LDAP server # noqa: E501
:return: The policies_ldapserver of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_ldapserver
@policies_ldapserver.setter
def policies_ldapserver(self, policies_ldapserver):
"""Sets the policies_ldapserver of this ContainerCnPolicies.
Policy: LDAP server # noqa: E501
:param policies_ldapserver: The policies_ldapserver of this ContainerCnPolicies. # noqa: E501
:type policies_ldapserver: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_ldapserver is not None and len(policies_ldapserver) > 1):
raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_ldapserver is not None and len(policies_ldapserver) < 0):
raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_ldapserver = policies_ldapserver
@property
def policies_repositoryserver(self):
"""Gets the policies_repositoryserver of this ContainerCnPolicies. # noqa: E501
Policy: Repository server # noqa: E501
:return: The policies_repositoryserver of this ContainerCnPolicies. # noqa: E501
:rtype: list[str]
"""
return self._policies_repositoryserver
@policies_repositoryserver.setter
def policies_repositoryserver(self, policies_repositoryserver):
"""Sets the policies_repositoryserver of this ContainerCnPolicies.
Policy: Repository server # noqa: E501
:param policies_repositoryserver: The policies_repositoryserver of this ContainerCnPolicies. # noqa: E501
:type policies_repositoryserver: list[str]
"""
if (self.local_vars_configuration.client_side_validation and
policies_repositoryserver is not None and len(policies_repositoryserver) > 1):
raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501
if (self.local_vars_configuration.client_side_validation and
policies_repositoryserver is not None and len(policies_repositoryserver) < 0):
raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501
self._policies_repositoryserver = policies_repositoryserver
def to_dict(self, serialize=False):
"""Returns the model properties as a dict"""
result = {}
def convert(x):
if hasattr(x, "to_dict"):
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:
return x.to_dict(serialize)
else:
return x
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
attr = self.attribute_map.get(attr, attr) if serialize else attr
if isinstance(value, list):
result[attr] = list(map(
lambda x: convert(x),
value
))
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], convert(item[1])),
value.items()
))
else:
result[attr] = convert(value)
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ContainerCnPolicies):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, ContainerCnPolicies):
return True
return self.to_dict() != other.to_dict()