You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

codegen-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codegen-api-client

Developer API

1.0.0
pipPyPI
Maintainers
1

codegen-api-client

API for application developers

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

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.8+

Installation & Usage

uv sync

If the python package is hosted on a repository, you can install directly using:

uv pip install codegen-api-client

Then import the package:

import codegen_api_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:


import codegen_api_client
from codegen_api_client.rest import ApiException
from pprint import pprint

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



# Enter a context with an instance of the API client
with codegen_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = codegen_api_client.AgentsApi(api_client)
    org_id = 56 # int | 
    create_agent_run_input = codegen_api_client.CreateAgentRunInput() # CreateAgentRunInput | 
    authorization = None # object |  (optional)

    try:
        # Create Agent Run
        api_response = api_instance.create_agent_run_v1_organizations_org_id_agent_run_post(org_id, create_agent_run_input, authorization=authorization)
        print("The response of AgentsApi->create_agent_run_v1_organizations_org_id_agent_run_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AgentsApi->create_agent_run_v1_organizations_org_id_agent_run_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
AgentsApicreate_agent_run_v1_organizations_org_id_agent_run_postPOST /v1/organizations/{org_id}/agent/runCreate Agent Run
AgentsApicreate_agent_run_v1_organizations_org_id_agent_run_post_0POST /v1/organizations/{org_id}/agent/runCreate Agent Run
AgentsApicreate_agent_run_v1_organizations_org_id_agent_run_post_1POST /v1/organizations/{org_id}/agent/runCreate Agent Run
AgentsApiget_agent_run_v1_organizations_org_id_agent_run_agent_run_id_getGET /v1/organizations/{org_id}/agent/run/{agent_run_id}Get Agent Run
AgentsApiget_agent_run_v1_organizations_org_id_agent_run_agent_run_id_get_0GET /v1/organizations/{org_id}/agent/run/{agent_run_id}Get Agent Run
AgentsApiget_agent_run_v1_organizations_org_id_agent_run_agent_run_id_get_1GET /v1/organizations/{org_id}/agent/run/{agent_run_id}Get Agent Run
OrganizationsApiget_organizations_v1_organizations_getGET /v1/organizationsGet Organizations
OrganizationsApiget_organizations_v1_organizations_get_0GET /v1/organizationsGet Organizations
OrganizationsApiget_organizations_v1_organizations_get_1GET /v1/organizationsGet Organizations
UsersApiget_user_v1_organizations_org_id_users_user_id_getGET /v1/organizations/{org_id}/users/{user_id}Get User
UsersApiget_user_v1_organizations_org_id_users_user_id_get_0GET /v1/organizations/{org_id}/users/{user_id}Get User
UsersApiget_user_v1_organizations_org_id_users_user_id_get_1GET /v1/organizations/{org_id}/users/{user_id}Get User
UsersApiget_users_v1_organizations_org_id_users_getGET /v1/organizations/{org_id}/usersGet Users
UsersApiget_users_v1_organizations_org_id_users_get_0GET /v1/organizations/{org_id}/usersGet Users
UsersApiget_users_v1_organizations_org_id_users_get_1GET /v1/organizations/{org_id}/usersGet Users

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Keywords

OpenAPI

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts