mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 07:55:31 +00:00
CP-1897 Changed license file.
This commit is contained in:
parent
bcfd6c62c8
commit
e907baff69
72
.github/workflows/release.yaml
vendored
72
.github/workflows/release.yaml
vendored
@ -1 +1,73 @@
|
|||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
set-package-matrix:
|
||||||
|
# This action returns all sub-packages to be published, except the `thousandeyes-sdk-core`.
|
||||||
|
# It thens exports the variable to matrix, so that the deployment job is run individually for each sub-package
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
packages: ${{ steps.packages.outputs.packages }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- id: packages
|
||||||
|
run: |
|
||||||
|
FOLDERS_JSON=$(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" ! -name "thousandeyes-sdk-core"| cut -c 3- | jq -R -s -c 'split("\n")[:-1]')
|
||||||
|
echo "packages=$FOLDERS_JSON" >> "$GITHUB_OUTPUT"
|
||||||
|
deployment:
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
needs: set-package-matrix
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
package-name: ${{ fromJSON(needs.set-package-matrix.outputs.packages) }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
environment:
|
||||||
|
name: test
|
||||||
|
url: https://pypi.org/p/${{ matrix.package-name }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
token: ${{ secrets.TEST_PAT }}
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
cache: pip
|
||||||
|
cache-dependency-path: '**/pyproject.toml'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install setuptools wheel build
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cp .version ${{ matrix.package-name }}/
|
||||||
|
python -m build ${{ matrix.package-name }} --outdir dist/
|
||||||
|
- name: Publish
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
skip-existing: true
|
||||||
|
bump-version:
|
||||||
|
needs: deployment
|
||||||
|
name: Bump version and commit
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
cache: pip
|
||||||
|
python-version: '3.11'
|
||||||
|
- name: Install bumpversion
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_COMMIT_TO_MAIN }}
|
||||||
|
run: |
|
||||||
|
git config user.name "API Team"
|
||||||
|
git config user.email "api-team@thousandeyes.com"
|
||||||
|
|
||||||
|
pip install bumpversion
|
||||||
|
bumpversion minor --commit
|
||||||
|
git push --force
|
||||||
|
|||||||
29
test.py
Normal file
29
test.py
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import thousandeyes_sdk.core
|
||||||
|
import thousandeyes_sdk.usage
|
||||||
|
from thousandeyes_sdk.core.exceptions import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# 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: BearerAuth
|
||||||
|
configuration = thousandeyes_sdk.core.Configuration(
|
||||||
|
access_token='8b919a53-6977-4d19-92a7-3615a20836b2',
|
||||||
|
host='https://api.stg.thousandeyes.com'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with thousandeyes_sdk.core.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = thousandeyes_sdk.usage.UsageApi(api_client)
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Create or update accout group quotas
|
||||||
|
api_response = api_instance.get_usage(aid="85486")
|
||||||
|
print("The response of UsageApi->assign_organizations_account_groups_quotas:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except ApiException as e:
|
||||||
|
print("Exception when calling QuotasApi->assign_organizations_account_groups_quotas: %s\n" % e)
|
||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Administrative API"
|
description = "ThousandEyes SDK Administrative API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Agents API"
|
description = "ThousandEyes SDK Agents API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Alerts API"
|
description = "ThousandEyes SDK Alerts API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK BGP Monitors API"
|
description = "ThousandEyes SDK BGP Monitors API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Core"
|
description = "ThousandEyes SDK Core"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Credentials API"
|
description = "ThousandEyes SDK Credentials API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Dashboards API"
|
description = "ThousandEyes SDK Dashboards API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Endpoint Agents API"
|
description = "ThousandEyes SDK Endpoint Agents API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Endpoint Instant Scheduled Tests API"
|
description = "ThousandEyes SDK Endpoint Instant Scheduled Tests API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Endpoint Agent Labels API"
|
description = "ThousandEyes SDK Endpoint Agent Labels API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Endpoint Test Results API"
|
description = "ThousandEyes SDK Endpoint Test Results API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Endpoint Tests API"
|
description = "ThousandEyes SDK Endpoint Tests API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Instant Tests API"
|
description = "ThousandEyes SDK Instant Tests API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Internet Insights API"
|
description = "ThousandEyes SDK Internet Insights API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Labels API"
|
description = "ThousandEyes SDK Labels API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Test Snapshots API"
|
description = "ThousandEyes SDK Test Snapshots API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK ThousandEyes for OpenTelemetry API"
|
description = "ThousandEyes SDK ThousandEyes for OpenTelemetry API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Tags API"
|
description = "ThousandEyes SDK Tags API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Test Results API"
|
description = "ThousandEyes SDK Test Results API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Tests API"
|
description = "ThousandEyes SDK Tests API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
@ -6,7 +6,7 @@ authors = [
|
|||||||
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
{ name = "ThousandEyes API Team", email = "api-team@thousandeyes.com" }
|
||||||
]
|
]
|
||||||
description = "ThousandEyes SDK Usage API"
|
description = "ThousandEyes SDK Usage API"
|
||||||
license = { text = "../LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 1.25.3",
|
"urllib3 >= 1.25.3",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user