rest.connector package¶
Subpackages¶
Module contents¶
rest.connector module defines a connection implementation to communicate to the device via REST api
- class rest.connector.Rest(*args, **kwargs)¶
Bases:
pyats.connections.bases.BaseConnection
Used for picking the right abstraction of REST implementatin based on the device, via abstraction
It also overwrittes __getattribute__ to go look in the right abstracted class
__init__ instantiates a single connection instance.
- class rest.connector.Acisdk(*args, **kwargs)¶
Bases:
rest.connector.libs.apic.acisdk_implementation.AciCobra
instantiates this pipeline instance and store arguments internally.
- Parameters
(obj) (device) –
(str) (via) –
(str) –
(dict) (kwargs) –
Note
this api only supports keyword-only arguments for clarity’s sake.