Module Import alias Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body TryExcept body Return Call AttributeLoad NameLoad attr handlers ExceptHandler body Return AttributeLoad NameLoad attr Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Return ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Dict Str Str Str ListLoad Dict Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Dict Str Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad keyword Str keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A json N/A sys N/A requests Startup N/A object N/A __init__ N/A N/A self hostname user secret N/A N/A N/A N/A self _hostname hostname N/A N/A self _user user N/A N/A self _secret secret N/A N/A self _ep N/A http://%s/api/v1.0 hostname N/A request N/A N/A self resource method data N/A GET None N/A N/A N/A data None N/A N/A data N/A r N/A N/A requests request method N/A %s/%s/ N/A N/A self _ep resource data N/A N/A json dumps data headers N/A Content-Type application/json auth N/A N/A self _user N/A self _secret N/A N/A r ok N/A N/A N/A N/A N/A N/A r json N/A N/A N/A N/A N/A r text N/A N/A ValueError r N/A _get_disks N/A N/A self N/A N/A N/A disks N/A N/A self request storage/disk N/A N/A N/A disk N/A disk_name N/A disk disks N/A create_pool N/A N/A self N/A N/A N/A disks N/A N/A self _get_disks N/A N/A N/A self request storage/volume method POST data N/A volume_name layout tank N/A N/A vdevtype disks stripe disks N/A create_dataset N/A N/A self N/A N/A N/A N/A N/A self request storage/volume/tank/datasets method POST data N/A name MyShare N/A create_cifs_share N/A N/A self N/A N/A N/A N/A N/A self request sharing/cifs method POST data N/A cifs_name cifs_path cifs_guestonly My Test Share /mnt/tank/MyShare True N/A service_start N/A N/A self name N/A N/A N/A N/A N/A self request N/A services/services/%s name method PUT data N/A srv_enable True N/A run N/A N/A self N/A N/A N/A N/A N/A self create_pool N/A N/A N/A self create_dataset N/A N/A N/A self create_cifs_share N/A N/A N/A self service_start cifs N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument -H --hostname required True type str N/A N/A N/A parser add_argument -u --user required True type str N/A N/A N/A parser add_argument -p --passwd required True type str N/A args N/A N/A parser parse_args N/A N/A sys argv N/A 1 N/A startup N/A Startup N/A args hostname N/A args user N/A args passwd N/A N/A N/A startup run N/A N/A N/A __name__ __main__ N/A N/A N/A main