repo stringlengths 7 55 | path stringlengths 4 223 | func_name stringlengths 1 134 | original_string stringlengths 75 104k | language stringclasses 1
value | code stringlengths 75 104k | code_tokens listlengths 19 28.4k | docstring stringlengths 1 46.9k | docstring_tokens listlengths 1 1.97k | sha stringlengths 40 40 | url stringlengths 87 315 | partition stringclasses 3
values | summary stringlengths 4 350 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
StackStorm/pybind | pybind/nos/v6_0_2f/arp/__init__.py | arp._set_access_list | def _set_access_list(self, v, load=False):
"""
Setter method for access_list, mapped from YANG variable /arp/access_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_access_list is considered as a private
method. Backends looking to populate this variable s... | python | def _set_access_list(self, v, load=False):
"""
Setter method for access_list, mapped from YANG variable /arp/access_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_access_list is considered as a private
method. Backends looking to populate this variable s... | [
"def",
"_set_access_list",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for access_list, mapped from YANG variable /arp/access_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_access_list is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_access_list() ... | [
"Setter",
"method",
"for",
"access_list",
"mapped",
"from",
"YANG",
"variable",
"/",
"arp",
"/",
"access_list",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/arp/__init__.py#L92-L113 | train | Sets the access_list of the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/brocade_mpls_rpc/show_mpls_te_path/input/__init__.py | input._set_tieBreaking | def _set_tieBreaking(self, v, load=False):
"""
Setter method for tieBreaking, mapped from YANG variable /brocade_mpls_rpc/show_mpls_te_path/input/tieBreaking (tie-breaking)
If this variable is read-only (config: false) in the
source YANG file, then _set_tieBreaking is considered as a private
method.... | python | def _set_tieBreaking(self, v, load=False):
"""
Setter method for tieBreaking, mapped from YANG variable /brocade_mpls_rpc/show_mpls_te_path/input/tieBreaking (tie-breaking)
If this variable is read-only (config: false) in the
source YANG file, then _set_tieBreaking is considered as a private
method.... | [
"def",
"_set_tieBreaking",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for tieBreaking, mapped from YANG variable /brocade_mpls_rpc/show_mpls_te_path/input/tieBreaking (tie-breaking)
If this variable is read-only (config: false) in the
source YANG file, then _set_tieBreaking is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"tieBreaking",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_te_path",
"/",
"input",
"/",
"tieBreaking",
"(",
"tie",
"-",
"breaking",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/brocade_mpls_rpc/show_mpls_te_path/input/__init__.py#L435-L458 | train | Sets the tieBreaking property of the
. |
StackStorm/pybind | pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py | adj_neighbor._set_adj_type | def _set_adj_type(self, v, load=False):
"""
Setter method for adj_type, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_type (isis-adj-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_type is considered as a private
method. Backends lo... | python | def _set_adj_type(self, v, load=False):
"""
Setter method for adj_type, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_type (isis-adj-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_type is considered as a private
method. Backends lo... | [
"def",
"_set_adj_type",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for adj_type, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_type (isis-adj-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_type is considered as a private
method. Backends looking to populate this variable should
do so via... | [
"Setter",
"method",
"for",
"adj_type",
"mapped",
"from",
"YANG",
"variable",
"/",
"adj_neighbor_entries_state",
"/",
"adj_neighbor",
"/",
"adj_type",
"(",
"isis",
"-",
"adj",
"-",
"type",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py#L158-L181 | train | Sets the adj_type of the ISIS Adjacency sequence. |
StackStorm/pybind | pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py | adj_neighbor._set_adj_prot | def _set_adj_prot(self, v, load=False):
"""
Setter method for adj_prot, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_prot (isis-adj-prot-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_prot is considered as a private
method. Backen... | python | def _set_adj_prot(self, v, load=False):
"""
Setter method for adj_prot, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_prot (isis-adj-prot-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_prot is considered as a private
method. Backen... | [
"def",
"_set_adj_prot",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for adj_prot, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_prot (isis-adj-prot-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_prot is considered as a private
method. Backends looking to populate this variable should
do s... | [
"Setter",
"method",
"for",
"adj_prot",
"mapped",
"from",
"YANG",
"variable",
"/",
"adj_neighbor_entries_state",
"/",
"adj_neighbor",
"/",
"adj_prot",
"(",
"isis",
"-",
"adj",
"-",
"prot",
"-",
"type",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py#L459-L482 | train | Sets the adj_prot variable for the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py | adj_neighbor._set_adj_3way_state | def _set_adj_3way_state(self, v, load=False):
"""
Setter method for adj_3way_state, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_3way_state (isis-dcm-3way-adj-state)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_3way_state is considered as... | python | def _set_adj_3way_state(self, v, load=False):
"""
Setter method for adj_3way_state, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_3way_state (isis-dcm-3way-adj-state)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_3way_state is considered as... | [
"def",
"_set_adj_3way_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for adj_3way_state, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_3way_state (isis-dcm-3way-adj-state)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_3way_state is considered as a private
method. Backends looking to populate this v... | [
"Setter",
"method",
"for",
"adj_3way_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"adj_neighbor_entries_state",
"/",
"adj_neighbor",
"/",
"adj_3way_state",
"(",
"isis",
"-",
"dcm",
"-",
"3way",
"-",
"adj",
"-",
"state",
")",
"If",
"this",
"variable",
"is... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py#L533-L556 | train | Sets the state of the Adjacency 3 Way Hand Shaking State. |
StackStorm/pybind | pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py | adj_neighbor._set_adj_use | def _set_adj_use(self, v, load=False):
"""
Setter method for adj_use, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_use (isis-spf-level)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_use is considered as a private
method. Backends looki... | python | def _set_adj_use(self, v, load=False):
"""
Setter method for adj_use, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_use (isis-spf-level)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_use is considered as a private
method. Backends looki... | [
"def",
"_set_adj_use",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for adj_use, mapped from YANG variable /adj_neighbor_entries_state/adj_neighbor/adj_use (isis-spf-level)
If this variable is read-only (config: false) in the
source YANG file, then _set_adj_use is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"Setter",
"method",
"for",
"adj_use",
"mapped",
"from",
"YANG",
"variable",
"/",
"adj_neighbor_entries_state",
"/",
"adj_neighbor",
"/",
"adj_use",
"(",
"isis",
"-",
"spf",
"-",
"level",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/adj_neighbor_entries_state/adj_neighbor/__init__.py#L755-L778 | train | Sets the adj - use variable for the node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/interface_statistics_state/__init__.py | interface_statistics_state._set_interface_counters | def _set_interface_counters(self, v, load=False):
"""
Setter method for interface_counters, mapped from YANG variable /interface_statistics_state/interface_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_counters is considered as a private
... | python | def _set_interface_counters(self, v, load=False):
"""
Setter method for interface_counters, mapped from YANG variable /interface_statistics_state/interface_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_counters is considered as a private
... | [
"def",
"_set_interface_counters",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for interface_counters, mapped from YANG variable /interface_statistics_state/interface_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_counters is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"interface_counters",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_statistics_state",
"/",
"interface_counters",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface_statistics_state/__init__.py#L134-L157 | train | Sets the value of the interface_counters variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/vlan/__init__.py | vlan._set_dot1q | def _set_dot1q(self, v, load=False):
"""
Setter method for dot1q, mapped from YANG variable /vlan/dot1q (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dot1q is considered as a private
method. Backends looking to populate this variable should
do so vi... | python | def _set_dot1q(self, v, load=False):
"""
Setter method for dot1q, mapped from YANG variable /vlan/dot1q (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dot1q is considered as a private
method. Backends looking to populate this variable should
do so vi... | [
"def",
"_set_dot1q",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for dot1q, mapped from YANG variable /vlan/dot1q (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dot1q is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_dot1q() directly. | [
"Setter",
"method",
"for",
"dot1q",
"mapped",
"from",
"YANG",
"variable",
"/",
"vlan",
"/",
"dot1q",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"t... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/vlan/__init__.py#L127-L148 | train | Set the value of the DOT1Q parameter of the
. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/__init__.py | ip._set_ip_anycast_address | def _set_ip_anycast_address(self, v, load=False):
"""
Setter method for ip_anycast_address, mapped from YANG variable /routing_system/interface/ve/ip/ip_anycast_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_anycast_address is considered as a private
... | python | def _set_ip_anycast_address(self, v, load=False):
"""
Setter method for ip_anycast_address, mapped from YANG variable /routing_system/interface/ve/ip/ip_anycast_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_anycast_address is considered as a private
... | [
"def",
"_set_ip_anycast_address",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for ip_anycast_address, mapped from YANG variable /routing_system/interface/ve/ip/ip_anycast_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_anycast_address is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"ip_anycast_address",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"ip",
"/",
"ip_anycast_address",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"conf... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/__init__.py#L145-L166 | train | Sets the IP address of anycast addresses of the next order order. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/__init__.py | ip._set_ip_vrrp_extended | def _set_ip_vrrp_extended(self, v, load=False):
"""
Setter method for ip_vrrp_extended, mapped from YANG variable /routing_system/interface/ve/ip/ip_vrrp_extended (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_vrrp_extended is considered as a private
... | python | def _set_ip_vrrp_extended(self, v, load=False):
"""
Setter method for ip_vrrp_extended, mapped from YANG variable /routing_system/interface/ve/ip/ip_vrrp_extended (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_vrrp_extended is considered as a private
... | [
"def",
"_set_ip_vrrp_extended",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for ip_vrrp_extended, mapped from YANG variable /routing_system/interface/ve/ip/ip_vrrp_extended (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ip_vrrp_extended is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"ip_vrrp_extended",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"ip",
"/",
"ip_vrrp_extended",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"con... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/__init__.py#L180-L203 | train | Sets the value of ip_vrrp_extended in the virtual rippable list. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/__init__.py | ip._set_interface_vlan_ospf_conf | def _set_interface_vlan_ospf_conf(self, v, load=False):
"""
Setter method for interface_vlan_ospf_conf, mapped from YANG variable /routing_system/interface/ve/ip/interface_vlan_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_vlan_ospf_conf... | python | def _set_interface_vlan_ospf_conf(self, v, load=False):
"""
Setter method for interface_vlan_ospf_conf, mapped from YANG variable /routing_system/interface/ve/ip/interface_vlan_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_vlan_ospf_conf... | [
"def",
"_set_interface_vlan_ospf_conf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",... | Setter method for interface_vlan_ospf_conf, mapped from YANG variable /routing_system/interface/ve/ip/interface_vlan_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_vlan_ospf_conf is considered as a private
method. Backends looking to populate... | [
"Setter",
"method",
"for",
"interface_vlan_ospf_conf",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"ip",
"/",
"interface_vlan_ospf_conf",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ip/__init__.py#L413-L434 | train | Sets the value of interface_vlan_ospf_conf in the OSPF hierarchy. |
StackStorm/pybind | pybind/nos/v6_0_2f/overlay_gateway/ip/interface/__init__.py | interface._set_ve | def _set_ve(self, v, load=False):
"""
Setter method for ve, mapped from YANG variable /overlay_gateway/ip/interface/ve (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ve is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_ve(self, v, load=False):
"""
Setter method for ve, mapped from YANG variable /overlay_gateway/ip/interface/ve (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ve is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_ve",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"=... | Setter method for ve, mapped from YANG variable /overlay_gateway/ip/interface/ve (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_ve is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_ve() direct... | [
"Setter",
"method",
"for",
"ve",
"mapped",
"from",
"YANG",
"variable",
"/",
"overlay_gateway",
"/",
"ip",
"/",
"interface",
"/",
"ve",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/overlay_gateway/ip/interface/__init__.py#L94-L115 | train | Sets the vehicle variable for the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/cfm_state/__init__.py | cfm_state._set_cfm_detail | def _set_cfm_detail(self, v, load=False):
"""
Setter method for cfm_detail, mapped from YANG variable /cfm_state/cfm_detail (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_detail is considered as a private
method. Backends looking to populate this var... | python | def _set_cfm_detail(self, v, load=False):
"""
Setter method for cfm_detail, mapped from YANG variable /cfm_state/cfm_detail (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_detail is considered as a private
method. Backends looking to populate this var... | [
"def",
"_set_cfm_detail",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for cfm_detail, mapped from YANG variable /cfm_state/cfm_detail (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_detail is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cfm_de... | [
"Setter",
"method",
"for",
"cfm_detail",
"mapped",
"from",
"YANG",
"variable",
"/",
"cfm_state",
"/",
"cfm_detail",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cfm_state/__init__.py#L104-L127 | train | Set the CFM detail variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/cfm_state/__init__.py | cfm_state._set_cfm_y1731 | def _set_cfm_y1731(self, v, load=False):
"""
Setter method for cfm_y1731, mapped from YANG variable /cfm_state/cfm_y1731 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_y1731 is considered as a private
method. Backends looking to populate this variabl... | python | def _set_cfm_y1731(self, v, load=False):
"""
Setter method for cfm_y1731, mapped from YANG variable /cfm_state/cfm_y1731 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_y1731 is considered as a private
method. Backends looking to populate this variabl... | [
"def",
"_set_cfm_y1731",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for cfm_y1731, mapped from YANG variable /cfm_state/cfm_y1731 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_y1731 is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cfm_y1731... | [
"Setter",
"method",
"for",
"cfm_y1731",
"mapped",
"from",
"YANG",
"variable",
"/",
"cfm_state",
"/",
"cfm_y1731",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cfm_state/__init__.py#L141-L164 | train | Set the value of the CFM Y1731 variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/cfm_state/__init__.py | cfm_state._set_cfm_connectivity | def _set_cfm_connectivity(self, v, load=False):
"""
Setter method for cfm_connectivity, mapped from YANG variable /cfm_state/cfm_connectivity (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_connectivity is considered as a private
method. Backends look... | python | def _set_cfm_connectivity(self, v, load=False):
"""
Setter method for cfm_connectivity, mapped from YANG variable /cfm_state/cfm_connectivity (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_connectivity is considered as a private
method. Backends look... | [
"def",
"_set_cfm_connectivity",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for cfm_connectivity, mapped from YANG variable /cfm_state/cfm_connectivity (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cfm_connectivity is considered as a private
method. Backends looking to populate this variable should
do so via calling t... | [
"Setter",
"method",
"for",
"cfm_connectivity",
"mapped",
"from",
"YANG",
"variable",
"/",
"cfm_state",
"/",
"cfm_connectivity",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cfm_state/__init__.py#L178-L201 | train | Sets the CFM Connectivity of the current node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/cfm_state/__init__.py | cfm_state._set_slm | def _set_slm(self, v, load=False):
"""
Setter method for slm, mapped from YANG variable /cfm_state/slm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_slm is considered as a private
method. Backends looking to populate this variable should
do so via c... | python | def _set_slm(self, v, load=False):
"""
Setter method for slm, mapped from YANG variable /cfm_state/slm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_slm is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"def",
"_set_slm",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for slm, mapped from YANG variable /cfm_state/slm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_slm is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_slm() directly.
YANG D... | [
"Setter",
"method",
"for",
"slm",
"mapped",
"from",
"YANG",
"variable",
"/",
"cfm_state",
"/",
"slm",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cfm_state/__init__.py#L215-L238 | train | Set the SLM property of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/cfm_state/__init__.py | cfm_state._set_dmm | def _set_dmm(self, v, load=False):
"""
Setter method for dmm, mapped from YANG variable /cfm_state/dmm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dmm is considered as a private
method. Backends looking to populate this variable should
do so via c... | python | def _set_dmm(self, v, load=False):
"""
Setter method for dmm, mapped from YANG variable /cfm_state/dmm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dmm is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"def",
"_set_dmm",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for dmm, mapped from YANG variable /cfm_state/dmm (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_dmm is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_dmm() directly.
YANG D... | [
"Setter",
"method",
"for",
"dmm",
"mapped",
"from",
"YANG",
"variable",
"/",
"cfm_state",
"/",
"dmm",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cfm_state/__init__.py#L252-L275 | train | Set the state of the DMM. |
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/event_handler/activate/name/__init__.py | name._set_run_mode | def _set_run_mode(self, v, load=False):
"""
Setter method for run_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/run_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_run_mode is considered as a private
method. Backends looki... | python | def _set_run_mode(self, v, load=False):
"""
Setter method for run_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/run_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_run_mode is considered as a private
method. Backends looki... | [
"def",
"_set_run_mode",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for run_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/run_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_run_mode is considered as a private
method. Backends looking to populate this variable should
do so via ca... | [
"Setter",
"method",
"for",
"run_mode",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"event_handler",
"/",
"activate",
"/",
"name",
"/",
"run_mode",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/event_handler/activate/name/__init__.py#L240-L261 | train | Sets the run - mode of the
|
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/event_handler/activate/name/__init__.py | name._set_trigger_mode | def _set_trigger_mode(self, v, load=False):
"""
Setter method for trigger_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/trigger_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger_mode is considered as a private
method... | python | def _set_trigger_mode(self, v, load=False):
"""
Setter method for trigger_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/trigger_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger_mode is considered as a private
method... | [
"def",
"_set_trigger_mode",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for trigger_mode, mapped from YANG variable /rbridge_id/event_handler/activate/name/trigger_mode (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger_mode is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"trigger_mode",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"event_handler",
"/",
"activate",
"/",
"name",
"/",
"trigger_mode",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"c... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/event_handler/activate/name/__init__.py#L273-L294 | train | Sets the trigger mode of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/cfm_state/cfm_y1731/action_profile/__init__.py | action_profile._set_action_profile_event_actions | def _set_action_profile_event_actions(self, v, load=False):
"""
Setter method for action_profile_event_actions, mapped from YANG variable /cfm_state/cfm_y1731/action_profile/action_profile_event_actions (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_action_p... | python | def _set_action_profile_event_actions(self, v, load=False):
"""
Setter method for action_profile_event_actions, mapped from YANG variable /cfm_state/cfm_y1731/action_profile/action_profile_event_actions (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_action_p... | [
"def",
"_set_action_profile_event_actions",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
... | Setter method for action_profile_event_actions, mapped from YANG variable /cfm_state/cfm_y1731/action_profile/action_profile_event_actions (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_action_profile_event_actions is considered as a private
method. Backends loo... | [
"Setter",
"method",
"for",
"action_profile_event_actions",
"mapped",
"from",
"YANG",
"variable",
"/",
"cfm_state",
"/",
"cfm_y1731",
"/",
"action_profile",
"/",
"action_profile_event_actions",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/cfm_state/cfm_y1731/action_profile/__init__.py#L139-L162 | train | Sets the actions in the action - profile event - actions section of the action - profile |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/lsp/auto_bandwidth/__init__.py | auto_bandwidth._set_num_samples_collected | def _set_num_samples_collected(self, v, load=False):
"""
Setter method for num_samples_collected, mapped from YANG variable /mpls_state/lsp/auto_bandwidth/num_samples_collected (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_num_samples_collected is considered a... | python | def _set_num_samples_collected(self, v, load=False):
"""
Setter method for num_samples_collected, mapped from YANG variable /mpls_state/lsp/auto_bandwidth/num_samples_collected (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_num_samples_collected is considered a... | [
"def",
"_set_num_samples_collected",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for num_samples_collected, mapped from YANG variable /mpls_state/lsp/auto_bandwidth/num_samples_collected (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_num_samples_collected is considered as a private
method. Backends looking to populate this variabl... | [
"Setter",
"method",
"for",
"num_samples_collected",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"lsp",
"/",
"auto_bandwidth",
"/",
"num_samples_collected",
"(",
"uint32",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/lsp/auto_bandwidth/__init__.py#L752-L775 | train | Sets the number of samples collected for the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/interface/port_channel/system/__init__.py | system._set_packet_timestamp | def _set_packet_timestamp(self, v, load=False):
"""
Setter method for packet_timestamp, mapped from YANG variable /interface/port_channel/system/packet_timestamp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_packet_timestamp is considered as a private
m... | python | def _set_packet_timestamp(self, v, load=False):
"""
Setter method for packet_timestamp, mapped from YANG variable /interface/port_channel/system/packet_timestamp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_packet_timestamp is considered as a private
m... | [
"def",
"_set_packet_timestamp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for packet_timestamp, mapped from YANG variable /interface/port_channel/system/packet_timestamp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_packet_timestamp is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"packet_timestamp",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"system",
"/",
"packet_timestamp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface/port_channel/system/__init__.py#L96-L119 | train | Sets the packet timestamp of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/mac/access_list/extended/__init__.py | extended._set_hide_mac_acl_ext | def _set_hide_mac_acl_ext(self, v, load=False):
"""
Setter method for hide_mac_acl_ext, mapped from YANG variable /mac/access_list/extended/hide_mac_acl_ext (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_hide_mac_acl_ext is considered as a private
method... | python | def _set_hide_mac_acl_ext(self, v, load=False):
"""
Setter method for hide_mac_acl_ext, mapped from YANG variable /mac/access_list/extended/hide_mac_acl_ext (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_hide_mac_acl_ext is considered as a private
method... | [
"def",
"_set_hide_mac_acl_ext",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for hide_mac_acl_ext, mapped from YANG variable /mac/access_list/extended/hide_mac_acl_ext (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_hide_mac_acl_ext is considered as a private
method. Backends looking to populate this variable should
do s... | [
"Setter",
"method",
"for",
"hide_mac_acl_ext",
"mapped",
"from",
"YANG",
"variable",
"/",
"mac",
"/",
"access_list",
"/",
"extended",
"/",
"hide_mac_acl_ext",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fa... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/mac/access_list/extended/__init__.py#L131-L152 | train | Sets the hide_mac_acl_ext variable in the MAC access list extended section. |
StackStorm/pybind | pybind/nos/v7_2_0/logging/raslog/message/__init__.py | message._set_msgId | def _set_msgId(self, v, load=False):
"""
Setter method for msgId, mapped from YANG variable /logging/raslog/message/msgId (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_msgId is considered as a private
method. Backends looking to populate this variable should... | python | def _set_msgId(self, v, load=False):
"""
Setter method for msgId, mapped from YANG variable /logging/raslog/message/msgId (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_msgId is considered as a private
method. Backends looking to populate this variable should... | [
"def",
"_set_msgId",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for msgId, mapped from YANG variable /logging/raslog/message/msgId (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_msgId is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_msgId() direc... | [
"Setter",
"method",
"for",
"msgId",
"mapped",
"from",
"YANG",
"variable",
"/",
"logging",
"/",
"raslog",
"/",
"message",
"/",
"msgId",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/logging/raslog/message/__init__.py#L92-L113 | train | Set the message ID of the
. |
StackStorm/pybind | pybind/nos/v6_0_2f/protocol/spanning_tree/mstp/__init__.py | mstp._set_instance | def _set_instance(self, v, load=False):
"""
Setter method for instance, mapped from YANG variable /protocol/spanning_tree/mstp/instance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_instance is considered as a private
method. Backends looking to populate thi... | python | def _set_instance(self, v, load=False):
"""
Setter method for instance, mapped from YANG variable /protocol/spanning_tree/mstp/instance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_instance is considered as a private
method. Backends looking to populate thi... | [
"def",
"_set_instance",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for instance, mapped from YANG variable /protocol/spanning_tree/mstp/instance (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_instance is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"instance",
"mapped",
"from",
"YANG",
"variable",
"/",
"protocol",
"/",
"spanning_tree",
"/",
"mstp",
"/",
"instance",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/protocol/spanning_tree/mstp/__init__.py#L404-L425 | train | Set the instance of the
based on the id of the instance. |
StackStorm/pybind | pybind/nos/v6_0_2f/protocol/spanning_tree/mstp/__init__.py | mstp._set_region | def _set_region(self, v, load=False):
"""
Setter method for region, mapped from YANG variable /protocol/spanning_tree/mstp/region (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_region is considered as a private
method. Backends looking to populate this vari... | python | def _set_region(self, v, load=False):
"""
Setter method for region, mapped from YANG variable /protocol/spanning_tree/mstp/region (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_region is considered as a private
method. Backends looking to populate this vari... | [
"def",
"_set_region",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for region, mapped from YANG variable /protocol/spanning_tree/mstp/region (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_region is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_reg... | [
"Setter",
"method",
"for",
"region",
"mapped",
"from",
"YANG",
"variable",
"/",
"protocol",
"/",
"spanning_tree",
"/",
"mstp",
"/",
"region",
"(",
"string",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/protocol/spanning_tree/mstp/__init__.py#L437-L458 | train | Sets the region of the sequence. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py | ospf._set_neighbor | def _set_neighbor(self, v, load=False):
"""
Setter method for neighbor, mapped from YANG variable /rbridge_id/router/ospf/neighbor (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_neighbor is considered as a private
method. Backends looking to populate this var... | python | def _set_neighbor(self, v, load=False):
"""
Setter method for neighbor, mapped from YANG variable /rbridge_id/router/ospf/neighbor (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_neighbor is considered as a private
method. Backends looking to populate this var... | [
"def",
"_set_neighbor",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for neighbor, mapped from YANG variable /rbridge_id/router/ospf/neighbor (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_neighbor is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_neig... | [
"Setter",
"method",
"for",
"neighbor",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"neighbor",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py#L400-L421 | train | Set the neighbor of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py | ospf._set_area | def _set_area(self, v, load=False):
"""
Setter method for area, mapped from YANG variable /rbridge_id/router/ospf/area (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_area is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_area(self, v, load=False):
"""
Setter method for area, mapped from YANG variable /rbridge_id/router/ospf/area (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_area is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_area",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for area, mapped from YANG variable /rbridge_id/router/ospf/area (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_area is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_area() directly. | [
"Setter",
"method",
"for",
"area",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"area",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py#L499-L520 | train | Set the area of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py | ospf._set_auto_cost | def _set_auto_cost(self, v, load=False):
"""
Setter method for auto_cost, mapped from YANG variable /rbridge_id/router/ospf/auto_cost (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auto_cost is considered as a private
method. Backends looking to populate... | python | def _set_auto_cost(self, v, load=False):
"""
Setter method for auto_cost, mapped from YANG variable /rbridge_id/router/ospf/auto_cost (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auto_cost is considered as a private
method. Backends looking to populate... | [
"def",
"_set_auto_cost",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for auto_cost, mapped from YANG variable /rbridge_id/router/ospf/auto_cost (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_auto_cost is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._... | [
"Setter",
"method",
"for",
"auto_cost",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"auto_cost",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py#L532-L553 | train | Sets the auto - cost variable for the cluster. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py | ospf._set_global_bfd | def _set_global_bfd(self, v, load=False):
"""
Setter method for global_bfd, mapped from YANG variable /rbridge_id/router/ospf/global_bfd (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_bfd is considered as a private
method. Backends looking to popu... | python | def _set_global_bfd(self, v, load=False):
"""
Setter method for global_bfd, mapped from YANG variable /rbridge_id/router/ospf/global_bfd (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_bfd is considered as a private
method. Backends looking to popu... | [
"def",
"_set_global_bfd",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for global_bfd, mapped from YANG variable /rbridge_id/router/ospf/global_bfd (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_bfd is considered as a private
method. Backends looking to populate this variable should
do so via calling thisOb... | [
"Setter",
"method",
"for",
"global_bfd",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"global_bfd",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/__init__.py#L938-L961 | train | Sets the global bfd property of the given sequence of objects. |
StackStorm/pybind | pybind/nos/v7_2_0/overlay_gateway/site/__init__.py | site._set_mac_learning | def _set_mac_learning(self, v, load=False):
"""
Setter method for mac_learning, mapped from YANG variable /overlay_gateway/site/mac_learning (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_learning is considered as a private
method. Backends looking t... | python | def _set_mac_learning(self, v, load=False):
"""
Setter method for mac_learning, mapped from YANG variable /overlay_gateway/site/mac_learning (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_learning is considered as a private
method. Backends looking t... | [
"def",
"_set_mac_learning",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for mac_learning, mapped from YANG variable /overlay_gateway/site/mac_learning (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_learning is considered as a private
method. Backends looking to populate this variable should
do so via calling th... | [
"Setter",
"method",
"for",
"mac_learning",
"mapped",
"from",
"YANG",
"variable",
"/",
"overlay_gateway",
"/",
"site",
"/",
"mac_learning",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/overlay_gateway/site/__init__.py#L234-L261 | train | Sets the MAC learning mode for the specified sequence of MACs. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/maps/email/__init__.py | email._set_email_list | def _set_email_list(self, v, load=False):
"""
Setter method for email_list, mapped from YANG variable /rbridge_id/maps/email/email_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_email_list is considered as a private
method. Backends looking to populate t... | python | def _set_email_list(self, v, load=False):
"""
Setter method for email_list, mapped from YANG variable /rbridge_id/maps/email/email_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_email_list is considered as a private
method. Backends looking to populate t... | [
"def",
"_set_email_list",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for email_list, mapped from YANG variable /rbridge_id/maps/email/email_list (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_email_list is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"email_list",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"maps",
"/",
"email",
"/",
"email_list",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/maps/email/__init__.py#L92-L113 | train | Sets the email list of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/username/__init__.py | username._set_user_password | def _set_user_password(self, v, load=False):
"""
Setter method for user_password, mapped from YANG variable /username/user_password (user-passwd)
If this variable is read-only (config: false) in the
source YANG file, then _set_user_password is considered as a private
method. Backends looking to popu... | python | def _set_user_password(self, v, load=False):
"""
Setter method for user_password, mapped from YANG variable /username/user_password (user-passwd)
If this variable is read-only (config: false) in the
source YANG file, then _set_user_password is considered as a private
method. Backends looking to popu... | [
"def",
"_set_user_password",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"... | Setter method for user_password, mapped from YANG variable /username/user_password (user-passwd)
If this variable is read-only (config: false) in the
source YANG file, then _set_user_password is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._... | [
"Setter",
"method",
"for",
"user_password",
"mapped",
"from",
"YANG",
"variable",
"/",
"username",
"/",
"user_password",
"(",
"user",
"-",
"passwd",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/username/__init__.py#L135-L156 | train | Set the user password of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/username/__init__.py | username._set_encryption_level | def _set_encryption_level(self, v, load=False):
"""
Setter method for encryption_level, mapped from YANG variable /username/encryption_level (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_encryption_level is considered as a private
method. Backends loo... | python | def _set_encryption_level(self, v, load=False):
"""
Setter method for encryption_level, mapped from YANG variable /username/encryption_level (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_encryption_level is considered as a private
method. Backends loo... | [
"def",
"_set_encryption_level",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for encryption_level, mapped from YANG variable /username/encryption_level (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_encryption_level is considered as a private
method. Backends looking to populate this variable should
do so via calling ... | [
"Setter",
"method",
"for",
"encryption_level",
"mapped",
"from",
"YANG",
"variable",
"/",
"username",
"/",
"encryption_level",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sourc... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/username/__init__.py#L168-L189 | train | Sets the encryption level of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/username/__init__.py | username._set_desc | def _set_desc(self, v, load=False):
"""
Setter method for desc, mapped from YANG variable /username/desc (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_desc is considered as a private
method. Backends looking to populate this variable should
do so via c... | python | def _set_desc(self, v, load=False):
"""
Setter method for desc, mapped from YANG variable /username/desc (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_desc is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"def",
"_set_desc",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for desc, mapped from YANG variable /username/desc (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_desc is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_desc() directly. | [
"Setter",
"method",
"for",
"desc",
"mapped",
"from",
"YANG",
"variable",
"/",
"username",
"/",
"desc",
"(",
"string",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"th... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/username/__init__.py#L234-L255 | train | Set the description of the user. |
StackStorm/pybind | pybind/nos/v6_0_2f/username/__init__.py | username._set_expire | def _set_expire(self, v, load=False):
"""
Setter method for expire, mapped from YANG variable /username/expire (date)
If this variable is read-only (config: false) in the
source YANG file, then _set_expire is considered as a private
method. Backends looking to populate this variable should
do so... | python | def _set_expire(self, v, load=False):
"""
Setter method for expire, mapped from YANG variable /username/expire (date)
If this variable is read-only (config: false) in the
source YANG file, then _set_expire is considered as a private
method. Backends looking to populate this variable should
do so... | [
"def",
"_set_expire",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for expire, mapped from YANG variable /username/expire (date)
If this variable is read-only (config: false) in the
source YANG file, then _set_expire is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_expire() directly. | [
"Setter",
"method",
"for",
"expire",
"mapped",
"from",
"YANG",
"variable",
"/",
"username",
"/",
"expire",
"(",
"date",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/username/__init__.py#L300-L321 | train | Set expire for the
|
StackStorm/pybind | pybind/nos/v6_0_2f/event_handler/event_handler_list/__init__.py | event_handler_list._set_trigger | def _set_trigger(self, v, load=False):
"""
Setter method for trigger, mapped from YANG variable /event_handler/event_handler_list/trigger (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger is considered as a private
method. Backends looking to populate th... | python | def _set_trigger(self, v, load=False):
"""
Setter method for trigger, mapped from YANG variable /event_handler/event_handler_list/trigger (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger is considered as a private
method. Backends looking to populate th... | [
"def",
"_set_trigger",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for trigger, mapped from YANG variable /event_handler/event_handler_list/trigger (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_trigger is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._s... | [
"Setter",
"method",
"for",
"trigger",
"mapped",
"from",
"YANG",
"variable",
"/",
"event_handler",
"/",
"event_handler_list",
"/",
"trigger",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/event_handler/event_handler_list/__init__.py#L139-L162 | train | Set the trigger of the
based on the event_handler_list_trigger property. |
idlesign/steampak | steampak/libsteam/resources/stats.py | Achievement.global_unlock_percent | def global_unlock_percent(self):
"""Global achievement unlock percent.
:rtype: float
"""
percent = CRef.cfloat()
result = self._iface.get_ach_progress(self.name, percent)
if not result:
return 0.0
return float(percent) | python | def global_unlock_percent(self):
"""Global achievement unlock percent.
:rtype: float
"""
percent = CRef.cfloat()
result = self._iface.get_ach_progress(self.name, percent)
if not result:
return 0.0
return float(percent) | [
"def",
"global_unlock_percent",
"(",
"self",
")",
":",
"percent",
"=",
"CRef",
".",
"cfloat",
"(",
")",
"result",
"=",
"self",
".",
"_iface",
".",
"get_ach_progress",
"(",
"self",
".",
"name",
",",
"percent",
")",
"if",
"not",
"result",
":",
"return",
... | Global achievement unlock percent.
:rtype: float | [
"Global",
"achievement",
"unlock",
"percent",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/stats.py#L56-L67 | train | Global achievement unlock percent. |
idlesign/steampak | steampak/libsteam/resources/stats.py | Achievement.unlocked | def unlocked(self):
"""``True`` if achievement is unlocked.
:rtype: bool
"""
achieved = CRef.cbool()
result = self._iface.get_ach(self.name, achieved)
if not result:
return False
return bool(achieved) | python | def unlocked(self):
"""``True`` if achievement is unlocked.
:rtype: bool
"""
achieved = CRef.cbool()
result = self._iface.get_ach(self.name, achieved)
if not result:
return False
return bool(achieved) | [
"def",
"unlocked",
"(",
"self",
")",
":",
"achieved",
"=",
"CRef",
".",
"cbool",
"(",
")",
"result",
"=",
"self",
".",
"_iface",
".",
"get_ach",
"(",
"self",
".",
"name",
",",
"achieved",
")",
"if",
"not",
"result",
":",
"return",
"False",
"return",
... | ``True`` if achievement is unlocked.
:rtype: bool | [
"True",
"if",
"achievement",
"is",
"unlocked",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/stats.py#L78-L89 | train | Returns True if the user has unlocked the resource. |
idlesign/steampak | steampak/libsteam/resources/stats.py | Achievement.unlock | def unlock(self, store=True):
"""Unlocks the achievement.
:param bool store: Whether to send data to server immediately (as to get overlay notification).
:rtype: bool
"""
result = self._iface.ach_unlock(self.name)
result and store and self._store()
return resul... | python | def unlock(self, store=True):
"""Unlocks the achievement.
:param bool store: Whether to send data to server immediately (as to get overlay notification).
:rtype: bool
"""
result = self._iface.ach_unlock(self.name)
result and store and self._store()
return resul... | [
"def",
"unlock",
"(",
"self",
",",
"store",
"=",
"True",
")",
":",
"result",
"=",
"self",
".",
"_iface",
".",
"ach_unlock",
"(",
"self",
".",
"name",
")",
"result",
"and",
"store",
"and",
"self",
".",
"_store",
"(",
")",
"return",
"result"
] | Unlocks the achievement.
:param bool store: Whether to send data to server immediately (as to get overlay notification).
:rtype: bool | [
"Unlocks",
"the",
"achievement",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/stats.py#L91-L101 | train | Unlocks the achievement. |
idlesign/steampak | steampak/libsteam/resources/stats.py | Achievement.clear | def clear(self, store=True):
"""Clears (locks) the achievement.
:rtype: bool
"""
result = self._iface.ach_lock(self.name)
result and store and self._store()
return result | python | def clear(self, store=True):
"""Clears (locks) the achievement.
:rtype: bool
"""
result = self._iface.ach_lock(self.name)
result and store and self._store()
return result | [
"def",
"clear",
"(",
"self",
",",
"store",
"=",
"True",
")",
":",
"result",
"=",
"self",
".",
"_iface",
".",
"ach_lock",
"(",
"self",
".",
"name",
")",
"result",
"and",
"store",
"and",
"self",
".",
"_store",
"(",
")",
"return",
"result"
] | Clears (locks) the achievement.
:rtype: bool | [
"Clears",
"(",
"locks",
")",
"the",
"achievement",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/stats.py#L103-L110 | train | Clears the achievement. |
idlesign/steampak | steampak/libsteam/resources/stats.py | Achievement.get_unlock_info | def get_unlock_info(self):
"""Returns tuple of unlock data: (is_unlocked, unlocked_datetime).
.. note::
`unlocked_datetime` will be ``None`` if achievement if unlocked before 2009-12-01.
:rtype: tuple[bool, datetime]
"""
unlocked = CRef.cbool()
unlocked_at ... | python | def get_unlock_info(self):
"""Returns tuple of unlock data: (is_unlocked, unlocked_datetime).
.. note::
`unlocked_datetime` will be ``None`` if achievement if unlocked before 2009-12-01.
:rtype: tuple[bool, datetime]
"""
unlocked = CRef.cbool()
unlocked_at ... | [
"def",
"get_unlock_info",
"(",
"self",
")",
":",
"unlocked",
"=",
"CRef",
".",
"cbool",
"(",
")",
"unlocked_at",
"=",
"CRef",
".",
"cint",
"(",
")",
"result",
"=",
"self",
".",
"_iface",
".",
"get_ach_unlock_info",
"(",
"self",
".",
"name",
",",
"unloc... | Returns tuple of unlock data: (is_unlocked, unlocked_datetime).
.. note::
`unlocked_datetime` will be ``None`` if achievement if unlocked before 2009-12-01.
:rtype: tuple[bool, datetime] | [
"Returns",
"tuple",
"of",
"unlock",
"data",
":",
"(",
"is_unlocked",
"unlocked_datetime",
")",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/stats.py#L123-L154 | train | Returns tuple of unlock data for the current user. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py | nd._set_suppress_ra | def _set_suppress_ra(self, v, load=False):
"""
Setter method for suppress_ra, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/suppress_ra (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_suppress_ra is considered as a p... | python | def _set_suppress_ra(self, v, load=False):
"""
Setter method for suppress_ra, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/suppress_ra (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_suppress_ra is considered as a p... | [
"def",
"_set_suppress_ra",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for suppress_ra, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/suppress_ra (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_suppress_ra is considered as a private
method. Backends looking to populate this va... | [
"Setter",
"method",
"for",
"suppress_ra",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"ipv6",
"/",
"ipv6_nd_ra",
"/",
"ipv6_intf_cmds",
"/",
"nd",
"/",
"suppress_ra",
"(",
"container",
")",
"If",
"this",
"va... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py#L451-L472 | train | Sets the suppress - ra flag of the node. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py | nd._set_ra_dns_server | def _set_ra_dns_server(self, v, load=False):
"""
Setter method for ra_dns_server, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_dns_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_dns_server is considered as ... | python | def _set_ra_dns_server(self, v, load=False):
"""
Setter method for ra_dns_server, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_dns_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_dns_server is considered as ... | [
"def",
"_set_ra_dns_server",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"... | Setter method for ra_dns_server, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_dns_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_dns_server is considered as a private
method. Backends looking to populate this v... | [
"Setter",
"method",
"for",
"ra_dns_server",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"ipv6",
"/",
"ipv6_nd_ra",
"/",
"ipv6_intf_cmds",
"/",
"nd",
"/",
"ra_dns_server",
"(",
"list",
")",
"If",
"this",
"var... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py#L583-L604 | train | Set the value of ra_dns_server mapped from YANG variable dns_server_prefix |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py | nd._set_ra_domain_name | def _set_ra_domain_name(self, v, load=False):
"""
Setter method for ra_domain_name, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_domain_name (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_domain_name is considered... | python | def _set_ra_domain_name(self, v, load=False):
"""
Setter method for ra_domain_name, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_domain_name (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_domain_name is considered... | [
"def",
"_set_ra_domain_name",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for ra_domain_name, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/ra_domain_name (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ra_domain_name is considered as a private
method. Backends looking to populate thi... | [
"Setter",
"method",
"for",
"ra_domain_name",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"ipv6",
"/",
"ipv6_nd_ra",
"/",
"ipv6_intf_cmds",
"/",
"nd",
"/",
"ra_domain_name",
"(",
"list",
")",
"If",
"this",
"v... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py#L616-L637 | train | Set the ra_domain_name of the virtual network. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py | nd._set_prefix | def _set_prefix(self, v, load=False):
"""
Setter method for prefix, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_prefix is considered as a private
method. Backen... | python | def _set_prefix(self, v, load=False):
"""
Setter method for prefix, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_prefix is considered as a private
method. Backen... | [
"def",
"_set_prefix",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for prefix, mapped from YANG variable /routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_prefix is considered as a private
method. Backends looking to populate this variable should
do... | [
"Setter",
"method",
"for",
"prefix",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"ipv6",
"/",
"ipv6_nd_ra",
"/",
"ipv6_intf_cmds",
"/",
"nd",
"/",
"prefix",
"(",
"list",
")",
"If",
"this",
"variable",
"is"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/__init__.py#L781-L802 | train | Set the prefix of the node. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_state/ldp/ldp_session/__init__.py | ldp_session._set_session_ldp_stats | def _set_session_ldp_stats(self, v, load=False):
"""
Setter method for session_ldp_stats, mapped from YANG variable /mpls_state/ldp/ldp_session/session_ldp_stats (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_session_ldp_stats is considered as a private
... | python | def _set_session_ldp_stats(self, v, load=False):
"""
Setter method for session_ldp_stats, mapped from YANG variable /mpls_state/ldp/ldp_session/session_ldp_stats (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_session_ldp_stats is considered as a private
... | [
"def",
"_set_session_ldp_stats",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for session_ldp_stats, mapped from YANG variable /mpls_state/ldp/ldp_session/session_ldp_stats (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_session_ldp_stats is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"session_ldp_stats",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"ldp",
"/",
"ldp_session",
"/",
"session_ldp_stats",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_state/ldp/ldp_session/__init__.py#L2103-L2126 | train | Sets the stats for the session LDP |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/port_channel/switchport/__init__.py | switchport._set_trunk_private_vlan_classification | def _set_trunk_private_vlan_classification(self, v, load=False):
"""
Setter method for trunk_private_vlan_classification, mapped from YANG variable /interface/port_channel/switchport/trunk_private_vlan_classification (container)
If this variable is read-only (config: false) in the
source YANG file, then... | python | def _set_trunk_private_vlan_classification(self, v, load=False):
"""
Setter method for trunk_private_vlan_classification, mapped from YANG variable /interface/port_channel/switchport/trunk_private_vlan_classification (container)
If this variable is read-only (config: false) in the
source YANG file, then... | [
"def",
"_set_trunk_private_vlan_classification",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(... | Setter method for trunk_private_vlan_classification, mapped from YANG variable /interface/port_channel/switchport/trunk_private_vlan_classification (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_trunk_private_vlan_classification is considered as a private
method... | [
"Setter",
"method",
"for",
"trunk_private_vlan_classification",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"switchport",
"/",
"trunk_private_vlan_classification",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/switchport/__init__.py#L254-L275 | train | Sets the trunk_private_vlan_classification variable in the port_channel. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/on_startup/__init__.py | on_startup._set_external_lsa_onstartup | def _set_external_lsa_onstartup(self, v, load=False):
"""
Setter method for external_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/external_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_exter... | python | def _set_external_lsa_onstartup(self, v, load=False):
"""
Setter method for external_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/external_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_exter... | [
"def",
"_set_external_lsa_onstartup",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for external_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/external_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_external_lsa_onstartup is considered as a private
method. Backends ... | [
"Setter",
"method",
"for",
"external_lsa_onstartup",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"max_metric",
"/",
"router_lsa",
"/",
"on_startup",
"/",
"external_lsa_onstartup",
"(",
"container",
")",
"If",
"this",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/on_startup/__init__.py#L198-L219 | train | Set the value of external_lsa_onstartup in the external LSA table. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/on_startup/__init__.py | on_startup._set_summary_lsa_onstartup | def _set_summary_lsa_onstartup(self, v, load=False):
"""
Setter method for summary_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/summary_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_summary_... | python | def _set_summary_lsa_onstartup(self, v, load=False):
"""
Setter method for summary_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/summary_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_summary_... | [
"def",
"_set_summary_lsa_onstartup",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for summary_lsa_onstartup, mapped from YANG variable /rbridge_id/router/ospf/max_metric/router_lsa/on_startup/summary_lsa_onstartup (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_summary_lsa_onstartup is considered as a private
method. Backends loo... | [
"Setter",
"method",
"for",
"summary_lsa_onstartup",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"max_metric",
"/",
"router_lsa",
"/",
"on_startup",
"/",
"summary_lsa_onstartup",
"(",
"container",
")",
"If",
"this",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/max_metric/router_lsa/on_startup/__init__.py#L231-L252 | train | Sets the value of summary - lsa - onstartup in the summary - lsa - onstartup section. |
StackStorm/pybind | pybind/slxos/v17r_2_00/bridge_domain/ip/__init__.py | ip._set_bd_pim | def _set_bd_pim(self, v, load=False):
"""
Setter method for bd_pim, mapped from YANG variable /bridge_domain/ip/bd_pim (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_pim is considered as a private
method. Backends looking to populate this variable sho... | python | def _set_bd_pim(self, v, load=False):
"""
Setter method for bd_pim, mapped from YANG variable /bridge_domain/ip/bd_pim (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_pim is considered as a private
method. Backends looking to populate this variable sho... | [
"def",
"_set_bd_pim",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for bd_pim, mapped from YANG variable /bridge_domain/ip/bd_pim (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_pim is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_bd_pim() di... | [
"Setter",
"method",
"for",
"bd_pim",
"mapped",
"from",
"YANG",
"variable",
"/",
"bridge_domain",
"/",
"ip",
"/",
"bd_pim",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/bridge_domain/ip/__init__.py#L96-L117 | train | Set the value of the BD_PIM variable. |
StackStorm/pybind | pybind/slxos/v17r_2_00/bridge_domain/ip/__init__.py | ip._set_bd_ip_igmp | def _set_bd_ip_igmp(self, v, load=False):
"""
Setter method for bd_ip_igmp, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_ip_igmp is considered as a private
method. Backends looking to populate t... | python | def _set_bd_ip_igmp(self, v, load=False):
"""
Setter method for bd_ip_igmp, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_ip_igmp is considered as a private
method. Backends looking to populate t... | [
"def",
"_set_bd_ip_igmp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for bd_ip_igmp, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bd_ip_igmp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"bd_ip_igmp",
"mapped",
"from",
"YANG",
"variable",
"/",
"bridge_domain",
"/",
"ip",
"/",
"bd_ip_igmp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/bridge_domain/ip/__init__.py#L129-L150 | train | Set the value of IGMP in the BD tree. |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_ras_ext_rpc/__init__.py | brocade_ras_ext._set_show_raslog | def _set_show_raslog(self, v, load=False):
"""
Setter method for show_raslog, mapped from YANG variable /brocade_ras_ext_rpc/show_raslog (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_raslog is considered as a private
method. Backends looking to populate ... | python | def _set_show_raslog(self, v, load=False):
"""
Setter method for show_raslog, mapped from YANG variable /brocade_ras_ext_rpc/show_raslog (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_raslog is considered as a private
method. Backends looking to populate ... | [
"def",
"_set_show_raslog",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for show_raslog, mapped from YANG variable /brocade_ras_ext_rpc/show_raslog (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_raslog is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"show_raslog",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_ras_ext_rpc",
"/",
"show_raslog",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_ras_ext_rpc/__init__.py#L102-L125 | train | Sets the show_raslog property of the
. |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_ras_ext_rpc/__init__.py | brocade_ras_ext._set_show_support_save_status | def _set_show_support_save_status(self, v, load=False):
"""
Setter method for show_support_save_status, mapped from YANG variable /brocade_ras_ext_rpc/show_support_save_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_support_save_status is considered as... | python | def _set_show_support_save_status(self, v, load=False):
"""
Setter method for show_support_save_status, mapped from YANG variable /brocade_ras_ext_rpc/show_support_save_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_support_save_status is considered as... | [
"def",
"_set_show_support_save_status",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",... | Setter method for show_support_save_status, mapped from YANG variable /brocade_ras_ext_rpc/show_support_save_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_support_save_status is considered as a private
method. Backends looking to populate this variable sh... | [
"Setter",
"method",
"for",
"show_support_save_status",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_ras_ext_rpc",
"/",
"show_support_save_status",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_ras_ext_rpc/__init__.py#L139-L162 | train | Sets the show_support_save_status of the recent support save request. |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_ras_ext_rpc/__init__.py | brocade_ras_ext._set_show_system_info | def _set_show_system_info(self, v, load=False):
"""
Setter method for show_system_info, mapped from YANG variable /brocade_ras_ext_rpc/show_system_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_system_info is considered as a private
method. Backends ... | python | def _set_show_system_info(self, v, load=False):
"""
Setter method for show_system_info, mapped from YANG variable /brocade_ras_ext_rpc/show_system_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_system_info is considered as a private
method. Backends ... | [
"def",
"_set_show_system_info",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for show_system_info, mapped from YANG variable /brocade_ras_ext_rpc/show_system_info (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_system_info is considered as a private
method. Backends looking to populate this variable should
do so via calli... | [
"Setter",
"method",
"for",
"show_system_info",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_ras_ext_rpc",
"/",
"show_system_info",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"so... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_ras_ext_rpc/__init__.py#L176-L199 | train | Set the show_system_info field of the
. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/firmware/__init__.py | firmware._set_download | def _set_download(self, v, load=False):
"""
Setter method for download, mapped from YANG variable /firmware/download (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_download is considered as a private
method. Backends looking to populate this variable sho... | python | def _set_download(self, v, load=False):
"""
Setter method for download, mapped from YANG variable /firmware/download (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_download is considered as a private
method. Backends looking to populate this variable sho... | [
"def",
"_set_download",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for download, mapped from YANG variable /firmware/download (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_download is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_download() di... | [
"Setter",
"method",
"for",
"download",
"mapped",
"from",
"YANG",
"variable",
"/",
"firmware",
"/",
"download",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"f... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/firmware/__init__.py#L94-L115 | train | Sets the download property of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/firmware/__init__.py | firmware._set_peripheral_update_option | def _set_peripheral_update_option(self, v, load=False):
"""
Setter method for peripheral_update_option, mapped from YANG variable /firmware/peripheral_update_option (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_peripheral_update_option is considered as a pr... | python | def _set_peripheral_update_option(self, v, load=False):
"""
Setter method for peripheral_update_option, mapped from YANG variable /firmware/peripheral_update_option (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_peripheral_update_option is considered as a pr... | [
"def",
"_set_peripheral_update_option",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",... | Setter method for peripheral_update_option, mapped from YANG variable /firmware/peripheral_update_option (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_peripheral_update_option is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"peripheral_update_option",
"mapped",
"from",
"YANG",
"variable",
"/",
"firmware",
"/",
"peripheral_update_option",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/firmware/__init__.py#L127-L148 | train | Set the value of the peripheral update option. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __to_localdatetime | def __to_localdatetime(val):
"""Convert val into a local datetime for tz Europe/Amsterdam."""
try:
dt = datetime.strptime(val, __DATE_FORMAT)
dt = pytz.timezone(__TIMEZONE).localize(dt)
return dt
except (ValueError, TypeError):
return None | python | def __to_localdatetime(val):
"""Convert val into a local datetime for tz Europe/Amsterdam."""
try:
dt = datetime.strptime(val, __DATE_FORMAT)
dt = pytz.timezone(__TIMEZONE).localize(dt)
return dt
except (ValueError, TypeError):
return None | [
"def",
"__to_localdatetime",
"(",
"val",
")",
":",
"try",
":",
"dt",
"=",
"datetime",
".",
"strptime",
"(",
"val",
",",
"__DATE_FORMAT",
")",
"dt",
"=",
"pytz",
".",
"timezone",
"(",
"__TIMEZONE",
")",
".",
"localize",
"(",
"dt",
")",
"return",
"dt",
... | Convert val into a local datetime for tz Europe/Amsterdam. | [
"Convert",
"val",
"into",
"a",
"local",
"datetime",
"for",
"tz",
"Europe",
"/",
"Amsterdam",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L107-L114 | train | Convert val into a local datetime for tz Europe / Amsterdam. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | parse_xml_data | def parse_xml_data(content, raincontent, latitude=52.091579,
longitude=5.119734, timeframe=60):
"""Parse the raw data and return as data dictionary."""
result = {SUCCESS: False, MESSAGE: None, DATA: None}
if timeframe < 5 or timeframe > 120:
raise ValueError("Timeframe must be >=... | python | def parse_xml_data(content, raincontent, latitude=52.091579,
longitude=5.119734, timeframe=60):
"""Parse the raw data and return as data dictionary."""
result = {SUCCESS: False, MESSAGE: None, DATA: None}
if timeframe < 5 or timeframe > 120:
raise ValueError("Timeframe must be >=... | [
"def",
"parse_xml_data",
"(",
"content",
",",
"raincontent",
",",
"latitude",
"=",
"52.091579",
",",
"longitude",
"=",
"5.119734",
",",
"timeframe",
"=",
"60",
")",
":",
"result",
"=",
"{",
"SUCCESS",
":",
"False",
",",
"MESSAGE",
":",
"None",
",",
"DATA... | Parse the raw data and return as data dictionary. | [
"Parse",
"the",
"raw",
"data",
"and",
"return",
"as",
"data",
"dictionary",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L186-L202 | train | Parse the raw data and return as data dictionary. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __get_ws_data | def __get_ws_data():
"""Get buienradar xml data and return results."""
url = 'https://xml.buienradar.nl/'
result = __get_url(url)
if result[SUCCESS]:
return result
# try secondary url:
url = 'https://api.buienradar.nl/'
result = __get_url(url)
return result | python | def __get_ws_data():
"""Get buienradar xml data and return results."""
url = 'https://xml.buienradar.nl/'
result = __get_url(url)
if result[SUCCESS]:
return result
# try secondary url:
url = 'https://api.buienradar.nl/'
result = __get_url(url)
return result | [
"def",
"__get_ws_data",
"(",
")",
":",
"url",
"=",
"'https://xml.buienradar.nl/'",
"result",
"=",
"__get_url",
"(",
"url",
")",
"if",
"result",
"[",
"SUCCESS",
"]",
":",
"return",
"result",
"# try secondary url:",
"url",
"=",
"'https://api.buienradar.nl/'",
"resul... | Get buienradar xml data and return results. | [
"Get",
"buienradar",
"xml",
"data",
"and",
"return",
"results",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L226-L238 | train | Get buienradar xml data and return results. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __parse_ws_data | def __parse_ws_data(content, latitude=52.091579, longitude=5.119734):
"""Parse the buienradar xml and rain data."""
log.info("Parse ws data: latitude: %s, longitude: %s", latitude, longitude)
result = {SUCCESS: False, MESSAGE: None, DATA: None}
# convert the xml data into a dictionary:
try:
... | python | def __parse_ws_data(content, latitude=52.091579, longitude=5.119734):
"""Parse the buienradar xml and rain data."""
log.info("Parse ws data: latitude: %s, longitude: %s", latitude, longitude)
result = {SUCCESS: False, MESSAGE: None, DATA: None}
# convert the xml data into a dictionary:
try:
... | [
"def",
"__parse_ws_data",
"(",
"content",
",",
"latitude",
"=",
"52.091579",
",",
"longitude",
"=",
"5.119734",
")",
":",
"log",
".",
"info",
"(",
"\"Parse ws data: latitude: %s, longitude: %s\"",
",",
"latitude",
",",
"longitude",
")",
"result",
"=",
"{",
"SUCC... | Parse the buienradar xml and rain data. | [
"Parse",
"the",
"buienradar",
"xml",
"and",
"rain",
"data",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L253-L296 | train | Parse the buienradar xml and rain data. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __is_valid | def __is_valid(loc_data):
"""Determine if this can be valid data (not all 0's)."""
for key, [value, func] in SENSOR_TYPES.items():
if (key != CONDITION and key != STATIONNAME and key != MEASURED):
if (func is not None):
sens_data = loc_data.get(value)
if func(... | python | def __is_valid(loc_data):
"""Determine if this can be valid data (not all 0's)."""
for key, [value, func] in SENSOR_TYPES.items():
if (key != CONDITION and key != STATIONNAME and key != MEASURED):
if (func is not None):
sens_data = loc_data.get(value)
if func(... | [
"def",
"__is_valid",
"(",
"loc_data",
")",
":",
"for",
"key",
",",
"[",
"value",
",",
"func",
"]",
"in",
"SENSOR_TYPES",
".",
"items",
"(",
")",
":",
"if",
"(",
"key",
"!=",
"CONDITION",
"and",
"key",
"!=",
"STATIONNAME",
"and",
"key",
"!=",
"MEASURE... | Determine if this can be valid data (not all 0's). | [
"Determine",
"if",
"this",
"can",
"be",
"valid",
"data",
"(",
"not",
"all",
"0",
"s",
")",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L347-L354 | train | Determine if this can be valid data. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __parse_loc_data | def __parse_loc_data(loc_data, result):
"""Parse the xml data from selected weatherstation."""
result[DATA] = {ATTRIBUTION: ATTRIBUTION_INFO,
FORECAST: [],
PRECIPITATION_FORECAST: None}
for key, [value, func] in SENSOR_TYPES.items():
result[DATA][key] = None
... | python | def __parse_loc_data(loc_data, result):
"""Parse the xml data from selected weatherstation."""
result[DATA] = {ATTRIBUTION: ATTRIBUTION_INFO,
FORECAST: [],
PRECIPITATION_FORECAST: None}
for key, [value, func] in SENSOR_TYPES.items():
result[DATA][key] = None
... | [
"def",
"__parse_loc_data",
"(",
"loc_data",
",",
"result",
")",
":",
"result",
"[",
"DATA",
"]",
"=",
"{",
"ATTRIBUTION",
":",
"ATTRIBUTION_INFO",
",",
"FORECAST",
":",
"[",
"]",
",",
"PRECIPITATION_FORECAST",
":",
"None",
"}",
"for",
"key",
",",
"[",
"v... | Parse the xml data from selected weatherstation. | [
"Parse",
"the",
"xml",
"data",
"from",
"selected",
"weatherstation",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L357-L392 | train | Parse the xml data from selected weatherstation. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __parse_fc_data | def __parse_fc_data(fc_data):
"""Parse the forecast data from the xml section."""
from buienradar.buienradar import condition_from_code
fc = []
for daycnt in range(1, 6):
daysection = __BRDAYFC % daycnt
if daysection in fc_data:
tmpsect = fc_data[daysection]
fcdat... | python | def __parse_fc_data(fc_data):
"""Parse the forecast data from the xml section."""
from buienradar.buienradar import condition_from_code
fc = []
for daycnt in range(1, 6):
daysection = __BRDAYFC % daycnt
if daysection in fc_data:
tmpsect = fc_data[daysection]
fcdat... | [
"def",
"__parse_fc_data",
"(",
"fc_data",
")",
":",
"from",
"buienradar",
".",
"buienradar",
"import",
"condition_from_code",
"fc",
"=",
"[",
"]",
"for",
"daycnt",
"in",
"range",
"(",
"1",
",",
"6",
")",
":",
"daysection",
"=",
"__BRDAYFC",
"%",
"daycnt",
... | Parse the forecast data from the xml section. | [
"Parse",
"the",
"forecast",
"data",
"from",
"the",
"xml",
"section",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L395-L426 | train | Parse the forecast data from the xml section. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __get_ws_distance | def __get_ws_distance(wstation, latitude, longitude):
"""Get the distance to the weatherstation from wstation section of xml.
wstation: weerstation section of buienradar xml (dict)
latitude: our latitude
longitude: our longitude
"""
if wstation:
try:
wslat = float(wstation[_... | python | def __get_ws_distance(wstation, latitude, longitude):
"""Get the distance to the weatherstation from wstation section of xml.
wstation: weerstation section of buienradar xml (dict)
latitude: our latitude
longitude: our longitude
"""
if wstation:
try:
wslat = float(wstation[_... | [
"def",
"__get_ws_distance",
"(",
"wstation",
",",
"latitude",
",",
"longitude",
")",
":",
"if",
"wstation",
":",
"try",
":",
"wslat",
"=",
"float",
"(",
"wstation",
"[",
"__BRLAT",
"]",
")",
"wslon",
"=",
"float",
"(",
"wstation",
"[",
"__BRLON",
"]",
... | Get the distance to the weatherstation from wstation section of xml.
wstation: weerstation section of buienradar xml (dict)
latitude: our latitude
longitude: our longitude | [
"Get",
"the",
"distance",
"to",
"the",
"weatherstation",
"from",
"wstation",
"section",
"of",
"xml",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L445-L466 | train | Get the distance to the weatherstation from xml. |
mjj4791/python-buienradar | buienradar/buienradar_xml.py | __select_nearest_ws | def __select_nearest_ws(xmldata, latitude, longitude):
"""Select the nearest weatherstation."""
log.debug("__select_nearest_ws: latitude: %s, longitude: %s",
latitude, longitude)
dist = 0
dist2 = 0
loc_data = None
try:
ws_xml = xmldata[__BRWEERGEGEVENS][__BRACTUEELWEER]
... | python | def __select_nearest_ws(xmldata, latitude, longitude):
"""Select the nearest weatherstation."""
log.debug("__select_nearest_ws: latitude: %s, longitude: %s",
latitude, longitude)
dist = 0
dist2 = 0
loc_data = None
try:
ws_xml = xmldata[__BRWEERGEGEVENS][__BRACTUEELWEER]
... | [
"def",
"__select_nearest_ws",
"(",
"xmldata",
",",
"latitude",
",",
"longitude",
")",
":",
"log",
".",
"debug",
"(",
"\"__select_nearest_ws: latitude: %s, longitude: %s\"",
",",
"latitude",
",",
"longitude",
")",
"dist",
"=",
"0",
"dist2",
"=",
"0",
"loc_data",
... | Select the nearest weatherstation. | [
"Select",
"the",
"nearest",
"weatherstation",
"."
] | a70436f54e007ce921d5210cb296cf3e4adf9d09 | https://github.com/mjj4791/python-buienradar/blob/a70436f54e007ce921d5210cb296cf3e4adf9d09/buienradar/buienradar_xml.py#L469-L507 | train | Select the nearest weatherstation in the xmldata. |
StackStorm/pybind | pybind/slxos/v17s_1_02/snmp_server/__init__.py | snmp_server._set_user | def _set_user(self, v, load=False):
"""
Setter method for user, mapped from YANG variable /snmp_server/user (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_user is considered as a private
method. Backends looking to populate this variable should
do so via ... | python | def _set_user(self, v, load=False):
"""
Setter method for user, mapped from YANG variable /snmp_server/user (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_user is considered as a private
method. Backends looking to populate this variable should
do so via ... | [
"def",
"_set_user",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for user, mapped from YANG variable /snmp_server/user (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_user is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_user() directly. | [
"Setter",
"method",
"for",
"user",
"mapped",
"from",
"YANG",
"variable",
"/",
"snmp_server",
"/",
"user",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"t... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/snmp_server/__init__.py#L186-L207 | train | Set the user field of the
based on the list of usernames. |
StackStorm/pybind | pybind/slxos/v17s_1_02/snmp_server/__init__.py | snmp_server._set_v3host | def _set_v3host(self, v, load=False):
"""
Setter method for v3host, mapped from YANG variable /snmp_server/v3host (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_v3host is considered as a private
method. Backends looking to populate this variable should
do... | python | def _set_v3host(self, v, load=False):
"""
Setter method for v3host, mapped from YANG variable /snmp_server/v3host (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_v3host is considered as a private
method. Backends looking to populate this variable should
do... | [
"def",
"_set_v3host",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for v3host, mapped from YANG variable /snmp_server/v3host (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_v3host is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_v3host() directly. | [
"Setter",
"method",
"for",
"v3host",
"mapped",
"from",
"YANG",
"variable",
"/",
"snmp_server",
"/",
"v3host",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/snmp_server/__init__.py#L219-L240 | train | Set the value of v3host mapped from YANG variable |
StackStorm/pybind | pybind/slxos/v17s_1_02/snmp_server/__init__.py | snmp_server._set_group | def _set_group(self, v, load=False):
"""
Setter method for group, mapped from YANG variable /snmp_server/group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_group is considered as a private
method. Backends looking to populate this variable should
do so ... | python | def _set_group(self, v, load=False):
"""
Setter method for group, mapped from YANG variable /snmp_server/group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_group is considered as a private
method. Backends looking to populate this variable should
do so ... | [
"def",
"_set_group",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for group, mapped from YANG variable /snmp_server/group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_group is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_group() directly. | [
"Setter",
"method",
"for",
"group",
"mapped",
"from",
"YANG",
"variable",
"/",
"snmp_server",
"/",
"group",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/snmp_server/__init__.py#L417-L438 | train | Sets the group of the
based on the group_version field. |
StackStorm/pybind | pybind/slxos/v17s_1_02/snmp_server/__init__.py | snmp_server._set_mib | def _set_mib(self, v, load=False):
"""
Setter method for mib, mapped from YANG variable /snmp_server/mib (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mib is considered as a private
method. Backends looking to populate this variable should
do so via... | python | def _set_mib(self, v, load=False):
"""
Setter method for mib, mapped from YANG variable /snmp_server/mib (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mib is considered as a private
method. Backends looking to populate this variable should
do so via... | [
"def",
"_set_mib",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for mib, mapped from YANG variable /snmp_server/mib (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mib is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_mib() directly. | [
"Setter",
"method",
"for",
"mib",
"mapped",
"from",
"YANG",
"variable",
"/",
"snmp_server",
"/",
"mib",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/snmp_server/__init__.py#L450-L471 | train | Set the value of the MIB field in the cluster. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/__init__.py | on_startup._set_on_startup_overloadtime | def _set_on_startup_overloadtime(self, v, load=False):
"""
Setter method for on_startup_overloadtime, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/on_startup_overloadtime (uint32)
If this variable is read-only (config: false... | python | def _set_on_startup_overloadtime(self, v, load=False):
"""
Setter method for on_startup_overloadtime, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/on_startup_overloadtime (uint32)
If this variable is read-only (config: false... | [
"def",
"_set_on_startup_overloadtime",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for on_startup_overloadtime, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/on_startup_overloadtime (uint32)
If this variable is read-only (config: false) in the
source YANG file, then _set_on_startup_overloadtime is... | [
"Setter",
"method",
"for",
"on_startup_overloadtime",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"router",
"/",
"isis",
"/",
"router_isis_cmds_holder",
"/",
"router_isis_attributes",
"/",
"set_overload_bit",
"/",
"on_startup",
"/",
"on_startup_ove... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/__init__.py#L93-L114 | train | Sets the on - startup - overloadtime property of the
. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/__init__.py | on_startup._set_wait_for_bgp | def _set_wait_for_bgp(self, v, load=False):
"""
Setter method for wait_for_bgp, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/wait_for_bgp (container)
If this variable is read-only (config: false) in the
source YANG file,... | python | def _set_wait_for_bgp(self, v, load=False):
"""
Setter method for wait_for_bgp, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/wait_for_bgp (container)
If this variable is read-only (config: false) in the
source YANG file,... | [
"def",
"_set_wait_for_bgp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for wait_for_bgp, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/wait_for_bgp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_wait_for_bgp is considered as a private
m... | [
"Setter",
"method",
"for",
"wait_for_bgp",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"router",
"/",
"isis",
"/",
"router_isis_cmds_holder",
"/",
"router_isis_attributes",
"/",
"set_overload_bit",
"/",
"on_startup",
"/",
"wait_for_bgp",
"(",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit/on_startup/__init__.py#L126-L147 | train | Sets the flag for wait_for_bgp |
BD2KGenomics/protect | src/protect/binding_prediction/mhcii.py | predict_mhcii_binding | def predict_mhcii_binding(job, peptfile, allele, univ_options, mhcii_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using the IEDB mhcii binding
prediction tool.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding aga... | python | def predict_mhcii_binding(job, peptfile, allele, univ_options, mhcii_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using the IEDB mhcii binding
prediction tool.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding aga... | [
"def",
"predict_mhcii_binding",
"(",
"job",
",",
"peptfile",
",",
"allele",
",",
"univ_options",
",",
"mhcii_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'peptfile.faa'",
":",
"peptfile",
"}",
"input_files",
"... | Predict binding for each peptide in `peptfile` to `allele` using the IEDB mhcii binding
prediction tool.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding against
:param dict univ_options: Dict of universal options used by almost all tools
:... | [
"Predict",
"binding",
"for",
"each",
"peptide",
"in",
"peptfile",
"to",
"allele",
"using",
"the",
"IEDB",
"mhcii",
"binding",
"prediction",
"tool",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/mhcii.py#L24-L76 | train | Predict binding for each peptide in peptfile to allele using the IEDB mhcii binding prediction tool. |
BD2KGenomics/protect | src/protect/binding_prediction/mhcii.py | predict_netmhcii_binding | def predict_netmhcii_binding(job, peptfile, allele, univ_options, netmhciipan_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using netMHCIIpan.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding against
:param dict u... | python | def predict_netmhcii_binding(job, peptfile, allele, univ_options, netmhciipan_options):
"""
Predict binding for each peptide in `peptfile` to `allele` using netMHCIIpan.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding against
:param dict u... | [
"def",
"predict_netmhcii_binding",
"(",
"job",
",",
"peptfile",
",",
"allele",
",",
"univ_options",
",",
"netmhciipan_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'peptfile.faa'",
":",
"peptfile",
"}",
"input_fi... | Predict binding for each peptide in `peptfile` to `allele` using netMHCIIpan.
:param toil.fileStore.FileID peptfile: The input peptide fasta
:param str allele: Allele to predict binding against
:param dict univ_options: Dict of universal options used by almost all tools
:param dict netmhciipan_options:... | [
"Predict",
"binding",
"for",
"each",
"peptide",
"in",
"peptfile",
"to",
"allele",
"using",
"netMHCIIpan",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/mhcii.py#L79-L118 | train | Predict binding for each peptide in peptfile to allele using netMHCIIpan. |
StackStorm/pybind | pybind/nos/v6_0_2f/qos/queue/__init__.py | queue._set_multicast | def _set_multicast(self, v, load=False):
"""
Setter method for multicast, mapped from YANG variable /qos/queue/multicast (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_multicast is considered as a private
method. Backends looking to populate this variabl... | python | def _set_multicast(self, v, load=False):
"""
Setter method for multicast, mapped from YANG variable /qos/queue/multicast (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_multicast is considered as a private
method. Backends looking to populate this variabl... | [
"def",
"_set_multicast",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for multicast, mapped from YANG variable /qos/queue/multicast (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_multicast is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_multicast... | [
"Setter",
"method",
"for",
"multicast",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"queue",
"/",
"multicast",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/qos/queue/__init__.py#L94-L115 | train | Set the multicast value of the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/map_/cos_traffic_class/__init__.py | cos_traffic_class._set_cos_to_tc_dp_mappings | def _set_cos_to_tc_dp_mappings(self, v, load=False):
"""
Setter method for cos_to_tc_dp_mappings, mapped from YANG variable /qos/map/cos_traffic_class/cos_to_tc_dp_mappings (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_to_tc_dp_mappings is considered as a pr... | python | def _set_cos_to_tc_dp_mappings(self, v, load=False):
"""
Setter method for cos_to_tc_dp_mappings, mapped from YANG variable /qos/map/cos_traffic_class/cos_to_tc_dp_mappings (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_to_tc_dp_mappings is considered as a pr... | [
"def",
"_set_cos_to_tc_dp_mappings",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for cos_to_tc_dp_mappings, mapped from YANG variable /qos/map/cos_traffic_class/cos_to_tc_dp_mappings (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_to_tc_dp_mappings is considered as a private
method. Backends looking to populate this variable shou... | [
"Setter",
"method",
"for",
"cos_to_tc_dp_mappings",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"map",
"/",
"cos_traffic_class",
"/",
"cos_to_tc_dp_mappings",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/map_/cos_traffic_class/__init__.py#L131-L152 | train | Sets the cos_to_tc_dp_mappings in the base node of the
. |
inveniosoftware/invenio-access | invenio_access/permissions.py | _P.update | def update(self, permission):
"""In-place update of permissions."""
self.needs.update(permission.needs)
self.excludes.update(permission.excludes) | python | def update(self, permission):
"""In-place update of permissions."""
self.needs.update(permission.needs)
self.excludes.update(permission.excludes) | [
"def",
"update",
"(",
"self",
",",
"permission",
")",
":",
"self",
".",
"needs",
".",
"update",
"(",
"permission",
".",
"needs",
")",
"self",
".",
"excludes",
".",
"update",
"(",
"permission",
".",
"excludes",
")"
] | In-place update of permissions. | [
"In",
"-",
"place",
"update",
"of",
"permissions",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/permissions.py#L61-L64 | train | In - place update of permissions. |
inveniosoftware/invenio-access | invenio_access/permissions.py | Permission._load_permissions | def _load_permissions(self):
"""Load permissions associated to actions."""
result = _P(needs=set(), excludes=set())
if not self.allow_by_default:
result.needs.update(self.explicit_needs)
for explicit_need in self.explicit_needs:
if explicit_need.method == 'action... | python | def _load_permissions(self):
"""Load permissions associated to actions."""
result = _P(needs=set(), excludes=set())
if not self.allow_by_default:
result.needs.update(self.explicit_needs)
for explicit_need in self.explicit_needs:
if explicit_need.method == 'action... | [
"def",
"_load_permissions",
"(",
"self",
")",
":",
"result",
"=",
"_P",
"(",
"needs",
"=",
"set",
"(",
")",
",",
"excludes",
"=",
"set",
"(",
")",
")",
"if",
"not",
"self",
".",
"allow_by_default",
":",
"result",
".",
"needs",
".",
"update",
"(",
"... | Load permissions associated to actions. | [
"Load",
"permissions",
"associated",
"to",
"actions",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/permissions.py#L122-L165 | train | Load permissions associated to actions. |
inveniosoftware/invenio-access | invenio_access/cli.py | lazy_result | def lazy_result(f):
"""Decorate function to return LazyProxy."""
@wraps(f)
def decorated(ctx, param, value):
return LocalProxy(lambda: f(ctx, param, value))
return decorated | python | def lazy_result(f):
"""Decorate function to return LazyProxy."""
@wraps(f)
def decorated(ctx, param, value):
return LocalProxy(lambda: f(ctx, param, value))
return decorated | [
"def",
"lazy_result",
"(",
"f",
")",
":",
"@",
"wraps",
"(",
"f",
")",
"def",
"decorated",
"(",
"ctx",
",",
"param",
",",
"value",
")",
":",
"return",
"LocalProxy",
"(",
"lambda",
":",
"f",
"(",
"ctx",
",",
"param",
",",
"value",
")",
")",
"retur... | Decorate function to return LazyProxy. | [
"Decorate",
"function",
"to",
"return",
"LazyProxy",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L30-L35 | train | Decorate function to return LazyProxy. |
inveniosoftware/invenio-access | invenio_access/cli.py | process_action | def process_action(ctx, param, value):
"""Return an action if exists."""
actions = current_app.extensions['invenio-access'].actions
if value not in actions:
raise click.BadParameter('Action "%s" is not registered.', value)
return actions[value] | python | def process_action(ctx, param, value):
"""Return an action if exists."""
actions = current_app.extensions['invenio-access'].actions
if value not in actions:
raise click.BadParameter('Action "%s" is not registered.', value)
return actions[value] | [
"def",
"process_action",
"(",
"ctx",
",",
"param",
",",
"value",
")",
":",
"actions",
"=",
"current_app",
".",
"extensions",
"[",
"'invenio-access'",
"]",
".",
"actions",
"if",
"value",
"not",
"in",
"actions",
":",
"raise",
"click",
".",
"BadParameter",
"(... | Return an action if exists. | [
"Return",
"an",
"action",
"if",
"exists",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L39-L44 | train | Return an action if exists. |
inveniosoftware/invenio-access | invenio_access/cli.py | process_email | def process_email(ctx, param, value):
"""Return an user if it exists."""
user = User.query.filter(User.email == value).first()
if not user:
raise click.BadParameter('User with email \'%s\' not found.', value)
return user | python | def process_email(ctx, param, value):
"""Return an user if it exists."""
user = User.query.filter(User.email == value).first()
if not user:
raise click.BadParameter('User with email \'%s\' not found.', value)
return user | [
"def",
"process_email",
"(",
"ctx",
",",
"param",
",",
"value",
")",
":",
"user",
"=",
"User",
".",
"query",
".",
"filter",
"(",
"User",
".",
"email",
"==",
"value",
")",
".",
"first",
"(",
")",
"if",
"not",
"user",
":",
"raise",
"click",
".",
"B... | Return an user if it exists. | [
"Return",
"an",
"user",
"if",
"it",
"exists",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L48-L53 | train | Return an user if it exists. |
inveniosoftware/invenio-access | invenio_access/cli.py | process_role | def process_role(ctx, param, value):
"""Return a role if it exists."""
role = Role.query.filter(Role.name == value).first()
if not role:
raise click.BadParameter('Role with name \'%s\' not found.', value)
return role | python | def process_role(ctx, param, value):
"""Return a role if it exists."""
role = Role.query.filter(Role.name == value).first()
if not role:
raise click.BadParameter('Role with name \'%s\' not found.', value)
return role | [
"def",
"process_role",
"(",
"ctx",
",",
"param",
",",
"value",
")",
":",
"role",
"=",
"Role",
".",
"query",
".",
"filter",
"(",
"Role",
".",
"name",
"==",
"value",
")",
".",
"first",
"(",
")",
"if",
"not",
"role",
":",
"raise",
"click",
".",
"Bad... | Return a role if it exists. | [
"Return",
"a",
"role",
"if",
"it",
"exists",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L57-L62 | train | Return a role if it exists. |
inveniosoftware/invenio-access | invenio_access/cli.py | allow_user | def allow_user(user):
"""Allow a user identified by an email address."""
def processor(action, argument):
db.session.add(
ActionUsers.allow(action, argument=argument, user_id=user.id)
)
return processor | python | def allow_user(user):
"""Allow a user identified by an email address."""
def processor(action, argument):
db.session.add(
ActionUsers.allow(action, argument=argument, user_id=user.id)
)
return processor | [
"def",
"allow_user",
"(",
"user",
")",
":",
"def",
"processor",
"(",
"action",
",",
"argument",
")",
":",
"db",
".",
"session",
".",
"add",
"(",
"ActionUsers",
".",
"allow",
"(",
"action",
",",
"argument",
"=",
"argument",
",",
"user_id",
"=",
"user",
... | Allow a user identified by an email address. | [
"Allow",
"a",
"user",
"identified",
"by",
"an",
"email",
"address",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L108-L114 | train | Allow a user identified by an email address. |
inveniosoftware/invenio-access | invenio_access/cli.py | allow_role | def allow_role(role):
"""Allow a role identified by an email address."""
def processor(action, argument):
db.session.add(
ActionRoles.allow(action, argument=argument, role_id=role.id)
)
return processor | python | def allow_role(role):
"""Allow a role identified by an email address."""
def processor(action, argument):
db.session.add(
ActionRoles.allow(action, argument=argument, role_id=role.id)
)
return processor | [
"def",
"allow_role",
"(",
"role",
")",
":",
"def",
"processor",
"(",
"action",
",",
"argument",
")",
":",
"db",
".",
"session",
".",
"add",
"(",
"ActionRoles",
".",
"allow",
"(",
"action",
",",
"argument",
"=",
"argument",
",",
"role_id",
"=",
"role",
... | Allow a role identified by an email address. | [
"Allow",
"a",
"role",
"identified",
"by",
"an",
"email",
"address",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L119-L125 | train | Allow a role identified by an email address. |
inveniosoftware/invenio-access | invenio_access/cli.py | process_allow_action | def process_allow_action(processors, action, argument):
"""Process allow action."""
for processor in processors:
processor(action, argument)
db.session.commit() | python | def process_allow_action(processors, action, argument):
"""Process allow action."""
for processor in processors:
processor(action, argument)
db.session.commit() | [
"def",
"process_allow_action",
"(",
"processors",
",",
"action",
",",
"argument",
")",
":",
"for",
"processor",
"in",
"processors",
":",
"processor",
"(",
"action",
",",
"argument",
")",
"db",
".",
"session",
".",
"commit",
"(",
")"
] | Process allow action. | [
"Process",
"allow",
"action",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L130-L134 | train | Process allow action. |
inveniosoftware/invenio-access | invenio_access/cli.py | deny_user | def deny_user(user):
"""Deny a user identified by an email address."""
def processor(action, argument):
db.session.add(
ActionUsers.deny(action, argument=argument, user_id=user.id)
)
return processor | python | def deny_user(user):
"""Deny a user identified by an email address."""
def processor(action, argument):
db.session.add(
ActionUsers.deny(action, argument=argument, user_id=user.id)
)
return processor | [
"def",
"deny_user",
"(",
"user",
")",
":",
"def",
"processor",
"(",
"action",
",",
"argument",
")",
":",
"db",
".",
"session",
".",
"add",
"(",
"ActionUsers",
".",
"deny",
"(",
"action",
",",
"argument",
"=",
"argument",
",",
"user_id",
"=",
"user",
... | Deny a user identified by an email address. | [
"Deny",
"a",
"user",
"identified",
"by",
"an",
"email",
"address",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L149-L155 | train | Deny a user identified by an email address. |
inveniosoftware/invenio-access | invenio_access/cli.py | deny_role | def deny_role(role):
"""Deny a role identified by an email address."""
def processor(action, argument):
db.session.add(
ActionRoles.deny(action, argument=argument, role_id=role.id)
)
return processor | python | def deny_role(role):
"""Deny a role identified by an email address."""
def processor(action, argument):
db.session.add(
ActionRoles.deny(action, argument=argument, role_id=role.id)
)
return processor | [
"def",
"deny_role",
"(",
"role",
")",
":",
"def",
"processor",
"(",
"action",
",",
"argument",
")",
":",
"db",
".",
"session",
".",
"add",
"(",
"ActionRoles",
".",
"deny",
"(",
"action",
",",
"argument",
"=",
"argument",
",",
"role_id",
"=",
"role",
... | Deny a role identified by an email address. | [
"Deny",
"a",
"role",
"identified",
"by",
"an",
"email",
"address",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L160-L166 | train | Deny a role identified by an email address. |
inveniosoftware/invenio-access | invenio_access/cli.py | process_deny_action | def process_deny_action(processors, action, argument):
"""Process deny action."""
for processor in processors:
processor(action, argument)
db.session.commit() | python | def process_deny_action(processors, action, argument):
"""Process deny action."""
for processor in processors:
processor(action, argument)
db.session.commit() | [
"def",
"process_deny_action",
"(",
"processors",
",",
"action",
",",
"argument",
")",
":",
"for",
"processor",
"in",
"processors",
":",
"processor",
"(",
"action",
",",
"argument",
")",
"db",
".",
"session",
".",
"commit",
"(",
")"
] | Process deny action. | [
"Process",
"deny",
"action",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L171-L175 | train | Process deny action. |
inveniosoftware/invenio-access | invenio_access/cli.py | remove_global | def remove_global():
"""Remove global action rule."""
def processor(action, argument):
ActionUsers.query_by_action(action, argument=argument).filter(
ActionUsers.user_id.is_(None)
).delete(synchronize_session=False)
return processor | python | def remove_global():
"""Remove global action rule."""
def processor(action, argument):
ActionUsers.query_by_action(action, argument=argument).filter(
ActionUsers.user_id.is_(None)
).delete(synchronize_session=False)
return processor | [
"def",
"remove_global",
"(",
")",
":",
"def",
"processor",
"(",
"action",
",",
"argument",
")",
":",
"ActionUsers",
".",
"query_by_action",
"(",
"action",
",",
"argument",
"=",
"argument",
")",
".",
"filter",
"(",
"ActionUsers",
".",
"user_id",
".",
"is_",... | Remove global action rule. | [
"Remove",
"global",
"action",
"rule",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L193-L199 | train | Remove global action rule. |
inveniosoftware/invenio-access | invenio_access/cli.py | remove_user | def remove_user(user):
"""Remove a action for a user."""
def processor(action, argument):
ActionUsers.query_by_action(action, argument=argument).filter(
ActionUsers.user_id == user.id
).delete(synchronize_session=False)
return processor | python | def remove_user(user):
"""Remove a action for a user."""
def processor(action, argument):
ActionUsers.query_by_action(action, argument=argument).filter(
ActionUsers.user_id == user.id
).delete(synchronize_session=False)
return processor | [
"def",
"remove_user",
"(",
"user",
")",
":",
"def",
"processor",
"(",
"action",
",",
"argument",
")",
":",
"ActionUsers",
".",
"query_by_action",
"(",
"action",
",",
"argument",
"=",
"argument",
")",
".",
"filter",
"(",
"ActionUsers",
".",
"user_id",
"==",... | Remove a action for a user. | [
"Remove",
"a",
"action",
"for",
"a",
"user",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L204-L210 | train | Remove a action for a user. |
inveniosoftware/invenio-access | invenio_access/cli.py | remove_role | def remove_role(role):
"""Remove a action for a role."""
def processor(action, argument):
ActionRoles.query_by_action(action, argument=argument).filter(
ActionRoles.role_id == role.id
).delete(synchronize_session=False)
return processor | python | def remove_role(role):
"""Remove a action for a role."""
def processor(action, argument):
ActionRoles.query_by_action(action, argument=argument).filter(
ActionRoles.role_id == role.id
).delete(synchronize_session=False)
return processor | [
"def",
"remove_role",
"(",
"role",
")",
":",
"def",
"processor",
"(",
"action",
",",
"argument",
")",
":",
"ActionRoles",
".",
"query_by_action",
"(",
"action",
",",
"argument",
"=",
"argument",
")",
".",
"filter",
"(",
"ActionRoles",
".",
"role_id",
"==",... | Remove a action for a role. | [
"Remove",
"a",
"action",
"for",
"a",
"role",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L215-L221 | train | Remove a action for a role. |
inveniosoftware/invenio-access | invenio_access/cli.py | process_remove_action | def process_remove_action(processors, action, argument):
"""Process action removals."""
for processor in processors:
processor(action, argument)
db.session.commit() | python | def process_remove_action(processors, action, argument):
"""Process action removals."""
for processor in processors:
processor(action, argument)
db.session.commit() | [
"def",
"process_remove_action",
"(",
"processors",
",",
"action",
",",
"argument",
")",
":",
"for",
"processor",
"in",
"processors",
":",
"processor",
"(",
"action",
",",
"argument",
")",
"db",
".",
"session",
".",
"commit",
"(",
")"
] | Process action removals. | [
"Process",
"action",
"removals",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L226-L230 | train | Process action removals. |
inveniosoftware/invenio-access | invenio_access/cli.py | list_actions | def list_actions():
"""List all registered actions."""
for name, action in _current_actions.items():
click.echo('{0}:{1}'.format(
name, '*' if hasattr(action, 'argument') else ''
)) | python | def list_actions():
"""List all registered actions."""
for name, action in _current_actions.items():
click.echo('{0}:{1}'.format(
name, '*' if hasattr(action, 'argument') else ''
)) | [
"def",
"list_actions",
"(",
")",
":",
"for",
"name",
",",
"action",
"in",
"_current_actions",
".",
"items",
"(",
")",
":",
"click",
".",
"echo",
"(",
"'{0}:{1}'",
".",
"format",
"(",
"name",
",",
"'*'",
"if",
"hasattr",
"(",
"action",
",",
"'argument'"... | List all registered actions. | [
"List",
"all",
"registered",
"actions",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L235-L240 | train | List all registered actions. |
inveniosoftware/invenio-access | invenio_access/cli.py | show_actions | def show_actions(email, role):
"""Show all assigned actions."""
if email:
actions = ActionUsers.query.join(ActionUsers.user).filter(
User.email.in_(email)
).all()
for action in actions:
click.secho('user:{0}:{1}:{2}:{3}'.format(
action.user.email,
... | python | def show_actions(email, role):
"""Show all assigned actions."""
if email:
actions = ActionUsers.query.join(ActionUsers.user).filter(
User.email.in_(email)
).all()
for action in actions:
click.secho('user:{0}:{1}:{2}:{3}'.format(
action.user.email,
... | [
"def",
"show_actions",
"(",
"email",
",",
"role",
")",
":",
"if",
"email",
":",
"actions",
"=",
"ActionUsers",
".",
"query",
".",
"join",
"(",
"ActionUsers",
".",
"user",
")",
".",
"filter",
"(",
"User",
".",
"email",
".",
"in_",
"(",
"email",
")",
... | Show all assigned actions. | [
"Show",
"all",
"assigned",
"actions",
"."
] | 3b033a4bdc110eb2f7e9f08f0744a780884bfc80 | https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/invenio_access/cli.py#L247-L271 | train | Show all assigned actions. |
BD2KGenomics/protect | src/protect/addons/assess_mhc_pathway.py | run_mhc_gene_assessment | def run_mhc_gene_assessment(job, rsem_files, rna_haplotype, univ_options, reports_options):
"""
A wrapper for assess_mhc_genes.
:param dict rsem_files: Results from running rsem
:param str rna_haplotype: The job store id for the rna haplotype file
:param dict univ_options: Dict of universal options... | python | def run_mhc_gene_assessment(job, rsem_files, rna_haplotype, univ_options, reports_options):
"""
A wrapper for assess_mhc_genes.
:param dict rsem_files: Results from running rsem
:param str rna_haplotype: The job store id for the rna haplotype file
:param dict univ_options: Dict of universal options... | [
"def",
"run_mhc_gene_assessment",
"(",
"job",
",",
"rsem_files",
",",
"rna_haplotype",
",",
"univ_options",
",",
"reports_options",
")",
":",
"return",
"job",
".",
"addChildJobFn",
"(",
"assess_mhc_genes",
",",
"rsem_files",
"[",
"'rsem.genes.results'",
"]",
",",
... | A wrapper for assess_mhc_genes.
:param dict rsem_files: Results from running rsem
:param str rna_haplotype: The job store id for the rna haplotype file
:param dict univ_options: Dict of universal options used by almost all tools
:param dict reports_options: Options specific to reporting modules
:re... | [
"A",
"wrapper",
"for",
"assess_mhc_genes",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/addons/assess_mhc_pathway.py#L27-L39 | train | A wrapper for assess_mhc_genes. |
BD2KGenomics/protect | src/protect/addons/assess_mhc_pathway.py | assess_mhc_genes | def assess_mhc_genes(job, gene_expression, rna_haplotype, univ_options, reports_options):
"""
Assess the prevalence of the various genes in the MHC pathway and return a report in the tsv
format.
:param toil.fileStore.FileID gene_expression: fsID for the rsem gene expression file
:param toil.fileSto... | python | def assess_mhc_genes(job, gene_expression, rna_haplotype, univ_options, reports_options):
"""
Assess the prevalence of the various genes in the MHC pathway and return a report in the tsv
format.
:param toil.fileStore.FileID gene_expression: fsID for the rsem gene expression file
:param toil.fileSto... | [
"def",
"assess_mhc_genes",
"(",
"job",
",",
"gene_expression",
",",
"rna_haplotype",
",",
"univ_options",
",",
"reports_options",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"# Take file parameters for both TCGA and GTEX files",
"tumor_type",
"=",
"univ_... | Assess the prevalence of the various genes in the MHC pathway and return a report in the tsv
format.
:param toil.fileStore.FileID gene_expression: fsID for the rsem gene expression file
:param toil.fileStore.FileID|None rna_haplotype: fsID for the RNA PHLAT file
:param dict univ_options: Dict of univer... | [
"Assess",
"the",
"prevalence",
"of",
"the",
"various",
"genes",
"in",
"the",
"MHC",
"pathway",
"and",
"return",
"a",
"report",
"in",
"the",
"tsv",
"format",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/addons/assess_mhc_pathway.py#L42-L142 | train | Assess the prevalence of the various genes in the MHC pathway and return a tsv
format. |
StackStorm/pybind | pybind/nos/v6_0_2f/diag/__init__.py | diag._set_post | def _set_post(self, v, load=False):
"""
Setter method for post, mapped from YANG variable /diag/post (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_post is considered as a private
method. Backends looking to populate this variable should
do so via ca... | python | def _set_post(self, v, load=False):
"""
Setter method for post, mapped from YANG variable /diag/post (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_post is considered as a private
method. Backends looking to populate this variable should
do so via ca... | [
"def",
"_set_post",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for post, mapped from YANG variable /diag/post (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_post is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_post() directly. | [
"Setter",
"method",
"for",
"post",
"mapped",
"from",
"YANG",
"variable",
"/",
"diag",
"/",
"post",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"the... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/diag/__init__.py#L92-L113 | train | Sets the post of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py | default_vrf._set_af_ipv4_uc_and_vrf_cmds_call_point_holder | def _set_af_ipv4_uc_and_vrf_cmds_call_point_holder(self, v, load=False):
"""
Setter method for af_ipv4_uc_and_vrf_cmds_call_point_holder, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/af_ipv4_uc_and_vrf_cmds_call_point_holder (container)
If this variabl... | python | def _set_af_ipv4_uc_and_vrf_cmds_call_point_holder(self, v, load=False):
"""
Setter method for af_ipv4_uc_and_vrf_cmds_call_point_holder, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/af_ipv4_uc_and_vrf_cmds_call_point_holder (container)
If this variabl... | [
"def",
"_set_af_ipv4_uc_and_vrf_cmds_call_point_holder",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClas... | Setter method for af_ipv4_uc_and_vrf_cmds_call_point_holder, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/af_ipv4_uc_and_vrf_cmds_call_point_holder (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_af_ipv4_uc_and_... | [
"Setter",
"method",
"for",
"af_ipv4_uc_and_vrf_cmds_call_point_holder",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"router_bgp",
"/",
"address_family",
"/",
"ipv4",
"/",
"ipv4_unicast",
"/",
"default_vrf",
"/",
"af_ipv4_uc_and_vrf_cmds_... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py#L137-L158 | train | Sets the af_ipv4_uc_and_vrf_cmds_call_point_holder property of the af_ipv4_uc_and_vrf_cmds_call_point_holder object. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py | default_vrf._set_static_network | def _set_static_network(self, v, load=False):
"""
Setter method for static_network, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/static_network (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_static_network i... | python | def _set_static_network(self, v, load=False):
"""
Setter method for static_network, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/static_network (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_static_network i... | [
"def",
"_set_static_network",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for static_network, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/static_network (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_static_network is considered as a private
method. Backends looking to ... | [
"Setter",
"method",
"for",
"static_network",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"router_bgp",
"/",
"address_family",
"/",
"ipv4",
"/",
"ipv4_unicast",
"/",
"default_vrf",
"/",
"static_network",
"(",
"list",
")",
"If",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py#L170-L191 | train | Sets the static network of BGP |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py | default_vrf._set_network | def _set_network(self, v, load=False):
"""
Setter method for network, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/network (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_network is considered as a private
... | python | def _set_network(self, v, load=False):
"""
Setter method for network, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/network (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_network is considered as a private
... | [
"def",
"_set_network",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for network, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/network (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_network is considered as a private
method. Backends looking to populate this variabl... | [
"Setter",
"method",
"for",
"network",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"router_bgp",
"/",
"address_family",
"/",
"ipv4",
"/",
"ipv4_unicast",
"/",
"default_vrf",
"/",
"network",
"(",
"list",
")",
"If",
"this",
"var... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py#L236-L257 | train | Sets the network property of the
based on the given list of network values. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.