function stringlengths 11 56k | repo_name stringlengths 5 60 | features list |
|---|---|---|
def UTCMillisToDatetime(millis, tz=None):
"""Converts a millisecond epoch time to a datetime object.
Args:
millis: A UTC time, expressed in milliseconds since the epoch.
tz: The desired tzinfo for the datetime object. If None, the
datetime will be naive.
Returns:
The datetime represented by t... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def utcoffset(self, dt):
"""datetime -> minutes east of UTC (negative for west of UTC)."""
if self._isdst(dt):
return self.DSTOFFSET
else:
return self.STDOFFSET | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def tzname(self, dt):
"""datetime -> string name of time zone."""
return time.tzname[self._isdst(dt)] | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def __repr__(self):
"""Return string '<Local>'."""
return '<Local>' | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def normalize(self, dt, unused_is_dst=False):
"""Correct the timezone information on the given datetime."""
if dt.tzinfo is None:
raise ValueError('Naive time - no tzinfo set')
return dt.replace(tzinfo=self) | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def AddLocalTimezone(cls, obj):
"""If obj is naive, add local timezone to it."""
if not obj.tzinfo:
return obj.replace(tzinfo=cls.LocalTimezone)
return obj | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def Localize(cls, obj):
"""If obj is naive, localize it to cls.LocalTimezone."""
if not obj.tzinfo:
return cls.LocalTimezone.localize(obj)
return obj | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def __sub__(self, *args, **kwargs):
"""x.__add__(y) <==> x-y."""
r = super(BaseTimestamp, self).__sub__(*args, **kwargs)
if isinstance(r, datetime.datetime):
return type(self)(r.year, r.month, r.day, r.hour, r.minute, r.second,
r.microsecond, r.tzinfo)
return r | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def now(cls, *args, **kwargs):
"""Get a timestamp corresponding to right now.
Args:
args: Positional arguments to pass to datetime.datetime.now().
kwargs: Keyword arguments to pass to datetime.datetime.now(). If tz is not
specified, local timezone is assumed.
Returns:
A new... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def today(cls):
"""Current BaseTimestamp.
Same as self.__class__.fromtimestamp(time.time()).
Returns:
New self.__class__.
"""
return cls.AddLocalTimezone(super(BaseTimestamp, cls).today()) | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def fromtimestamp(cls, *args, **kwargs):
"""Get a new localized timestamp from a POSIX timestamp.
Args:
args: Positional arguments to pass to datetime.datetime.fromtimestamp().
kwargs: Keyword arguments to pass to datetime.datetime.fromtimestamp().
If tz is not specified, local timezo... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def utcnow(cls):
"""Return a new BaseTimestamp representing UTC day and time."""
return super(BaseTimestamp, cls).utcnow().replace(tzinfo=pytz.utc) | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def utcfromtimestamp(cls, *args, **kwargs):
"""timestamp -> UTC datetime from a POSIX timestamp (like time.time())."""
return super(BaseTimestamp, cls).utcfromtimestamp(
*args, **kwargs).replace(tzinfo=pytz.utc) | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def strptime(cls, date_string, format, tz=None):
"""Parse date_string according to format and construct BaseTimestamp.
Args:
date_string: string passed to time.strptime.
format: format string passed to time.strptime.
tz: if not specified, local timezone assumed.
Returns:
New BaseTim... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def FromMicroTimestamp(cls, ts):
"""Create new Timestamp object from microsecond UTC timestamp value.
Args:
ts: integer microsecond UTC timestamp
Returns:
New cls()
"""
return cls.utcfromtimestamp(ts/_MICROSECONDS_PER_SECOND_F) | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def AsMicroTimestamp(self):
"""Return microsecond timestamp constructed from this object."""
return (SecondsToMicroseconds(self.AsSecondsSinceEpoch()) +
self.microsecond) | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def combine(cls, datepart, timepart, tz=None):
"""Combine date and time into timestamp, timezone-aware.
Args:
datepart: datetime.date
timepart: datetime.time
tz: timezone or None
Returns:
timestamp object
"""
result = super(BaseTimestamp, cls).combine(datepart, timepart)
... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def ConvertIntervalToSeconds(interval):
"""Convert a formatted string representing an interval into seconds.
Args:
interval: String to interpret as an interval. A basic interval looks like
"<number><suffix>". Complex intervals consisting of a chain of basic
intervals are also allowed.
Returns:... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def _StringToTime(cls, timestring, tz=None):
"""Use dateutil.parser to convert string into timestamp.
dateutil.parser understands ISO8601 which is really handy.
Args:
timestring: string with datetime
tz: optional timezone, if timezone is omitted from timestring.
Returns:
New Timesta... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def _IntStringToInterval(cls, timestring):
"""Parse interval date specification and create a timedelta object.
Args:
timestring: string interval.
Returns:
A datetime.timedelta representing the specified interval or None if
unable to parse the timestring.
"""
seconds = ConvertInte... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def FromString(cls, value, tz=None):
"""Create a Timestamp from a string.
Args:
value: String interval or datetime.
e.g. "2013-01-05 13:00:00" or "1d"
tz: optional timezone, if timezone is omitted from timestring.
Returns:
A new Timestamp.
Raises:
TimeParseError if u... | googlearchive/titan | [
46,
9,
46,
1,
1366927053
] |
def __init__(self, **kwargs):
self._callback = kwargs.pop('callback') | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_authentication_login_first(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
authentication = ET.Su... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_authentication_login_second(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
authentication = ET.S... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_accounting_exec_defaultacc_start_stop_server_type(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_accounting_commands_defaultacc_start_stop_server_type(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_name(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name = ET.SubElement(username, "name")
name.text = kwargs.pop('name')
callback = kwa... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_user_password(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name_key = ET.SubElement(username, "name")
name_key.text = kwargs.pop('name')
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_encryption_level(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name_key = ET.SubElement(username, "name")
name_key.text = kwargs.pop('name')
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_role(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name_key = ET.SubElement(username, "name")
name_key.text = kwargs.pop('name')
role = ... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_desc(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name_key = ET.SubElement(username, "name")
name_key.text = kwargs.pop('name')
desc = ... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_enable(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name_key = ET.SubElement(username, "name")
name_key.text = kwargs.pop('name')
enabl... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_expire(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name_key = ET.SubElement(username, "name")
name_key.text = kwargs.pop('name')
expir... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def service_password_encryption(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
service = ET.SubElement(config, "service", xmlns="urn:brocade.com:mgmt:brocade-aaa")
password_encryption = ET.SubElement(service, "password-encryption")
callback = k... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def role_name_name(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
role = ET.SubElement(config, "role", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name = ET.SubElement(role, "name")
name = ET.SubElement(name, "name")
name.text = kwargs.pop... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def role_name_desc(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
role = ET.SubElement(config, "role", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name = ET.SubElement(role, "name")
name_key = ET.SubElement(name, "name")
name_key.text = kw... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_hostname(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
use_vrf_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_use_vrf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
hostname_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_auth_port(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
hostname_key = ET.SubEle... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_protocol(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
hostname_key = ET.SubElem... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_key(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
hostname_key = ET.SubElement(h... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_encryption_level(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
hostname_key = ET... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_retries(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
hostname_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def radius_server_host_timeout(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
radius_server = ET.SubElement(config, "radius-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(radius_server, "host")
hostname_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_hostname(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
use_vrf_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_use_vrf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
hostname_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_port(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
hostname_key = ET.SubElement(... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_protocol(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
hostname_key = ET.SubElem... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_key(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
hostname_key = ET.SubElement(h... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_encryption_level(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
hostname_key = ET... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_retries(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
hostname_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_host_timeout(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(tacacs_server, "host")
hostname_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def tacacs_server_tacacs_source_ip(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
tacacs_server = ET.SubElement(config, "tacacs-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
tacacs_source_ip = ET.SubElement(tacacs_server, "tacacs-source-ip")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_host_hostname(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(ldap_server, "host")
use_vrf_key = ET.SubElement(host,... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_host_use_vrf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(ldap_server, "host")
hostname_key = ET.SubElement(host,... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_host_port(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(ldap_server, "host")
hostname_key = ET.SubElement(host, "h... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_host_retries(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(ldap_server, "host")
hostname_key = ET.SubElement(host,... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_host_timeout(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(ldap_server, "host")
hostname_key = ET.SubElement(host,... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_host_basedn(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
host = ET.SubElement(ldap_server, "host")
hostname_key = ET.SubElement(host, ... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_maprole_group_ad_group(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
maprole = ET.SubElement(ldap_server, "maprole")
group = ET.SubElem... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def ldap_server_maprole_group_switch_role(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
ldap_server = ET.SubElement(config, "ldap-server", xmlns="urn:brocade.com:mgmt:brocade-aaa")
maprole = ET.SubElement(ldap_server, "maprole")
group = ET.SubE... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_min_length(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
min_length = ET.SubElement(password_attributes, "min-length")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_max_retry(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
max_retry = ET.SubElement(password_attributes, "max-retry")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_max_lockout_duration(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
max_lockout_duration = ET.SubElement(password_attrib... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_character_restriction_upper(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(passwor... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_character_restriction_lower(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(passwor... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_character_restriction_numeric(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(passw... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_character_restriction_special_char(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
character_restriction = ET.SubElement(... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def password_attributes_admin_lockout_enable(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
password_attributes = ET.SubElement(config, "password-attributes", xmlns="urn:brocade.com:mgmt:brocade-aaa")
admin_lockout_enable = ET.SubElement(password_attrib... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def banner_login(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
banner = ET.SubElement(config, "banner", xmlns="urn:brocade.com:mgmt:brocade-aaa")
login = ET.SubElement(banner, "login")
login.text = kwargs.pop('login')
callback = kwargs... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def banner_motd(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
banner = ET.SubElement(config, "banner", xmlns="urn:brocade.com:mgmt:brocade-aaa")
motd = ET.SubElement(banner, "motd")
motd.text = kwargs.pop('motd')
callback = kwargs.pop(... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def banner_incoming(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
banner = ET.SubElement(config, "banner", xmlns="urn:brocade.com:mgmt:brocade-aaa")
incoming = ET.SubElement(banner, "incoming")
incoming.text = kwargs.pop('incoming')
ca... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_index(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index = ET.SubElement(rule, "index")
index.text = kwargs.pop('index')
callback = kwargs.pop('ca... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_action(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
action = ET.SubEl... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_operation(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
operation = ET... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_role(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('index')
role = ET.SubElemen... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_container_cmds_enumList(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index_key.text = kwargs.pop('... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_d_interface_fcoe_leaf_interface_fcoe_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
i... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_e_interface_te_leaf_interface_tengigabitethernet_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_h_interface_ge_leaf_interface_gigabitethernet_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_j_interface_pc_leaf_interface_port_channel_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_l_interface_vlan_leaf_interface_vlan_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
i... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_m_interface_management_leaf_interface_management_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_o_interface_loopback_leaf_interface_loopback_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_q_interface_ve_leaf_interface_ve_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
index... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_s_interface_fc_leaf_interface_fibrechannel_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "index")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_u_interface_fe_leaf_interface_fortygigabitethernet_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "ind... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def rule_command_cmdlist_interface_w_interface_he_leaf_interface_hundredgigabitethernet_leaf(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa")
index_key = ET.SubElement(rule, "i... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def root_sa_root_enable(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
root_sa = ET.SubElement(config, "root-sa", xmlns="urn:brocade.com:mgmt:brocade-aaa")
root = ET.SubElement(root_sa, "root")
enable = ET.SubElement(root, "enable")
cal... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def root_sa_root_access(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
root_sa = ET.SubElement(config, "root-sa", xmlns="urn:brocade.com:mgmt:brocade-aaa")
root = ET.SubElement(root_sa, "root")
access = ET.SubElement(root, "access")
acce... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def alias_config_alias_name(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
alias = ET.SubElement(alias_config, "alias")
name = ET.SubElement(alias, "n... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def alias_config_alias_expansion(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
alias = ET.SubElement(alias_config, "alias")
name_key = ET.SubElement(... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def alias_config_user_name(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
user = ET.SubElement(alias_config, "user")
name = ET.SubElement(user, "name"... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def alias_config_user_alias_name(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
user = ET.SubElement(alias_config, "user")
name_key = ET.SubElement(us... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def alias_config_user_alias_expansion(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
alias_config = ET.SubElement(config, "alias-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
user = ET.SubElement(alias_config, "user")
name_key = ET.SubEleme... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_authentication_login_first(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
authentication = ET.Su... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_authentication_login_second(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
authentication = ET.S... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_accounting_exec_defaultacc_start_stop_server_type(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def aaa_config_aaa_accounting_commands_defaultacc_start_stop_server_type(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
aaa_config = ET.SubElement(config, "aaa-config", xmlns="urn:brocade.com:mgmt:brocade-aaa")
aaa = ET.SubElement(aaa_config, "aaa")
... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
def username_name(self, **kwargs):
"""Auto Generated Code
"""
config = ET.Element("config")
username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa")
name = ET.SubElement(username, "name")
name.text = kwargs.pop('name')
callback = kwa... | BRCDcomm/pynos | [
16,
8,
16,
2,
1437520628
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.