Python SDK for Sonatype Nexus IQ Server
Project description
Sonatype: Nexus IQ Server - Python SDK
Installation
If the python package is hosted on Github, you can install directly from Github
pip install nexus_iq_sdk
Then import the package:
import nexus_iq_sdk
Then import the package:
import nexus_iq_sdk
Getting Started
from __future__ import print_function
import time
import nexus_iq_sdk
from nexus_iq_sdk.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
organization_id = 'organization_id_example' # str |
body = nexus_iq_sdk.ApiApplicationCategoryDTO() # ApiApplicationCategoryDTO | (optional)
try:
api_response = api_instance.add_tag(organization_id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->add_tag: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
organization_id = 'organization_id_example' # str |
tag_id = 'tag_id_example' # str |
try:
api_instance.delete_tag(organization_id, tag_id)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->delete_tag: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
organization_id = 'organization_id_example' # str |
try:
api_response = api_instance.get_applicable_tags(organization_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->get_applicable_tags: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
application_public_id = 'application_public_id_example' # str |
try:
api_response = api_instance.get_applicable_tags_by_application_public_id(application_public_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->get_applicable_tags_by_application_public_id: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
application_public_id = 'application_public_id_example' # str |
try:
api_response = api_instance.get_application_applicable_tags(application_public_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->get_application_applicable_tags: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
organization_id = 'organization_id_example' # str |
try:
api_response = api_instance.get_applied_policy_tags(organization_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->get_applied_policy_tags: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
organization_id = 'organization_id_example' # str |
try:
api_response = api_instance.get_applied_tags(organization_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->get_applied_tags: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
organization_id = 'organization_id_example' # str |
try:
api_response = api_instance.get_tags(organization_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->get_tags: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
try:
api_response = api_instance.get_tags_used_by_applications()
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->get_tags_used_by_applications: %s\n" % e)
# create an instance of the API class
api_instance = nexus_iq_sdk.ApplicationCategoriesApi(nexus_iq_sdk.ApiClient(configuration))
organization_id = 'organization_id_example' # str |
body = nexus_iq_sdk.ApiApplicationCategoryDTO() # ApiApplicationCategoryDTO | (optional)
try:
api_response = api_instance.update_tag(organization_id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationCategoriesApi->update_tag: %s\n" % e)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sonatype_nexus_iq_sdk-0.1.0.tar.gz
(138.7 kB
view hashes)
Built Distribution
Close
Hashes for sonatype_nexus_iq_sdk-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3408a29752e9e1d74e5241943cc5d6f6266074d31064a27f7cffbe7c2d548e76 |
|
MD5 | 0fc952f53fe4d60bff760cefc8352b46 |
|
BLAKE2b-256 | 9af2ffa9da736f754ba0bced1b8775ecdffe47dc189d144218d99204142dc1c7 |
Close
Hashes for sonatype_nexus_iq_sdk-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c21e06eb5ddcc51f722e4743db398b5803b2d97c7e5ed8faea11cfeb969260c6 |
|
MD5 | b8390f25e0b21e2961d31ed3d752a99e |
|
BLAKE2b-256 | 88bb6b683fca3decbaa4162881b1155f86f36138288761f0239629cbab5221e9 |