REST/HTTP binding (PSM) for the SysML v2 standard API.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 2021-09
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import sysml_v2_api_client
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 sysml_v2_api_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import sysml_v2_api_client
from sysml_v2_api_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = sysml_v2_api_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with sysml_v2_api_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = sysml_v2_api_client.BranchApi(api_client)
project_id = 'project_id_example' # str | ID of the project
branch_id = 'branch_id_example' # str | ID of the branch
try:
# Delete branch by project and ID
api_response = api_instance.delete_branch_by_project_and_id(project_id, branch_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling BranchApi->delete_branch_by_project_and_id: %s\n" % e)
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
BranchApi | delete_branch_by_project_and_id | DELETE /projects/{projectId}/branches/{branchId} | Delete branch by project and ID |
BranchApi | get_branches_by_project | GET /projects/{projectId}/branches | Get branches by project |
BranchApi | get_branches_by_project_and_id | GET /projects/{projectId}/branches/{branchId} | Get branch by project and ID |
BranchApi | post_branch_by_project | POST /projects/{projectId}/branches | Create branch by project |
CommitApi | get_commit_by_project_and_id | GET /projects/{projectId}/commits/{commitId} | Get commit by project and ID |
CommitApi | get_commits_by_project | GET /projects/{projectId}/commits | Get commits by project |
CommitApi | post_commit_by_project | POST /projects/{projectId}/commits | Create commit by project |
ElementApi | get_element_by_project_commit_id | GET /projects/{projectId}/commits/{commitId}/elements/{elementId} | Get element by project, commit and ID |
ElementApi | get_elements_by_project_commit | GET /projects/{projectId}/commits/{commitId}/elements | Get elements by project and commit |
ElementApi | get_roots_by_project_commit | GET /projects/{projectId}/commits/{commitId}/roots | Get root elements by project and commit |
ProjectApi | delete_project_by_id | DELETE /projects/{projectId} | Delete project by ID |
ProjectApi | get_project_by_id | GET /projects/{projectId} | Get project by ID |
ProjectApi | get_projects | GET /projects | Get projects |
ProjectApi | post_project | POST /projects | Create project |
ProjectApi | put_project_by_id | PUT /projects/{projectId} | Update project by ID |
QueryApi | delete_query_by_project_and_id | DELETE /projects/{projectId}/queries/{queryId} | Delete query by project and ID |
QueryApi | get_queries_by_project | GET /projects/{projectId}/queries | Get queries by project |
QueryApi | get_query_by_project_and_id | GET /projects/{projectId}/queries/{queryId} | Get query by project and ID |
QueryApi | get_query_results_by_project_id_query | GET /projects/{projectId}/query-results | Get query results by project and query definition |
QueryApi | get_query_results_by_project_id_query_id | GET /projects/{projectId}/queries/{queryId}/results | Get query results by project and query |
QueryApi | get_query_results_by_project_id_query_post | POST /projects/{projectId}/query-results | Get query results by project and query definition via POST |
QueryApi | post_query_by_project | POST /projects/{projectId}/queries | Create query by project |
RelationshipApi | get_relationships_by_project_commit_related_element | GET /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationships | Get relationships by project, commit, and related element |
TagApi | delete_tag_by_project_and_id | DELETE /projects/{projectId}/tags/{tagId} | Delete tag by project and ID |
TagApi | get_tag_by_project_and_id | GET /projects/{projectId}/tags/{tagId} | Get tag by project and ID |
TagApi | get_tags_by_project | GET /projects/{projectId}/tags | Get tags by project |
TagApi | post_tag_by_project | POST /projects/{projectId}/tags | Create tag by project |
- Branch
- BranchHead
- BranchOwningProject
- Commit
- CompositeConstraint
- Constraint
- Data
- DataIdentity
- DataVersion
- Element
- Error
- Identified
- PrimitiveConstraint
- Project
- ProjectDefaultBranch
- Query
- Relationship
- Tag
All endpoints do not require authorization.