Skip to content

Commit

Permalink
Added logo. Fixed driver structure and properties type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexquali committed Jul 9, 2024
1 parent 78e44e5 commit 6414df7
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 18 deletions.
Binary file added ServerTechnology.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions cloudshell/server_tech/helpers/__init__.py

This file was deleted.

19 changes: 10 additions & 9 deletions shell-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ node_types:
properties:
Web API Port:
description: Port to use for REST API connection.
type: Numeric
type: integer
default: 443
Protocol Scheme:
type: string
default: "https"
description:
description: Switch protocol between HTTP or HTTPS
constraints:
- valid_values: [ http, https]
capabilities:
Expand All @@ -46,15 +46,16 @@ node_types:
Password:
description: The password is required by some CLI protocols such as Telnet and is required according to the device configuration.
type: cloudshell.datatypes.Password
Protocol Scheme:
type: string
default: "https"
description:
constraints:
- valid_values: [ http, https]
Protocol Scheme:
type: string
default: "https"
description:
constraints:
- valid_values: [ http, https]
Web API Port:
description: Port to use for REST API connection.
type: Numeric
default: 443
type: integer
artifacts:
icon:
file: ServerTechnology.png
Expand Down
4 changes: 2 additions & 2 deletions src/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
from cloudshell.shell.standards.pdu.driver_interface import PDUResourceDriverInterface
from cloudshell.shell.standards.pdu.resource_config import RESTAPIPDUResourceConfig

from cloudshell.server_tech.flows.server_tech_autoload_flow import (
from server_tech.flows.server_tech_autoload_flow import (
ServerTechAutoloadFlow
)
from cloudshell.server_tech.flows.server_tech_state_flow import (
from server_tech.flows.server_tech_state_flow import (
ServerTechOutletsStateFlow
)

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import TYPE_CHECKING

from cloudshell.shell.flows.autoload.basic_flow import AbstractAutoloadFlow
from cloudshell.server_tech.handlers.rest_api_handler import ServerTechAPI
from server_tech.handlers.rest_api_handler import ServerTechAPI

if TYPE_CHECKING:
from cloudshell.shell.core.driver_context import AutoLoadDetails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from attrs import define
from typing import TYPE_CHECKING

from cloudshell.server_tech.handlers.rest_api_handler import ServerTechAPI
from cloudshell.server_tech.helpers.errors import NotSupportedServerTechError
from server_tech.handlers.rest_api_handler import ServerTechAPI
from server_tech.helpers.errors import NotSupportedServerTechError

if TYPE_CHECKING:
from cloudshell.shell.standards.pdu.resource_config import RESTAPIPDUResourceConfig
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import urllib3


from cloudshell.server_tech.helpers.errors import (
from server_tech.helpers.errors import (
BaseServerTechError,
RESTAPIServerTechError,
)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6414df7

Please sign in to comment.