No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the Swagger Codegen project:
- API version: v1.0.2
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
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 pipeline_publisher_python
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 pipeline_publisher_python
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import pipeline_publisher_python
from pipeline_publisher_python.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
pipeline_publisher_python.configuration.username = 'YOUR_USERNAME'
pipeline_publisher_python.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = pipeline_publisher_python.MessagesApi()
message = pipeline_publisher_python.Message() # Message | Note: At least one key/value pair for identifiers field is required.
try:
# Creates a message on the pipeline
api_instance.messages_post(message)
except ApiException as e:
print("Exception when calling MessagesApi->messages_post: %s\n" % e)
All URIs are relative to https://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
MessagesApi | messages_post | POST /messages | Creates a message on the pipeline |
StreamMetricsApi | stream_metrics_get | GET /stream_metrics | Fetches metrics about the stream |
- Type: HTTP basic authentication