This is a python client for the sure_tosca REST service
Project description
sure_tosca_client
TOSCA Simple qUeRy sErvice (SURE).
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.1
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Requirements.
Python 3.6+
Publish in pypi
python setup.py sdist bdist_wheel
python -m twine upload dist/*
Installation & Usage
install from pypi.org
pip install sure-tosca-client
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import swagger_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import swagger_client
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
id = 'id_example' # str | ID of topolog template uplodaed
node_name = 'node_name_example' # str | node_name
try:
#
api_response = api_instance.get_all_ancestor_properties(id, node_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->get_all_ancestor_properties: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://localhost/tosca-sure/1.0.0
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | get_all_ancestor_properties | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/ancestors_properties | |
DefaultApi | get_all_ancestor_types | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/ancestors_types | |
DefaultApi | get_ancestors_requirements | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/ancestors_requirements | |
DefaultApi | get_dsl_definitions | GET /tosca_template/{id}/dsl_definitions | |
DefaultApi | get_imports | GET /tosca_template/{id}/imports | |
DefaultApi | get_node_outputs | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/outputs | |
DefaultApi | get_node_properties | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/properties | |
DefaultApi | get_node_requirements | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/requirements | |
DefaultApi | get_node_templates | GET /tosca_template/{id}/topology_template/node_templates | |
DefaultApi | get_node_type_name | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/type_name | |
DefaultApi | get_parent_type_name | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/derived_from | |
DefaultApi | get_related_nodes | GET /tosca_template/{id}/topology_template/node_templates/{node_name}/related | |
DefaultApi | get_relationship_templates | GET /tosca_template/{id}/relationship_templates | |
DefaultApi | get_topology_template | GET /tosca_template/{id}/topology_template | |
DefaultApi | get_tosca_template | GET /tosca_template/{id} | |
DefaultApi | get_types | GET /tosca_template/{id}/types | |
DefaultApi | set_node_properties | PUT /tosca_template/{id}/topology_template/node_templates/{node_name}/properties | |
DefaultApi | upload_tosca_template | POST /tosca_template | upload a tosca template description file |
Documentation For Models
Documentation For Authorization
All endpoints do not require authorization.
Author
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sure_tosca_client-1.0.6.tar.gz
.
File metadata
- Download URL: sure_tosca_client-1.0.6.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e0615bd387e8bdb72149f438d2659575c64c795ce69474611ee901e29f2303 |
|
MD5 | 3018c60f688dc3c36bab0cbef2d85b81 |
|
BLAKE2b-256 | 1c22b5ddbf7f74fc6d97917191f868795bad3b9f982105208047694908ce4851 |
File details
Details for the file sure_tosca_client-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: sure_tosca_client-1.0.6-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ff8e75f6ce592770a554b10006da1fc9f4fb7dee0e1d65dd354cfa6a50884a |
|
MD5 | 50d0776182ba662923623ac7f098f0c0 |
|
BLAKE2b-256 | 84bec75eeb3b4e189f4c4a2739213d45b6913371c72b3c00d6eb4e918285e1ee |