Skip to content

Commit

Permalink
Renamed package openapi_client to cyperf.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmajumdarKS committed Aug 12, 2024
1 parent 20e5fe9 commit 93b87fb
Show file tree
Hide file tree
Showing 655 changed files with 3,428 additions and 3,428 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: openapi_client Python package
name: cyperf Python package

on: [push, pull_request]

Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stages:
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=openapi_client
- pytest --cov=cyperf

pytest-3.7:
extends: .pytest
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ install:
- "pip install -r requirements.txt"
- "pip install -r test-requirements.txt"
# command to run tests
script: pytest --cov=openapi_client
script: pytest --cov=cyperf
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openapi-client
# cyperf
CyPerf REST API

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
Expand All @@ -24,7 +24,7 @@ pip install cyperf

Then import the package:
```python
import openapi_client
import cyperf
```

### Setuptools
Expand All @@ -38,7 +38,7 @@ python setup.py install --user

Then import the package:
```python
import openapi_client
import cyperf
```

### Tests
Expand All @@ -51,15 +51,15 @@ Please follow the [installation procedure](#installation--usage) and then run th

```python

import openapi_client
from openapi_client.rest import ApiException
import cyperf
from cyperf.rest import ApiException
from pprint import pprint

controller = "localhost"
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = f"https://{localhost}"
controller = "localhost"
configuration = cyperf.Configuration(
host = f"https://{controller}"
)

# The client must configure the authentication and authorization parameters
Expand All @@ -70,9 +70,9 @@ configuration = openapi_client.Configuration(
configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with cyperf.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.AgentsApi(api_client)
api_instance = cyperf.AgentsApi(api_client)
agent_id = 'agent_id_example' # str | The ID of the agent.

try:
Expand All @@ -84,7 +84,7 @@ with openapi_client.ApiClient(configuration) as api_client:

## Documentation for API Endpoints

All URIs are relative to *https://localhost*
All URIs are relative to *https://<controller-host>*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
366 changes: 366 additions & 0 deletions cyperf/__init__.py

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions cyperf/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# flake8: noqa

# import apis into api package
from cyperf.api.agents_api import AgentsApi
from cyperf.api.application_resources_api import ApplicationResourcesApi
from cyperf.api.authorization_api import AuthorizationApi
from cyperf.api.brokers_api import BrokersApi
from cyperf.api.configurations_api import ConfigurationsApi
from cyperf.api.data_migration_api import DataMigrationApi
from cyperf.api.diagnostics_api import DiagnosticsApi
from cyperf.api.license_servers_api import LicenseServersApi
from cyperf.api.licensing_api import LicensingApi
from cyperf.api.notifications_api import NotificationsApi
from cyperf.api.reports_api import ReportsApi
from cyperf.api.sessions_api import SessionsApi
from cyperf.api.statistics_api import StatisticsApi
from cyperf.api.test_operations_api import TestOperationsApi
from cyperf.api.test_results_api import TestResultsApi
from cyperf.api.utils_api import UtilsApi

30 changes: 15 additions & 15 deletions rest/api/agents_api.py → cyperf/api/agents_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
from pydantic import Field, StrictInt, StrictStr, field_validator
from typing import List, Optional
from typing_extensions import Annotated
from openapi_client.models.agent import Agent
from openapi_client.models.api_v2_agents_get200_response import ApiV2AgentsGet200Response
from openapi_client.models.api_v2_agents_operations_batch_delete_post_request_inner import ApiV2AgentsOperationsBatchDeletePostRequestInner
from openapi_client.models.api_v2_tags_get200_response import ApiV2TagsGet200Response
from openapi_client.models.async_context import AsyncContext
from openapi_client.models.export_files_operation_input import ExportFilesOperationInput
from openapi_client.models.reboot_operation_input import RebootOperationInput
from openapi_client.models.release_operation_input import ReleaseOperationInput
from openapi_client.models.reserve_operation_input import ReserveOperationInput
from openapi_client.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput
from openapi_client.models.set_ntp_operation_input import SetNtpOperationInput

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.models.agent import Agent
from cyperf.models.api_v2_agents_get200_response import ApiV2AgentsGet200Response
from cyperf.models.api_v2_agents_operations_batch_delete_post_request_inner import ApiV2AgentsOperationsBatchDeletePostRequestInner
from cyperf.models.api_v2_tags_get200_response import ApiV2TagsGet200Response
from cyperf.models.async_context import AsyncContext
from cyperf.models.export_files_operation_input import ExportFilesOperationInput
from cyperf.models.reboot_operation_input import RebootOperationInput
from cyperf.models.release_operation_input import ReleaseOperationInput
from cyperf.models.reserve_operation_input import ReserveOperationInput
from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput
from cyperf.models.set_ntp_operation_input import SetNtpOperationInput

from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class AgentsApi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@
from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator
from typing import List, Optional, Union
from typing_extensions import Annotated
from openapi_client.models.api_v2_resources_application_types_get200_response import ApiV2ResourcesApplicationTypesGet200Response
from openapi_client.models.api_v2_resources_apps_get200_response import ApiV2ResourcesAppsGet200Response
from openapi_client.models.api_v2_resources_attacks_get200_response import ApiV2ResourcesAttacksGet200Response
from openapi_client.models.api_v2_resources_auth_profiles_get200_response import ApiV2ResourcesAuthProfilesGet200Response
from openapi_client.models.api_v2_resources_certificates_get200_response import ApiV2ResourcesCertificatesGet200Response
from openapi_client.models.api_v2_resources_http_profiles_get200_response import ApiV2ResourcesHttpProfilesGet200Response
from openapi_client.models.application_type import ApplicationType
from openapi_client.models.appsec_app import AppsecApp
from openapi_client.models.appsec_attack import AppsecAttack
from openapi_client.models.async_context import AsyncContext
from openapi_client.models.auth_profile import AuthProfile
from openapi_client.models.category import Category
from openapi_client.models.generic_file import GenericFile
from openapi_client.models.get_attacks_operation import GetAttacksOperation
from openapi_client.models.get_categories_operation import GetCategoriesOperation
from openapi_client.models.get_strikes_operation import GetStrikesOperation
from openapi_client.models.http_profile import HTTPProfile

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.models.api_v2_resources_application_types_get200_response import ApiV2ResourcesApplicationTypesGet200Response
from cyperf.models.api_v2_resources_apps_get200_response import ApiV2ResourcesAppsGet200Response
from cyperf.models.api_v2_resources_attacks_get200_response import ApiV2ResourcesAttacksGet200Response
from cyperf.models.api_v2_resources_auth_profiles_get200_response import ApiV2ResourcesAuthProfilesGet200Response
from cyperf.models.api_v2_resources_certificates_get200_response import ApiV2ResourcesCertificatesGet200Response
from cyperf.models.api_v2_resources_http_profiles_get200_response import ApiV2ResourcesHttpProfilesGet200Response
from cyperf.models.application_type import ApplicationType
from cyperf.models.appsec_app import AppsecApp
from cyperf.models.appsec_attack import AppsecAttack
from cyperf.models.async_context import AsyncContext
from cyperf.models.auth_profile import AuthProfile
from cyperf.models.category import Category
from cyperf.models.generic_file import GenericFile
from cyperf.models.get_attacks_operation import GetAttacksOperation
from cyperf.models.get_categories_operation import GetCategoriesOperation
from cyperf.models.get_strikes_operation import GetStrikesOperation
from cyperf.models.http_profile import HTTPProfile

from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class ApplicationResourcesApi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
from pydantic import Field, StrictStr, field_validator
from typing import Optional
from typing_extensions import Annotated
from openapi_client.models.auth_realms_keysight_protocol_openid_connect_token_post200_response import AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response
from cyperf.models.auth_realms_keysight_protocol_openid_connect_token_post200_response import AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class AuthorizationApi:
Expand Down
10 changes: 5 additions & 5 deletions rest/api/brokers_api.py → cyperf/api/brokers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
from pydantic import Field, StrictInt, StrictStr
from typing import List, Optional
from typing_extensions import Annotated
from openapi_client.models.api_v2_brokers_get200_response import ApiV2BrokersGet200Response
from openapi_client.models.broker import Broker
from cyperf.models.api_v2_brokers_get200_response import ApiV2BrokersGet200Response
from cyperf.models.broker import Broker

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class BrokersApi:
Expand Down
24 changes: 12 additions & 12 deletions rest/api/configurations_api.py → cyperf/api/configurations_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator
from typing import List, Optional, Union
from typing_extensions import Annotated
from openapi_client.models.api_v2_agents_operations_batch_delete_post_request_inner import ApiV2AgentsOperationsBatchDeletePostRequestInner
from openapi_client.models.api_v2_config_categories_get200_response import ApiV2ConfigCategoriesGet200Response
from openapi_client.models.api_v2_configs_get200_response import ApiV2ConfigsGet200Response
from openapi_client.models.api_v2_resources_custom_import_operations_get200_response import ApiV2ResourcesCustomImportOperationsGet200Response
from openapi_client.models.async_context import AsyncContext
from openapi_client.models.config_metadata import ConfigMetadata
from openapi_client.models.export_all_operation import ExportAllOperation
from openapi_client.models.import_all_operation import ImportAllOperation

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.models.api_v2_agents_operations_batch_delete_post_request_inner import ApiV2AgentsOperationsBatchDeletePostRequestInner
from cyperf.models.api_v2_config_categories_get200_response import ApiV2ConfigCategoriesGet200Response
from cyperf.models.api_v2_configs_get200_response import ApiV2ConfigsGet200Response
from cyperf.models.api_v2_resources_custom_import_operations_get200_response import ApiV2ResourcesCustomImportOperationsGet200Response
from cyperf.models.async_context import AsyncContext
from cyperf.models.config_metadata import ConfigMetadata
from cyperf.models.export_all_operation import ExportAllOperation
from cyperf.models.import_all_operation import ImportAllOperation

from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class ConfigurationsApi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
from pydantic import Field, StrictBytes, StrictInt, StrictStr
from typing import Optional, Union
from typing_extensions import Annotated
from openapi_client.models.async_context import AsyncContext
from openapi_client.models.export_package_operation import ExportPackageOperation
from cyperf.models.async_context import AsyncContext
from cyperf.models.export_package_operation import ExportPackageOperation

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class DataMigrationApi:
Expand Down
16 changes: 8 additions & 8 deletions rest/api/diagnostics_api.py → cyperf/api/diagnostics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
from pydantic import Field, StrictBytes, StrictInt, StrictStr
from typing import List, Optional, Union
from typing_extensions import Annotated
from openapi_client.models.archive_info import ArchiveInfo
from openapi_client.models.async_operation_response import AsyncOperationResponse
from openapi_client.models.diagnostic_component import DiagnosticComponent
from openapi_client.models.diagnostic_component_context import DiagnosticComponentContext

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.models.archive_info import ArchiveInfo
from cyperf.models.async_operation_response import AsyncOperationResponse
from cyperf.models.diagnostic_component import DiagnosticComponent
from cyperf.models.diagnostic_component_context import DiagnosticComponentContext

from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class DiagnosticsApi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
from pydantic import Field, StrictInt, StrictStr
from typing import List, Optional
from typing_extensions import Annotated
from openapi_client.models.api_v2_license_servers_get200_response import ApiV2LicenseServersGet200Response
from openapi_client.models.license_server_metadata import LicenseServerMetadata
from cyperf.models.api_v2_license_servers_get200_response import ApiV2LicenseServersGet200Response
from cyperf.models.license_server_metadata import LicenseServerMetadata

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class LicenseServersApi:
Expand Down
30 changes: 15 additions & 15 deletions rest/api/licensing_api.py → cyperf/api/licensing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator
from typing import List, Optional, Union
from typing_extensions import Annotated
from openapi_client.models.activation_code_list_request import ActivationCodeListRequest
from openapi_client.models.activation_code_request import ActivationCodeRequest
from openapi_client.models.async_operation_response import AsyncOperationResponse
from openapi_client.models.entitlement_code_request import EntitlementCodeRequest
from openapi_client.models.feature_reservation_reserve import FeatureReservationReserve
from openapi_client.models.fulfillment_request import FulfillmentRequest
from openapi_client.models.get_async_operation_result200_response import GetAsyncOperationResult200Response
from openapi_client.models.get_license_async_operation_result200_response import GetLicenseAsyncOperationResult200Response
from openapi_client.models.host_id import HostID
from openapi_client.models.import_offline_license_result import ImportOfflineLicenseResult
from openapi_client.models.license import License

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.models.activation_code_list_request import ActivationCodeListRequest
from cyperf.models.activation_code_request import ActivationCodeRequest
from cyperf.models.async_operation_response import AsyncOperationResponse
from cyperf.models.entitlement_code_request import EntitlementCodeRequest
from cyperf.models.feature_reservation_reserve import FeatureReservationReserve
from cyperf.models.fulfillment_request import FulfillmentRequest
from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response
from cyperf.models.get_license_async_operation_result200_response import GetLicenseAsyncOperationResult200Response
from cyperf.models.host_id import HostID
from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult
from cyperf.models.license import License

from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class LicensingApi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
from pydantic import Field, StrictBool, StrictInt, StrictStr
from typing import Optional
from typing_extensions import Annotated
from openapi_client.models.api_v2_notification_counts_get200_response import ApiV2NotificationCountsGet200Response
from openapi_client.models.api_v2_notifications_get200_response import ApiV2NotificationsGet200Response
from openapi_client.models.async_context import AsyncContext
from openapi_client.models.notification import Notification

from openapi_client.api_client import ApiClient, RequestSerialized
from openapi_client.api_response import ApiResponse
from openapi_client.rest import RESTResponseType
from cyperf.models.api_v2_notification_counts_get200_response import ApiV2NotificationCountsGet200Response
from cyperf.models.api_v2_notifications_get200_response import ApiV2NotificationsGet200Response
from cyperf.models.async_context import AsyncContext
from cyperf.models.notification import Notification

from cyperf.api_client import ApiClient, RequestSerialized
from cyperf.api_response import ApiResponse
from cyperf.rest import RESTResponseType


class NotificationsApi:
Expand Down
Loading

0 comments on commit 93b87fb

Please sign in to comment.