repository_name
stringlengths
7
55
func_path_in_repository
stringlengths
4
223
func_name
stringlengths
1
134
whole_func_string
stringlengths
75
104k
language
stringclasses
1 value
func_code_string
stringlengths
75
104k
func_code_tokens
listlengths
19
28.4k
func_documentation_string
stringlengths
1
46.9k
func_documentation_tokens
listlengths
1
1.97k
split_name
stringclasses
1 value
func_code_url
stringlengths
87
315
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_subnetpool
def update_subnetpool(self, subnetpool, body=None): """Updates a subnetpool.""" return self.put(self.subnetpool_path % (subnetpool), body=body)
python
def update_subnetpool(self, subnetpool, body=None): """Updates a subnetpool.""" return self.put(self.subnetpool_path % (subnetpool), body=body)
[ "def", "update_subnetpool", "(", "self", ",", "subnetpool", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "subnetpool_path", "%", "(", "subnetpool", ")", ",", "body", "=", "body", ")" ]
Updates a subnetpool.
[ "Updates", "a", "subnetpool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L703-L705
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_routers
def list_routers(self, retrieve_all=True, **_params): """Fetches a list of all routers for a project.""" # Pass filters in "params" argument to do_request return self.list('routers', self.routers_path, retrieve_all, **_params)
python
def list_routers(self, retrieve_all=True, **_params): """Fetches a list of all routers for a project.""" # Pass filters in "params" argument to do_request return self.list('routers', self.routers_path, retrieve_all, **_params)
[ "def", "list_routers", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'routers'", ",", "self", ".", "routers_path", ",", "retrieve_all",...
Fetches a list of all routers for a project.
[ "Fetches", "a", "list", "of", "all", "routers", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L711-L715
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_router
def show_router(self, router, **_params): """Fetches information of a certain router.""" return self.get(self.router_path % (router), params=_params)
python
def show_router(self, router, **_params): """Fetches information of a certain router.""" return self.get(self.router_path % (router), params=_params)
[ "def", "show_router", "(", "self", ",", "router", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "router_path", "%", "(", "router", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain router.
[ "Fetches", "information", "of", "a", "certain", "router", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L717-L719
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_router
def update_router(self, router, body=None): """Updates a router.""" return self.put(self.router_path % (router), body=body)
python
def update_router(self, router, body=None): """Updates a router.""" return self.put(self.router_path % (router), body=body)
[ "def", "update_router", "(", "self", ",", "router", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "router_path", "%", "(", "router", ")", ",", "body", "=", "body", ")" ]
Updates a router.
[ "Updates", "a", "router", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L725-L727
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_address_scopes
def list_address_scopes(self, retrieve_all=True, **_params): """Fetches a list of all address scopes for a project.""" return self.list('address_scopes', self.address_scopes_path, retrieve_all, **_params)
python
def list_address_scopes(self, retrieve_all=True, **_params): """Fetches a list of all address scopes for a project.""" return self.list('address_scopes', self.address_scopes_path, retrieve_all, **_params)
[ "def", "list_address_scopes", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'address_scopes'", ",", "self", ".", "address_scopes_path", ",", "retrieve_all", ",", "*", "*", "_params", ...
Fetches a list of all address scopes for a project.
[ "Fetches", "a", "list", "of", "all", "address", "scopes", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L733-L736
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_address_scope
def show_address_scope(self, address_scope, **_params): """Fetches information of a certain address scope.""" return self.get(self.address_scope_path % (address_scope), params=_params)
python
def show_address_scope(self, address_scope, **_params): """Fetches information of a certain address scope.""" return self.get(self.address_scope_path % (address_scope), params=_params)
[ "def", "show_address_scope", "(", "self", ",", "address_scope", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "address_scope_path", "%", "(", "address_scope", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain address scope.
[ "Fetches", "information", "of", "a", "certain", "address", "scope", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L738-L741
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_address_scope
def update_address_scope(self, address_scope, body=None): """Updates a address scope.""" return self.put(self.address_scope_path % (address_scope), body=body)
python
def update_address_scope(self, address_scope, body=None): """Updates a address scope.""" return self.put(self.address_scope_path % (address_scope), body=body)
[ "def", "update_address_scope", "(", "self", ",", "address_scope", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "address_scope_path", "%", "(", "address_scope", ")", ",", "body", "=", "body", ")" ]
Updates a address scope.
[ "Updates", "a", "address", "scope", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L747-L749
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.add_interface_router
def add_interface_router(self, router, body=None): """Adds an internal network interface to the specified router.""" return self.put((self.router_path % router) + "/add_router_interface", body=body)
python
def add_interface_router(self, router, body=None): """Adds an internal network interface to the specified router.""" return self.put((self.router_path % router) + "/add_router_interface", body=body)
[ "def", "add_interface_router", "(", "self", ",", "router", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "(", "self", ".", "router_path", "%", "router", ")", "+", "\"/add_router_interface\"", ",", "body", "=", "body", ")" ]
Adds an internal network interface to the specified router.
[ "Adds", "an", "internal", "network", "interface", "to", "the", "specified", "router", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L755-L758
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.remove_interface_router
def remove_interface_router(self, router, body=None): """Removes an internal network interface from the specified router.""" return self.put((self.router_path % router) + "/remove_router_interface", body=body)
python
def remove_interface_router(self, router, body=None): """Removes an internal network interface from the specified router.""" return self.put((self.router_path % router) + "/remove_router_interface", body=body)
[ "def", "remove_interface_router", "(", "self", ",", "router", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "(", "self", ".", "router_path", "%", "router", ")", "+", "\"/remove_router_interface\"", ",", "body", "=", "body", ")" ]
Removes an internal network interface from the specified router.
[ "Removes", "an", "internal", "network", "interface", "from", "the", "specified", "router", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L760-L763
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.add_gateway_router
def add_gateway_router(self, router, body=None): """Adds an external network gateway to the specified router.""" return self.put((self.router_path % router), body={'router': {'external_gateway_info': body}})
python
def add_gateway_router(self, router, body=None): """Adds an external network gateway to the specified router.""" return self.put((self.router_path % router), body={'router': {'external_gateway_info': body}})
[ "def", "add_gateway_router", "(", "self", ",", "router", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "(", "self", ".", "router_path", "%", "router", ")", ",", "body", "=", "{", "'router'", ":", "{", "'external_gateway_info'", ...
Adds an external network gateway to the specified router.
[ "Adds", "an", "external", "network", "gateway", "to", "the", "specified", "router", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L765-L768
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_floatingips
def list_floatingips(self, retrieve_all=True, **_params): """Fetches a list of all floatingips for a project.""" # Pass filters in "params" argument to do_request return self.list('floatingips', self.floatingips_path, retrieve_all, **_params)
python
def list_floatingips(self, retrieve_all=True, **_params): """Fetches a list of all floatingips for a project.""" # Pass filters in "params" argument to do_request return self.list('floatingips', self.floatingips_path, retrieve_all, **_params)
[ "def", "list_floatingips", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'floatingips'", ",", "self", ".", "floatingips_path", ",", "re...
Fetches a list of all floatingips for a project.
[ "Fetches", "a", "list", "of", "all", "floatingips", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L775-L779
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_floatingip
def show_floatingip(self, floatingip, **_params): """Fetches information of a certain floatingip.""" return self.get(self.floatingip_path % (floatingip), params=_params)
python
def show_floatingip(self, floatingip, **_params): """Fetches information of a certain floatingip.""" return self.get(self.floatingip_path % (floatingip), params=_params)
[ "def", "show_floatingip", "(", "self", ",", "floatingip", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "floatingip_path", "%", "(", "floatingip", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain floatingip.
[ "Fetches", "information", "of", "a", "certain", "floatingip", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L781-L783
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_floatingip
def update_floatingip(self, floatingip, body=None): """Updates a floatingip.""" return self.put(self.floatingip_path % (floatingip), body=body)
python
def update_floatingip(self, floatingip, body=None): """Updates a floatingip.""" return self.put(self.floatingip_path % (floatingip), body=body)
[ "def", "update_floatingip", "(", "self", ",", "floatingip", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "floatingip_path", "%", "(", "floatingip", ")", ",", "body", "=", "body", ")" ]
Updates a floatingip.
[ "Updates", "a", "floatingip", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L789-L791
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_security_group
def update_security_group(self, security_group, body=None): """Updates a security group.""" return self.put(self.security_group_path % security_group, body=body)
python
def update_security_group(self, security_group, body=None): """Updates a security group.""" return self.put(self.security_group_path % security_group, body=body)
[ "def", "update_security_group", "(", "self", ",", "security_group", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "security_group_path", "%", "security_group", ",", "body", "=", "body", ")" ]
Updates a security group.
[ "Updates", "a", "security", "group", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L801-L804
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_security_groups
def list_security_groups(self, retrieve_all=True, **_params): """Fetches a list of all security groups for a project.""" return self.list('security_groups', self.security_groups_path, retrieve_all, **_params)
python
def list_security_groups(self, retrieve_all=True, **_params): """Fetches a list of all security groups for a project.""" return self.list('security_groups', self.security_groups_path, retrieve_all, **_params)
[ "def", "list_security_groups", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'security_groups'", ",", "self", ".", "security_groups_path", ",", "retrieve_all", ",", "*", "*", "_params"...
Fetches a list of all security groups for a project.
[ "Fetches", "a", "list", "of", "all", "security", "groups", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L806-L809
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_security_group
def show_security_group(self, security_group, **_params): """Fetches information of a certain security group.""" return self.get(self.security_group_path % (security_group), params=_params)
python
def show_security_group(self, security_group, **_params): """Fetches information of a certain security group.""" return self.get(self.security_group_path % (security_group), params=_params)
[ "def", "show_security_group", "(", "self", ",", "security_group", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "security_group_path", "%", "(", "security_group", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain security group.
[ "Fetches", "information", "of", "a", "certain", "security", "group", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L811-L814
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_security_group_rules
def list_security_group_rules(self, retrieve_all=True, **_params): """Fetches a list of all security group rules for a project.""" return self.list('security_group_rules', self.security_group_rules_path, retrieve_all, **_params)
python
def list_security_group_rules(self, retrieve_all=True, **_params): """Fetches a list of all security group rules for a project.""" return self.list('security_group_rules', self.security_group_rules_path, retrieve_all, **_params)
[ "def", "list_security_group_rules", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'security_group_rules'", ",", "self", ".", "security_group_rules_path", ",", "retrieve_all", ",", "*", "...
Fetches a list of all security group rules for a project.
[ "Fetches", "a", "list", "of", "all", "security", "group", "rules", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L829-L833
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_security_group_rule
def show_security_group_rule(self, security_group_rule, **_params): """Fetches information of a certain security group rule.""" return self.get(self.security_group_rule_path % (security_group_rule), params=_params)
python
def show_security_group_rule(self, security_group_rule, **_params): """Fetches information of a certain security group rule.""" return self.get(self.security_group_rule_path % (security_group_rule), params=_params)
[ "def", "show_security_group_rule", "(", "self", ",", "security_group_rule", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "security_group_rule_path", "%", "(", "security_group_rule", ")", ",", "params", "=", "_params", ")"...
Fetches information of a certain security group rule.
[ "Fetches", "information", "of", "a", "certain", "security", "group", "rule", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L835-L838
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_endpoint_groups
def list_endpoint_groups(self, retrieve_all=True, **_params): """Fetches a list of all VPN endpoint groups for a project.""" return self.list('endpoint_groups', self.endpoint_groups_path, retrieve_all, **_params)
python
def list_endpoint_groups(self, retrieve_all=True, **_params): """Fetches a list of all VPN endpoint groups for a project.""" return self.list('endpoint_groups', self.endpoint_groups_path, retrieve_all, **_params)
[ "def", "list_endpoint_groups", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'endpoint_groups'", ",", "self", ".", "endpoint_groups_path", ",", "retrieve_all", ",", "*", "*", "_params"...
Fetches a list of all VPN endpoint groups for a project.
[ "Fetches", "a", "list", "of", "all", "VPN", "endpoint", "groups", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L840-L843
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_endpoint_group
def show_endpoint_group(self, endpointgroup, **_params): """Fetches information for a specific VPN endpoint group.""" return self.get(self.endpoint_group_path % endpointgroup, params=_params)
python
def show_endpoint_group(self, endpointgroup, **_params): """Fetches information for a specific VPN endpoint group.""" return self.get(self.endpoint_group_path % endpointgroup, params=_params)
[ "def", "show_endpoint_group", "(", "self", ",", "endpointgroup", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "endpoint_group_path", "%", "endpointgroup", ",", "params", "=", "_params", ")" ]
Fetches information for a specific VPN endpoint group.
[ "Fetches", "information", "for", "a", "specific", "VPN", "endpoint", "group", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L845-L848
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_endpoint_group
def update_endpoint_group(self, endpoint_group, body=None): """Updates a VPN endpoint group.""" return self.put(self.endpoint_group_path % endpoint_group, body=body)
python
def update_endpoint_group(self, endpoint_group, body=None): """Updates a VPN endpoint group.""" return self.put(self.endpoint_group_path % endpoint_group, body=body)
[ "def", "update_endpoint_group", "(", "self", ",", "endpoint_group", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "endpoint_group_path", "%", "endpoint_group", ",", "body", "=", "body", ")" ]
Updates a VPN endpoint group.
[ "Updates", "a", "VPN", "endpoint", "group", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L854-L856
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_vpnservices
def list_vpnservices(self, retrieve_all=True, **_params): """Fetches a list of all configured VPN services for a project.""" return self.list('vpnservices', self.vpnservices_path, retrieve_all, **_params)
python
def list_vpnservices(self, retrieve_all=True, **_params): """Fetches a list of all configured VPN services for a project.""" return self.list('vpnservices', self.vpnservices_path, retrieve_all, **_params)
[ "def", "list_vpnservices", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'vpnservices'", ",", "self", ".", "vpnservices_path", ",", "retrieve_all", ",", "*", "*", "_params", ")" ]
Fetches a list of all configured VPN services for a project.
[ "Fetches", "a", "list", "of", "all", "configured", "VPN", "services", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L862-L865
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_vpnservice
def show_vpnservice(self, vpnservice, **_params): """Fetches information of a specific VPN service.""" return self.get(self.vpnservice_path % (vpnservice), params=_params)
python
def show_vpnservice(self, vpnservice, **_params): """Fetches information of a specific VPN service.""" return self.get(self.vpnservice_path % (vpnservice), params=_params)
[ "def", "show_vpnservice", "(", "self", ",", "vpnservice", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "vpnservice_path", "%", "(", "vpnservice", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a specific VPN service.
[ "Fetches", "information", "of", "a", "specific", "VPN", "service", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L867-L869
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_vpnservice
def update_vpnservice(self, vpnservice, body=None): """Updates a VPN service.""" return self.put(self.vpnservice_path % (vpnservice), body=body)
python
def update_vpnservice(self, vpnservice, body=None): """Updates a VPN service.""" return self.put(self.vpnservice_path % (vpnservice), body=body)
[ "def", "update_vpnservice", "(", "self", ",", "vpnservice", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "vpnservice_path", "%", "(", "vpnservice", ")", ",", "body", "=", "body", ")" ]
Updates a VPN service.
[ "Updates", "a", "VPN", "service", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L875-L877
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_ipsec_site_connections
def list_ipsec_site_connections(self, retrieve_all=True, **_params): """Fetches all configured IPsecSiteConnections for a project.""" return self.list('ipsec_site_connections', self.ipsec_site_connections_path, retrieve_all, **_p...
python
def list_ipsec_site_connections(self, retrieve_all=True, **_params): """Fetches all configured IPsecSiteConnections for a project.""" return self.list('ipsec_site_connections', self.ipsec_site_connections_path, retrieve_all, **_p...
[ "def", "list_ipsec_site_connections", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'ipsec_site_connections'", ",", "self", ".", "ipsec_site_connections_path", ",", "retrieve_all", ",", "*...
Fetches all configured IPsecSiteConnections for a project.
[ "Fetches", "all", "configured", "IPsecSiteConnections", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L883-L888
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_ipsec_site_connection
def show_ipsec_site_connection(self, ipsecsite_conn, **_params): """Fetches information of a specific IPsecSiteConnection.""" return self.get( self.ipsec_site_connection_path % (ipsecsite_conn), params=_params )
python
def show_ipsec_site_connection(self, ipsecsite_conn, **_params): """Fetches information of a specific IPsecSiteConnection.""" return self.get( self.ipsec_site_connection_path % (ipsecsite_conn), params=_params )
[ "def", "show_ipsec_site_connection", "(", "self", ",", "ipsecsite_conn", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "ipsec_site_connection_path", "%", "(", "ipsecsite_conn", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a specific IPsecSiteConnection.
[ "Fetches", "information", "of", "a", "specific", "IPsecSiteConnection", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L890-L894
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_ipsec_site_connection
def update_ipsec_site_connection(self, ipsecsite_conn, body=None): """Updates an IPsecSiteConnection.""" return self.put( self.ipsec_site_connection_path % (ipsecsite_conn), body=body )
python
def update_ipsec_site_connection(self, ipsecsite_conn, body=None): """Updates an IPsecSiteConnection.""" return self.put( self.ipsec_site_connection_path % (ipsecsite_conn), body=body )
[ "def", "update_ipsec_site_connection", "(", "self", ",", "ipsecsite_conn", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "ipsec_site_connection_path", "%", "(", "ipsecsite_conn", ")", ",", "body", "=", "body", ")" ]
Updates an IPsecSiteConnection.
[ "Updates", "an", "IPsecSiteConnection", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L900-L904
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_ikepolicies
def list_ikepolicies(self, retrieve_all=True, **_params): """Fetches a list of all configured IKEPolicies for a project.""" return self.list('ikepolicies', self.ikepolicies_path, retrieve_all, **_params)
python
def list_ikepolicies(self, retrieve_all=True, **_params): """Fetches a list of all configured IKEPolicies for a project.""" return self.list('ikepolicies', self.ikepolicies_path, retrieve_all, **_params)
[ "def", "list_ikepolicies", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'ikepolicies'", ",", "self", ".", "ikepolicies_path", ",", "retrieve_all", ",", "*", "*", "_params", ")" ]
Fetches a list of all configured IKEPolicies for a project.
[ "Fetches", "a", "list", "of", "all", "configured", "IKEPolicies", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L910-L913
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_ikepolicy
def show_ikepolicy(self, ikepolicy, **_params): """Fetches information of a specific IKEPolicy.""" return self.get(self.ikepolicy_path % (ikepolicy), params=_params)
python
def show_ikepolicy(self, ikepolicy, **_params): """Fetches information of a specific IKEPolicy.""" return self.get(self.ikepolicy_path % (ikepolicy), params=_params)
[ "def", "show_ikepolicy", "(", "self", ",", "ikepolicy", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "ikepolicy_path", "%", "(", "ikepolicy", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a specific IKEPolicy.
[ "Fetches", "information", "of", "a", "specific", "IKEPolicy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L915-L917
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_ikepolicy
def update_ikepolicy(self, ikepolicy, body=None): """Updates an IKEPolicy.""" return self.put(self.ikepolicy_path % (ikepolicy), body=body)
python
def update_ikepolicy(self, ikepolicy, body=None): """Updates an IKEPolicy.""" return self.put(self.ikepolicy_path % (ikepolicy), body=body)
[ "def", "update_ikepolicy", "(", "self", ",", "ikepolicy", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "ikepolicy_path", "%", "(", "ikepolicy", ")", ",", "body", "=", "body", ")" ]
Updates an IKEPolicy.
[ "Updates", "an", "IKEPolicy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L923-L925
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_ipsecpolicies
def list_ipsecpolicies(self, retrieve_all=True, **_params): """Fetches a list of all configured IPsecPolicies for a project.""" return self.list('ipsecpolicies', self.ipsecpolicies_path, retrieve_all, **_params)
python
def list_ipsecpolicies(self, retrieve_all=True, **_params): """Fetches a list of all configured IPsecPolicies for a project.""" return self.list('ipsecpolicies', self.ipsecpolicies_path, retrieve_all, **_params)
[ "def", "list_ipsecpolicies", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'ipsecpolicies'", ",", "self", ".", "ipsecpolicies_path", ",", "retrieve_all", ",", "*", "*", "_params", ")...
Fetches a list of all configured IPsecPolicies for a project.
[ "Fetches", "a", "list", "of", "all", "configured", "IPsecPolicies", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L931-L936
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_ipsecpolicy
def show_ipsecpolicy(self, ipsecpolicy, **_params): """Fetches information of a specific IPsecPolicy.""" return self.get(self.ipsecpolicy_path % (ipsecpolicy), params=_params)
python
def show_ipsecpolicy(self, ipsecpolicy, **_params): """Fetches information of a specific IPsecPolicy.""" return self.get(self.ipsecpolicy_path % (ipsecpolicy), params=_params)
[ "def", "show_ipsecpolicy", "(", "self", ",", "ipsecpolicy", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "ipsecpolicy_path", "%", "(", "ipsecpolicy", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a specific IPsecPolicy.
[ "Fetches", "information", "of", "a", "specific", "IPsecPolicy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L938-L940
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_ipsecpolicy
def update_ipsecpolicy(self, ipsecpolicy, body=None): """Updates an IPsecPolicy.""" return self.put(self.ipsecpolicy_path % (ipsecpolicy), body=body)
python
def update_ipsecpolicy(self, ipsecpolicy, body=None): """Updates an IPsecPolicy.""" return self.put(self.ipsecpolicy_path % (ipsecpolicy), body=body)
[ "def", "update_ipsecpolicy", "(", "self", ",", "ipsecpolicy", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "ipsecpolicy_path", "%", "(", "ipsecpolicy", ")", ",", "body", "=", "body", ")" ]
Updates an IPsecPolicy.
[ "Updates", "an", "IPsecPolicy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L946-L948
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_loadbalancers
def list_loadbalancers(self, retrieve_all=True, **_params): """Fetches a list of all loadbalancers for a project.""" return self.list('loadbalancers', self.lbaas_loadbalancers_path, retrieve_all, **_params)
python
def list_loadbalancers(self, retrieve_all=True, **_params): """Fetches a list of all loadbalancers for a project.""" return self.list('loadbalancers', self.lbaas_loadbalancers_path, retrieve_all, **_params)
[ "def", "list_loadbalancers", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'loadbalancers'", ",", "self", ".", "lbaas_loadbalancers_path", ",", "retrieve_all", ",", "*", "*", "_params"...
Fetches a list of all loadbalancers for a project.
[ "Fetches", "a", "list", "of", "all", "loadbalancers", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L954-L957
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_loadbalancer
def show_loadbalancer(self, lbaas_loadbalancer, **_params): """Fetches information for a load balancer.""" return self.get(self.lbaas_loadbalancer_path % (lbaas_loadbalancer), params=_params)
python
def show_loadbalancer(self, lbaas_loadbalancer, **_params): """Fetches information for a load balancer.""" return self.get(self.lbaas_loadbalancer_path % (lbaas_loadbalancer), params=_params)
[ "def", "show_loadbalancer", "(", "self", ",", "lbaas_loadbalancer", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_loadbalancer_path", "%", "(", "lbaas_loadbalancer", ")", ",", "params", "=", "_params", ")" ]
Fetches information for a load balancer.
[ "Fetches", "information", "for", "a", "load", "balancer", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L959-L962
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_loadbalancer
def update_loadbalancer(self, lbaas_loadbalancer, body=None): """Updates a load balancer.""" return self.put(self.lbaas_loadbalancer_path % (lbaas_loadbalancer), body=body)
python
def update_loadbalancer(self, lbaas_loadbalancer, body=None): """Updates a load balancer.""" return self.put(self.lbaas_loadbalancer_path % (lbaas_loadbalancer), body=body)
[ "def", "update_loadbalancer", "(", "self", ",", "lbaas_loadbalancer", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "lbaas_loadbalancer_path", "%", "(", "lbaas_loadbalancer", ")", ",", "body", "=", "body", ")" ]
Updates a load balancer.
[ "Updates", "a", "load", "balancer", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L968-L971
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.retrieve_loadbalancer_stats
def retrieve_loadbalancer_stats(self, loadbalancer, **_params): """Retrieves stats for a certain load balancer.""" return self.get(self.lbaas_loadbalancer_path_stats % (loadbalancer), params=_params)
python
def retrieve_loadbalancer_stats(self, loadbalancer, **_params): """Retrieves stats for a certain load balancer.""" return self.get(self.lbaas_loadbalancer_path_stats % (loadbalancer), params=_params)
[ "def", "retrieve_loadbalancer_stats", "(", "self", ",", "loadbalancer", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_loadbalancer_path_stats", "%", "(", "loadbalancer", ")", ",", "params", "=", "_params", ")" ]
Retrieves stats for a certain load balancer.
[ "Retrieves", "stats", "for", "a", "certain", "load", "balancer", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L978-L981
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.retrieve_loadbalancer_status
def retrieve_loadbalancer_status(self, loadbalancer, **_params): """Retrieves status for a certain load balancer.""" return self.get(self.lbaas_loadbalancer_path_status % (loadbalancer), params=_params)
python
def retrieve_loadbalancer_status(self, loadbalancer, **_params): """Retrieves status for a certain load balancer.""" return self.get(self.lbaas_loadbalancer_path_status % (loadbalancer), params=_params)
[ "def", "retrieve_loadbalancer_status", "(", "self", ",", "loadbalancer", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_loadbalancer_path_status", "%", "(", "loadbalancer", ")", ",", "params", "=", "_params", ")" ]
Retrieves status for a certain load balancer.
[ "Retrieves", "status", "for", "a", "certain", "load", "balancer", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L983-L986
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_listeners
def list_listeners(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_listeners for a project.""" return self.list('listeners', self.lbaas_listeners_path, retrieve_all, **_params)
python
def list_listeners(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_listeners for a project.""" return self.list('listeners', self.lbaas_listeners_path, retrieve_all, **_params)
[ "def", "list_listeners", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'listeners'", ",", "self", ".", "lbaas_listeners_path", ",", "retrieve_all", ",", "*", "*", "_params", ")" ]
Fetches a list of all lbaas_listeners for a project.
[ "Fetches", "a", "list", "of", "all", "lbaas_listeners", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L988-L991
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_listener
def show_listener(self, lbaas_listener, **_params): """Fetches information for a lbaas_listener.""" return self.get(self.lbaas_listener_path % (lbaas_listener), params=_params)
python
def show_listener(self, lbaas_listener, **_params): """Fetches information for a lbaas_listener.""" return self.get(self.lbaas_listener_path % (lbaas_listener), params=_params)
[ "def", "show_listener", "(", "self", ",", "lbaas_listener", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_listener_path", "%", "(", "lbaas_listener", ")", ",", "params", "=", "_params", ")" ]
Fetches information for a lbaas_listener.
[ "Fetches", "information", "for", "a", "lbaas_listener", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L993-L996
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_listener
def update_listener(self, lbaas_listener, body=None): """Updates a lbaas_listener.""" return self.put(self.lbaas_listener_path % (lbaas_listener), body=body)
python
def update_listener(self, lbaas_listener, body=None): """Updates a lbaas_listener.""" return self.put(self.lbaas_listener_path % (lbaas_listener), body=body)
[ "def", "update_listener", "(", "self", ",", "lbaas_listener", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "lbaas_listener_path", "%", "(", "lbaas_listener", ")", ",", "body", "=", "body", ")" ]
Updates a lbaas_listener.
[ "Updates", "a", "lbaas_listener", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1002-L1005
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_lbaas_l7policies
def list_lbaas_l7policies(self, retrieve_all=True, **_params): """Fetches a list of all L7 policies for a listener.""" return self.list('l7policies', self.lbaas_l7policies_path, retrieve_all, **_params)
python
def list_lbaas_l7policies(self, retrieve_all=True, **_params): """Fetches a list of all L7 policies for a listener.""" return self.list('l7policies', self.lbaas_l7policies_path, retrieve_all, **_params)
[ "def", "list_lbaas_l7policies", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'l7policies'", ",", "self", ".", "lbaas_l7policies_path", ",", "retrieve_all", ",", "*", "*", "_params", ...
Fetches a list of all L7 policies for a listener.
[ "Fetches", "a", "list", "of", "all", "L7", "policies", "for", "a", "listener", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1011-L1014
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_lbaas_l7policy
def show_lbaas_l7policy(self, l7policy, **_params): """Fetches information of a certain listener's L7 policy.""" return self.get(self.lbaas_l7policy_path % l7policy, params=_params)
python
def show_lbaas_l7policy(self, l7policy, **_params): """Fetches information of a certain listener's L7 policy.""" return self.get(self.lbaas_l7policy_path % l7policy, params=_params)
[ "def", "show_lbaas_l7policy", "(", "self", ",", "l7policy", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_l7policy_path", "%", "l7policy", ",", "params", "=", "_params", ")" ]
Fetches information of a certain listener's L7 policy.
[ "Fetches", "information", "of", "a", "certain", "listener", "s", "L7", "policy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1016-L1019
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_lbaas_l7policy
def update_lbaas_l7policy(self, l7policy, body=None): """Updates L7 policy.""" return self.put(self.lbaas_l7policy_path % l7policy, body=body)
python
def update_lbaas_l7policy(self, l7policy, body=None): """Updates L7 policy.""" return self.put(self.lbaas_l7policy_path % l7policy, body=body)
[ "def", "update_lbaas_l7policy", "(", "self", ",", "l7policy", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "lbaas_l7policy_path", "%", "l7policy", ",", "body", "=", "body", ")" ]
Updates L7 policy.
[ "Updates", "L7", "policy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1025-L1028
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_lbaas_l7rules
def list_lbaas_l7rules(self, l7policy, retrieve_all=True, **_params): """Fetches a list of all rules for L7 policy.""" return self.list('rules', self.lbaas_l7rules_path % l7policy, retrieve_all, **_params)
python
def list_lbaas_l7rules(self, l7policy, retrieve_all=True, **_params): """Fetches a list of all rules for L7 policy.""" return self.list('rules', self.lbaas_l7rules_path % l7policy, retrieve_all, **_params)
[ "def", "list_lbaas_l7rules", "(", "self", ",", "l7policy", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'rules'", ",", "self", ".", "lbaas_l7rules_path", "%", "l7policy", ",", "retrieve_all", ",...
Fetches a list of all rules for L7 policy.
[ "Fetches", "a", "list", "of", "all", "rules", "for", "L7", "policy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1034-L1037
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_lbaas_l7rule
def show_lbaas_l7rule(self, l7rule, l7policy, **_params): """Fetches information of a certain L7 policy's rule.""" return self.get(self.lbaas_l7rule_path % (l7policy, l7rule), params=_params)
python
def show_lbaas_l7rule(self, l7rule, l7policy, **_params): """Fetches information of a certain L7 policy's rule.""" return self.get(self.lbaas_l7rule_path % (l7policy, l7rule), params=_params)
[ "def", "show_lbaas_l7rule", "(", "self", ",", "l7rule", ",", "l7policy", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_l7rule_path", "%", "(", "l7policy", ",", "l7rule", ")", ",", "params", "=", "_params", "...
Fetches information of a certain L7 policy's rule.
[ "Fetches", "information", "of", "a", "certain", "L7", "policy", "s", "rule", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1039-L1042
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.create_lbaas_l7rule
def create_lbaas_l7rule(self, l7policy, body=None): """Creates rule for a certain L7 policy.""" return self.post(self.lbaas_l7rules_path % l7policy, body=body)
python
def create_lbaas_l7rule(self, l7policy, body=None): """Creates rule for a certain L7 policy.""" return self.post(self.lbaas_l7rules_path % l7policy, body=body)
[ "def", "create_lbaas_l7rule", "(", "self", ",", "l7policy", ",", "body", "=", "None", ")", ":", "return", "self", ".", "post", "(", "self", ".", "lbaas_l7rules_path", "%", "l7policy", ",", "body", "=", "body", ")" ]
Creates rule for a certain L7 policy.
[ "Creates", "rule", "for", "a", "certain", "L7", "policy", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1044-L1046
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_lbaas_l7rule
def update_lbaas_l7rule(self, l7rule, l7policy, body=None): """Updates L7 rule.""" return self.put(self.lbaas_l7rule_path % (l7policy, l7rule), body=body)
python
def update_lbaas_l7rule(self, l7rule, l7policy, body=None): """Updates L7 rule.""" return self.put(self.lbaas_l7rule_path % (l7policy, l7rule), body=body)
[ "def", "update_lbaas_l7rule", "(", "self", ",", "l7rule", ",", "l7policy", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "lbaas_l7rule_path", "%", "(", "l7policy", ",", "l7rule", ")", ",", "body", "=", "body", ")" ...
Updates L7 rule.
[ "Updates", "L7", "rule", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1048-L1051
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.delete_lbaas_l7rule
def delete_lbaas_l7rule(self, l7rule, l7policy): """Deletes the specified L7 rule.""" return self.delete(self.lbaas_l7rule_path % (l7policy, l7rule))
python
def delete_lbaas_l7rule(self, l7rule, l7policy): """Deletes the specified L7 rule.""" return self.delete(self.lbaas_l7rule_path % (l7policy, l7rule))
[ "def", "delete_lbaas_l7rule", "(", "self", ",", "l7rule", ",", "l7policy", ")", ":", "return", "self", ".", "delete", "(", "self", ".", "lbaas_l7rule_path", "%", "(", "l7policy", ",", "l7rule", ")", ")" ]
Deletes the specified L7 rule.
[ "Deletes", "the", "specified", "L7", "rule", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1053-L1055
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_lbaas_pools
def list_lbaas_pools(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_pools for a project.""" return self.list('pools', self.lbaas_pools_path, retrieve_all, **_params)
python
def list_lbaas_pools(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_pools for a project.""" return self.list('pools', self.lbaas_pools_path, retrieve_all, **_params)
[ "def", "list_lbaas_pools", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'pools'", ",", "self", ".", "lbaas_pools_path", ",", "retrieve_all", ",", "*", "*", "_params", ")" ]
Fetches a list of all lbaas_pools for a project.
[ "Fetches", "a", "list", "of", "all", "lbaas_pools", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1057-L1060
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_lbaas_pool
def show_lbaas_pool(self, lbaas_pool, **_params): """Fetches information for a lbaas_pool.""" return self.get(self.lbaas_pool_path % (lbaas_pool), params=_params)
python
def show_lbaas_pool(self, lbaas_pool, **_params): """Fetches information for a lbaas_pool.""" return self.get(self.lbaas_pool_path % (lbaas_pool), params=_params)
[ "def", "show_lbaas_pool", "(", "self", ",", "lbaas_pool", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_pool_path", "%", "(", "lbaas_pool", ")", ",", "params", "=", "_params", ")" ]
Fetches information for a lbaas_pool.
[ "Fetches", "information", "for", "a", "lbaas_pool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1062-L1065
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_lbaas_pool
def update_lbaas_pool(self, lbaas_pool, body=None): """Updates a lbaas_pool.""" return self.put(self.lbaas_pool_path % (lbaas_pool), body=body)
python
def update_lbaas_pool(self, lbaas_pool, body=None): """Updates a lbaas_pool.""" return self.put(self.lbaas_pool_path % (lbaas_pool), body=body)
[ "def", "update_lbaas_pool", "(", "self", ",", "lbaas_pool", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "lbaas_pool_path", "%", "(", "lbaas_pool", ")", ",", "body", "=", "body", ")" ]
Updates a lbaas_pool.
[ "Updates", "a", "lbaas_pool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1071-L1074
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_lbaas_healthmonitors
def list_lbaas_healthmonitors(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_healthmonitors for a project.""" return self.list('healthmonitors', self.lbaas_healthmonitors_path, retrieve_all, **_params)
python
def list_lbaas_healthmonitors(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_healthmonitors for a project.""" return self.list('healthmonitors', self.lbaas_healthmonitors_path, retrieve_all, **_params)
[ "def", "list_lbaas_healthmonitors", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'healthmonitors'", ",", "self", ".", "lbaas_healthmonitors_path", ",", "retrieve_all", ",", "*", "*", ...
Fetches a list of all lbaas_healthmonitors for a project.
[ "Fetches", "a", "list", "of", "all", "lbaas_healthmonitors", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1080-L1083
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_lbaas_healthmonitor
def show_lbaas_healthmonitor(self, lbaas_healthmonitor, **_params): """Fetches information for a lbaas_healthmonitor.""" return self.get(self.lbaas_healthmonitor_path % (lbaas_healthmonitor), params=_params)
python
def show_lbaas_healthmonitor(self, lbaas_healthmonitor, **_params): """Fetches information for a lbaas_healthmonitor.""" return self.get(self.lbaas_healthmonitor_path % (lbaas_healthmonitor), params=_params)
[ "def", "show_lbaas_healthmonitor", "(", "self", ",", "lbaas_healthmonitor", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_healthmonitor_path", "%", "(", "lbaas_healthmonitor", ")", ",", "params", "=", "_params", ")"...
Fetches information for a lbaas_healthmonitor.
[ "Fetches", "information", "for", "a", "lbaas_healthmonitor", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1085-L1088
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_lbaas_healthmonitor
def update_lbaas_healthmonitor(self, lbaas_healthmonitor, body=None): """Updates a lbaas_healthmonitor.""" return self.put(self.lbaas_healthmonitor_path % (lbaas_healthmonitor), body=body)
python
def update_lbaas_healthmonitor(self, lbaas_healthmonitor, body=None): """Updates a lbaas_healthmonitor.""" return self.put(self.lbaas_healthmonitor_path % (lbaas_healthmonitor), body=body)
[ "def", "update_lbaas_healthmonitor", "(", "self", ",", "lbaas_healthmonitor", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "lbaas_healthmonitor_path", "%", "(", "lbaas_healthmonitor", ")", ",", "body", "=", "body", ")" ]
Updates a lbaas_healthmonitor.
[ "Updates", "a", "lbaas_healthmonitor", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1094-L1097
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_lbaas_loadbalancers
def list_lbaas_loadbalancers(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_loadbalancers for a project.""" return self.list('loadbalancers', self.lbaas_loadbalancers_path, retrieve_all, **_params)
python
def list_lbaas_loadbalancers(self, retrieve_all=True, **_params): """Fetches a list of all lbaas_loadbalancers for a project.""" return self.list('loadbalancers', self.lbaas_loadbalancers_path, retrieve_all, **_params)
[ "def", "list_lbaas_loadbalancers", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'loadbalancers'", ",", "self", ".", "lbaas_loadbalancers_path", ",", "retrieve_all", ",", "*", "*", "_p...
Fetches a list of all lbaas_loadbalancers for a project.
[ "Fetches", "a", "list", "of", "all", "lbaas_loadbalancers", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1104-L1107
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_lbaas_members
def list_lbaas_members(self, lbaas_pool, retrieve_all=True, **_params): """Fetches a list of all lbaas_members for a project.""" return self.list('members', self.lbaas_members_path % lbaas_pool, retrieve_all, **_params)
python
def list_lbaas_members(self, lbaas_pool, retrieve_all=True, **_params): """Fetches a list of all lbaas_members for a project.""" return self.list('members', self.lbaas_members_path % lbaas_pool, retrieve_all, **_params)
[ "def", "list_lbaas_members", "(", "self", ",", "lbaas_pool", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "list", "(", "'members'", ",", "self", ".", "lbaas_members_path", "%", "lbaas_pool", ",", "retrieve_all"...
Fetches a list of all lbaas_members for a project.
[ "Fetches", "a", "list", "of", "all", "lbaas_members", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1109-L1112
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_lbaas_member
def show_lbaas_member(self, lbaas_member, lbaas_pool, **_params): """Fetches information of a certain lbaas_member.""" return self.get(self.lbaas_member_path % (lbaas_pool, lbaas_member), params=_params)
python
def show_lbaas_member(self, lbaas_member, lbaas_pool, **_params): """Fetches information of a certain lbaas_member.""" return self.get(self.lbaas_member_path % (lbaas_pool, lbaas_member), params=_params)
[ "def", "show_lbaas_member", "(", "self", ",", "lbaas_member", ",", "lbaas_pool", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "lbaas_member_path", "%", "(", "lbaas_pool", ",", "lbaas_member", ")", ",", "params", "=", ...
Fetches information of a certain lbaas_member.
[ "Fetches", "information", "of", "a", "certain", "lbaas_member", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1114-L1117
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.create_lbaas_member
def create_lbaas_member(self, lbaas_pool, body=None): """Creates a lbaas_member.""" return self.post(self.lbaas_members_path % lbaas_pool, body=body)
python
def create_lbaas_member(self, lbaas_pool, body=None): """Creates a lbaas_member.""" return self.post(self.lbaas_members_path % lbaas_pool, body=body)
[ "def", "create_lbaas_member", "(", "self", ",", "lbaas_pool", ",", "body", "=", "None", ")", ":", "return", "self", ".", "post", "(", "self", ".", "lbaas_members_path", "%", "lbaas_pool", ",", "body", "=", "body", ")" ]
Creates a lbaas_member.
[ "Creates", "a", "lbaas_member", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1119-L1121
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_lbaas_member
def update_lbaas_member(self, lbaas_member, lbaas_pool, body=None): """Updates a lbaas_member.""" return self.put(self.lbaas_member_path % (lbaas_pool, lbaas_member), body=body)
python
def update_lbaas_member(self, lbaas_member, lbaas_pool, body=None): """Updates a lbaas_member.""" return self.put(self.lbaas_member_path % (lbaas_pool, lbaas_member), body=body)
[ "def", "update_lbaas_member", "(", "self", ",", "lbaas_member", ",", "lbaas_pool", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "lbaas_member_path", "%", "(", "lbaas_pool", ",", "lbaas_member", ")", ",", "body", "=", ...
Updates a lbaas_member.
[ "Updates", "a", "lbaas_member", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1123-L1126
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.delete_lbaas_member
def delete_lbaas_member(self, lbaas_member, lbaas_pool): """Deletes the specified lbaas_member.""" return self.delete(self.lbaas_member_path % (lbaas_pool, lbaas_member))
python
def delete_lbaas_member(self, lbaas_member, lbaas_pool): """Deletes the specified lbaas_member.""" return self.delete(self.lbaas_member_path % (lbaas_pool, lbaas_member))
[ "def", "delete_lbaas_member", "(", "self", ",", "lbaas_member", ",", "lbaas_pool", ")", ":", "return", "self", ".", "delete", "(", "self", ".", "lbaas_member_path", "%", "(", "lbaas_pool", ",", "lbaas_member", ")", ")" ]
Deletes the specified lbaas_member.
[ "Deletes", "the", "specified", "lbaas_member", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1128-L1130
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_vips
def list_vips(self, retrieve_all=True, **_params): """Fetches a list of all load balancer vips for a project.""" # Pass filters in "params" argument to do_request return self.list('vips', self.vips_path, retrieve_all, **_params)
python
def list_vips(self, retrieve_all=True, **_params): """Fetches a list of all load balancer vips for a project.""" # Pass filters in "params" argument to do_request return self.list('vips', self.vips_path, retrieve_all, **_params)
[ "def", "list_vips", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'vips'", ",", "self", ".", "vips_path", ",", "retrieve_all", ",", ...
Fetches a list of all load balancer vips for a project.
[ "Fetches", "a", "list", "of", "all", "load", "balancer", "vips", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1132-L1136
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_vip
def show_vip(self, vip, **_params): """Fetches information of a certain load balancer vip.""" return self.get(self.vip_path % (vip), params=_params)
python
def show_vip(self, vip, **_params): """Fetches information of a certain load balancer vip.""" return self.get(self.vip_path % (vip), params=_params)
[ "def", "show_vip", "(", "self", ",", "vip", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "vip_path", "%", "(", "vip", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain load balancer vip.
[ "Fetches", "information", "of", "a", "certain", "load", "balancer", "vip", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1138-L1140
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_vip
def update_vip(self, vip, body=None): """Updates a load balancer vip.""" return self.put(self.vip_path % (vip), body=body)
python
def update_vip(self, vip, body=None): """Updates a load balancer vip.""" return self.put(self.vip_path % (vip), body=body)
[ "def", "update_vip", "(", "self", ",", "vip", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "vip_path", "%", "(", "vip", ")", ",", "body", "=", "body", ")" ]
Updates a load balancer vip.
[ "Updates", "a", "load", "balancer", "vip", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1146-L1148
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_pools
def list_pools(self, retrieve_all=True, **_params): """Fetches a list of all load balancer pools for a project.""" # Pass filters in "params" argument to do_request return self.list('pools', self.pools_path, retrieve_all, **_params)
python
def list_pools(self, retrieve_all=True, **_params): """Fetches a list of all load balancer pools for a project.""" # Pass filters in "params" argument to do_request return self.list('pools', self.pools_path, retrieve_all, **_params)
[ "def", "list_pools", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'pools'", ",", "self", ".", "pools_path", ",", "retrieve_all", ","...
Fetches a list of all load balancer pools for a project.
[ "Fetches", "a", "list", "of", "all", "load", "balancer", "pools", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1154-L1158
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_pool
def show_pool(self, pool, **_params): """Fetches information of a certain load balancer pool.""" return self.get(self.pool_path % (pool), params=_params)
python
def show_pool(self, pool, **_params): """Fetches information of a certain load balancer pool.""" return self.get(self.pool_path % (pool), params=_params)
[ "def", "show_pool", "(", "self", ",", "pool", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "pool_path", "%", "(", "pool", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain load balancer pool.
[ "Fetches", "information", "of", "a", "certain", "load", "balancer", "pool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1160-L1162
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_pool
def update_pool(self, pool, body=None): """Updates a load balancer pool.""" return self.put(self.pool_path % (pool), body=body)
python
def update_pool(self, pool, body=None): """Updates a load balancer pool.""" return self.put(self.pool_path % (pool), body=body)
[ "def", "update_pool", "(", "self", ",", "pool", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "pool_path", "%", "(", "pool", ")", ",", "body", "=", "body", ")" ]
Updates a load balancer pool.
[ "Updates", "a", "load", "balancer", "pool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1168-L1170
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.retrieve_pool_stats
def retrieve_pool_stats(self, pool, **_params): """Retrieves stats for a certain load balancer pool.""" return self.get(self.pool_path_stats % (pool), params=_params)
python
def retrieve_pool_stats(self, pool, **_params): """Retrieves stats for a certain load balancer pool.""" return self.get(self.pool_path_stats % (pool), params=_params)
[ "def", "retrieve_pool_stats", "(", "self", ",", "pool", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "pool_path_stats", "%", "(", "pool", ")", ",", "params", "=", "_params", ")" ]
Retrieves stats for a certain load balancer pool.
[ "Retrieves", "stats", "for", "a", "certain", "load", "balancer", "pool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1176-L1178
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_members
def list_members(self, retrieve_all=True, **_params): """Fetches a list of all load balancer members for a project.""" # Pass filters in "params" argument to do_request return self.list('members', self.members_path, retrieve_all, **_params)
python
def list_members(self, retrieve_all=True, **_params): """Fetches a list of all load balancer members for a project.""" # Pass filters in "params" argument to do_request return self.list('members', self.members_path, retrieve_all, **_params)
[ "def", "list_members", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'members'", ",", "self", ".", "members_path", ",", "retrieve_all",...
Fetches a list of all load balancer members for a project.
[ "Fetches", "a", "list", "of", "all", "load", "balancer", "members", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1180-L1184
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_member
def show_member(self, member, **_params): """Fetches information of a certain load balancer member.""" return self.get(self.member_path % (member), params=_params)
python
def show_member(self, member, **_params): """Fetches information of a certain load balancer member.""" return self.get(self.member_path % (member), params=_params)
[ "def", "show_member", "(", "self", ",", "member", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "member_path", "%", "(", "member", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain load balancer member.
[ "Fetches", "information", "of", "a", "certain", "load", "balancer", "member", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1186-L1188
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_member
def update_member(self, member, body=None): """Updates a load balancer member.""" return self.put(self.member_path % (member), body=body)
python
def update_member(self, member, body=None): """Updates a load balancer member.""" return self.put(self.member_path % (member), body=body)
[ "def", "update_member", "(", "self", ",", "member", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "member_path", "%", "(", "member", ")", ",", "body", "=", "body", ")" ]
Updates a load balancer member.
[ "Updates", "a", "load", "balancer", "member", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1194-L1196
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_health_monitors
def list_health_monitors(self, retrieve_all=True, **_params): """Fetches a list of all load balancer health monitors for a project. """ # Pass filters in "params" argument to do_request return self.list('health_monitors', self.health_monitors_path, retrieve_all,...
python
def list_health_monitors(self, retrieve_all=True, **_params): """Fetches a list of all load balancer health monitors for a project. """ # Pass filters in "params" argument to do_request return self.list('health_monitors', self.health_monitors_path, retrieve_all,...
[ "def", "list_health_monitors", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'health_monitors'", ",", "self", ".", "health_monitors_path", ...
Fetches a list of all load balancer health monitors for a project.
[ "Fetches", "a", "list", "of", "all", "load", "balancer", "health", "monitors", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1202-L1208
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_health_monitor
def show_health_monitor(self, health_monitor, **_params): """Fetches information of a certain load balancer health monitor.""" return self.get(self.health_monitor_path % (health_monitor), params=_params)
python
def show_health_monitor(self, health_monitor, **_params): """Fetches information of a certain load balancer health monitor.""" return self.get(self.health_monitor_path % (health_monitor), params=_params)
[ "def", "show_health_monitor", "(", "self", ",", "health_monitor", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "health_monitor_path", "%", "(", "health_monitor", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain load balancer health monitor.
[ "Fetches", "information", "of", "a", "certain", "load", "balancer", "health", "monitor", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1210-L1213
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_health_monitor
def update_health_monitor(self, health_monitor, body=None): """Updates a load balancer health monitor.""" return self.put(self.health_monitor_path % (health_monitor), body=body)
python
def update_health_monitor(self, health_monitor, body=None): """Updates a load balancer health monitor.""" return self.put(self.health_monitor_path % (health_monitor), body=body)
[ "def", "update_health_monitor", "(", "self", ",", "health_monitor", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "health_monitor_path", "%", "(", "health_monitor", ")", ",", "body", "=", "body", ")" ]
Updates a load balancer health monitor.
[ "Updates", "a", "load", "balancer", "health", "monitor", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1219-L1221
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.associate_health_monitor
def associate_health_monitor(self, pool, body): """Associate specified load balancer health monitor and pool.""" return self.post(self.associate_pool_health_monitors_path % (pool), body=body)
python
def associate_health_monitor(self, pool, body): """Associate specified load balancer health monitor and pool.""" return self.post(self.associate_pool_health_monitors_path % (pool), body=body)
[ "def", "associate_health_monitor", "(", "self", ",", "pool", ",", "body", ")", ":", "return", "self", ".", "post", "(", "self", ".", "associate_pool_health_monitors_path", "%", "(", "pool", ")", ",", "body", "=", "body", ")" ]
Associate specified load balancer health monitor and pool.
[ "Associate", "specified", "load", "balancer", "health", "monitor", "and", "pool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1227-L1230
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.disassociate_health_monitor
def disassociate_health_monitor(self, pool, health_monitor): """Disassociate specified load balancer health monitor and pool.""" path = (self.disassociate_pool_health_monitors_path % {'pool': pool, 'health_monitor': health_monitor}) return self.delete(path)
python
def disassociate_health_monitor(self, pool, health_monitor): """Disassociate specified load balancer health monitor and pool.""" path = (self.disassociate_pool_health_monitors_path % {'pool': pool, 'health_monitor': health_monitor}) return self.delete(path)
[ "def", "disassociate_health_monitor", "(", "self", ",", "pool", ",", "health_monitor", ")", ":", "path", "=", "(", "self", ".", "disassociate_pool_health_monitors_path", "%", "{", "'pool'", ":", "pool", ",", "'health_monitor'", ":", "health_monitor", "}", ")", "...
Disassociate specified load balancer health monitor and pool.
[ "Disassociate", "specified", "load", "balancer", "health", "monitor", "and", "pool", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1232-L1236
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_qos_queue
def show_qos_queue(self, queue, **_params): """Fetches information of a certain queue.""" return self.get(self.qos_queue_path % (queue), params=_params)
python
def show_qos_queue(self, queue, **_params): """Fetches information of a certain queue.""" return self.get(self.qos_queue_path % (queue), params=_params)
[ "def", "show_qos_queue", "(", "self", ",", "queue", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "qos_queue_path", "%", "(", "queue", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain queue.
[ "Fetches", "information", "of", "a", "certain", "queue", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1246-L1249
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_agent
def show_agent(self, agent, **_params): """Fetches information of a certain agent.""" return self.get(self.agent_path % (agent), params=_params)
python
def show_agent(self, agent, **_params): """Fetches information of a certain agent.""" return self.get(self.agent_path % (agent), params=_params)
[ "def", "show_agent", "(", "self", ",", "agent", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "agent_path", "%", "(", "agent", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain agent.
[ "Fetches", "information", "of", "a", "certain", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1260-L1262
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_agent
def update_agent(self, agent, body=None): """Updates an agent.""" return self.put(self.agent_path % (agent), body=body)
python
def update_agent(self, agent, body=None): """Updates an agent.""" return self.put(self.agent_path % (agent), body=body)
[ "def", "update_agent", "(", "self", ",", "agent", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "agent_path", "%", "(", "agent", ")", ",", "body", "=", "body", ")" ]
Updates an agent.
[ "Updates", "an", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1264-L1266
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_network_gateway
def show_network_gateway(self, gateway_id, **_params): """Fetch a network gateway.""" return self.get(self.network_gateway_path % gateway_id, params=_params)
python
def show_network_gateway(self, gateway_id, **_params): """Fetch a network gateway.""" return self.get(self.network_gateway_path % gateway_id, params=_params)
[ "def", "show_network_gateway", "(", "self", ",", "gateway_id", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "network_gateway_path", "%", "gateway_id", ",", "params", "=", "_params", ")" ]
Fetch a network gateway.
[ "Fetch", "a", "network", "gateway", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1276-L1278
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_network_gateway
def update_network_gateway(self, gateway_id, body=None): """Update a network gateway.""" return self.put(self.network_gateway_path % gateway_id, body=body)
python
def update_network_gateway(self, gateway_id, body=None): """Update a network gateway.""" return self.put(self.network_gateway_path % gateway_id, body=body)
[ "def", "update_network_gateway", "(", "self", ",", "gateway_id", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "network_gateway_path", "%", "gateway_id", ",", "body", "=", "body", ")" ]
Update a network gateway.
[ "Update", "a", "network", "gateway", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1284-L1286
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.connect_network_gateway
def connect_network_gateway(self, gateway_id, body=None): """Connect a network gateway to the specified network.""" base_uri = self.network_gateway_path % gateway_id return self.put("%s/connect_network" % base_uri, body=body)
python
def connect_network_gateway(self, gateway_id, body=None): """Connect a network gateway to the specified network.""" base_uri = self.network_gateway_path % gateway_id return self.put("%s/connect_network" % base_uri, body=body)
[ "def", "connect_network_gateway", "(", "self", ",", "gateway_id", ",", "body", "=", "None", ")", ":", "base_uri", "=", "self", ".", "network_gateway_path", "%", "gateway_id", "return", "self", ".", "put", "(", "\"%s/connect_network\"", "%", "base_uri", ",", "b...
Connect a network gateway to the specified network.
[ "Connect", "a", "network", "gateway", "to", "the", "specified", "network", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1292-L1295
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.disconnect_network_gateway
def disconnect_network_gateway(self, gateway_id, body=None): """Disconnect a network from the specified gateway.""" base_uri = self.network_gateway_path % gateway_id return self.put("%s/disconnect_network" % base_uri, body=body)
python
def disconnect_network_gateway(self, gateway_id, body=None): """Disconnect a network from the specified gateway.""" base_uri = self.network_gateway_path % gateway_id return self.put("%s/disconnect_network" % base_uri, body=body)
[ "def", "disconnect_network_gateway", "(", "self", ",", "gateway_id", ",", "body", "=", "None", ")", ":", "base_uri", "=", "self", ".", "network_gateway_path", "%", "gateway_id", "return", "self", ".", "put", "(", "\"%s/disconnect_network\"", "%", "base_uri", ","...
Disconnect a network from the specified gateway.
[ "Disconnect", "a", "network", "from", "the", "specified", "gateway", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1297-L1300
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_gateway_device
def show_gateway_device(self, gateway_device_id, **_params): """Fetch a gateway device.""" return self.get(self.gateway_device_path % gateway_device_id, params=_params)
python
def show_gateway_device(self, gateway_device_id, **_params): """Fetch a gateway device.""" return self.get(self.gateway_device_path % gateway_device_id, params=_params)
[ "def", "show_gateway_device", "(", "self", ",", "gateway_device_id", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "gateway_device_path", "%", "gateway_device_id", ",", "params", "=", "_params", ")" ]
Fetch a gateway device.
[ "Fetch", "a", "gateway", "device", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1306-L1309
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_gateway_device
def update_gateway_device(self, gateway_device_id, body=None): """Updates a new gateway device.""" return self.put(self.gateway_device_path % gateway_device_id, body=body)
python
def update_gateway_device(self, gateway_device_id, body=None): """Updates a new gateway device.""" return self.put(self.gateway_device_path % gateway_device_id, body=body)
[ "def", "update_gateway_device", "(", "self", ",", "gateway_device_id", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "gateway_device_path", "%", "gateway_device_id", ",", "body", "=", "body", ")" ]
Updates a new gateway device.
[ "Updates", "a", "new", "gateway", "device", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1315-L1318
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_dhcp_agent_hosting_networks
def list_dhcp_agent_hosting_networks(self, network, **_params): """Fetches a list of dhcp agents hosting a network.""" return self.get((self.network_path + self.DHCP_AGENTS) % network, params=_params)
python
def list_dhcp_agent_hosting_networks(self, network, **_params): """Fetches a list of dhcp agents hosting a network.""" return self.get((self.network_path + self.DHCP_AGENTS) % network, params=_params)
[ "def", "list_dhcp_agent_hosting_networks", "(", "self", ",", "network", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "(", "self", ".", "network_path", "+", "self", ".", "DHCP_AGENTS", ")", "%", "network", ",", "params", "=", "_p...
Fetches a list of dhcp agents hosting a network.
[ "Fetches", "a", "list", "of", "dhcp", "agents", "hosting", "a", "network", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1324-L1327
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_networks_on_dhcp_agent
def list_networks_on_dhcp_agent(self, dhcp_agent, **_params): """Fetches a list of dhcp agents hosting a network.""" return self.get((self.agent_path + self.DHCP_NETS) % dhcp_agent, params=_params)
python
def list_networks_on_dhcp_agent(self, dhcp_agent, **_params): """Fetches a list of dhcp agents hosting a network.""" return self.get((self.agent_path + self.DHCP_NETS) % dhcp_agent, params=_params)
[ "def", "list_networks_on_dhcp_agent", "(", "self", ",", "dhcp_agent", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "(", "self", ".", "agent_path", "+", "self", ".", "DHCP_NETS", ")", "%", "dhcp_agent", ",", "params", "=", "_para...
Fetches a list of dhcp agents hosting a network.
[ "Fetches", "a", "list", "of", "dhcp", "agents", "hosting", "a", "network", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1329-L1332
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.add_network_to_dhcp_agent
def add_network_to_dhcp_agent(self, dhcp_agent, body=None): """Adds a network to dhcp agent.""" return self.post((self.agent_path + self.DHCP_NETS) % dhcp_agent, body=body)
python
def add_network_to_dhcp_agent(self, dhcp_agent, body=None): """Adds a network to dhcp agent.""" return self.post((self.agent_path + self.DHCP_NETS) % dhcp_agent, body=body)
[ "def", "add_network_to_dhcp_agent", "(", "self", ",", "dhcp_agent", ",", "body", "=", "None", ")", ":", "return", "self", ".", "post", "(", "(", "self", ".", "agent_path", "+", "self", ".", "DHCP_NETS", ")", "%", "dhcp_agent", ",", "body", "=", "body", ...
Adds a network to dhcp agent.
[ "Adds", "a", "network", "to", "dhcp", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1334-L1337
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.remove_network_from_dhcp_agent
def remove_network_from_dhcp_agent(self, dhcp_agent, network_id): """Remove a network from dhcp agent.""" return self.delete((self.agent_path + self.DHCP_NETS + "/%s") % ( dhcp_agent, network_id))
python
def remove_network_from_dhcp_agent(self, dhcp_agent, network_id): """Remove a network from dhcp agent.""" return self.delete((self.agent_path + self.DHCP_NETS + "/%s") % ( dhcp_agent, network_id))
[ "def", "remove_network_from_dhcp_agent", "(", "self", ",", "dhcp_agent", ",", "network_id", ")", ":", "return", "self", ".", "delete", "(", "(", "self", ".", "agent_path", "+", "self", ".", "DHCP_NETS", "+", "\"/%s\"", ")", "%", "(", "dhcp_agent", ",", "ne...
Remove a network from dhcp agent.
[ "Remove", "a", "network", "from", "dhcp", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1339-L1342
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_l3_agent_hosting_routers
def list_l3_agent_hosting_routers(self, router, **_params): """Fetches a list of L3 agents hosting a router.""" return self.get((self.router_path + self.L3_AGENTS) % router, params=_params)
python
def list_l3_agent_hosting_routers(self, router, **_params): """Fetches a list of L3 agents hosting a router.""" return self.get((self.router_path + self.L3_AGENTS) % router, params=_params)
[ "def", "list_l3_agent_hosting_routers", "(", "self", ",", "router", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "(", "self", ".", "router_path", "+", "self", ".", "L3_AGENTS", ")", "%", "router", ",", "params", "=", "_params", ...
Fetches a list of L3 agents hosting a router.
[ "Fetches", "a", "list", "of", "L3", "agents", "hosting", "a", "router", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1344-L1347
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_routers_on_l3_agent
def list_routers_on_l3_agent(self, l3_agent, **_params): """Fetches a list of L3 agents hosting a router.""" return self.get((self.agent_path + self.L3_ROUTERS) % l3_agent, params=_params)
python
def list_routers_on_l3_agent(self, l3_agent, **_params): """Fetches a list of L3 agents hosting a router.""" return self.get((self.agent_path + self.L3_ROUTERS) % l3_agent, params=_params)
[ "def", "list_routers_on_l3_agent", "(", "self", ",", "l3_agent", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "(", "self", ".", "agent_path", "+", "self", ".", "L3_ROUTERS", ")", "%", "l3_agent", ",", "params", "=", "_params", ...
Fetches a list of L3 agents hosting a router.
[ "Fetches", "a", "list", "of", "L3", "agents", "hosting", "a", "router", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1349-L1352
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.add_router_to_l3_agent
def add_router_to_l3_agent(self, l3_agent, body): """Adds a router to L3 agent.""" return self.post((self.agent_path + self.L3_ROUTERS) % l3_agent, body=body)
python
def add_router_to_l3_agent(self, l3_agent, body): """Adds a router to L3 agent.""" return self.post((self.agent_path + self.L3_ROUTERS) % l3_agent, body=body)
[ "def", "add_router_to_l3_agent", "(", "self", ",", "l3_agent", ",", "body", ")", ":", "return", "self", ".", "post", "(", "(", "self", ".", "agent_path", "+", "self", ".", "L3_ROUTERS", ")", "%", "l3_agent", ",", "body", "=", "body", ")" ]
Adds a router to L3 agent.
[ "Adds", "a", "router", "to", "L3", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1354-L1357
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_dragents_hosting_bgp_speaker
def list_dragents_hosting_bgp_speaker(self, bgp_speaker, **_params): """Fetches a list of Dynamic Routing agents hosting a BGP speaker.""" return self.get((self.bgp_speaker_path + self.BGP_DRAGENTS) % bgp_speaker, params=_params)
python
def list_dragents_hosting_bgp_speaker(self, bgp_speaker, **_params): """Fetches a list of Dynamic Routing agents hosting a BGP speaker.""" return self.get((self.bgp_speaker_path + self.BGP_DRAGENTS) % bgp_speaker, params=_params)
[ "def", "list_dragents_hosting_bgp_speaker", "(", "self", ",", "bgp_speaker", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "(", "self", ".", "bgp_speaker_path", "+", "self", ".", "BGP_DRAGENTS", ")", "%", "bgp_speaker", ",", "params"...
Fetches a list of Dynamic Routing agents hosting a BGP speaker.
[ "Fetches", "a", "list", "of", "Dynamic", "Routing", "agents", "hosting", "a", "BGP", "speaker", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1359-L1362
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.add_bgp_speaker_to_dragent
def add_bgp_speaker_to_dragent(self, bgp_dragent, body): """Adds a BGP speaker to Dynamic Routing agent.""" return self.post((self.agent_path + self.BGP_DRINSTANCES) % bgp_dragent, body=body)
python
def add_bgp_speaker_to_dragent(self, bgp_dragent, body): """Adds a BGP speaker to Dynamic Routing agent.""" return self.post((self.agent_path + self.BGP_DRINSTANCES) % bgp_dragent, body=body)
[ "def", "add_bgp_speaker_to_dragent", "(", "self", ",", "bgp_dragent", ",", "body", ")", ":", "return", "self", ".", "post", "(", "(", "self", ".", "agent_path", "+", "self", ".", "BGP_DRINSTANCES", ")", "%", "bgp_dragent", ",", "body", "=", "body", ")" ]
Adds a BGP speaker to Dynamic Routing agent.
[ "Adds", "a", "BGP", "speaker", "to", "Dynamic", "Routing", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1364-L1367
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.remove_bgp_speaker_from_dragent
def remove_bgp_speaker_from_dragent(self, bgp_dragent, bgpspeaker_id): """Removes a BGP speaker from Dynamic Routing agent.""" return self.delete((self.agent_path + self.BGP_DRINSTANCES + "/%s") % (bgp_dragent, bgpspeaker_id))
python
def remove_bgp_speaker_from_dragent(self, bgp_dragent, bgpspeaker_id): """Removes a BGP speaker from Dynamic Routing agent.""" return self.delete((self.agent_path + self.BGP_DRINSTANCES + "/%s") % (bgp_dragent, bgpspeaker_id))
[ "def", "remove_bgp_speaker_from_dragent", "(", "self", ",", "bgp_dragent", ",", "bgpspeaker_id", ")", ":", "return", "self", ".", "delete", "(", "(", "self", ".", "agent_path", "+", "self", ".", "BGP_DRINSTANCES", "+", "\"/%s\"", ")", "%", "(", "bgp_dragent", ...
Removes a BGP speaker from Dynamic Routing agent.
[ "Removes", "a", "BGP", "speaker", "from", "Dynamic", "Routing", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1369-L1372
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_bgp_speaker_on_dragent
def list_bgp_speaker_on_dragent(self, bgp_dragent, **_params): """Fetches a list of BGP speakers hosted by Dynamic Routing agent.""" return self.get((self.agent_path + self.BGP_DRINSTANCES) % bgp_dragent, params=_params)
python
def list_bgp_speaker_on_dragent(self, bgp_dragent, **_params): """Fetches a list of BGP speakers hosted by Dynamic Routing agent.""" return self.get((self.agent_path + self.BGP_DRINSTANCES) % bgp_dragent, params=_params)
[ "def", "list_bgp_speaker_on_dragent", "(", "self", ",", "bgp_dragent", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "(", "self", ".", "agent_path", "+", "self", ".", "BGP_DRINSTANCES", ")", "%", "bgp_dragent", ",", "params", "=", ...
Fetches a list of BGP speakers hosted by Dynamic Routing agent.
[ "Fetches", "a", "list", "of", "BGP", "speakers", "hosted", "by", "Dynamic", "Routing", "agent", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1374-L1377
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_firewall_rules
def list_firewall_rules(self, retrieve_all=True, **_params): """Fetches a list of all firewall rules for a project.""" # Pass filters in "params" argument to do_request return self.list('firewall_rules', self.firewall_rules_path, retrieve_all, **_params)
python
def list_firewall_rules(self, retrieve_all=True, **_params): """Fetches a list of all firewall rules for a project.""" # Pass filters in "params" argument to do_request return self.list('firewall_rules', self.firewall_rules_path, retrieve_all, **_params)
[ "def", "list_firewall_rules", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'firewall_rules'", ",", "self", ".", "firewall_rules_path", "...
Fetches a list of all firewall rules for a project.
[ "Fetches", "a", "list", "of", "all", "firewall", "rules", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1379-L1384
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.show_firewall_rule
def show_firewall_rule(self, firewall_rule, **_params): """Fetches information of a certain firewall rule.""" return self.get(self.firewall_rule_path % (firewall_rule), params=_params)
python
def show_firewall_rule(self, firewall_rule, **_params): """Fetches information of a certain firewall rule.""" return self.get(self.firewall_rule_path % (firewall_rule), params=_params)
[ "def", "show_firewall_rule", "(", "self", ",", "firewall_rule", ",", "*", "*", "_params", ")", ":", "return", "self", ".", "get", "(", "self", ".", "firewall_rule_path", "%", "(", "firewall_rule", ")", ",", "params", "=", "_params", ")" ]
Fetches information of a certain firewall rule.
[ "Fetches", "information", "of", "a", "certain", "firewall", "rule", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1386-L1389
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.update_firewall_rule
def update_firewall_rule(self, firewall_rule, body=None): """Updates a firewall rule.""" return self.put(self.firewall_rule_path % (firewall_rule), body=body)
python
def update_firewall_rule(self, firewall_rule, body=None): """Updates a firewall rule.""" return self.put(self.firewall_rule_path % (firewall_rule), body=body)
[ "def", "update_firewall_rule", "(", "self", ",", "firewall_rule", ",", "body", "=", "None", ")", ":", "return", "self", ".", "put", "(", "self", ".", "firewall_rule_path", "%", "(", "firewall_rule", ")", ",", "body", "=", "body", ")" ]
Updates a firewall rule.
[ "Updates", "a", "firewall", "rule", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1395-L1397
rackerlabs/rackspace-python-neutronclient
neutronclient/v2_0/client.py
Client.list_firewall_policies
def list_firewall_policies(self, retrieve_all=True, **_params): """Fetches a list of all firewall policies for a project.""" # Pass filters in "params" argument to do_request return self.list('firewall_policies', self.firewall_policies_path, retrieve_all, **_params)
python
def list_firewall_policies(self, retrieve_all=True, **_params): """Fetches a list of all firewall policies for a project.""" # Pass filters in "params" argument to do_request return self.list('firewall_policies', self.firewall_policies_path, retrieve_all, **_params)
[ "def", "list_firewall_policies", "(", "self", ",", "retrieve_all", "=", "True", ",", "*", "*", "_params", ")", ":", "# Pass filters in \"params\" argument to do_request", "return", "self", ".", "list", "(", "'firewall_policies'", ",", "self", ".", "firewall_policies_p...
Fetches a list of all firewall policies for a project.
[ "Fetches", "a", "list", "of", "all", "firewall", "policies", "for", "a", "project", "." ]
train
https://github.com/rackerlabs/rackspace-python-neutronclient/blob/5a5009a8fe078e3aa1d582176669f1b28ab26bef/neutronclient/v2_0/client.py#L1403-L1408