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
1 value
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_api_vrf
def create_api_vrf(self): """Get an instance of Api Vrf services facade.""" return ApiVrf( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_api_vrf(self): """Get an instance of Api Vrf services facade.""" return ApiVrf( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_api_vrf", "(", "self", ")", ":", "return", "ApiVrf", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of Api Vrf services facade.
[ "Get", "an", "instance", "of", "Api", "Vrf", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L312-L318
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_rule
def create_rule(self): """Get an instance of block rule services facade.""" return BlockRule( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_rule(self): """Get an instance of block rule services facade.""" return BlockRule( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_rule", "(", "self", ")", ":", "return", "BlockRule", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of block rule services facade.
[ "Get", "an", "instance", "of", "block", "rule", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L320-L326
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_direito_grupo_equipamento
def create_direito_grupo_equipamento(self): """Get an instance of direito_grupo_equipamento services facade.""" return DireitoGrupoEquipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_direito_grupo_equipamento(self): """Get an instance of direito_grupo_equipamento services facade.""" return DireitoGrupoEquipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_direito_grupo_equipamento", "(", "self", ")", ":", "return", "DireitoGrupoEquipamento", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of direito_grupo_equipamento services facade.
[ "Get", "an", "instance", "of", "direito_grupo_equipamento", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L328-L334
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_divisao_dc
def create_divisao_dc(self): """Get an instance of divisao_dc services facade.""" return DivisaoDc( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_divisao_dc(self): """Get an instance of divisao_dc services facade.""" return DivisaoDc( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_divisao_dc", "(", "self", ")", ":", "return", "DivisaoDc", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of divisao_dc services facade.
[ "Get", "an", "instance", "of", "divisao_dc", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L336-L342
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_environment_vip
def create_environment_vip(self): """Get an instance of environment_vip services facade.""" return EnvironmentVIP( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_environment_vip(self): """Get an instance of environment_vip services facade.""" return EnvironmentVIP( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_environment_vip", "(", "self", ")", ":", "return", "EnvironmentVIP", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of environment_vip services facade.
[ "Get", "an", "instance", "of", "environment_vip", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L344-L350
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_equipamento
def create_equipamento(self): """Get an instance of equipamento services facade.""" return Equipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_equipamento(self): """Get an instance of equipamento services facade.""" return Equipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_equipamento", "(", "self", ")", ":", "return", "Equipamento", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of equipamento services facade.
[ "Get", "an", "instance", "of", "equipamento", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L352-L358
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_equipamento_acesso
def create_equipamento_acesso(self): """Get an instance of equipamento_acesso services facade.""" return EquipamentoAcesso( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_equipamento_acesso(self): """Get an instance of equipamento_acesso services facade.""" return EquipamentoAcesso( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_equipamento_acesso", "(", "self", ")", ":", "return", "EquipamentoAcesso", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of equipamento_acesso services facade.
[ "Get", "an", "instance", "of", "equipamento_acesso", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L360-L366
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_equipamento_ambiente
def create_equipamento_ambiente(self): """Get an instance of equipamento_ambiente services facade.""" return EquipamentoAmbiente( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_equipamento_ambiente(self): """Get an instance of equipamento_ambiente services facade.""" return EquipamentoAmbiente( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_equipamento_ambiente", "(", "self", ")", ":", "return", "EquipamentoAmbiente", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of equipamento_ambiente services facade.
[ "Get", "an", "instance", "of", "equipamento_ambiente", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L368-L374
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_equipamento_roteiro
def create_equipamento_roteiro(self): """Get an instance of equipamento_roteiro services facade.""" return EquipamentoRoteiro( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_equipamento_roteiro(self): """Get an instance of equipamento_roteiro services facade.""" return EquipamentoRoteiro( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_equipamento_roteiro", "(", "self", ")", ":", "return", "EquipamentoRoteiro", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of equipamento_roteiro services facade.
[ "Get", "an", "instance", "of", "equipamento_roteiro", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L376-L382
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_log
def create_log(self): """Get an instance of log services facade.""" return EventLog( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_log(self): """Get an instance of log services facade.""" return EventLog( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_log", "(", "self", ")", ":", "return", "EventLog", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of log services facade.
[ "Get", "an", "instance", "of", "log", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L384-L390
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_filter
def create_filter(self): """Get an instance of filter services facade.""" return Filter( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_filter(self): """Get an instance of filter services facade.""" return Filter( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_filter", "(", "self", ")", ":", "return", "Filter", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of filter services facade.
[ "Get", "an", "instance", "of", "filter", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L392-L398
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_grupo_equipamento
def create_grupo_equipamento(self): """Get an instance of grupo_equipamento services facade.""" return GrupoEquipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_grupo_equipamento(self): """Get an instance of grupo_equipamento services facade.""" return GrupoEquipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_grupo_equipamento", "(", "self", ")", ":", "return", "GrupoEquipamento", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of grupo_equipamento services facade.
[ "Get", "an", "instance", "of", "grupo_equipamento", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L400-L406
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_grupo_l3
def create_grupo_l3(self): """Get an instance of grupo_l3 services facade.""" return GrupoL3( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_grupo_l3(self): """Get an instance of grupo_l3 services facade.""" return GrupoL3( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_grupo_l3", "(", "self", ")", ":", "return", "GrupoL3", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of grupo_l3 services facade.
[ "Get", "an", "instance", "of", "grupo_l3", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L408-L414
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_grupo_usuario
def create_grupo_usuario(self): """Get an instance of grupo_usuario services facade.""" return GrupoUsuario( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_grupo_usuario(self): """Get an instance of grupo_usuario services facade.""" return GrupoUsuario( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_grupo_usuario", "(", "self", ")", ":", "return", "GrupoUsuario", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of grupo_usuario services facade.
[ "Get", "an", "instance", "of", "grupo_usuario", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L416-L422
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_grupo_virtual
def create_grupo_virtual(self): """Get an instance of grupo_virtual services facade.""" return GrupoVirtual( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_grupo_virtual(self): """Get an instance of grupo_virtual services facade.""" return GrupoVirtual( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_grupo_virtual", "(", "self", ")", ":", "return", "GrupoVirtual", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of grupo_virtual services facade.
[ "Get", "an", "instance", "of", "grupo_virtual", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L424-L430
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_healthcheck
def create_healthcheck(self): """Get an instance of Poll services facade.""" return Healthcheck( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_healthcheck(self): """Get an instance of Poll services facade.""" return Healthcheck( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_healthcheck", "(", "self", ")", ":", "return", "Healthcheck", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of Poll services facade.
[ "Get", "an", "instance", "of", "Poll", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L432-L439
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_interface
def create_interface(self): """Get an instance of interface services facade.""" return Interface( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_interface(self): """Get an instance of interface services facade.""" return Interface( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_interface", "(", "self", ")", ":", "return", "Interface", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of interface services facade.
[ "Get", "an", "instance", "of", "interface", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L441-L447
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_ip
def create_ip(self): """Get an instance of ip services facade.""" return Ip( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_ip(self): """Get an instance of ip services facade.""" return Ip( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_ip", "(", "self", ")", ":", "return", "Ip", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of ip services facade.
[ "Get", "an", "instance", "of", "ip", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L449-L455
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_marca
def create_marca(self): """Get an instance of marca services facade.""" return Marca( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_marca(self): """Get an instance of marca services facade.""" return Marca( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_marca", "(", "self", ")", ":", "return", "Marca", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of marca services facade.
[ "Get", "an", "instance", "of", "marca", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L457-L463
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_modelo
def create_modelo(self): """Get an instance of modelo services facade.""" return Modelo( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_modelo(self): """Get an instance of modelo services facade.""" return Modelo( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_modelo", "(", "self", ")", ":", "return", "Modelo", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of modelo services facade.
[ "Get", "an", "instance", "of", "modelo", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L465-L471
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_dhcprelay_ipv4
def create_dhcprelay_ipv4(self): """Get an instance of DHCPRelayIPv4 services facade.""" return DHCPRelayIPv4( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_dhcprelay_ipv4(self): """Get an instance of DHCPRelayIPv4 services facade.""" return DHCPRelayIPv4( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_dhcprelay_ipv4", "(", "self", ")", ":", "return", "DHCPRelayIPv4", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of DHCPRelayIPv4 services facade.
[ "Get", "an", "instance", "of", "DHCPRelayIPv4", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L473-L479
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_dhcprelay_ipv6
def create_dhcprelay_ipv6(self): """Get an instance of DHCPRelayIPv6 services facade.""" return DHCPRelayIPv6( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_dhcprelay_ipv6(self): """Get an instance of DHCPRelayIPv6 services facade.""" return DHCPRelayIPv6( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_dhcprelay_ipv6", "(", "self", ")", ":", "return", "DHCPRelayIPv6", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of DHCPRelayIPv6 services facade.
[ "Get", "an", "instance", "of", "DHCPRelayIPv6", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L481-L487
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_network
def create_network(self): """Get an instance of vlan services facade.""" return Network( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_network(self): """Get an instance of vlan services facade.""" return Network( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_network", "(", "self", ")", ":", "return", "Network", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of vlan services facade.
[ "Get", "an", "instance", "of", "vlan", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L489-L495
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_option_pool
def create_option_pool(self): """Get an instance of option_pool services facade.""" return OptionPool( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_option_pool(self): """Get an instance of option_pool services facade.""" return OptionPool( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_option_pool", "(", "self", ")", ":", "return", "OptionPool", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of option_pool services facade.
[ "Get", "an", "instance", "of", "option_pool", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L497-L503
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_option_vip
def create_option_vip(self): """Get an instance of option_vip services facade.""" return OptionVIP( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_option_vip(self): """Get an instance of option_vip services facade.""" return OptionVIP( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_option_vip", "(", "self", ")", ":", "return", "OptionVIP", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of option_vip services facade.
[ "Get", "an", "instance", "of", "option_vip", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L505-L511
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_permissao_administrativa
def create_permissao_administrativa(self): """Get an instance of permissao_administrativa services facade.""" return PermissaoAdministrativa( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_permissao_administrativa(self): """Get an instance of permissao_administrativa services facade.""" return PermissaoAdministrativa( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_permissao_administrativa", "(", "self", ")", ":", "return", "PermissaoAdministrativa", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of permissao_administrativa services facade.
[ "Get", "an", "instance", "of", "permissao_administrativa", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L513-L519
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_permission
def create_permission(self): """Get an instance of permission services facade.""" return Permission( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_permission(self): """Get an instance of permission services facade.""" return Permission( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_permission", "(", "self", ")", ":", "return", "Permission", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of permission services facade.
[ "Get", "an", "instance", "of", "permission", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L521-L527
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_pool
def create_pool(self): """Get an instance of Poll services facade.""" return Pool( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_pool(self): """Get an instance of Poll services facade.""" return Pool( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_pool", "(", "self", ")", ":", "return", "Pool", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of Poll services facade.
[ "Get", "an", "instance", "of", "Poll", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L529-L536
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_rack
def create_rack(self): """Get an instance of rack services facade.""" return Rack( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_rack(self): """Get an instance of rack services facade.""" return Rack( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_rack", "(", "self", ")", ":", "return", "Rack", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of rack services facade.
[ "Get", "an", "instance", "of", "rack", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L538-L544
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_rackservers
def create_rackservers(self): """Get an instance of rackservers services facade.""" return RackServers( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_rackservers(self): """Get an instance of rackservers services facade.""" return RackServers( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_rackservers", "(", "self", ")", ":", "return", "RackServers", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of rackservers services facade.
[ "Get", "an", "instance", "of", "rackservers", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L546-L552
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_roteiro
def create_roteiro(self): """Get an instance of roteiro services facade.""" return Roteiro( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_roteiro(self): """Get an instance of roteiro services facade.""" return Roteiro( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_roteiro", "(", "self", ")", ":", "return", "Roteiro", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of roteiro services facade.
[ "Get", "an", "instance", "of", "roteiro", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L554-L560
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_system
def create_system(self): """Get an instance of Api System Variables services facade.""" return System( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_system(self): """Get an instance of Api System Variables services facade.""" return System( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_system", "(", "self", ")", ":", "return", "System", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of Api System Variables services facade.
[ "Get", "an", "instance", "of", "Api", "System", "Variables", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L562-L568
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_tipo_acesso
def create_tipo_acesso(self): """Get an instance of tipo_acesso services facade.""" return TipoAcesso( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_tipo_acesso(self): """Get an instance of tipo_acesso services facade.""" return TipoAcesso( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_tipo_acesso", "(", "self", ")", ":", "return", "TipoAcesso", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of tipo_acesso services facade.
[ "Get", "an", "instance", "of", "tipo_acesso", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L570-L576
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_tipo_equipamento
def create_tipo_equipamento(self): """Get an instance of tipo_equipamento services facade.""" return TipoEquipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_tipo_equipamento(self): """Get an instance of tipo_equipamento services facade.""" return TipoEquipamento( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_tipo_equipamento", "(", "self", ")", ":", "return", "TipoEquipamento", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of tipo_equipamento services facade.
[ "Get", "an", "instance", "of", "tipo_equipamento", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L578-L584
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_tipo_rede
def create_tipo_rede(self): """Get an instance of tipo_rede services facade.""" return TipoRede( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_tipo_rede(self): """Get an instance of tipo_rede services facade.""" return TipoRede( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_tipo_rede", "(", "self", ")", ":", "return", "TipoRede", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of tipo_rede services facade.
[ "Get", "an", "instance", "of", "tipo_rede", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L586-L592
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_tipo_roteiro
def create_tipo_roteiro(self): """Get an instance of tipo_roteiro services facade.""" return TipoRoteiro( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_tipo_roteiro(self): """Get an instance of tipo_roteiro services facade.""" return TipoRoteiro( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_tipo_roteiro", "(", "self", ")", ":", "return", "TipoRoteiro", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of tipo_roteiro services facade.
[ "Get", "an", "instance", "of", "tipo_roteiro", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L594-L600
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_usuario
def create_usuario(self): """Get an instance of usuario services facade.""" return Usuario( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_usuario(self): """Get an instance of usuario services facade.""" return Usuario( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_usuario", "(", "self", ")", ":", "return", "Usuario", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of usuario services facade.
[ "Get", "an", "instance", "of", "usuario", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L602-L608
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_usuario_grupo
def create_usuario_grupo(self): """Get an instance of usuario_grupo services facade.""" return UsuarioGrupo( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_usuario_grupo(self): """Get an instance of usuario_grupo services facade.""" return UsuarioGrupo( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_usuario_grupo", "(", "self", ")", ":", "return", "UsuarioGrupo", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of usuario_grupo services facade.
[ "Get", "an", "instance", "of", "usuario_grupo", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L610-L616
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_vip
def create_vip(self): """Get an instance of vip services facade.""" return Vip( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_vip(self): """Get an instance of vip services facade.""" return Vip( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_vip", "(", "self", ")", ":", "return", "Vip", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of vip services facade.
[ "Get", "an", "instance", "of", "vip", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L618-L624
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ClientFactory.py
ClientFactory.create_vlan
def create_vlan(self): """Get an instance of vlan services facade.""" return Vlan( self.networkapi_url, self.user, self.password, self.user_ldap)
python
def create_vlan(self): """Get an instance of vlan services facade.""" return Vlan( self.networkapi_url, self.user, self.password, self.user_ldap)
[ "def", "create_vlan", "(", "self", ")", ":", "return", "Vlan", "(", "self", ".", "networkapi_url", ",", "self", ".", "user", ",", "self", ".", "password", ",", "self", ".", "user_ldap", ")" ]
Get an instance of vlan services facade.
[ "Get", "an", "instance", "of", "vlan", "services", "facade", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ClientFactory.py#L626-L632
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.deploy
def deploy(self, id_networkv6): """Deploy network in equipments and set column 'active = 1' in tables redeipv6 ] :param id_networkv6: ID for NetworkIPv6 :return: Equipments configuration output """ data = dict() uri = 'api/networkv6/%s/equipments/' % id_networkv6 ...
python
def deploy(self, id_networkv6): """Deploy network in equipments and set column 'active = 1' in tables redeipv6 ] :param id_networkv6: ID for NetworkIPv6 :return: Equipments configuration output """ data = dict() uri = 'api/networkv6/%s/equipments/' % id_networkv6 ...
[ "def", "deploy", "(", "self", ",", "id_networkv6", ")", ":", "data", "=", "dict", "(", ")", "uri", "=", "'api/networkv6/%s/equipments/'", "%", "id_networkv6", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "post", "(", "uri", ",", "data",...
Deploy network in equipments and set column 'active = 1' in tables redeipv6 ] :param id_networkv6: ID for NetworkIPv6 :return: Equipments configuration output
[ "Deploy", "network", "in", "equipments", "and", "set", "column", "active", "=", "1", "in", "tables", "redeipv6", "]" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L22-L33
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.get_by_id
def get_by_id(self, id_networkv6): """Get IPv6 network :param id_networkv4: ID for NetworkIPv6 :return: IPv6 Network """ uri = 'api/networkv4/%s/' % id_networkv6 return super(ApiNetworkIPv6, self).get(uri)
python
def get_by_id(self, id_networkv6): """Get IPv6 network :param id_networkv4: ID for NetworkIPv6 :return: IPv6 Network """ uri = 'api/networkv4/%s/' % id_networkv6 return super(ApiNetworkIPv6, self).get(uri)
[ "def", "get_by_id", "(", "self", ",", "id_networkv6", ")", ":", "uri", "=", "'api/networkv4/%s/'", "%", "id_networkv6", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "get", "(", "uri", ")" ]
Get IPv6 network :param id_networkv4: ID for NetworkIPv6 :return: IPv6 Network
[ "Get", "IPv6", "network" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L35-L44
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.list
def list(self, environment_vip=None): """List networks redeipv6 ] :param environment_vip: environment vip to filter :return: IPv6 Networks """ uri = 'api/networkv6/?' if environment_vip: uri += 'environment_vip=%s' % environment_vip return super(Ap...
python
def list(self, environment_vip=None): """List networks redeipv6 ] :param environment_vip: environment vip to filter :return: IPv6 Networks """ uri = 'api/networkv6/?' if environment_vip: uri += 'environment_vip=%s' % environment_vip return super(Ap...
[ "def", "list", "(", "self", ",", "environment_vip", "=", "None", ")", ":", "uri", "=", "'api/networkv6/?'", "if", "environment_vip", ":", "uri", "+=", "'environment_vip=%s'", "%", "environment_vip", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", "...
List networks redeipv6 ] :param environment_vip: environment vip to filter :return: IPv6 Networks
[ "List", "networks", "redeipv6", "]" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L46-L58
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.undeploy
def undeploy(self, id_networkv6): """Remove deployment of network in equipments and set column 'active = 0' in tables redeipv6 ] :param id_networkv6: ID for NetworkIPv6 :return: Equipments configuration output """ uri = 'api/networkv6/%s/equipments/' % id_networkv6 ret...
python
def undeploy(self, id_networkv6): """Remove deployment of network in equipments and set column 'active = 0' in tables redeipv6 ] :param id_networkv6: ID for NetworkIPv6 :return: Equipments configuration output """ uri = 'api/networkv6/%s/equipments/' % id_networkv6 ret...
[ "def", "undeploy", "(", "self", ",", "id_networkv6", ")", ":", "uri", "=", "'api/networkv6/%s/equipments/'", "%", "id_networkv6", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "delete", "(", "uri", ")" ]
Remove deployment of network in equipments and set column 'active = 0' in tables redeipv6 ] :param id_networkv6: ID for NetworkIPv6 :return: Equipments configuration output
[ "Remove", "deployment", "of", "network", "in", "equipments", "and", "set", "column", "active", "=", "0", "in", "tables", "redeipv6", "]" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L60-L69
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.check_vip_ip
def check_vip_ip(self, ip, environment_vip): """ Check available ipv6 in environment vip """ uri = 'api/ipv6/ip/%s/environment-vip/%s/' % (ip, environment_vip) return super(ApiNetworkIPv6, self).get(uri)
python
def check_vip_ip(self, ip, environment_vip): """ Check available ipv6 in environment vip """ uri = 'api/ipv6/ip/%s/environment-vip/%s/' % (ip, environment_vip) return super(ApiNetworkIPv6, self).get(uri)
[ "def", "check_vip_ip", "(", "self", ",", "ip", ",", "environment_vip", ")", ":", "uri", "=", "'api/ipv6/ip/%s/environment-vip/%s/'", "%", "(", "ip", ",", "environment_vip", ")", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "get", "(", "ur...
Check available ipv6 in environment vip
[ "Check", "available", "ipv6", "in", "environment", "vip" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L71-L77
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.delete_ipv6
def delete_ipv6(self, ipv6_id): """ Delete ipv6 """ uri = 'api/ipv6/%s/' % (ipv6_id) return super(ApiNetworkIPv6, self).delete(uri)
python
def delete_ipv6(self, ipv6_id): """ Delete ipv6 """ uri = 'api/ipv6/%s/' % (ipv6_id) return super(ApiNetworkIPv6, self).delete(uri)
[ "def", "delete_ipv6", "(", "self", ",", "ipv6_id", ")", ":", "uri", "=", "'api/ipv6/%s/'", "%", "(", "ipv6_id", ")", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "delete", "(", "uri", ")" ]
Delete ipv6
[ "Delete", "ipv6" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L79-L85
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.search
def search(self, **kwargs): """ Method to search ipv6's based on extends search. :param search: Dict containing QuerySets to find ipv6's. :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on response. :para...
python
def search(self, **kwargs): """ Method to search ipv6's based on extends search. :param search: Dict containing QuerySets to find ipv6's. :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on response. :para...
[ "def", "search", "(", "self", ",", "*", "*", "kwargs", ")", ":", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "get", "(", "self", ".", "prepare_url", "(", "'api/v3/networkv6/'", ",", "kwargs", ")", ")" ]
Method to search ipv6's based on extends search. :param search: Dict containing QuerySets to find ipv6's. :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on response. :param fields: Array containing fields to override d...
[ "Method", "to", "search", "ipv6", "s", "based", "on", "extends", "search", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L87-L100
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.delete
def delete(self, ids): """ Method to delete network-ipv6's by their ids :param ids: Identifiers of network-ipv6's :return: None """ url = build_uri_with_ids('api/v3/networkv6/%s/', ids) return super(ApiNetworkIPv6, self).delete(url)
python
def delete(self, ids): """ Method to delete network-ipv6's by their ids :param ids: Identifiers of network-ipv6's :return: None """ url = build_uri_with_ids('api/v3/networkv6/%s/', ids) return super(ApiNetworkIPv6, self).delete(url)
[ "def", "delete", "(", "self", ",", "ids", ")", ":", "url", "=", "build_uri_with_ids", "(", "'api/v3/networkv6/%s/'", ",", "ids", ")", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "delete", "(", "url", ")" ]
Method to delete network-ipv6's by their ids :param ids: Identifiers of network-ipv6's :return: None
[ "Method", "to", "delete", "network", "-", "ipv6", "s", "by", "their", "ids" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L117-L126
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.update
def update(self, networkipv6s): """ Method to update network-ipv6's :param networkipv6s: List containing network-ipv6's desired to updated :return: None """ data = {'networks': networkipv6s} networkipv6s_ids = [str(networkipv6.get('id')) ...
python
def update(self, networkipv6s): """ Method to update network-ipv6's :param networkipv6s: List containing network-ipv6's desired to updated :return: None """ data = {'networks': networkipv6s} networkipv6s_ids = [str(networkipv6.get('id')) ...
[ "def", "update", "(", "self", ",", "networkipv6s", ")", ":", "data", "=", "{", "'networks'", ":", "networkipv6s", "}", "networkipv6s_ids", "=", "[", "str", "(", "networkipv6", ".", "get", "(", "'id'", ")", ")", "for", "networkipv6", "in", "networkipv6s", ...
Method to update network-ipv6's :param networkipv6s: List containing network-ipv6's desired to updated :return: None
[ "Method", "to", "update", "network", "-", "ipv6", "s" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L128-L141
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiNetworkIPv6.py
ApiNetworkIPv6.create
def create(self, networkipv6s): """ Method to create network-ipv6's :param networkipv6s: List containing networkipv6's desired to be created on database :return: None """ data = {'networks': networkipv6s} return super(ApiNetworkIPv6, self).post('api/v3/networkv6...
python
def create(self, networkipv6s): """ Method to create network-ipv6's :param networkipv6s: List containing networkipv6's desired to be created on database :return: None """ data = {'networks': networkipv6s} return super(ApiNetworkIPv6, self).post('api/v3/networkv6...
[ "def", "create", "(", "self", ",", "networkipv6s", ")", ":", "data", "=", "{", "'networks'", ":", "networkipv6s", "}", "return", "super", "(", "ApiNetworkIPv6", ",", "self", ")", ".", "post", "(", "'api/v3/networkv6/'", ",", "data", ")" ]
Method to create network-ipv6's :param networkipv6s: List containing networkipv6's desired to be created on database :return: None
[ "Method", "to", "create", "network", "-", "ipv6", "s" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiNetworkIPv6.py#L143-L152
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.list_all
def list_all(self): """ List all environment vips :return: Following dictionary: :: {'environment_vip': [{'id': <id>, 'finalidade_txt': <finalidade_txt>, 'cliente_txt': <cliente_txt>, 'ambiente_p44_txt': <ambiente_p44_txt> } {... other e...
python
def list_all(self): """ List all environment vips :return: Following dictionary: :: {'environment_vip': [{'id': <id>, 'finalidade_txt': <finalidade_txt>, 'cliente_txt': <cliente_txt>, 'ambiente_p44_txt': <ambiente_p44_txt> } {... other e...
[ "def", "list_all", "(", "self", ")", ":", "url", "=", "'environmentvip/all/'", "code", ",", "xml", "=", "self", ".", "submit", "(", "None", ",", "'GET'", ",", "url", ")", "key", "=", "'environment_vip'", "return", "get_list_map", "(", "self", ".", "respo...
List all environment vips :return: Following dictionary: :: {'environment_vip': [{'id': <id>, 'finalidade_txt': <finalidade_txt>, 'cliente_txt': <cliente_txt>, 'ambiente_p44_txt': <ambiente_p44_txt> } {... other environments vip ...}]} :raise D...
[ "List", "all", "environment", "vips" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L38-L60
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.list_all_available
def list_all_available(self, id_vlan): """ List all environment vips availables :return: Following dictionary: :: {'environment_vip': [{'id': <id>, 'finalidade_txt': <finalidade_txt>, 'cliente_txt': <cliente_txt>, 'ambiente_p44_txt': <am...
python
def list_all_available(self, id_vlan): """ List all environment vips availables :return: Following dictionary: :: {'environment_vip': [{'id': <id>, 'finalidade_txt': <finalidade_txt>, 'cliente_txt': <cliente_txt>, 'ambiente_p44_txt': <am...
[ "def", "list_all_available", "(", "self", ",", "id_vlan", ")", ":", "url", "=", "'environmentvip/search/'", "+", "str", "(", "id_vlan", ")", "code", ",", "xml", "=", "self", ".", "submit", "(", "None", ",", "'GET'", ",", "url", ")", "key", "=", "'envir...
List all environment vips availables :return: Following dictionary: :: {'environment_vip': [{'id': <id>, 'finalidade_txt': <finalidade_txt>, 'cliente_txt': <cliente_txt>, 'ambiente_p44_txt': <ambiente_p44_txt> } {... other environments vip ....
[ "List", "all", "environment", "vips", "availables" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L62-L86
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.add
def add(self, finalidade_txt, cliente_txt, ambiente_p44_txt, description): """Inserts a new Environment VIP and returns its identifier. :param finalidade_txt: Finality. String with a maximum of 50 characters and respect [a-zA-Z\_-] :param cliente_txt: ID Client. String with a maximum of 50 cha...
python
def add(self, finalidade_txt, cliente_txt, ambiente_p44_txt, description): """Inserts a new Environment VIP and returns its identifier. :param finalidade_txt: Finality. String with a maximum of 50 characters and respect [a-zA-Z\_-] :param cliente_txt: ID Client. String with a maximum of 50 cha...
[ "def", "add", "(", "self", ",", "finalidade_txt", ",", "cliente_txt", ",", "ambiente_p44_txt", ",", "description", ")", ":", "environmentvip_map", "=", "dict", "(", ")", "environmentvip_map", "[", "'finalidade_txt'", "]", "=", "finalidade_txt", "environmentvip_map",...
Inserts a new Environment VIP and returns its identifier. :param finalidade_txt: Finality. String with a maximum of 50 characters and respect [a-zA-Z\_-] :param cliente_txt: ID Client. String with a maximum of 50 characters and respect [a-zA-Z\_-] :param ambiente_p44_txt: Environment P44. Stri...
[ "Inserts", "a", "new", "Environment", "VIP", "and", "returns", "its", "identifier", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L88-L114
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.alter
def alter( self, id_environment_vip, finalidade_txt, cliente_txt, ambiente_p44_txt, description): """Change Environment VIP from by the identifier. :param id_environment_vip: Identifier of the Environment VIP. Integer value and gre...
python
def alter( self, id_environment_vip, finalidade_txt, cliente_txt, ambiente_p44_txt, description): """Change Environment VIP from by the identifier. :param id_environment_vip: Identifier of the Environment VIP. Integer value and gre...
[ "def", "alter", "(", "self", ",", "id_environment_vip", ",", "finalidade_txt", ",", "cliente_txt", ",", "ambiente_p44_txt", ",", "description", ")", ":", "if", "not", "is_valid_int_param", "(", "id_environment_vip", ")", ":", "raise", "InvalidParameterError", "(", ...
Change Environment VIP from by the identifier. :param id_environment_vip: Identifier of the Environment VIP. Integer value and greater than zero. :param finalidade_txt: Finality. String with a maximum of 50 characters and respect [a-zA-Z\_-] :param cliente_txt: ID Client. String with a maximum...
[ "Change", "Environment", "VIP", "from", "by", "the", "identifier", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L116-L154
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.remove
def remove(self, id_environment_vip): """Remove Environment VIP from by the identifier. :param id_environment_vip: Identifier of the Environment VIP. Integer value and greater than zero. :return: None :raise InvalidParameterError: Environment VIP identifier is null and invalid. ...
python
def remove(self, id_environment_vip): """Remove Environment VIP from by the identifier. :param id_environment_vip: Identifier of the Environment VIP. Integer value and greater than zero. :return: None :raise InvalidParameterError: Environment VIP identifier is null and invalid. ...
[ "def", "remove", "(", "self", ",", "id_environment_vip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_environment_vip", ")", ":", "raise", "InvalidParameterError", "(", "u'The identifier of Environment VIP is invalid or was not informed.'", ")", "url", "=", "'env...
Remove Environment VIP from by the identifier. :param id_environment_vip: Identifier of the Environment VIP. Integer value and greater than zero. :return: None :raise InvalidParameterError: Environment VIP identifier is null and invalid. :raise EnvironmentVipNotFoundError: Environment...
[ "Remove", "Environment", "VIP", "from", "by", "the", "identifier", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L156-L178
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.search
def search( self, id_environment_vip=None, finalidade_txt=None, cliente_txt=None, ambiente_p44_txt=None): """Search Environment VIP from by parameters. Case the id parameter has been passed, the same it has priority over the other parameters. ...
python
def search( self, id_environment_vip=None, finalidade_txt=None, cliente_txt=None, ambiente_p44_txt=None): """Search Environment VIP from by parameters. Case the id parameter has been passed, the same it has priority over the other parameters. ...
[ "def", "search", "(", "self", ",", "id_environment_vip", "=", "None", ",", "finalidade_txt", "=", "None", ",", "cliente_txt", "=", "None", ",", "ambiente_p44_txt", "=", "None", ")", ":", "environmentvip_map", "=", "dict", "(", ")", "environmentvip_map", "[", ...
Search Environment VIP from by parameters. Case the id parameter has been passed, the same it has priority over the other parameters. :param id_environment_vip: Identifier of the Environment VIP. Integer value and greater than zero. :param finalidade_txt: Finality. String with a maximum of 50 ...
[ "Search", "Environment", "VIP", "from", "by", "parameters", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L180-L220
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.buscar_finalidade
def buscar_finalidade(self): """Search finalidade_txt environment vip :return: Dictionary with the following structure: :: {‘finalidade’: ‘finalidade’: <'finalidade_txt'>} :raise DataBaseError: Networkapi failed to access the database. :raise XMLError: Networkapi ...
python
def buscar_finalidade(self): """Search finalidade_txt environment vip :return: Dictionary with the following structure: :: {‘finalidade’: ‘finalidade’: <'finalidade_txt'>} :raise DataBaseError: Networkapi failed to access the database. :raise XMLError: Networkapi ...
[ "def", "buscar_finalidade", "(", "self", ")", ":", "url", "=", "'environment-vip/get/finality'", "code", ",", "xml", "=", "self", ".", "submit", "(", "None", ",", "'GET'", ",", "url", ")", "return", "self", ".", "response", "(", "code", ",", "xml", ")" ]
Search finalidade_txt environment vip :return: Dictionary with the following structure: :: {‘finalidade’: ‘finalidade’: <'finalidade_txt'>} :raise DataBaseError: Networkapi failed to access the database. :raise XMLError: Networkapi failed to generate the XML response.
[ "Search", "finalidade_txt", "environment", "vip" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L271-L287
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.buscar_cliente_por_finalidade
def buscar_cliente_por_finalidade(self, finalidade_txt): """Search cliente_txt environment vip :return: Dictionary with the following structure: :: {‘cliente_txt’: ‘finalidade’: <'finalidade_txt'>, 'cliente_txt: <'cliente_txt'>'} :raise InvalidPara...
python
def buscar_cliente_por_finalidade(self, finalidade_txt): """Search cliente_txt environment vip :return: Dictionary with the following structure: :: {‘cliente_txt’: ‘finalidade’: <'finalidade_txt'>, 'cliente_txt: <'cliente_txt'>'} :raise InvalidPara...
[ "def", "buscar_cliente_por_finalidade", "(", "self", ",", "finalidade_txt", ")", ":", "vip_map", "=", "dict", "(", ")", "vip_map", "[", "'finalidade_txt'", "]", "=", "finalidade_txt", "url", "=", "'environment-vip/get/cliente_txt/'", "code", ",", "xml", "=", "self...
Search cliente_txt environment vip :return: Dictionary with the following structure: :: {‘cliente_txt’: ‘finalidade’: <'finalidade_txt'>, 'cliente_txt: <'cliente_txt'>'} :raise InvalidParameterError: finalidade_txt is null and invalid. :raise DataB...
[ "Search", "cliente_txt", "environment", "vip" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L289-L312
train
globocom/GloboNetworkAPI-client-python
networkapiclient/EnvironmentVIP.py
EnvironmentVIP.buscar_ambientep44_por_finalidade_cliente
def buscar_ambientep44_por_finalidade_cliente( self, finalidade_txt, cliente_txt): """Search ambiente_p44_txt environment vip :return: Dictionary with the following structure: :: {‘ambiente_p44_txt’: 'id':<'id_ambientevip'>, ...
python
def buscar_ambientep44_por_finalidade_cliente( self, finalidade_txt, cliente_txt): """Search ambiente_p44_txt environment vip :return: Dictionary with the following structure: :: {‘ambiente_p44_txt’: 'id':<'id_ambientevip'>, ...
[ "def", "buscar_ambientep44_por_finalidade_cliente", "(", "self", ",", "finalidade_txt", ",", "cliente_txt", ")", ":", "vip_map", "=", "dict", "(", ")", "vip_map", "[", "'finalidade_txt'", "]", "=", "finalidade_txt", "vip_map", "[", "'cliente_txt'", "]", "=", "clie...
Search ambiente_p44_txt environment vip :return: Dictionary with the following structure: :: {‘ambiente_p44_txt’: 'id':<'id_ambientevip'>, ‘finalidade’: <'finalidade_txt'>, 'cliente_txt: <'cliente_txt'>', 'ambiente_p44: <'ambiente_p44'>',} ...
[ "Search", "ambiente_p44_txt", "environment", "vip" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/EnvironmentVIP.py#L314-L343
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiEnvironmentVip.py
ApiEnvironmentVip.environmentvip_step
def environmentvip_step(self, finality='', client='', environmentp44=''): """ List finality, client or environment vip list. Param finality: finality of environment(optional) Param client: client of environment(optional) Param environmentp44: environmentp44(optional) Retu...
python
def environmentvip_step(self, finality='', client='', environmentp44=''): """ List finality, client or environment vip list. Param finality: finality of environment(optional) Param client: client of environment(optional) Param environmentp44: environmentp44(optional) Retu...
[ "def", "environmentvip_step", "(", "self", ",", "finality", "=", "''", ",", "client", "=", "''", ",", "environmentp44", "=", "''", ")", ":", "uri", "=", "'api/v3/environment-vip/step/?finality=%s&client=%s&environmentp44=%s'", "%", "(", "finality", ",", "client", ...
List finality, client or environment vip list. Param finality: finality of environment(optional) Param client: client of environment(optional) Param environmentp44: environmentp44(optional) Return finality list: when request has no finality and client. Return client list: when re...
[ "List", "finality", "client", "or", "environment", "vip", "list", ".", "Param", "finality", ":", "finality", "of", "environment", "(", "optional", ")", "Param", "client", ":", "client", "of", "environment", "(", "optional", ")", "Param", "environmentp44", ":",...
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiEnvironmentVip.py#L46-L62
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiEnvironmentVip.py
ApiEnvironmentVip.search
def search(self, **kwargs): """ Method to search environments vip based on extends search. :param search: Dict containing QuerySets to find environments vip. :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on res...
python
def search(self, **kwargs): """ Method to search environments vip based on extends search. :param search: Dict containing QuerySets to find environments vip. :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on res...
[ "def", "search", "(", "self", ",", "*", "*", "kwargs", ")", ":", "return", "super", "(", "ApiEnvironmentVip", ",", "self", ")", ".", "get", "(", "self", ".", "prepare_url", "(", "'api/v3/environment-vip/'", ",", "kwargs", ")", ")" ]
Method to search environments vip based on extends search. :param search: Dict containing QuerySets to find environments vip. :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on response. :param fields: Array containing f...
[ "Method", "to", "search", "environments", "vip", "based", "on", "extends", "search", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiEnvironmentVip.py#L64-L78
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiEnvironmentVip.py
ApiEnvironmentVip.get
def get(self, ids, **kwargs): """ Method to get environments vip by their ids :param ids: List containing identifiers of environments vip :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on response. :para...
python
def get(self, ids, **kwargs): """ Method to get environments vip by their ids :param ids: List containing identifiers of environments vip :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on response. :para...
[ "def", "get", "(", "self", ",", "ids", ",", "*", "*", "kwargs", ")", ":", "uri", "=", "build_uri_with_ids", "(", "'api/v3/environment-vip/%s/'", ",", "ids", ")", "return", "super", "(", "ApiEnvironmentVip", ",", "self", ")", ".", "get", "(", "self", ".",...
Method to get environments vip by their ids :param ids: List containing identifiers of environments vip :param include: Array containing fields to include on response. :param exclude: Array containing fields to exclude on response. :param fields: Array containing fields to override defa...
[ "Method", "to", "get", "environments", "vip", "by", "their", "ids" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiEnvironmentVip.py#L80-L94
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiEnvironmentVip.py
ApiEnvironmentVip.delete
def delete(self, ids): """ Method to delete environments vip by their id's. :param ids: Identifiers of environments vip :return: None """ url = build_uri_with_ids('api/v3/environment-vip/%s/', ids) return super(ApiEnvironmentVip, self).delete(url)
python
def delete(self, ids): """ Method to delete environments vip by their id's. :param ids: Identifiers of environments vip :return: None """ url = build_uri_with_ids('api/v3/environment-vip/%s/', ids) return super(ApiEnvironmentVip, self).delete(url)
[ "def", "delete", "(", "self", ",", "ids", ")", ":", "url", "=", "build_uri_with_ids", "(", "'api/v3/environment-vip/%s/'", ",", "ids", ")", "return", "super", "(", "ApiEnvironmentVip", ",", "self", ")", ".", "delete", "(", "url", ")" ]
Method to delete environments vip by their id's. :param ids: Identifiers of environments vip :return: None
[ "Method", "to", "delete", "environments", "vip", "by", "their", "id", "s", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiEnvironmentVip.py#L96-L104
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiEnvironmentVip.py
ApiEnvironmentVip.update
def update(self, environments): """ Method to update environments vip :param environments vip: List containing environments vip desired to updated :return: None """ data = {'environments_vip': environments} environments_ids = [st...
python
def update(self, environments): """ Method to update environments vip :param environments vip: List containing environments vip desired to updated :return: None """ data = {'environments_vip': environments} environments_ids = [st...
[ "def", "update", "(", "self", ",", "environments", ")", ":", "data", "=", "{", "'environments_vip'", ":", "environments", "}", "environments_ids", "=", "[", "str", "(", "env", ".", "get", "(", "'id'", ")", ")", "for", "env", "in", "environments", "]", ...
Method to update environments vip :param environments vip: List containing environments vip desired to updated :return: None
[ "Method", "to", "update", "environments", "vip" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiEnvironmentVip.py#L106-L119
train
globocom/GloboNetworkAPI-client-python
networkapiclient/ApiEnvironmentVip.py
ApiEnvironmentVip.create
def create(self, environments): """ Method to create environments vip :param environments vip: Dict containing environments vip desired to be created on database :return: None """ data = {'environments_vip': environments} uri = '...
python
def create(self, environments): """ Method to create environments vip :param environments vip: Dict containing environments vip desired to be created on database :return: None """ data = {'environments_vip': environments} uri = '...
[ "def", "create", "(", "self", ",", "environments", ")", ":", "data", "=", "{", "'environments_vip'", ":", "environments", "}", "uri", "=", "'api/v3/environment-vip/'", "return", "super", "(", "ApiEnvironmentVip", ",", "self", ")", ".", "post", "(", "uri", ",...
Method to create environments vip :param environments vip: Dict containing environments vip desired to be created on database :return: None
[ "Method", "to", "create", "environments", "vip" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/ApiEnvironmentVip.py#L121-L132
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.get_ipv4
def get_ipv4(self, id_ip): """Get IPv4 by id. :param id_ip: ID of IPv4. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'networkipv4': < networkipv4 >, 'oct4': < oct4 >, 'oct3': < oct3 >, 'oct2': <...
python
def get_ipv4(self, id_ip): """Get IPv4 by id. :param id_ip: ID of IPv4. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'networkipv4': < networkipv4 >, 'oct4': < oct4 >, 'oct3': < oct3 >, 'oct2': <...
[ "def", "get_ipv4", "(", "self", ",", "id_ip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'The IPv4 identifier is invalid or was not informed.'", ")", "url", "=", "'ip/get-ipv4/'", "+", "str", "(", ...
Get IPv4 by id. :param id_ip: ID of IPv4. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'networkipv4': < networkipv4 >, 'oct4': < oct4 >, 'oct3': < oct3 >, 'oct2': < oct2 >, 'oct1': < oct1 >,...
[ "Get", "IPv4", "by", "id", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L32-L65
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.get_ipv6
def get_ipv6(self, id_ip): """Get IPv6 by id. :param id_ip: ID of IPv6. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'networkipv6': < networkipv6 >, 'block1': < block1 >, 'block2': < block2 >, '...
python
def get_ipv6(self, id_ip): """Get IPv6 by id. :param id_ip: ID of IPv6. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'networkipv6': < networkipv6 >, 'block1': < block1 >, 'block2': < block2 >, '...
[ "def", "get_ipv6", "(", "self", ",", "id_ip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'The IPv6 identifier is invalid or was not informed.'", ")", "url", "=", "'ip/get-ipv6/'", "+", "str", "(", ...
Get IPv6 by id. :param id_ip: ID of IPv6. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'networkipv6': < networkipv6 >, 'block1': < block1 >, 'block2': < block2 >, 'block3': < block3 >, 'bloc...
[ "Get", "IPv6", "by", "id", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L67-L104
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.buscar_por_ip_ambiente
def buscar_por_ip_ambiente(self, ip, id_environment): """Get IP with an associated environment. :param ip: IP address in the format x1.x2.x3.x4. :param id_environment: Identifier of the environment. Integer value and greater than zero. :return: Dictionary with the following structure: ...
python
def buscar_por_ip_ambiente(self, ip, id_environment): """Get IP with an associated environment. :param ip: IP address in the format x1.x2.x3.x4. :param id_environment: Identifier of the environment. Integer value and greater than zero. :return: Dictionary with the following structure: ...
[ "def", "buscar_por_ip_ambiente", "(", "self", ",", "ip", ",", "id_environment", ")", ":", "if", "not", "is_valid_int_param", "(", "id_environment", ")", ":", "raise", "InvalidParameterError", "(", "u'Environment identifier is invalid or was not informed.'", ")", "if", "...
Get IP with an associated environment. :param ip: IP address in the format x1.x2.x3.x4. :param id_environment: Identifier of the environment. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'id_vl...
[ "Get", "IP", "with", "an", "associated", "environment", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L106-L140
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.get_available_ip4
def get_available_ip4(self, id_network): """ Get a available IP in the network ipv4 :param id_network: Network identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'ip': < available_ip >}} :raise Ip...
python
def get_available_ip4(self, id_network): """ Get a available IP in the network ipv4 :param id_network: Network identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'ip': < available_ip >}} :raise Ip...
[ "def", "get_available_ip4", "(", "self", ",", "id_network", ")", ":", "if", "not", "is_valid_int_param", "(", "id_network", ")", ":", "raise", "InvalidParameterError", "(", "u'Network identifier is invalid or was not informed.'", ")", "url", "=", "'ip/availableip4/'", "...
Get a available IP in the network ipv4 :param id_network: Network identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'ip': < available_ip >}} :raise IpNotAvailableError: Network dont have available IP for insert ...
[ "Get", "a", "available", "IP", "in", "the", "network", "ipv4" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L142-L170
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.get_ip_by_equip_and_vip
def get_ip_by_equip_and_vip(self, equip_name, id_evip): """ Get a available IP in the Equipment related Environment VIP :param equip_name: Equipment Name. :param id_evip: Vip environment identifier. Integer value and greater than zero. :return: Dictionary with the following str...
python
def get_ip_by_equip_and_vip(self, equip_name, id_evip): """ Get a available IP in the Equipment related Environment VIP :param equip_name: Equipment Name. :param id_evip: Vip environment identifier. Integer value and greater than zero. :return: Dictionary with the following str...
[ "def", "get_ip_by_equip_and_vip", "(", "self", ",", "equip_name", ",", "id_evip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_evip", ")", ":", "raise", "InvalidParameterError", "(", "u'Vip environment is invalid or was not informed.'", ")", "ip_map", "=", "d...
Get a available IP in the Equipment related Environment VIP :param equip_name: Equipment Name. :param id_evip: Vip environment identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: { 'ipv4': [ {'id': < id >, 'ip': < ip >, 'n...
[ "Get", "a", "available", "IP", "in", "the", "Equipment", "related", "Environment", "VIP" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L172-L206
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.get_ipv4_or_ipv6
def get_ipv4_or_ipv6(self, ip): """ Get a Ipv4 or Ipv6 by IP :param ip: IPv4 or Ipv6. 'xxx.xxx.xxx.xxx or xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx' :return: Dictionary with the following structure: :: {'ips': [{'oct4': < oct4 >, 'oct2': < oct2 >, 'oct3': < oct3 >, ...
python
def get_ipv4_or_ipv6(self, ip): """ Get a Ipv4 or Ipv6 by IP :param ip: IPv4 or Ipv6. 'xxx.xxx.xxx.xxx or xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx' :return: Dictionary with the following structure: :: {'ips': [{'oct4': < oct4 >, 'oct2': < oct2 >, 'oct3': < oct3 >, ...
[ "def", "get_ipv4_or_ipv6", "(", "self", ",", "ip", ")", ":", "ip_map", "=", "dict", "(", ")", "ip_map", "[", "'ip'", "]", "=", "ip", "url", "=", "\"ip/getbyoctblock/\"", "code", ",", "xml", "=", "self", ".", "submit", "(", "{", "'ip_map'", ":", "ip_m...
Get a Ipv4 or Ipv6 by IP :param ip: IPv4 or Ipv6. 'xxx.xxx.xxx.xxx or xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx' :return: Dictionary with the following structure: :: {'ips': [{'oct4': < oct4 >, 'oct2': < oct2 >, 'oct3': < oct3 >, 'oct1': < oct1 >, 'version': < version >...
[ "Get", "a", "Ipv4", "or", "Ipv6", "by", "IP" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L208-L239
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.check_vip_ip
def check_vip_ip(self, ip, id_evip): """ Get a Ipv4 or Ipv6 for Vip request :param ip: IPv4 or Ipv6. 'xxx.xxx.xxx.xxx or xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx' :return: Dictionary with the following structure: :: {'ip': {'ip': < ip - octs for ipv4, blocks for ip...
python
def check_vip_ip(self, ip, id_evip): """ Get a Ipv4 or Ipv6 for Vip request :param ip: IPv4 or Ipv6. 'xxx.xxx.xxx.xxx or xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx' :return: Dictionary with the following structure: :: {'ip': {'ip': < ip - octs for ipv4, blocks for ip...
[ "def", "check_vip_ip", "(", "self", ",", "ip", ",", "id_evip", ")", ":", "ip_map", "=", "dict", "(", ")", "ip_map", "[", "'ip'", "]", "=", "ip", "ip_map", "[", "'id_evip'", "]", "=", "id_evip", "url", "=", "\"ip/checkvipip/\"", "code", ",", "xml", "=...
Get a Ipv4 or Ipv6 for Vip request :param ip: IPv4 or Ipv6. 'xxx.xxx.xxx.xxx or xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx' :return: Dictionary with the following structure: :: {'ip': {'ip': < ip - octs for ipv4, blocks for ipv6 - >, 'id': <id>, 'network4 or ...
[ "Get", "a", "Ipv4", "or", "Ipv6", "for", "Vip", "request" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L241-L273
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.get_available_ip6
def get_available_ip6(self, id_network6): """ Get a available IP in Network ipv6 :param id_network6: Network ipv6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip6': {'ip6': < available_ip6 >}} :ra...
python
def get_available_ip6(self, id_network6): """ Get a available IP in Network ipv6 :param id_network6: Network ipv6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip6': {'ip6': < available_ip6 >}} :ra...
[ "def", "get_available_ip6", "(", "self", ",", "id_network6", ")", ":", "if", "not", "is_valid_int_param", "(", "id_network6", ")", ":", "raise", "InvalidParameterError", "(", "u'Network ipv6 identifier is invalid or was not informed.'", ")", "url", "=", "'ip/availableip6/...
Get a available IP in Network ipv6 :param id_network6: Network ipv6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip6': {'ip6': < available_ip6 >}} :raise IpNotAvailableError: Network dont have available IP. ...
[ "Get", "a", "available", "IP", "in", "Network", "ipv6" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L275-L304
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.get_available_ip6_for_vip
def get_available_ip6_for_vip(self, id_evip, name): """ Get and save a available IP in the network ipv6 for vip request :param id_evip: Vip environment identifier. Integer value and greater than zero. :param name: Ip description :return: Dictionary with the following structure:...
python
def get_available_ip6_for_vip(self, id_evip, name): """ Get and save a available IP in the network ipv6 for vip request :param id_evip: Vip environment identifier. Integer value and greater than zero. :param name: Ip description :return: Dictionary with the following structure:...
[ "def", "get_available_ip6_for_vip", "(", "self", ",", "id_evip", ",", "name", ")", ":", "if", "not", "is_valid_int_param", "(", "id_evip", ")", ":", "raise", "InvalidParameterError", "(", "u'Vip environment identifier is invalid or was not informed.'", ")", "url", "=", ...
Get and save a available IP in the network ipv6 for vip request :param id_evip: Vip environment identifier. Integer value and greater than zero. :param name: Ip description :return: Dictionary with the following structure: :: {'ip': {'bloco1':<bloco1>, 'bloco2...
[ "Get", "and", "save", "a", "available", "IP", "in", "the", "network", "ipv6", "for", "vip", "request" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L306-L350
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.edit_ipv4
def edit_ipv4(self, ip4, descricao, id_ip): """ Edit a IP4 :param ip4: An IP4 available to save in format x.x.x.x. :param id_ip: IP identifier. Integer value and greater than zero. :param descricao: IP description. :return: None """ if not is_valid_int_...
python
def edit_ipv4(self, ip4, descricao, id_ip): """ Edit a IP4 :param ip4: An IP4 available to save in format x.x.x.x. :param id_ip: IP identifier. Integer value and greater than zero. :param descricao: IP description. :return: None """ if not is_valid_int_...
[ "def", "edit_ipv4", "(", "self", ",", "ip4", ",", "descricao", ",", "id_ip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'Ip identifier is invalid or was not informed.'", ")", "if", "ip4", "is", "...
Edit a IP4 :param ip4: An IP4 available to save in format x.x.x.x. :param id_ip: IP identifier. Integer value and greater than zero. :param descricao: IP description. :return: None
[ "Edit", "a", "IP4" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L395-L423
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.save_ipv4
def save_ipv4(self, ip4, id_equip, descricao, id_net): """ Save a IP4 and associate with equipment :param ip4: An IP4 available to save in format x.x.x.x. :param id_equip: Equipment identifier. Integer value and greater than zero. :param descricao: IP description. :param...
python
def save_ipv4(self, ip4, id_equip, descricao, id_net): """ Save a IP4 and associate with equipment :param ip4: An IP4 available to save in format x.x.x.x. :param id_equip: Equipment identifier. Integer value and greater than zero. :param descricao: IP description. :param...
[ "def", "save_ipv4", "(", "self", ",", "ip4", ",", "id_equip", ",", "descricao", ",", "id_net", ")", ":", "if", "not", "is_valid_int_param", "(", "id_net", ")", ":", "raise", "InvalidParameterError", "(", "u'Network identifier is invalid or was not informed.'", ")", ...
Save a IP4 and associate with equipment :param ip4: An IP4 available to save in format x.x.x.x. :param id_equip: Equipment identifier. Integer value and greater than zero. :param descricao: IP description. :param id_net: Network identifier. Integer value and greater than zero. ...
[ "Save", "a", "IP4", "and", "associate", "with", "equipment" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L425-L467
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.edit_ipv6
def edit_ipv6(self, ip6, descricao, id_ip): """ Edit a IP6 :param ip6: An IP6 available to save in format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. :param descricao: IP description. :param id_ip: Ipv6 identifier. Integer value and greater than zero. :return: None ...
python
def edit_ipv6(self, ip6, descricao, id_ip): """ Edit a IP6 :param ip6: An IP6 available to save in format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. :param descricao: IP description. :param id_ip: Ipv6 identifier. Integer value and greater than zero. :return: None ...
[ "def", "edit_ipv6", "(", "self", ",", "ip6", ",", "descricao", ",", "id_ip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'Ipv6 identifier is invalid or was not informed.'", ")", "if", "ip6", "is", ...
Edit a IP6 :param ip6: An IP6 available to save in format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. :param descricao: IP description. :param id_ip: Ipv6 identifier. Integer value and greater than zero. :return: None
[ "Edit", "a", "IP6" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L469-L496
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.find_ip4_by_id
def find_ip4_by_id(self, id_ip): """ Get an IP by ID :param id_ip: IP identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: { ips { id: <id_ip4>, oct1: <oct1>, oct2: <oct2>, oct3: ...
python
def find_ip4_by_id(self, id_ip): """ Get an IP by ID :param id_ip: IP identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: { ips { id: <id_ip4>, oct1: <oct1>, oct2: <oct2>, oct3: ...
[ "def", "find_ip4_by_id", "(", "self", ",", "id_ip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'Ip identifier is invalid or was not informed.'", ")", "url", "=", "'ip/get/'", "+", "str", "(", "id_i...
Get an IP by ID :param id_ip: IP identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: { ips { id: <id_ip4>, oct1: <oct1>, oct2: <oct2>, oct3: <oct3>, oct4: <oct4>, equipam...
[ "Get", "an", "IP", "by", "ID" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L498-L533
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.find_ips_by_equip
def find_ips_by_equip(self, id_equip): """ Get Ips related to equipment by its identifier :param id_equip: Equipment identifier. Integer value and greater than zero. :return: Dictionary with the following structure: { ips: { ipv4:[ id: <id_ip4>, oct...
python
def find_ips_by_equip(self, id_equip): """ Get Ips related to equipment by its identifier :param id_equip: Equipment identifier. Integer value and greater than zero. :return: Dictionary with the following structure: { ips: { ipv4:[ id: <id_ip4>, oct...
[ "def", "find_ips_by_equip", "(", "self", ",", "id_equip", ")", ":", "url", "=", "'ip/getbyequip/'", "+", "str", "(", "id_equip", ")", "+", "\"/\"", "code", ",", "xml", "=", "self", ".", "submit", "(", "None", ",", "'GET'", ",", "url", ")", "return", ...
Get Ips related to equipment by its identifier :param id_equip: Equipment identifier. Integer value and greater than zero. :return: Dictionary with the following structure: { ips: { ipv4:[ id: <id_ip4>, oct1: <oct1>, oct2: <oct2>, oct3: <oct...
[ "Get", "Ips", "related", "to", "equipment", "by", "its", "identifier" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L535-L572
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.find_ip6_by_id
def find_ip6_by_id(self, id_ip): """ Get an IP6 by ID :param id_ip: IP6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'block1': <block1>, 'block2': <block2>, ...
python
def find_ip6_by_id(self, id_ip): """ Get an IP6 by ID :param id_ip: IP6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'block1': <block1>, 'block2': <block2>, ...
[ "def", "find_ip6_by_id", "(", "self", ",", "id_ip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'Ipv6 identifier is invalid or was not informed.'", ")", "url", "=", "'ipv6/get/'", "+", "str", "(", "...
Get an IP6 by ID :param id_ip: IP6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'block1': <block1>, 'block2': <block2>, 'block3': <block3>, 'block4': <bl...
[ "Get", "an", "IP6", "by", "ID" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L574-L614
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.save_ipv6
def save_ipv6(self, ip6, id_equip, descricao, id_net): """ Save an IP6 and associate with equipment :param ip6: An IP6 available to save in format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. :param id_equip: Equipment identifier. Integer value and greater than zero. :param descrica...
python
def save_ipv6(self, ip6, id_equip, descricao, id_net): """ Save an IP6 and associate with equipment :param ip6: An IP6 available to save in format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. :param id_equip: Equipment identifier. Integer value and greater than zero. :param descrica...
[ "def", "save_ipv6", "(", "self", ",", "ip6", ",", "id_equip", ",", "descricao", ",", "id_net", ")", ":", "if", "not", "is_valid_int_param", "(", "id_net", ")", ":", "raise", "InvalidParameterError", "(", "u'Network identifier is invalid or was not informed.'", ")", ...
Save an IP6 and associate with equipment :param ip6: An IP6 available to save in format xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. :param id_equip: Equipment identifier. Integer value and greater than zero. :param descricao: IPv6 description. :param id_net: Network identifier. Integer val...
[ "Save", "an", "IP6", "and", "associate", "with", "equipment" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L616-L663
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.delete_ip4
def delete_ip4(self, id_ip): """ Delete an IP4 :param id_ip: Ipv4 identifier. Integer value and greater than zero. :return: None :raise IpNotFoundError: IP is not registered. :raise DataBaseError: Networkapi failed to access the database. """ if not i...
python
def delete_ip4(self, id_ip): """ Delete an IP4 :param id_ip: Ipv4 identifier. Integer value and greater than zero. :return: None :raise IpNotFoundError: IP is not registered. :raise DataBaseError: Networkapi failed to access the database. """ if not i...
[ "def", "delete_ip4", "(", "self", ",", "id_ip", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'Ipv4 identifier is invalid or was not informed.'", ")", "url", "=", "'ip4/delete/'", "+", "str", "(", "id...
Delete an IP4 :param id_ip: Ipv4 identifier. Integer value and greater than zero. :return: None :raise IpNotFoundError: IP is not registered. :raise DataBaseError: Networkapi failed to access the database.
[ "Delete", "an", "IP4" ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L665-L684
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.find_ip6_by_network
def find_ip6_by_network(self, id_network): """List IPv6 from network. :param id_network: Network ipv6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'id_vlan': < id_vlan >, ...
python
def find_ip6_by_network(self, id_network): """List IPv6 from network. :param id_network: Network ipv6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'id_vlan': < id_vlan >, ...
[ "def", "find_ip6_by_network", "(", "self", ",", "id_network", ")", ":", "if", "not", "is_valid_int_param", "(", "id_network", ")", ":", "raise", "InvalidParameterError", "(", "u'Network identifier is invalid or was not informed.'", ")", "url", "=", "'ip/id_network_ipv6/'"...
List IPv6 from network. :param id_network: Network ipv6 identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ip': {'id': < id >, 'id_vlan': < id_vlan >, 'block1': <block1>, 'block2': <block2>, ...
[ "List", "IPv6", "from", "network", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L743-L779
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.search_ipv6_environment
def search_ipv6_environment(self, ipv6, id_environment): """Get IPv6 with an associated environment. :param ipv6: IPv6 address in the format x1:x2:x3:x4:x5:x6:x7:x8. :param id_environment: Environment identifier. Integer value and greater than zero. :return: Dictionary with the followi...
python
def search_ipv6_environment(self, ipv6, id_environment): """Get IPv6 with an associated environment. :param ipv6: IPv6 address in the format x1:x2:x3:x4:x5:x6:x7:x8. :param id_environment: Environment identifier. Integer value and greater than zero. :return: Dictionary with the followi...
[ "def", "search_ipv6_environment", "(", "self", ",", "ipv6", ",", "id_environment", ")", ":", "if", "not", "is_valid_int_param", "(", "id_environment", ")", ":", "raise", "InvalidParameterError", "(", "u'Environment identifier is invalid or was not informed.'", ")", "ipv6_...
Get IPv6 with an associated environment. :param ipv6: IPv6 address in the format x1:x2:x3:x4:x5:x6:x7:x8. :param id_environment: Environment identifier. Integer value and greater than zero. :return: Dictionary with the following structure: :: {'ipv6': {'id': < id >, ...
[ "Get", "IPv6", "with", "an", "associated", "environment", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L781-L822
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.assoc_ipv4
def assoc_ipv4(self, id_ip, id_equip, id_net): """ Associate an IP4 with equipment. :param id_ip: IPv4 identifier. :param id_equip: Equipment identifier. Integer value and greater than zero. :param id_net: Network identifier. Integer value and greater than zero. :return...
python
def assoc_ipv4(self, id_ip, id_equip, id_net): """ Associate an IP4 with equipment. :param id_ip: IPv4 identifier. :param id_equip: Equipment identifier. Integer value and greater than zero. :param id_net: Network identifier. Integer value and greater than zero. :return...
[ "def", "assoc_ipv4", "(", "self", ",", "id_ip", ",", "id_equip", ",", "id_net", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'Ip identifier is invalid or was not informed.'", ")", "if", "not", "is_va...
Associate an IP4 with equipment. :param id_ip: IPv4 identifier. :param id_equip: Equipment identifier. Integer value and greater than zero. :param id_net: Network identifier. Integer value and greater than zero. :return: None :raise InvalidParameterError: IPv4, Equipment or Ne...
[ "Associate", "an", "IP4", "with", "equipment", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L824-L860
train
globocom/GloboNetworkAPI-client-python
networkapiclient/Ip.py
Ip.assoc_ipv6
def assoc_ipv6(self, id_ip, id_equip, id_net): """ Associate an IP6 with equipment. :param id_ip: IPv6 identifier. :param id_equip: Equipment identifier. Integer value and greater than zero. :param id_net: Network identifier. Integer value and greater than zero. :return...
python
def assoc_ipv6(self, id_ip, id_equip, id_net): """ Associate an IP6 with equipment. :param id_ip: IPv6 identifier. :param id_equip: Equipment identifier. Integer value and greater than zero. :param id_net: Network identifier. Integer value and greater than zero. :return...
[ "def", "assoc_ipv6", "(", "self", ",", "id_ip", ",", "id_equip", ",", "id_net", ")", ":", "if", "not", "is_valid_int_param", "(", "id_ip", ")", ":", "raise", "InvalidParameterError", "(", "u'Ipv6 identifier is invalid or was not informed.'", ")", "if", "not", "is_...
Associate an IP6 with equipment. :param id_ip: IPv6 identifier. :param id_equip: Equipment identifier. Integer value and greater than zero. :param id_net: Network identifier. Integer value and greater than zero. :return: None :raise InvalidParameterError: IPv6, Equipment or Ne...
[ "Associate", "an", "IP6", "with", "equipment", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/Ip.py#L862-L898
train
globocom/GloboNetworkAPI-client-python
networkapiclient/TipoRede.py
TipoRede.listar
def listar(self): """List all network types. :return: Following dictionary: :: {'net_type': [{'id': < id_tipo_rede >, 'name': < nome_tipo_rede >}, ... other network types ...]} :raise DataBaseError: Networkapi failed to access the database. :raise XMLE...
python
def listar(self): """List all network types. :return: Following dictionary: :: {'net_type': [{'id': < id_tipo_rede >, 'name': < nome_tipo_rede >}, ... other network types ...]} :raise DataBaseError: Networkapi failed to access the database. :raise XMLE...
[ "def", "listar", "(", "self", ")", ":", "code", ",", "xml", "=", "self", ".", "submit", "(", "None", ",", "'GET'", ",", "'net_type/'", ")", "key", "=", "'net_type'", "return", "get_list_map", "(", "self", ".", "response", "(", "code", ",", "xml", ","...
List all network types. :return: Following dictionary: :: {'net_type': [{'id': < id_tipo_rede >, 'name': < nome_tipo_rede >}, ... other network types ...]} :raise DataBaseError: Networkapi failed to access the database. :raise XMLError: Networkapi failed to ge...
[ "List", "all", "network", "types", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/TipoRede.py#L38-L55
train
globocom/GloboNetworkAPI-client-python
networkapiclient/TipoRede.py
TipoRede.inserir
def inserir(self, name): """Insert new network type and return its identifier. :param name: Network type name. :return: Following dictionary: {'net_type': {'id': < id >}} :raise InvalidParameterError: Network type is none or invalid. :raise NomeTipoRedeDuplicadoError: A networ...
python
def inserir(self, name): """Insert new network type and return its identifier. :param name: Network type name. :return: Following dictionary: {'net_type': {'id': < id >}} :raise InvalidParameterError: Network type is none or invalid. :raise NomeTipoRedeDuplicadoError: A networ...
[ "def", "inserir", "(", "self", ",", "name", ")", ":", "net_type_map", "=", "dict", "(", ")", "net_type_map", "[", "'name'", "]", "=", "name", "code", ",", "xml", "=", "self", ".", "submit", "(", "{", "'net_type'", ":", "net_type_map", "}", ",", "'POS...
Insert new network type and return its identifier. :param name: Network type name. :return: Following dictionary: {'net_type': {'id': < id >}} :raise InvalidParameterError: Network type is none or invalid. :raise NomeTipoRedeDuplicadoError: A network type with this name already exists...
[ "Insert", "new", "network", "type", "and", "return", "its", "identifier", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/TipoRede.py#L57-L76
train
globocom/GloboNetworkAPI-client-python
networkapiclient/TipoRede.py
TipoRede.alterar
def alterar(self, id_net_type, name): """Edit network type by its identifier. :param id_net_type: Network type identifier. :param name: Network type name. :return: None :raise InvalidParameterError: Network type identifier and/or name is(are) none or invalid. :raise Ti...
python
def alterar(self, id_net_type, name): """Edit network type by its identifier. :param id_net_type: Network type identifier. :param name: Network type name. :return: None :raise InvalidParameterError: Network type identifier and/or name is(are) none or invalid. :raise Ti...
[ "def", "alterar", "(", "self", ",", "id_net_type", ",", "name", ")", ":", "if", "not", "is_valid_int_param", "(", "id_net_type", ")", ":", "raise", "InvalidParameterError", "(", "u'Network type is invalid or was not informed.'", ")", "url", "=", "'net_type/'", "+", ...
Edit network type by its identifier. :param id_net_type: Network type identifier. :param name: Network type name. :return: None :raise InvalidParameterError: Network type identifier and/or name is(are) none or invalid. :raise TipoRedeNaoExisteError: Network type does not exist...
[ "Edit", "network", "type", "by", "its", "identifier", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/TipoRede.py#L78-L104
train
globocom/GloboNetworkAPI-client-python
networkapiclient/TipoRede.py
TipoRede.remover
def remover(self, id_net_type): """Remove network type by its identifier. :param id_net_type: Network type identifier. :return: None :raise TipoRedeNaoExisteError: Network type does not exist. :raise TipoRedeError: Network type is associated with network. :raise Invali...
python
def remover(self, id_net_type): """Remove network type by its identifier. :param id_net_type: Network type identifier. :return: None :raise TipoRedeNaoExisteError: Network type does not exist. :raise TipoRedeError: Network type is associated with network. :raise Invali...
[ "def", "remover", "(", "self", ",", "id_net_type", ")", ":", "if", "not", "is_valid_int_param", "(", "id_net_type", ")", ":", "raise", "InvalidParameterError", "(", "u'Network type is invalid or was not informed.'", ")", "url", "=", "'net_type/'", "+", "str", "(", ...
Remove network type by its identifier. :param id_net_type: Network type identifier. :return: None :raise TipoRedeNaoExisteError: Network type does not exist. :raise TipoRedeError: Network type is associated with network. :raise InvalidParameterError: Network type is none or in...
[ "Remove", "network", "type", "by", "its", "identifier", "." ]
cf34f913da48d9abbf750114f5d2ac4b2dde137d
https://github.com/globocom/GloboNetworkAPI-client-python/blob/cf34f913da48d9abbf750114f5d2ac4b2dde137d/networkapiclient/TipoRede.py#L106-L127
train
thautwarm/RBNF
rbnf/cli.py
cc
def cc(filename: 'input source file', output: 'output file name. default to be replacing input file\'s suffix with ".py"' = None, name: 'name of language' = 'unname'): """ rbnf source code compiler. """ lang = Language(name) with Path(filename).open('r') as fr: build_l...
python
def cc(filename: 'input source file', output: 'output file name. default to be replacing input file\'s suffix with ".py"' = None, name: 'name of language' = 'unname'): """ rbnf source code compiler. """ lang = Language(name) with Path(filename).open('r') as fr: build_l...
[ "def", "cc", "(", "filename", ":", "'input source file'", ",", "output", ":", "'output file name. default to be replacing input file\\'s suffix with \".py\"'", "=", "None", ",", "name", ":", "'name of language'", "=", "'unname'", ")", ":", "lang", "=", "Language", "(", ...
rbnf source code compiler.
[ "rbnf", "source", "code", "compiler", "." ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/cli.py#L11-L28
train
thautwarm/RBNF
rbnf/cli.py
run
def run(filename: 'python file generated by `rbnf` command, or rbnf sour file', opt: 'optimize switch' = False): """ You can apply immediate tests on your parser. P.S: use `--opt` option takes longer starting time. """ from rbnf.easy import build_parser import importlib.util import t...
python
def run(filename: 'python file generated by `rbnf` command, or rbnf sour file', opt: 'optimize switch' = False): """ You can apply immediate tests on your parser. P.S: use `--opt` option takes longer starting time. """ from rbnf.easy import build_parser import importlib.util import t...
[ "def", "run", "(", "filename", ":", "'python file generated by `rbnf` command, or rbnf sour file'", ",", "opt", ":", "'optimize switch'", "=", "False", ")", ":", "from", "rbnf", ".", "easy", "import", "build_parser", "import", "importlib", ".", "util", "import", "tr...
You can apply immediate tests on your parser. P.S: use `--opt` option takes longer starting time.
[ "You", "can", "apply", "immediate", "tests", "on", "your", "parser", ".", "P", ".", "S", ":", "use", "--", "opt", "option", "takes", "longer", "starting", "time", "." ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/cli.py#L32-L103
train
thautwarm/RBNF
rbnf/auto_lexer/rbnf_lexer.py
rbnf_lexing
def rbnf_lexing(text: str): """Read loudly for documentation.""" cast_map: const = _cast_map lexer_table: const = _lexer_table keyword: const = _keyword drop_table: const = _DropTable end: const = _END unknown: const = _UNKNOWN text_length = len(text) colno ...
python
def rbnf_lexing(text: str): """Read loudly for documentation.""" cast_map: const = _cast_map lexer_table: const = _lexer_table keyword: const = _keyword drop_table: const = _DropTable end: const = _END unknown: const = _UNKNOWN text_length = len(text) colno ...
[ "def", "rbnf_lexing", "(", "text", ":", "str", ")", ":", "cast_map", ":", "const", "=", "_cast_map", "lexer_table", ":", "const", "=", "_lexer_table", "keyword", ":", "const", "=", "_keyword", "drop_table", ":", "const", "=", "_DropTable", "end", ":", "con...
Read loudly for documentation.
[ "Read", "loudly", "for", "documentation", "." ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/auto_lexer/rbnf_lexer.py#L30-L96
train
thautwarm/RBNF
rbnf/std/common.py
recover_codes
def recover_codes(tokens: Iterator[Tokenizer]) -> str: """ from a series of tokenizers to code string. (preserve the indentation) """ tokens = iter(tokens) s = [] try: head = next(tokens) except StopIteration: return s append = s.append lineno = head.lineno ...
python
def recover_codes(tokens: Iterator[Tokenizer]) -> str: """ from a series of tokenizers to code string. (preserve the indentation) """ tokens = iter(tokens) s = [] try: head = next(tokens) except StopIteration: return s append = s.append lineno = head.lineno ...
[ "def", "recover_codes", "(", "tokens", ":", "Iterator", "[", "Tokenizer", "]", ")", "->", "str", ":", "tokens", "=", "iter", "(", "tokens", ")", "s", "=", "[", "]", "try", ":", "head", "=", "next", "(", "tokens", ")", "except", "StopIteration", ":", ...
from a series of tokenizers to code string. (preserve the indentation)
[ "from", "a", "series", "of", "tokenizers", "to", "code", "string", ".", "(", "preserve", "the", "indentation", ")" ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/std/common.py#L14-L60
train
thautwarm/RBNF
rbnf/auto_lexer/__init__.py
str_lexer
def str_lexer(mode): """ generate token strings' cache """ cast_to_const = ConstStrPool.cast_to_const def f_raw(inp_str, pos): return cast_to_const(mode) if inp_str.startswith(mode, pos) else None def f_collection(inp_str, pos): for each in mode: if inp_str.startswi...
python
def str_lexer(mode): """ generate token strings' cache """ cast_to_const = ConstStrPool.cast_to_const def f_raw(inp_str, pos): return cast_to_const(mode) if inp_str.startswith(mode, pos) else None def f_collection(inp_str, pos): for each in mode: if inp_str.startswi...
[ "def", "str_lexer", "(", "mode", ")", ":", "cast_to_const", "=", "ConstStrPool", ".", "cast_to_const", "def", "f_raw", "(", "inp_str", ",", "pos", ")", ":", "return", "cast_to_const", "(", "mode", ")", "if", "inp_str", ".", "startswith", "(", "mode", ",", ...
generate token strings' cache
[ "generate", "token", "strings", "cache" ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/auto_lexer/__init__.py#L221-L243
train
thautwarm/RBNF
rbnf/auto_lexer/__init__.py
regex_lexer
def regex_lexer(regex_pat): """ generate token names' cache """ if isinstance(regex_pat, str): regex_pat = re.compile(regex_pat) def f(inp_str, pos): m = regex_pat.match(inp_str, pos) return m.group() if m else None elif hasattr(regex_pat, 'match'): ...
python
def regex_lexer(regex_pat): """ generate token names' cache """ if isinstance(regex_pat, str): regex_pat = re.compile(regex_pat) def f(inp_str, pos): m = regex_pat.match(inp_str, pos) return m.group() if m else None elif hasattr(regex_pat, 'match'): ...
[ "def", "regex_lexer", "(", "regex_pat", ")", ":", "if", "isinstance", "(", "regex_pat", ",", "str", ")", ":", "regex_pat", "=", "re", ".", "compile", "(", "regex_pat", ")", "def", "f", "(", "inp_str", ",", "pos", ")", ":", "m", "=", "regex_pat", ".",...
generate token names' cache
[ "generate", "token", "names", "cache" ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/auto_lexer/__init__.py#L246-L270
train
thautwarm/RBNF
rbnf/py_tools/unparse.py
Unparser.dispatch
def dispatch(self, tree): "Dispatcher function, dispatching tree type T to method _T." if isinstance(tree, list): for t in tree: self.dispatch(t) return meth = getattr(self, "_" + tree.__class__.__name__) meth(tree)
python
def dispatch(self, tree): "Dispatcher function, dispatching tree type T to method _T." if isinstance(tree, list): for t in tree: self.dispatch(t) return meth = getattr(self, "_" + tree.__class__.__name__) meth(tree)
[ "def", "dispatch", "(", "self", ",", "tree", ")", ":", "if", "isinstance", "(", "tree", ",", "list", ")", ":", "for", "t", "in", "tree", ":", "self", ".", "dispatch", "(", "t", ")", "return", "meth", "=", "getattr", "(", "self", ",", "\"_\"", "+"...
Dispatcher function, dispatching tree type T to method _T.
[ "Dispatcher", "function", "dispatching", "tree", "type", "T", "to", "method", "_T", "." ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/py_tools/unparse.py#L101-L108
train
thautwarm/RBNF
rbnf/edsl/core.py
process
def process(fn, bound_names): """ process automatic context variable capturing. return the transformed function and its ast. """ if isinstance(fn, _AutoContext): fn = fn.fn # noinspection PyArgumentList,PyArgumentList if isinstance(fn, _FnCodeStr): if bound_names: ...
python
def process(fn, bound_names): """ process automatic context variable capturing. return the transformed function and its ast. """ if isinstance(fn, _AutoContext): fn = fn.fn # noinspection PyArgumentList,PyArgumentList if isinstance(fn, _FnCodeStr): if bound_names: ...
[ "def", "process", "(", "fn", ",", "bound_names", ")", ":", "if", "isinstance", "(", "fn", ",", "_AutoContext", ")", ":", "fn", "=", "fn", ".", "fn", "# noinspection PyArgumentList,PyArgumentList", "if", "isinstance", "(", "fn", ",", "_FnCodeStr", ")", ":", ...
process automatic context variable capturing. return the transformed function and its ast.
[ "process", "automatic", "context", "variable", "capturing", ".", "return", "the", "transformed", "function", "and", "its", "ast", "." ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/edsl/core.py#L107-L184
train
thautwarm/RBNF
rbnf/edsl/core.py
Language.ignore
def ignore(self, *ignore_lst: str): """ ignore a set of tokens with specific names """ def stream(): for each in ignore_lst: each = ConstStrPool.cast_to_const(each) yield id(each), each self.ignore_lst.update(stream())
python
def ignore(self, *ignore_lst: str): """ ignore a set of tokens with specific names """ def stream(): for each in ignore_lst: each = ConstStrPool.cast_to_const(each) yield id(each), each self.ignore_lst.update(stream())
[ "def", "ignore", "(", "self", ",", "*", "ignore_lst", ":", "str", ")", ":", "def", "stream", "(", ")", ":", "for", "each", "in", "ignore_lst", ":", "each", "=", "ConstStrPool", ".", "cast_to_const", "(", "each", ")", "yield", "id", "(", "each", ")", ...
ignore a set of tokens with specific names
[ "ignore", "a", "set", "of", "tokens", "with", "specific", "names" ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/edsl/core.py#L324-L334
train
thautwarm/RBNF
rbnf/bootstrap/rbnf.py
build_language
def build_language(source_code: str, lang: Language, filename: str): """ lang: language object represents your language. """ state = MetaState(rbnf.implementation, requires=_Wild(), filename=filename) state.data = lang _build_language(source_code, state) lang.build()
python
def build_language(source_code: str, lang: Language, filename: str): """ lang: language object represents your language. """ state = MetaState(rbnf.implementation, requires=_Wild(), filename=filename) state.data = lang _build_language(source_code, state) lang.build()
[ "def", "build_language", "(", "source_code", ":", "str", ",", "lang", ":", "Language", ",", "filename", ":", "str", ")", ":", "state", "=", "MetaState", "(", "rbnf", ".", "implementation", ",", "requires", "=", "_Wild", "(", ")", ",", "filename", "=", ...
lang: language object represents your language.
[ "lang", ":", "language", "object", "represents", "your", "language", "." ]
cceec88c90f7ec95c160cfda01bfc532610985e0
https://github.com/thautwarm/RBNF/blob/cceec88c90f7ec95c160cfda01bfc532610985e0/rbnf/bootstrap/rbnf.py#L536-L543
train