Skip to main content

Systems Modeling API and Services

Project description

flexo-sysml

REST/HTTP Platform Specific Model (PSM) for the Systems Modeling API and Services. Implemented by the Flexo MMS SysML v2 Microservice.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.2.0
  • Package version: 0.2.0
  • Generator version: 7.22.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

Installation & Usage

pip install

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 flexo_sysml

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 flexo_sysml

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import flexo_sysml
from flexo_sysml.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = flexo_sysml.Configuration(
    host = "http://localhost:8080"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearerAuth
configuration = flexo_sysml.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with flexo_sysml.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = flexo_sysml.SysmlApi(api_client)
    project_id = 'project_id_example' # str | ID of the project
    branch_id = 'branch_id_example' # str | ID of the branch

    try:
        # Soft-delete branch by project and ID
        api_response = api_instance.delete_branch_by_project_and_id(project_id, branch_id)
        print("The response of SysmlApi->delete_branch_by_project_and_id:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling SysmlApi->delete_branch_by_project_and_id: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:8080

Class Method HTTP request Description
SysmlApi delete_branch_by_project_and_id DELETE /projects/{projectId}/branches/{branchId} Soft-delete branch by project and ID
SysmlApi delete_project_by_id DELETE /projects/{projectId} Soft-delete project by ID
SysmlApi delete_query_by_project_and_id DELETE /projects/{projectId}/queries/{queryId} Delete a saved query by ID
SysmlApi delete_tag_by_project_and_id DELETE /projects/{projectId}/tags/{tagId} Soft-delete tag by project and ID
SysmlApi diff GET /projects/{projectId}/commits/{compareCommitId}/diff Diff between a base commit and a compare commit (stub)
SysmlApi get_branch_by_project_and_id GET /projects/{projectId}/branches/{branchId} Get branch by project and ID
SysmlApi get_branches_by_project GET /projects/{projectId}/branches Get branches for a project
SysmlApi get_change_by_project_commit_id GET /projects/{projectId}/commits/{commitId}/changes/{changeId} Get a specific change (DataVersion) by ID (stub)
SysmlApi get_changes_by_project_commit GET /projects/{projectId}/commits/{commitId}/changes Get changes (DataVersions) for a commit (stub)
SysmlApi get_commit_by_project_and_id GET /projects/{projectId}/commits/{commitId} Get commit by project and ID
SysmlApi get_commits_by_project GET /projects/{projectId}/commits Get commits for a project
SysmlApi get_datatype_by_id GET /meta/datatypes/{datatypeId} Get a specific datatype by ID (stub)
SysmlApi get_datatypes GET /meta/datatypes Get available datatypes (stub)
SysmlApi get_element_by_project_commit_id GET /projects/{projectId}/commits/{commitId}/elements/{elementId} Get a specific element by ID at a commit
SysmlApi get_elements_by_project_commit GET /projects/{projectId}/commits/{commitId}/elements Get all elements at a specific commit
SysmlApi get_project_by_id GET /projects/{projectId} Get project by ID
SysmlApi get_project_usage_by_project_commit_element GET /projects/{projectId}/commits/{commitId}/elements/{elementId}/projectUsage Get ProjectUsage that originate the provided element
SysmlApi get_projects GET /projects Get all projects
SysmlApi get_queries_by_project GET /projects/{projectId}/queries Get saved queries for a project
SysmlApi get_query_by_project_and_id GET /projects/{projectId}/queries/{queryId} Get a saved query by ID
SysmlApi get_query_results_by_project_id_query GET /projects/{projectId}/query-results Execute an ad-hoc query via GET with body (stub)
SysmlApi get_query_results_by_project_id_query_id GET /projects/{projectId}/queries/{queryId}/results Execute a saved query and return results
SysmlApi get_query_results_by_project_id_query_post POST /projects/{projectId}/query-results Execute an ad-hoc query (via POST for client compatibility)
SysmlApi get_relationships_by_project_commit_related_element GET /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationships Get relationships for a related element
SysmlApi get_roots_by_project_commit GET /projects/{projectId}/commits/{commitId}/roots Get root elements at a specific commit
SysmlApi get_tag_by_project_and_id GET /projects/{projectId}/tags/{tagId} Get tag by project and ID
SysmlApi get_tags_by_project GET /projects/{projectId}/tags Get tags for a project
SysmlApi merge POST /projects/{projectId}/branches/{targetBranchId}/merge Merge source commit(s) into a target branch (stub)
SysmlApi post_branch_by_project POST /projects/{projectId}/branches Create a branch for a project
SysmlApi post_commit_by_project POST /projects/{projectId}/commits Create a commit for a project
SysmlApi post_project POST /projects Create a new project
SysmlApi post_query_by_project POST /projects/{projectId}/queries Create a saved query for a project
SysmlApi post_tag_by_project POST /projects/{projectId}/tags Create a tag for a project
SysmlApi put_project_by_id PUT /projects/{projectId} Update project by ID
SysmlApi put_query_by_project_and_id PUT /projects/{projectId}/queries/{queryId} Update a saved query by ID

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

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

flexo_sysml-0.2.0.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flexo_sysml-0.2.0-py3-none-any.whl (71.4 kB view details)

Uploaded Python 3

File details

Details for the file flexo_sysml-0.2.0.tar.gz.

File metadata

  • Download URL: flexo_sysml-0.2.0.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for flexo_sysml-0.2.0.tar.gz
Algorithm Hash digest
SHA256 92b4b155ce22d0c61384f7d0a71d4dc80d7342c4bc04b1b96fc764310a47587c
MD5 ad19e8a13d5dc54cdafaf84233795500
BLAKE2b-256 b3c8abb249611cd92d0160cbed55c15e7377954f952cea4c565d82b12ab0c6bc

See more details on using hashes here.

File details

Details for the file flexo_sysml-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: flexo_sysml-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 71.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for flexo_sysml-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fa38965d6fd1b2e617a7267aa8a678c8952acbaaf1f04df75d410423d759761
MD5 f7f55174de8deead94ffd68d64da9cd6
BLAKE2b-256 0f12be838ca4348c2f80a48861e824387add1841ea25b213bfaad7a736ace83a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page