Giter VIP home page Giter VIP logo

edgeconnect-python's People

Contributors

zachcamara-hpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

edgeconnect-python's Issues

Methods with return type "full_response" have a type-hint of dict

A few methods in pyedgeconnect use return_type="full_response" to return a requests.model.Response object, however, while the docstring has the properly documented return type, the definition line type-hint incorrectly often has dict

current

def get_appliance_stats_minute_file(
    self,
    file: str,
) -> dict:

instead of

def get_appliance_stats_minute_file(
    self,
    file: str,
) -> requests.Response:

Get All Users Incorrect Method

The get_all_users() method is implemented using the post method as opposed to get. File _users.py line 45 should be corrected to "return self._get("/users")".

Update Appliance Access Group returns Null Value Error

Passing the Orchestrator.upldate_appliance_access_group() method will pass the default value of "None" if either the appliance groups list or the appliance regions lists are not passed. This returns a HTTP 400 "Received Null value for group or region". A blank list must be passed currently to overcome this error.

Preconfig code example missing parameter for serial_number to match against appliance serial

The preconfig generator example looks for a column in CSV file for serial_number, however, it doesn't use the data when saving the preconfig on Orchestrator to match against an appliance

        # Set value for serial number if provided
        appliance_serial = row.get("serial_number")
        if appliance_serial is None:
            appliance_serial = ""
        else:
            pass

When orch.create_preconfig() is called, it doesn't assign this to the parameter serial_number:

                orch.create_preconfig(
                    preconfig_name=row["hostname"],
                    yaml_preconfig=yaml_preconfig,
                    auto_apply=auto_apply,
                    tag=row["hostname"],
                    ### MISSING -- serial_number = appliance_serial,
                    comment=f"Created/Uploaded @ {comment_timestamp}",
                )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.