diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dca2fa8..cd40c64 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,56 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.12" + - name: Verify release version + run: | + python - <<'PY' + import os + import re + import tomllib + from pathlib import Path + + ref_type = os.environ.get("GITHUB_REF_TYPE") + tag_name = os.environ.get("GITHUB_REF_NAME", "") + if ref_type != "tag": + raise SystemExit( + "Publishing requires a tag ref. For workflow_dispatch, run this workflow from the release tag." + ) + + expected = tag_name[1:] if tag_name.startswith("v") else tag_name + if not expected: + raise SystemExit("Could not determine release version from tag.") + + with Path("pyproject.toml").open("rb") as file: + pyproject_version = tomllib.load(file)["project"]["version"] + + def read_version(path: str, pattern: str) -> str: + match = re.search(pattern, Path(path).read_text(encoding="utf-8"), re.MULTILINE) + if match is None: + raise SystemExit(f"Could not find package version in {path}.") + return match.group(1) + + versions = { + "pyproject.toml": pyproject_version, + "setup.py": read_version("setup.py", r'^VERSION = "([^"]+)"$'), + "audithub_sdk/__init__.py": read_version( + "audithub_sdk/__init__.py", r'^__version__ = "([^"]+)"$' + ), + } + + mismatches = { + path: version + for path, version in versions.items() + if version != expected + } + if mismatches: + details = "\n".join( + f"- {path}: {version} != tag {tag_name} ({expected})" + for path, version in mismatches.items() + ) + raise SystemExit(f"Release version mismatch:\n{details}") + + print(f"Release version {expected} matches package metadata.") + PY - name: Build distributions run: | python -m pip install --upgrade pip diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 7484ee5..c89134b 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -21,3 +21,15 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + +# Repository-maintained files. Generated source, docs, and generated tests are +# still replaced during regeneration. +README.md +AGENTS.md +pyproject.toml +setup.py +.openapi-generator-ignore +.github/ +scripts/ +audithub_sdk_ext/ +tests/ diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 961ce13..49b5bdd 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,8 +1,6 @@ -.github/workflows/python.yml .gitignore .gitlab-ci.yml .travis.yml -README.md audithub_sdk/__init__.py audithub_sdk/api/__init__.py audithub_sdk/api/admin_api.py @@ -13,6 +11,7 @@ audithub_sdk/api/editor_languages_api.py audithub_sdk/api/generic_api.py audithub_sdk/api/hints_org_lib_api.py audithub_sdk/api/hints_std_lib_api.py +audithub_sdk/api/invitations_api.py audithub_sdk/api/issues_api.py audithub_sdk/api/organizations_api.py audithub_sdk/api/projects_api.py @@ -56,6 +55,7 @@ audithub_sdk/models/editor_language_with_id.py audithub_sdk/models/effective_user_access_restriction.py audithub_sdk/models/env_var.py audithub_sdk/models/extra_function_arguments.py +audithub_sdk/models/favorite_organization_assignment.py audithub_sdk/models/favorite_project_assignment.py audithub_sdk/models/file.py audithub_sdk/models/file_thread_subject.py @@ -103,6 +103,7 @@ audithub_sdk/models/issue_type_info.py audithub_sdk/models/machine_info.py audithub_sdk/models/model_tool_input.py audithub_sdk/models/model_tool_phase_parameters.py +audithub_sdk/models/my_organization.py audithub_sdk/models/new_invitation.py audithub_sdk/models/new_organization.py audithub_sdk/models/new_organization_package.py @@ -117,6 +118,7 @@ audithub_sdk/models/organization_access_restriction.py audithub_sdk/models/organization_active_quota.py audithub_sdk/models/organization_admin.py audithub_sdk/models/organization_consumption.py +audithub_sdk/models/organization_consumption_detailed.py audithub_sdk/models/organization_quota.py audithub_sdk/models/organization_subscription.py audithub_sdk/models/package_data.py @@ -127,6 +129,7 @@ audithub_sdk/models/picus_input.py audithub_sdk/models/picus_parameters.py audithub_sdk/models/picus_v2_input.py audithub_sdk/models/picus_v2_parameters.py +audithub_sdk/models/problem.py audithub_sdk/models/project.py audithub_sdk/models/project_admin.py audithub_sdk/models/project_data.py @@ -167,6 +170,7 @@ audithub_sdk/models/thread_comment.py audithub_sdk/models/thread_patch.py audithub_sdk/models/user.py audithub_sdk/models/user_access_restriction.py +audithub_sdk/models/user_admin.py audithub_sdk/models/user_for_admin.py audithub_sdk/models/user_group.py audithub_sdk/models/user_information.py @@ -228,6 +232,7 @@ docs/EffectiveUserAccessRestriction.md docs/EnvVar.md docs/ExtraFunctionArguments.md docs/FIOData.md +docs/FavoriteOrganizationAssignment.md docs/FavoriteProjectAssignment.md docs/File.md docs/FileThreadSubject.md @@ -253,6 +258,7 @@ docs/IncludedUserInfo.md docs/InputInfo.md docs/Invitation.md docs/InvitationPatch.md +docs/InvitationsApi.md docs/InvitedUser.md docs/Issue.md docs/IssueAction.md @@ -278,6 +284,7 @@ docs/IssuesApi.md docs/MachineInfo.md docs/ModelToolInput.md docs/ModelToolPhaseParameters.md +docs/MyOrganization.md docs/NPMProjectDependency.md docs/NewInvitation.md docs/NewOrganization.md @@ -292,6 +299,7 @@ docs/OrganizationAccessRestriction.md docs/OrganizationActiveQuota.md docs/OrganizationAdmin.md docs/OrganizationConsumption.md +docs/OrganizationConsumptionDetailed.md docs/OrganizationQuota.md docs/OrganizationSubscription.md docs/OrganizationsApi.md @@ -305,6 +313,7 @@ docs/PicusInput.md docs/PicusParameters.md docs/PicusV2Input.md docs/PicusV2Parameters.md +docs/Problem.md docs/Project.md docs/ProjectAdmin.md docs/ProjectData.md @@ -347,6 +356,7 @@ docs/ThreadPatch.md docs/ToolsApi.md docs/User.md docs/UserAccessRestriction.md +docs/UserAdmin.md docs/UserForAdmin.md docs/UserGroup.md docs/UserInformation.md @@ -377,10 +387,14 @@ docs/ZKVanguardParameters.md docs/ZKVanguardV2Input.md docs/ZKVanguardV2Parameters.md git_push.sh -pyproject.toml requirements.txt setup.cfg -setup.py test-requirements.txt test/__init__.py +test/test_favorite_organization_assignment.py +test/test_invitations_api.py +test/test_my_organization.py +test/test_organization_consumption_detailed.py +test/test_problem.py +test/test_user_admin.py tox.ini diff --git a/AGENTS.md b/AGENTS.md index 0429511..3c4edf4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,22 +12,29 @@ It is intended to be the shared/core dependency for other Python repositories th - Generator target: `python` - Distribution name: `audithub-sdk` - Import package: `audithub_sdk` -- Package version currently used during generation: `0.1.0` +- Package version currently used during generation: `1.0.2` - Transport template: `httpx` -Generation command: +Preferred regeneration command: + +```sh +scripts/regenerate-sdk.sh 0.1.0 +``` + +The script runs the equivalent of: ```sh openapi-generator generate \ -i https://audithub.dev.veridise.tools/api/v1/openapi.json \ -g python \ -o . \ - --additional-properties=packageName=audithub_sdk,projectName=audithub-sdk,packageVersion=0.1.0,hideGenerationTimestamp=true,library=httpx + --additional-properties=packageName=audithub_sdk,projectName=audithub-sdk,packageVersion=1.0.2,hideGenerationTimestamp=true,library=httpx ``` ## Important Decisions From Prior Sessions - The repo should remain mostly generated output. Manual edits should stay limited to repository-specific files and metadata. +- `bump-my-version` is configured for release version bumps, but `README.md`'s generator command should only be updated during SDK regeneration. ## Files That May Be Manually Maintained @@ -35,15 +42,33 @@ openapi-generator generate \ - `AGENTS.md` - `pyproject.toml` - `setup.py` +- `.openapi-generator-ignore` +- `scripts/regenerate-sdk.sh` +- `audithub_sdk_ext/` +- `tests/` - `.github/workflows/python.yml` - `.github/workflows/publish.yml` -Generated source under `audithub_sdk/`, generated docs under `docs/`, generated tests under `test/`, and generator metadata under `.openapi-generator/` should generally be replaced by regeneration rather than hand-edited. +Generated source under `audithub_sdk/`, generated docs under `docs/`, generated tests under `test/`, and generator metadata under `.openapi-generator/` should generally be replaced by regeneration rather than hand-edited. The narrow exception is package-version strings updated by `bump-my-version` in `audithub_sdk/__init__.py`, `audithub_sdk/api_client.py`, and `audithub_sdk/configuration.py`. + +## Version Bumping + +`bump-my-version` configuration lives in `pyproject.toml`. + +Common commands: + +```sh +bump-my-version bump patch +bump-my-version bump --new-version 0.1.1 +``` + +The configured bump is for release-only version bumps. For API schema changes, use `scripts/regenerate-sdk.sh VERSION` instead. The configured bump creates a commit and `v{new_version}` tag. It updates `pyproject.toml`, `setup.py`, and runtime package-version strings in generated source. It intentionally does not update `README.md` or `AGENTS.md`; those generation-contract versions are updated by `scripts/regenerate-sdk.sh`. ## CI And Publishing - Test workflow: `.github/workflows/python.yml` - Publish workflow: `.github/workflows/publish.yml` +- Publish workflow is read-only with respect to package version files and fails unless the release tag matches `pyproject.toml`, `setup.py`, and `audithub_sdk/__init__.py`. - Publish workflow uses GitHub Actions trusted publishing to PyPI via OIDC. - PyPI publishing expects the GitHub repository to be registered as a trusted publisher for the `audithub-sdk` project. diff --git a/README.md b/README.md index b7da9cd..a54001f 100644 --- a/README.md +++ b/README.md @@ -9,28 +9,64 @@ The client code in this repository is generated from the live OpenAPI document: `https://audithub.dev.veridise.tools/api/v1/openapi.json` -The repository contents are produced with OpenAPI Generator 7.20.0 using: +The repository contents are produced with OpenAPI Generator 7.20.0. The current generated package version is `0.1.0`. + +The current generation command is: ```sh openapi-generator generate \ -i https://audithub.dev.veridise.tools/api/v1/openapi.json \ -g python \ -o . \ - --additional-properties=packageName=audithub_sdk,projectName=audithub-sdk,packageVersion=0.1.0,hideGenerationTimestamp=true,library=httpx + --additional-properties=packageName=audithub_sdk,projectName=audithub-sdk,packageVersion=1.0.2,hideGenerationTimestamp=true,library=httpx ``` ## Regenerating -When the AuditHub API schema changes, regenerate the SDK from the repository root with the command above. +When the AuditHub API schema changes, regenerate the SDK from the repository root and pass the new SDK version: + +```sh +scripts/regenerate-sdk.sh 0.1.1 +``` + +The script passes that version as `packageVersion` to OpenAPI Generator, then syncs repository-maintained version references in: + +- `pyproject.toml` +- `setup.py` +- `README.md` +- `AGENTS.md` + +The version in this README's generator command is intentionally updated only when regenerating the SDK. Manual changes in this repo should stay limited to repository-specific files such as: - `README.md` - packaging metadata - CI workflows +- `scripts/regenerate-sdk.sh` Generated source, models, docs, and tests should be replaced by regeneration rather than edited by hand. +## Version Bumping + +`bump-my-version` is configured in `pyproject.toml` for release-only version bumps. For API schema changes, use `scripts/regenerate-sdk.sh VERSION` instead. The bump command updates package metadata and runtime package-version strings, commits the change, and creates a `vX.Y.Z` tag: + +```sh +uv tool install bump-my-version +``` + +```sh +bump-my-version bump patch +``` + +To set an exact version: + +```sh +bump-my-version bump --new-version 0.1.1 +``` + +The bump configuration intentionally does not update this README's generator command. That command is updated by `scripts/regenerate-sdk.sh` when the SDK is regenerated. + ## Installation From PyPI: @@ -99,3 +135,16 @@ To build distributions locally: ```sh python -m build ``` + +Publishing is handled by `.github/workflows/publish.yml` from a GitHub release tag. The workflow does not edit version files; it fails unless the tag version matches: + +- `pyproject.toml` +- `setup.py` +- `audithub_sdk/__init__.py` + +Use `vX.Y.Z` tags for releases, for example: + +```sh +git tag v0.1.1 +git push origin v0.1.1 +``` diff --git a/audithub_sdk/__init__.py b/audithub_sdk/__init__.py index f640dda..349d4bc 100644 --- a/audithub_sdk/__init__.py +++ b/audithub_sdk/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "0.1.0" +__version__ = "1.0.2" # Define package exports __all__ = [ @@ -26,6 +26,7 @@ "GenericApi", "HintsOrgLibApi", "HintsStdLibApi", + "InvitationsApi", "IssuesApi", "OrganizationsApi", "ProjectsApi", @@ -74,6 +75,7 @@ "EnvVar", "ExtraFunctionArguments", "FIOData", + "FavoriteOrganizationAssignment", "FavoriteProjectAssignment", "File", "FileThreadSubject", @@ -120,6 +122,7 @@ "MachineInfo", "ModelToolInput", "ModelToolPhaseParameters", + "MyOrganization", "NPMProjectDependency", "NewInvitation", "NewOrganization", @@ -134,6 +137,7 @@ "OrganizationActiveQuota", "OrganizationAdmin", "OrganizationConsumption", + "OrganizationConsumptionDetailed", "OrganizationQuota", "OrganizationSubscription", "PSA", @@ -146,6 +150,7 @@ "PicusParameters", "PicusV2Input", "PicusV2Parameters", + "Problem", "Project", "ProjectAdmin", "ProjectData", @@ -184,6 +189,7 @@ "ThreadPatch", "User", "UserAccessRestriction", + "UserAdmin", "UserForAdmin", "UserGroup", "UserInformation", @@ -220,6 +226,7 @@ from audithub_sdk.api.generic_api import GenericApi as GenericApi from audithub_sdk.api.hints_org_lib_api import HintsOrgLibApi as HintsOrgLibApi from audithub_sdk.api.hints_std_lib_api import HintsStdLibApi as HintsStdLibApi +from audithub_sdk.api.invitations_api import InvitationsApi as InvitationsApi from audithub_sdk.api.issues_api import IssuesApi as IssuesApi from audithub_sdk.api.organizations_api import OrganizationsApi as OrganizationsApi from audithub_sdk.api.projects_api import ProjectsApi as ProjectsApi @@ -272,6 +279,7 @@ from audithub_sdk.models.env_var import EnvVar as EnvVar from audithub_sdk.models.extra_function_arguments import ExtraFunctionArguments as ExtraFunctionArguments from audithub_sdk.models.fio_data import FIOData as FIOData +from audithub_sdk.models.favorite_organization_assignment import FavoriteOrganizationAssignment as FavoriteOrganizationAssignment from audithub_sdk.models.favorite_project_assignment import FavoriteProjectAssignment as FavoriteProjectAssignment from audithub_sdk.models.file import File as File from audithub_sdk.models.file_thread_subject import FileThreadSubject as FileThreadSubject @@ -318,6 +326,7 @@ from audithub_sdk.models.machine_info import MachineInfo as MachineInfo from audithub_sdk.models.model_tool_input import ModelToolInput as ModelToolInput from audithub_sdk.models.model_tool_phase_parameters import ModelToolPhaseParameters as ModelToolPhaseParameters +from audithub_sdk.models.my_organization import MyOrganization as MyOrganization from audithub_sdk.models.npm_project_dependency import NPMProjectDependency as NPMProjectDependency from audithub_sdk.models.new_invitation import NewInvitation as NewInvitation from audithub_sdk.models.new_organization import NewOrganization as NewOrganization @@ -332,6 +341,7 @@ from audithub_sdk.models.organization_active_quota import OrganizationActiveQuota as OrganizationActiveQuota from audithub_sdk.models.organization_admin import OrganizationAdmin as OrganizationAdmin from audithub_sdk.models.organization_consumption import OrganizationConsumption as OrganizationConsumption +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed as OrganizationConsumptionDetailed from audithub_sdk.models.organization_quota import OrganizationQuota as OrganizationQuota from audithub_sdk.models.organization_subscription import OrganizationSubscription as OrganizationSubscription from audithub_sdk.models.psa import PSA as PSA @@ -344,6 +354,7 @@ from audithub_sdk.models.picus_parameters import PicusParameters as PicusParameters from audithub_sdk.models.picus_v2_input import PicusV2Input as PicusV2Input from audithub_sdk.models.picus_v2_parameters import PicusV2Parameters as PicusV2Parameters +from audithub_sdk.models.problem import Problem as Problem from audithub_sdk.models.project import Project as Project from audithub_sdk.models.project_admin import ProjectAdmin as ProjectAdmin from audithub_sdk.models.project_data import ProjectData as ProjectData @@ -382,6 +393,7 @@ from audithub_sdk.models.thread_patch import ThreadPatch as ThreadPatch from audithub_sdk.models.user import User as User from audithub_sdk.models.user_access_restriction import UserAccessRestriction as UserAccessRestriction +from audithub_sdk.models.user_admin import UserAdmin as UserAdmin from audithub_sdk.models.user_for_admin import UserForAdmin as UserForAdmin from audithub_sdk.models.user_group import UserGroup as UserGroup from audithub_sdk.models.user_information import UserInformation as UserInformation diff --git a/audithub_sdk/api/__init__.py b/audithub_sdk/api/__init__.py index a796d9c..e103497 100644 --- a/audithub_sdk/api/__init__.py +++ b/audithub_sdk/api/__init__.py @@ -9,6 +9,7 @@ from audithub_sdk.api.generic_api import GenericApi from audithub_sdk.api.hints_org_lib_api import HintsOrgLibApi from audithub_sdk.api.hints_std_lib_api import HintsStdLibApi +from audithub_sdk.api.invitations_api import InvitationsApi from audithub_sdk.api.issues_api import IssuesApi from audithub_sdk.api.organizations_api import OrganizationsApi from audithub_sdk.api.projects_api import ProjectsApi diff --git a/audithub_sdk/api/admin_api.py b/audithub_sdk/api/admin_api.py index 2ee09b7..86eabae 100644 --- a/audithub_sdk/api/admin_api.py +++ b/audithub_sdk/api/admin_api.py @@ -26,6 +26,7 @@ from audithub_sdk.models.put_user import PutUser from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse from audithub_sdk.models.task_admin import TaskAdmin +from audithub_sdk.models.user_admin import UserAdmin from audithub_sdk.models.user_for_admin import UserForAdmin from audithub_sdk.models.version_admin import VersionAdmin @@ -97,6 +98,8 @@ async def about_admin_about_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -159,6 +162,8 @@ async def about_admin_about_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -221,6 +226,8 @@ async def about_admin_about_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -262,7 +269,8 @@ def _about_admin_about_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -350,6 +358,8 @@ async def get_active_tasks_admin_active_tasks_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -422,6 +432,8 @@ async def get_active_tasks_admin_active_tasks_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -494,6 +506,8 @@ async def get_active_tasks_admin_active_tasks_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -545,7 +559,8 @@ def _get_active_tasks_admin_active_tasks_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -633,6 +648,8 @@ async def get_digest_admin_digest_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -705,6 +722,8 @@ async def get_digest_admin_digest_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -777,6 +796,8 @@ async def get_digest_admin_digest_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -837,7 +858,8 @@ def _get_digest_admin_digest_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -921,6 +943,8 @@ async def get_invitations_admin_invitations_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[Invitation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -989,6 +1013,8 @@ async def get_invitations_admin_invitations_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[Invitation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1057,6 +1083,8 @@ async def get_invitations_admin_invitations_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[Invitation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1103,7 +1131,8 @@ def _get_invitations_admin_invitations_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1211,6 +1240,8 @@ async def get_projects_admin_projects_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ProjectAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1303,6 +1334,8 @@ async def get_projects_admin_projects_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ProjectAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1395,6 +1428,8 @@ async def get_projects_admin_projects_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ProjectAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1489,7 +1524,8 @@ def _get_projects_admin_projects_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1536,7 +1572,7 @@ async def get_sources_admin_sources_get( ) -> str: """Get Sources - Get source by task + Get version sources by task :param task_id: Task id for which sources are returned :type task_id: int @@ -1573,6 +1609,8 @@ async def get_sources_admin_sources_get( _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1604,7 +1642,7 @@ async def get_sources_admin_sources_get_with_http_info( ) -> ApiResponse[str]: """Get Sources - Get source by task + Get version sources by task :param task_id: Task id for which sources are returned :type task_id: int @@ -1641,6 +1679,8 @@ async def get_sources_admin_sources_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1672,7 +1712,7 @@ async def get_sources_admin_sources_get_without_preload_content( ) -> RESTResponseType: """Get Sources - Get source by task + Get version sources by task :param task_id: Task id for which sources are returned :type task_id: int @@ -1709,6 +1749,8 @@ async def get_sources_admin_sources_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1756,7 +1798,7 @@ def _get_sources_admin_sources_get_serialize( _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/zip', - 'application/json' + 'application/problem+json' ] ) @@ -1840,6 +1882,8 @@ async def get_specs_admin_specs_get( _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1908,6 +1952,8 @@ async def get_specs_admin_specs_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1976,6 +2022,8 @@ async def get_specs_admin_specs_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2023,7 +2071,7 @@ def _get_specs_admin_specs_get_serialize( _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/zip', - 'application/json' + 'application/problem+json' ] ) @@ -2111,6 +2159,8 @@ async def get_statistics_for_tasks_all_admin_statistics_tasks_all_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2183,6 +2233,8 @@ async def get_statistics_for_tasks_all_admin_statistics_tasks_all_get_with_http_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2255,6 +2307,8 @@ async def get_statistics_for_tasks_all_admin_statistics_tasks_all_get_without_pr _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2324,7 +2378,8 @@ def _get_statistics_for_tasks_all_admin_statistics_tasks_all_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2412,6 +2467,8 @@ async def get_statistics_for_tasks_external_admin_statistics_tasks_external_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2484,6 +2541,8 @@ async def get_statistics_for_tasks_external_admin_statistics_tasks_external_get_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2556,6 +2615,8 @@ async def get_statistics_for_tasks_external_admin_statistics_tasks_external_get_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2625,7 +2686,8 @@ def _get_statistics_for_tasks_external_admin_statistics_tasks_external_get_seria if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2753,6 +2815,8 @@ async def get_tasks_admin_tasks_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2865,6 +2929,8 @@ async def get_tasks_admin_tasks_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2977,6 +3043,8 @@ async def get_tasks_admin_tasks_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3096,7 +3164,8 @@ def _get_tasks_admin_tasks_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3180,6 +3249,8 @@ async def get_user_profile_admin_users_user_id_profile_get( _response_types_map: Dict[str, Optional[str]] = { '200': "UserForAdmin", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3248,6 +3319,8 @@ async def get_user_profile_admin_users_user_id_profile_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "UserForAdmin", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3316,6 +3389,8 @@ async def get_user_profile_admin_users_user_id_profile_get_without_preload_conte _response_types_map: Dict[str, Optional[str]] = { '200': "UserForAdmin", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3360,7 +3435,8 @@ def _get_user_profile_admin_users_user_id_profile_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3408,7 +3484,7 @@ async def get_users_admin_users_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: + ) -> List[UserAdmin]: """Get Users Get list of all users, potentially limiting them with query parameters @@ -3458,8 +3534,10 @@ async def get_users_admin_users_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "List[UserAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3492,7 +3570,7 @@ async def get_users_admin_users_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: + ) -> ApiResponse[List[UserAdmin]]: """Get Users Get list of all users, potentially limiting them with query parameters @@ -3542,8 +3620,10 @@ async def get_users_admin_users_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "List[UserAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3626,8 +3706,10 @@ async def get_users_admin_users_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "List[UserAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3712,7 +3794,8 @@ def _get_users_admin_users_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3824,6 +3907,8 @@ async def get_versions_admin_versions_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[VersionAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3920,6 +4005,8 @@ async def get_versions_admin_versions_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[VersionAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4016,6 +4103,8 @@ async def get_versions_admin_versions_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[VersionAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4115,7 +4204,8 @@ def _get_versions_admin_versions_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4199,6 +4289,8 @@ async def onboard_requests_admin_onboard_requests_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[OnboardingRequest]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4267,6 +4359,8 @@ async def onboard_requests_admin_onboard_requests_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[OnboardingRequest]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4335,6 +4429,8 @@ async def onboard_requests_admin_onboard_requests_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[OnboardingRequest]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4381,7 +4477,8 @@ def _onboard_requests_admin_onboard_requests_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4481,6 +4578,8 @@ async def onboard_user_admin_onboard_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4565,6 +4664,8 @@ async def onboard_user_admin_onboard_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4649,6 +4750,8 @@ async def onboard_user_admin_onboard_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4715,7 +4818,8 @@ def _onboard_user_admin_onboard_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4807,6 +4911,8 @@ async def patch_project_admin_projects_patch( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4883,6 +4989,8 @@ async def patch_project_admin_projects_patch_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4959,6 +5067,8 @@ async def patch_project_admin_projects_patch_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5013,7 +5123,8 @@ def _patch_project_admin_projects_patch_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5114,6 +5225,8 @@ async def put_user_profile_admin_users_user_id_profile_put( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5186,6 +5299,8 @@ async def put_user_profile_admin_users_user_id_profile_put_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5258,6 +5373,8 @@ async def put_user_profile_admin_users_user_id_profile_put_without_preload_conte _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5305,7 +5422,8 @@ def _put_user_profile_admin_users_user_id_profile_put_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5397,6 +5515,8 @@ async def qa_cleanup_admin_qa_cleanup_get( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5460,6 +5580,8 @@ async def qa_cleanup_admin_qa_cleanup_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5523,6 +5645,8 @@ async def qa_cleanup_admin_qa_cleanup_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5564,7 +5688,8 @@ def _qa_cleanup_admin_qa_cleanup_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5652,6 +5777,8 @@ async def remove_user_assignment_or_invitation_admin_organizations_organization_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5724,6 +5851,8 @@ async def remove_user_assignment_or_invitation_admin_organizations_organization_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5796,6 +5925,8 @@ async def remove_user_assignment_or_invitation_admin_organizations_organization_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5843,7 +5974,8 @@ def _remove_user_assignment_or_invitation_admin_organizations_organization_id_us if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5922,6 +6054,8 @@ async def user_onboard_options_admin_onboard_options_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5985,6 +6119,8 @@ async def user_onboard_options_admin_onboard_options_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6048,6 +6184,8 @@ async def user_onboard_options_admin_onboard_options_get_without_preload_content _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6089,7 +6227,8 @@ def _user_onboard_options_admin_onboard_options_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/configuration_api.py b/audithub_sdk/api/configuration_api.py index 89f9bbb..a8132d6 100644 --- a/audithub_sdk/api/configuration_api.py +++ b/audithub_sdk/api/configuration_api.py @@ -86,6 +86,8 @@ async def get_api_keys_api_keys_configuration_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -148,6 +150,8 @@ async def get_api_keys_api_keys_configuration_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -210,6 +214,8 @@ async def get_api_keys_api_keys_configuration_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -251,7 +257,8 @@ def _get_api_keys_api_keys_configuration_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -328,6 +335,8 @@ async def get_configuration_configuration_get( _response_types_map: Dict[str, Optional[str]] = { '200': "PublicConfiguration", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -390,6 +399,8 @@ async def get_configuration_configuration_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "PublicConfiguration", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -452,6 +463,8 @@ async def get_configuration_configuration_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "PublicConfiguration", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -493,7 +506,8 @@ def _get_configuration_configuration_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/custom_detectors_org_lib_api.py b/audithub_sdk/api/custom_detectors_org_lib_api.py index 54fb6ab..85e5d91 100644 --- a/audithub_sdk/api/custom_detectors_org_lib_api.py +++ b/audithub_sdk/api/custom_detectors_org_lib_api.py @@ -100,6 +100,8 @@ async def delete_custom_detector_organizations_organization_id_custom_detectors_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -172,6 +174,8 @@ async def delete_custom_detector_organizations_organization_id_custom_detectors_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -244,6 +248,8 @@ async def delete_custom_detector_organizations_organization_id_custom_detectors_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -291,7 +297,8 @@ def _delete_custom_detector_organizations_organization_id_custom_detectors_custo if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -379,6 +386,8 @@ async def get_custom_detector_organizations_organization_id_custom_detectors_cus _response_types_map: Dict[str, Optional[str]] = { '200': "CustomDetector", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -451,6 +460,8 @@ async def get_custom_detector_organizations_organization_id_custom_detectors_cus _response_types_map: Dict[str, Optional[str]] = { '200': "CustomDetector", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -523,6 +534,8 @@ async def get_custom_detector_organizations_organization_id_custom_detectors_cus _response_types_map: Dict[str, Optional[str]] = { '200': "CustomDetector", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -570,7 +583,8 @@ def _get_custom_detector_organizations_organization_id_custom_detectors_custom_d if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -654,6 +668,8 @@ async def get_custom_detectors_organizations_organization_id_custom_detectors_ge _response_types_map: Dict[str, Optional[str]] = { '200': "List[CustomDetectorWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -722,6 +738,8 @@ async def get_custom_detectors_organizations_organization_id_custom_detectors_ge _response_types_map: Dict[str, Optional[str]] = { '200': "List[CustomDetectorWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -790,6 +808,8 @@ async def get_custom_detectors_organizations_organization_id_custom_detectors_ge _response_types_map: Dict[str, Optional[str]] = { '200': "List[CustomDetectorWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -834,7 +854,8 @@ def _get_custom_detectors_organizations_organization_id_custom_detectors_get_ser if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -922,6 +943,8 @@ async def post_custom_detector_organizations_organization_id_custom_detectors_po _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -994,6 +1017,8 @@ async def post_custom_detector_organizations_organization_id_custom_detectors_po _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1066,6 +1091,8 @@ async def post_custom_detector_organizations_organization_id_custom_detectors_po _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1113,7 +1140,8 @@ def _post_custom_detector_organizations_organization_id_custom_detectors_post_se if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1218,6 +1246,8 @@ async def put_custom_detector_organizations_organization_id_custom_detectors_cus _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1294,6 +1324,8 @@ async def put_custom_detector_organizations_organization_id_custom_detectors_cus _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1370,6 +1402,8 @@ async def put_custom_detector_organizations_organization_id_custom_detectors_cus _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1420,7 +1454,8 @@ def _put_custom_detector_organizations_organization_id_custom_detectors_custom_d if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/custom_detectors_std_lib_api.py b/audithub_sdk/api/custom_detectors_std_lib_api.py index 0b537e5..9d91e84 100644 --- a/audithub_sdk/api/custom_detectors_std_lib_api.py +++ b/audithub_sdk/api/custom_detectors_std_lib_api.py @@ -87,6 +87,8 @@ async def get_custom_detectors_library_custom_detectors_library_get( _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -150,6 +152,8 @@ async def get_custom_detectors_library_custom_detectors_library_get_with_http_in _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -213,6 +217,8 @@ async def get_custom_detectors_library_custom_detectors_library_get_without_prel _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -254,7 +260,8 @@ def _get_custom_detectors_library_custom_detectors_library_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -338,6 +345,8 @@ async def get_custom_detectors_library_version_custom_detectors_library_version_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -406,6 +415,8 @@ async def get_custom_detectors_library_version_custom_detectors_library_version_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -474,6 +485,8 @@ async def get_custom_detectors_library_version_custom_detectors_library_version_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -518,7 +531,8 @@ def _get_custom_detectors_library_version_custom_detectors_library_version_id_ge if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/editor_languages_api.py b/audithub_sdk/api/editor_languages_api.py index 5e894a0..750c229 100644 --- a/audithub_sdk/api/editor_languages_api.py +++ b/audithub_sdk/api/editor_languages_api.py @@ -96,6 +96,8 @@ async def delete_language_editor_languages_language_id_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -164,6 +166,8 @@ async def delete_language_editor_languages_language_id_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -232,6 +236,8 @@ async def delete_language_editor_languages_language_id_delete_without_preload_co _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -276,7 +282,8 @@ def _delete_language_editor_languages_language_id_delete_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -360,6 +367,8 @@ async def get_language_editor_languages_language_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "EditorLanguageWithId", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -428,6 +437,8 @@ async def get_language_editor_languages_language_id_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "EditorLanguageWithId", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -496,6 +507,8 @@ async def get_language_editor_languages_language_id_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "EditorLanguageWithId", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -540,7 +553,8 @@ def _get_language_editor_languages_language_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -619,6 +633,8 @@ async def get_languages_editor_languages_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[EditorLanguageWithId]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -682,6 +698,8 @@ async def get_languages_editor_languages_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[EditorLanguageWithId]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -745,6 +763,8 @@ async def get_languages_editor_languages_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[EditorLanguageWithId]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -786,7 +806,8 @@ def _get_languages_editor_languages_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -870,6 +891,8 @@ async def post_language_editor_languages_post( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -938,6 +961,8 @@ async def post_language_editor_languages_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1006,6 +1031,8 @@ async def post_language_editor_languages_post_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1050,7 +1077,8 @@ def _post_language_editor_languages_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1151,6 +1179,8 @@ async def put_language_editor_languages_language_id_put( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1223,6 +1253,8 @@ async def put_language_editor_languages_language_id_put_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1295,6 +1327,8 @@ async def put_language_editor_languages_language_id_put_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1342,7 +1376,8 @@ def _put_language_editor_languages_language_id_put_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/generic_api.py b/audithub_sdk/api/generic_api.py index 4d2cb7c..6070af1 100644 --- a/audithub_sdk/api/generic_api.py +++ b/audithub_sdk/api/generic_api.py @@ -87,6 +87,8 @@ async def about_about_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -149,6 +151,8 @@ async def about_about_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -211,6 +215,8 @@ async def about_about_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -252,7 +258,8 @@ def _about_about_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -329,6 +336,8 @@ async def get_psa_psa_get( _response_types_map: Dict[str, Optional[str]] = { '200': "PSA", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -391,6 +400,8 @@ async def get_psa_psa_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "PSA", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -453,6 +464,8 @@ async def get_psa_psa_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "PSA", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -494,7 +507,8 @@ def _get_psa_psa_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -578,6 +592,8 @@ async def get_task_redirect_task_redirect_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -646,6 +662,8 @@ async def get_task_redirect_task_redirect_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -714,6 +732,8 @@ async def get_task_redirect_task_redirect_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -760,7 +780,8 @@ def _get_task_redirect_task_redirect_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -837,6 +858,8 @@ async def health_check_health_check_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -899,6 +922,8 @@ async def health_check_health_check_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -961,6 +986,8 @@ async def health_check_health_check_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1002,7 +1029,8 @@ def _health_check_health_check_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1080,6 +1108,8 @@ async def private_private_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1143,6 +1173,8 @@ async def private_private_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1206,6 +1238,8 @@ async def private_private_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1247,7 +1281,8 @@ def _private_private_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/hints_org_lib_api.py b/audithub_sdk/api/hints_org_lib_api.py index bd35ee8..d6d4b26 100644 --- a/audithub_sdk/api/hints_org_lib_api.py +++ b/audithub_sdk/api/hints_org_lib_api.py @@ -101,6 +101,8 @@ async def delete_hint_organizations_organization_id_hints_hint_id_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -173,6 +175,8 @@ async def delete_hint_organizations_organization_id_hints_hint_id_delete_with_ht _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -245,6 +249,8 @@ async def delete_hint_organizations_organization_id_hints_hint_id_delete_without _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -292,7 +298,8 @@ def _delete_hint_organizations_organization_id_hints_hint_id_delete_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -380,6 +387,8 @@ async def get_blacklisted_hints_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "List[APIBlacklistedHint]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -452,6 +461,8 @@ async def get_blacklisted_hints_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "List[APIBlacklistedHint]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -524,6 +535,8 @@ async def get_blacklisted_hints_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "List[APIBlacklistedHint]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -571,7 +584,8 @@ def _get_blacklisted_hints_organizations_organization_id_projects_project_id_bla if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -600,9 +614,10 @@ def _get_blacklisted_hints_organizations_organization_id_projects_project_id_bla @validate_call - async def get_hints_organizations_organization_id_hints_get( + async def get_hint_organizations_organization_id_hints_hint_id_get( self, organization_id: StrictInt, + hint_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -615,13 +630,15 @@ async def get_hints_organizations_organization_id_hints_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[HintWithId]: - """Get Hints + ) -> Hint: + """Get Hint - Returns all Hints of an organization + Returns hint attributes :param organization_id: (required) :type organization_id: int + :param hint_id: (required) + :type hint_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -644,8 +661,9 @@ async def get_hints_organizations_organization_id_hints_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hints_organizations_organization_id_hints_get_serialize( + _param = self._get_hint_organizations_organization_id_hints_hint_id_get_serialize( organization_id=organization_id, + hint_id=hint_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -653,8 +671,10 @@ async def get_hints_organizations_organization_id_hints_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[HintWithId]", + '200': "Hint", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -668,9 +688,10 @@ async def get_hints_organizations_organization_id_hints_get( @validate_call - async def get_hints_organizations_organization_id_hints_get_with_http_info( + async def get_hint_organizations_organization_id_hints_hint_id_get_with_http_info( self, organization_id: StrictInt, + hint_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -683,13 +704,15 @@ async def get_hints_organizations_organization_id_hints_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[HintWithId]]: - """Get Hints + ) -> ApiResponse[Hint]: + """Get Hint - Returns all Hints of an organization + Returns hint attributes :param organization_id: (required) :type organization_id: int + :param hint_id: (required) + :type hint_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -712,8 +735,9 @@ async def get_hints_organizations_organization_id_hints_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_hints_organizations_organization_id_hints_get_serialize( + _param = self._get_hint_organizations_organization_id_hints_hint_id_get_serialize( organization_id=organization_id, + hint_id=hint_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -721,8 +745,10 @@ async def get_hints_organizations_organization_id_hints_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[HintWithId]", + '200': "Hint", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -736,9 +762,10 @@ async def get_hints_organizations_organization_id_hints_get_with_http_info( @validate_call - async def get_hints_organizations_organization_id_hints_get_without_preload_content( + async def get_hint_organizations_organization_id_hints_hint_id_get_without_preload_content( self, organization_id: StrictInt, + hint_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -752,12 +779,14 @@ async def get_hints_organizations_organization_id_hints_get_without_preload_cont _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Hints + """Get Hint - Returns all Hints of an organization + Returns hint attributes :param organization_id: (required) :type organization_id: int + :param hint_id: (required) + :type hint_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -780,8 +809,9 @@ async def get_hints_organizations_organization_id_hints_get_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._get_hints_organizations_organization_id_hints_get_serialize( + _param = self._get_hint_organizations_organization_id_hints_hint_id_get_serialize( organization_id=organization_id, + hint_id=hint_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -789,8 +819,10 @@ async def get_hints_organizations_organization_id_hints_get_without_preload_cont ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[HintWithId]", + '200': "Hint", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -799,9 +831,10 @@ async def get_hints_organizations_organization_id_hints_get_without_preload_cont return response_data.response - def _get_hints_organizations_organization_id_hints_get_serialize( + def _get_hint_organizations_organization_id_hints_hint_id_get_serialize( self, organization_id, + hint_id, _request_auth, _content_type, _headers, @@ -825,6 +858,8 @@ def _get_hints_organizations_organization_id_hints_get_serialize( # process the path parameters if organization_id is not None: _path_params['organization_id'] = organization_id + if hint_id is not None: + _path_params['hint_id'] = hint_id # process the query parameters # process the header parameters # process the form parameters @@ -835,7 +870,8 @@ def _get_hints_organizations_organization_id_hints_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -847,7 +883,7 @@ def _get_hints_organizations_organization_id_hints_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/organizations/{organization_id}/hints', + resource_path='/organizations/{organization_id}/hints/{hint_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -864,10 +900,9 @@ def _get_hints_organizations_organization_id_hints_get_serialize( @validate_call - async def get_vspec_organizations_organization_id_hints_hint_id_get( + async def get_hints_organizations_organization_id_hints_get( self, organization_id: StrictInt, - hint_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -880,15 +915,13 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Hint: - """Get Vspec + ) -> List[HintWithId]: + """Get Hints - Returns hint attributes + Returns all Hints of an organization :param organization_id: (required) :type organization_id: int - :param hint_id: (required) - :type hint_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -911,9 +944,8 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_vspec_organizations_organization_id_hints_hint_id_get_serialize( + _param = self._get_hints_organizations_organization_id_hints_get_serialize( organization_id=organization_id, - hint_id=hint_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -921,8 +953,10 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Hint", + '200': "List[HintWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -936,10 +970,9 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get( @validate_call - async def get_vspec_organizations_organization_id_hints_hint_id_get_with_http_info( + async def get_hints_organizations_organization_id_hints_get_with_http_info( self, organization_id: StrictInt, - hint_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -952,15 +985,13 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_with_http_in _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Hint]: - """Get Vspec + ) -> ApiResponse[List[HintWithId]]: + """Get Hints - Returns hint attributes + Returns all Hints of an organization :param organization_id: (required) :type organization_id: int - :param hint_id: (required) - :type hint_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -983,9 +1014,8 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_with_http_in :return: Returns the result object. """ # noqa: E501 - _param = self._get_vspec_organizations_organization_id_hints_hint_id_get_serialize( + _param = self._get_hints_organizations_organization_id_hints_get_serialize( organization_id=organization_id, - hint_id=hint_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -993,8 +1023,10 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_with_http_in ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Hint", + '200': "List[HintWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1008,10 +1040,9 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_with_http_in @validate_call - async def get_vspec_organizations_organization_id_hints_hint_id_get_without_preload_content( + async def get_hints_organizations_organization_id_hints_get_without_preload_content( self, organization_id: StrictInt, - hint_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1025,14 +1056,12 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_without_prel _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Vspec + """Get Hints - Returns hint attributes + Returns all Hints of an organization :param organization_id: (required) :type organization_id: int - :param hint_id: (required) - :type hint_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1055,9 +1084,8 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_without_prel :return: Returns the result object. """ # noqa: E501 - _param = self._get_vspec_organizations_organization_id_hints_hint_id_get_serialize( + _param = self._get_hints_organizations_organization_id_hints_get_serialize( organization_id=organization_id, - hint_id=hint_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1065,8 +1093,10 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_without_prel ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Hint", + '200': "List[HintWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1075,10 +1105,9 @@ async def get_vspec_organizations_organization_id_hints_hint_id_get_without_prel return response_data.response - def _get_vspec_organizations_organization_id_hints_hint_id_get_serialize( + def _get_hints_organizations_organization_id_hints_get_serialize( self, organization_id, - hint_id, _request_auth, _content_type, _headers, @@ -1102,8 +1131,6 @@ def _get_vspec_organizations_organization_id_hints_hint_id_get_serialize( # process the path parameters if organization_id is not None: _path_params['organization_id'] = organization_id - if hint_id is not None: - _path_params['hint_id'] = hint_id # process the query parameters # process the header parameters # process the form parameters @@ -1114,7 +1141,8 @@ def _get_vspec_organizations_organization_id_hints_hint_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1126,7 +1154,7 @@ def _get_vspec_organizations_organization_id_hints_hint_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/organizations/{organization_id}/hints/{hint_id}', + resource_path='/organizations/{organization_id}/hints', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1202,6 +1230,8 @@ async def post_hint_organizations_organization_id_hints_post( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1274,6 +1304,8 @@ async def post_hint_organizations_organization_id_hints_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1346,6 +1378,8 @@ async def post_hint_organizations_organization_id_hints_post_without_preload_con _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1393,7 +1427,8 @@ def _post_hint_organizations_organization_id_hints_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1498,6 +1533,8 @@ async def put_blacklisted_hints_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1574,6 +1611,8 @@ async def put_blacklisted_hints_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1650,6 +1689,8 @@ async def put_blacklisted_hints_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1701,7 +1742,8 @@ def _put_blacklisted_hints_organizations_organization_id_projects_project_id_bla if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1806,6 +1848,8 @@ async def put_hint_organizations_organization_id_hints_hint_id_put( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1882,6 +1926,8 @@ async def put_hint_organizations_organization_id_hints_hint_id_put_with_http_inf _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1958,6 +2004,8 @@ async def put_hint_organizations_organization_id_hints_hint_id_put_without_prelo _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2008,7 +2056,8 @@ def _put_hint_organizations_organization_id_hints_hint_id_put_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/hints_std_lib_api.py b/audithub_sdk/api/hints_std_lib_api.py index 37f1b0b..d0a1cf1 100644 --- a/audithub_sdk/api/hints_std_lib_api.py +++ b/audithub_sdk/api/hints_std_lib_api.py @@ -87,6 +87,8 @@ async def get_hints_library_hint_library_get( _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -150,6 +152,8 @@ async def get_hints_library_hint_library_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -213,6 +217,8 @@ async def get_hints_library_hint_library_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -254,7 +260,8 @@ def _get_hints_library_hint_library_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -338,6 +345,8 @@ async def get_v_specifications_library_version_hint_library_version_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -406,6 +415,8 @@ async def get_v_specifications_library_version_hint_library_version_id_get_with_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -474,6 +485,8 @@ async def get_v_specifications_library_version_hint_library_version_id_get_witho _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -518,7 +531,8 @@ def _get_v_specifications_library_version_hint_library_version_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/invitations_api.py b/audithub_sdk/api/invitations_api.py new file mode 100644 index 0000000..ac914fc --- /dev/null +++ b/audithub_sdk/api/invitations_api.py @@ -0,0 +1,1224 @@ +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictInt +from audithub_sdk.models.invitation import Invitation +from audithub_sdk.models.invitation_patch import InvitationPatch +from audithub_sdk.models.new_invitation import NewInvitation +from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse + +from audithub_sdk.api_client import ApiClient, RequestSerialized +from audithub_sdk.api_response import ApiResponse +from audithub_sdk.rest import RESTResponseType + + +class InvitationsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + async def delete_invitation_organizations_organization_id_invitations_invitation_id_delete( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessAndMessageResponse: + """Delete Invitation + + Delete an invitation by id + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def delete_invitation_organizations_organization_id_invitations_invitation_id_delete_with_http_info( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessAndMessageResponse]: + """Delete Invitation + + Delete an invitation by id + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def delete_invitation_organizations_organization_id_invitations_invitation_id_delete_without_preload_content( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Invitation + + Delete an invitation by id + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( + self, + organization_id, + invitation_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization_id is not None: + _path_params['organization_id'] = organization_id + if invitation_id is not None: + _path_params['invitation_id'] = invitation_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/organizations/{organization_id}/invitations/{invitation_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + async def get_invitation_organizations_organization_id_invitations_invitation_id_get( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Invitation: + """Get Invitation + + Get an invitation by id + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Invitation", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def get_invitation_organizations_organization_id_invitations_invitation_id_get_with_http_info( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Invitation]: + """Get Invitation + + Get an invitation by id + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Invitation", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def get_invitation_organizations_organization_id_invitations_invitation_id_get_without_preload_content( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Invitation + + Get an invitation by id + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Invitation", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( + self, + organization_id, + invitation_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization_id is not None: + _path_params['organization_id'] = organization_id + if invitation_id is not None: + _path_params['invitation_id'] = invitation_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/organizations/{organization_id}/invitations/{invitation_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + async def patch_invitation_organizations_organization_id_invitations_invitation_id_patch( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + invitation_patch: InvitationPatch, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessAndMessageResponse: + """Patch Invitation + + Patch an invitation + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param invitation_patch: (required) + :type invitation_patch: InvitationPatch + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + invitation_patch=invitation_patch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def patch_invitation_organizations_organization_id_invitations_invitation_id_patch_with_http_info( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + invitation_patch: InvitationPatch, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessAndMessageResponse]: + """Patch Invitation + + Patch an invitation + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param invitation_patch: (required) + :type invitation_patch: InvitationPatch + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + invitation_patch=invitation_patch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def patch_invitation_organizations_organization_id_invitations_invitation_id_patch_without_preload_content( + self, + organization_id: StrictInt, + invitation_id: StrictInt, + invitation_patch: InvitationPatch, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Patch Invitation + + Patch an invitation + + :param organization_id: (required) + :type organization_id: int + :param invitation_id: (required) + :type invitation_id: int + :param invitation_patch: (required) + :type invitation_patch: InvitationPatch + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( + organization_id=organization_id, + invitation_id=invitation_id, + invitation_patch=invitation_patch, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( + self, + organization_id, + invitation_id, + invitation_patch, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization_id is not None: + _path_params['organization_id'] = organization_id + if invitation_id is not None: + _path_params['invitation_id'] = invitation_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if invitation_patch is not None: + _body_params = invitation_patch + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/organizations/{organization_id}/invitations/{invitation_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + async def post_invitation_organizations_organization_id_invitations_post( + self, + organization_id: StrictInt, + new_invitation: NewInvitation, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessAndMessageResponse: + """Post Invitation + + Create a user invitation for an organization + + :param organization_id: (required) + :type organization_id: int + :param new_invitation: (required) + :type new_invitation: NewInvitation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_invitation_organizations_organization_id_invitations_post_serialize( + organization_id=organization_id, + new_invitation=new_invitation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def post_invitation_organizations_organization_id_invitations_post_with_http_info( + self, + organization_id: StrictInt, + new_invitation: NewInvitation, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessAndMessageResponse]: + """Post Invitation + + Create a user invitation for an organization + + :param organization_id: (required) + :type organization_id: int + :param new_invitation: (required) + :type new_invitation: NewInvitation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_invitation_organizations_organization_id_invitations_post_serialize( + organization_id=organization_id, + new_invitation=new_invitation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def post_invitation_organizations_organization_id_invitations_post_without_preload_content( + self, + organization_id: StrictInt, + new_invitation: NewInvitation, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Post Invitation + + Create a user invitation for an organization + + :param organization_id: (required) + :type organization_id: int + :param new_invitation: (required) + :type new_invitation: NewInvitation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_invitation_organizations_organization_id_invitations_post_serialize( + organization_id=organization_id, + new_invitation=new_invitation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_invitation_organizations_organization_id_invitations_post_serialize( + self, + organization_id, + new_invitation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization_id is not None: + _path_params['organization_id'] = organization_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if new_invitation is not None: + _body_params = new_invitation + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/organizations/{organization_id}/invitations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/audithub_sdk/api/issues_api.py b/audithub_sdk/api/issues_api.py index e54233b..d2e409d 100644 --- a/audithub_sdk/api/issues_api.py +++ b/audithub_sdk/api/issues_api.py @@ -108,6 +108,8 @@ async def batch_announce_organizations_organization_id_projects_project_id_issue _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -184,6 +186,8 @@ async def batch_announce_organizations_organization_id_projects_project_id_issue _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -260,6 +264,8 @@ async def batch_announce_organizations_organization_id_projects_project_id_issue _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -310,7 +316,8 @@ def _batch_announce_organizations_organization_id_projects_project_id_issues_pat if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -411,6 +418,8 @@ async def export_issues_organizations_organization_id_projects_project_id_issues _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -483,6 +492,8 @@ async def export_issues_organizations_organization_id_projects_project_id_issues _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -555,6 +566,8 @@ async def export_issues_organizations_organization_id_projects_project_id_issues _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -602,7 +615,8 @@ def _export_issues_organizations_organization_id_projects_project_id_issues_expo if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -694,6 +708,8 @@ async def get_issue_organizations_organization_id_projects_project_id_issues_iss _response_types_map: Dict[str, Optional[str]] = { '200': "IssueDetails", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -770,6 +786,8 @@ async def get_issue_organizations_organization_id_projects_project_id_issues_iss _response_types_map: Dict[str, Optional[str]] = { '200': "IssueDetails", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -846,6 +864,8 @@ async def get_issue_organizations_organization_id_projects_project_id_issues_iss _response_types_map: Dict[str, Optional[str]] = { '200': "IssueDetails", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -896,7 +916,8 @@ def _get_issue_organizations_organization_id_projects_project_id_issues_issue_id if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -984,6 +1005,8 @@ async def get_issues_organizations_organization_id_projects_project_id_issues_ge _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueForList]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1056,6 +1079,8 @@ async def get_issues_organizations_organization_id_projects_project_id_issues_ge _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueForList]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1128,6 +1153,8 @@ async def get_issues_organizations_organization_id_projects_project_id_issues_ge _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueForList]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1175,7 +1202,8 @@ def _get_issues_organizations_organization_id_projects_project_id_issues_get_ser if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1271,6 +1299,8 @@ async def patch_issue_organizations_organization_id_projects_project_id_issues_i _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1351,6 +1381,8 @@ async def patch_issue_organizations_organization_id_projects_project_id_issues_i _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1431,6 +1463,8 @@ async def patch_issue_organizations_organization_id_projects_project_id_issues_i _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1484,7 +1518,8 @@ def _patch_issue_organizations_organization_id_projects_project_id_issues_issue_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1589,6 +1624,8 @@ async def post_issue_organizations_organization_id_projects_project_id_issues_po _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1665,6 +1702,8 @@ async def post_issue_organizations_organization_id_projects_project_id_issues_po _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1741,6 +1780,8 @@ async def post_issue_organizations_organization_id_projects_project_id_issues_po _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1791,7 +1832,8 @@ def _post_issue_organizations_organization_id_projects_project_id_issues_post_se if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1896,6 +1938,8 @@ async def post_issue_to_github_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1972,6 +2016,8 @@ async def post_issue_to_github_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2048,6 +2094,8 @@ async def post_issue_to_github_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2098,7 +2146,8 @@ def _post_issue_to_github_organizations_organization_id_projects_project_id_issu if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2190,6 +2239,8 @@ async def post_security_advisory_to_github_organizations_organization_id_project _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2266,6 +2317,8 @@ async def post_security_advisory_to_github_organizations_organization_id_project _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2342,6 +2395,8 @@ async def post_security_advisory_to_github_organizations_organization_id_project _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2392,7 +2447,8 @@ def _post_security_advisory_to_github_organizations_organization_id_projects_pro if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2488,6 +2544,8 @@ async def put_issue_organizations_organization_id_projects_project_id_issues_iss _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2568,6 +2626,8 @@ async def put_issue_organizations_organization_id_projects_project_id_issues_iss _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2648,6 +2708,8 @@ async def put_issue_organizations_organization_id_projects_project_id_issues_iss _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2701,7 +2763,8 @@ def _put_issue_organizations_organization_id_projects_project_id_issues_issue_id if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/organizations_api.py b/audithub_sdk/api/organizations_api.py index be6275d..74fc34e 100644 --- a/audithub_sdk/api/organizations_api.py +++ b/audithub_sdk/api/organizations_api.py @@ -24,16 +24,15 @@ from audithub_sdk.models.favorite_project_assignment import FavoriteProjectAssignment from audithub_sdk.models.id_and_message_response import IdAndMessageResponse from audithub_sdk.models.invitation import Invitation -from audithub_sdk.models.invitation_patch import InvitationPatch from audithub_sdk.models.issue_type import IssueType from audithub_sdk.models.issue_type_info import IssueTypeInfo -from audithub_sdk.models.new_invitation import NewInvitation from audithub_sdk.models.new_organization import NewOrganization from audithub_sdk.models.new_organization_package import NewOrganizationPackage from audithub_sdk.models.organization import Organization from audithub_sdk.models.organization_access_restriction import OrganizationAccessRestriction from audithub_sdk.models.organization_admin import OrganizationAdmin from audithub_sdk.models.organization_consumption import OrganizationConsumption +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed from audithub_sdk.models.organization_quota import OrganizationQuota from audithub_sdk.models.package_data import PackageData from audithub_sdk.models.resource_patch import ResourcePatch @@ -43,7 +42,6 @@ from audithub_sdk.models.user_organization_setting import UserOrganizationSetting from audithub_sdk.models.user_patch import UserPatch from audithub_sdk.models.user_to_organization_assignment import UserToOrganizationAssignment -from audithub_sdk.models.version_resources import VersionResources from audithub_sdk.api_client import ApiClient, RequestSerialized from audithub_sdk.api_response import ApiResponse @@ -123,6 +121,8 @@ async def add_project_to_favorites_organizations_organization_id_favorite_projec _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -195,6 +195,8 @@ async def add_project_to_favorites_organizations_organization_id_favorite_projec _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -267,6 +269,8 @@ async def add_project_to_favorites_organizations_organization_id_favorite_projec _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -314,7 +318,8 @@ def _add_project_to_favorites_organizations_organization_id_favorite_projects_po if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -411,6 +416,8 @@ async def create_missing_environment_organizations_organization_id_environment_g _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -479,6 +486,8 @@ async def create_missing_environment_organizations_organization_id_environment_g _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -547,6 +556,8 @@ async def create_missing_environment_organizations_organization_id_environment_g _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -591,7 +602,8 @@ def _create_missing_environment_organizations_organization_id_environment_get_se if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -670,6 +682,8 @@ async def create_missing_organization_namespaces_organizations_namespace_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAdmin]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -733,6 +747,8 @@ async def create_missing_organization_namespaces_organizations_namespace_get_wit _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAdmin]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -796,6 +812,8 @@ async def create_missing_organization_namespaces_organizations_namespace_get_wit _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAdmin]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -837,7 +855,8 @@ def _create_missing_organization_namespaces_organizations_namespace_get_serializ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -921,6 +940,8 @@ async def delete_github_connect_organizations_organization_id_github_connect_del _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -989,6 +1010,8 @@ async def delete_github_connect_organizations_organization_id_github_connect_del _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1057,6 +1080,8 @@ async def delete_github_connect_organizations_organization_id_github_connect_del _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1101,7 +1126,8 @@ def _delete_github_connect_organizations_organization_id_github_connect_delete_s if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1129,285 +1155,6 @@ def _delete_github_connect_organizations_organization_id_github_connect_delete_s - @validate_call - async def delete_invitation_organizations_organization_id_invitations_invitation_id_delete( - self, - organization_id: StrictInt, - invitation_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessAndMessageResponse: - """Delete Invitation - - Delete an invitation by id - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - async def delete_invitation_organizations_organization_id_invitations_invitation_id_delete_with_http_info( - self, - organization_id: StrictInt, - invitation_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessAndMessageResponse]: - """Delete Invitation - - Delete an invitation by id - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - async def delete_invitation_organizations_organization_id_invitations_invitation_id_delete_without_preload_content( - self, - organization_id: StrictInt, - invitation_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Invitation - - Delete an invitation by id - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_invitation_organizations_organization_id_invitations_invitation_id_delete_serialize( - self, - organization_id, - invitation_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if organization_id is not None: - _path_params['organization_id'] = organization_id - if invitation_id is not None: - _path_params['invitation_id'] = invitation_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OpenIdConnect' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/organizations/{organization_id}/invitations/{invitation_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call async def delete_issue_type_organizations_organization_id_issue_types_type_id_delete( self, @@ -1468,6 +1215,8 @@ async def delete_issue_type_organizations_organization_id_issue_types_type_id_de _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1540,6 +1289,8 @@ async def delete_issue_type_organizations_organization_id_issue_types_type_id_de _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1612,6 +1363,8 @@ async def delete_issue_type_organizations_organization_id_issue_types_type_id_de _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1659,7 +1412,8 @@ def _delete_issue_type_organizations_organization_id_issue_types_type_id_delete_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1743,6 +1497,8 @@ async def delete_organization_organizations_organization_id_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1811,6 +1567,8 @@ async def delete_organization_organizations_organization_id_delete_with_http_inf _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1879,6 +1637,8 @@ async def delete_organization_organizations_organization_id_delete_without_prelo _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1923,7 +1683,8 @@ def _delete_organization_organizations_organization_id_delete_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2011,6 +1772,8 @@ async def delete_organization_user_organizations_organization_id_users_user_id_d _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2083,6 +1846,8 @@ async def delete_organization_user_organizations_organization_id_users_user_id_d _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2155,6 +1920,8 @@ async def delete_organization_user_organizations_organization_id_users_user_id_d _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2202,7 +1969,8 @@ def _delete_organization_user_organizations_organization_id_users_user_id_delete if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2290,6 +2058,8 @@ async def export_onboarding_package_organizations_organization_id_create_package _response_types_map: Dict[str, Optional[str]] = { '200': "PackageData", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2362,6 +2132,8 @@ async def export_onboarding_package_organizations_organization_id_create_package _response_types_map: Dict[str, Optional[str]] = { '200': "PackageData", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2434,6 +2206,8 @@ async def export_onboarding_package_organizations_organization_id_create_package _response_types_map: Dict[str, Optional[str]] = { '200': "PackageData", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2481,7 +2255,8 @@ def _export_onboarding_package_organizations_organization_id_create_package_post if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2578,6 +2353,8 @@ async def get_active_organization_users_organizations_organization_id_active_use _response_types_map: Dict[str, Optional[str]] = { '200': "ActiveOrganizationUsers", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2646,6 +2423,8 @@ async def get_active_organization_users_organizations_organization_id_active_use _response_types_map: Dict[str, Optional[str]] = { '200': "ActiveOrganizationUsers", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2714,6 +2493,8 @@ async def get_active_organization_users_organizations_organization_id_active_use _response_types_map: Dict[str, Optional[str]] = { '200': "ActiveOrganizationUsers", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2758,7 +2539,8 @@ def _get_active_organization_users_organizations_organization_id_active_users_ge if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2842,6 +2624,8 @@ async def get_favorite_projects_organizations_organization_id_favorite_projects_ _response_types_map: Dict[str, Optional[str]] = { '200': "List[Optional[int]]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2910,6 +2694,8 @@ async def get_favorite_projects_organizations_organization_id_favorite_projects_ _response_types_map: Dict[str, Optional[str]] = { '200': "List[Optional[int]]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2978,6 +2764,8 @@ async def get_favorite_projects_organizations_organization_id_favorite_projects_ _response_types_map: Dict[str, Optional[str]] = { '200': "List[Optional[int]]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3022,7 +2810,8 @@ def _get_favorite_projects_organizations_organization_id_favorite_projects_get_s if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3106,6 +2895,8 @@ async def get_gh_repos_organizations_organization_id_gh_repos_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3174,6 +2965,8 @@ async def get_gh_repos_organizations_organization_id_gh_repos_get_with_http_info _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3242,6 +3035,8 @@ async def get_gh_repos_organizations_organization_id_gh_repos_get_without_preloa _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3286,7 +3081,8 @@ def _get_gh_repos_organizations_organization_id_gh_repos_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3377,6 +3173,8 @@ async def get_github_connect_info_organizations_github_connect_commit_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3452,6 +3250,8 @@ async def get_github_connect_info_organizations_github_connect_commit_get_with_h _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3527,6 +3327,8 @@ async def get_github_connect_info_organizations_github_connect_commit_get_withou _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3583,7 +3385,8 @@ def _get_github_connect_info_organizations_github_connect_commit_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3671,6 +3474,8 @@ async def get_github_connect_url_organizations_organization_id_github_connect_ge _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3743,6 +3548,8 @@ async def get_github_connect_url_organizations_organization_id_github_connect_ge _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3815,6 +3622,8 @@ async def get_github_connect_url_organizations_organization_id_github_connect_ge _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3864,7 +3673,8 @@ def _get_github_connect_url_organizations_organization_id_github_connect_get_ser if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3893,10 +3703,10 @@ def _get_github_connect_url_organizations_organization_id_github_connect_get_ser @validate_call - async def get_invitation_organizations_organization_id_invitations_invitation_id_get( + async def get_issue_type_organizations_organization_id_issue_types_type_id_get( self, organization_id: StrictInt, - invitation_id: StrictInt, + type_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3909,294 +3719,15 @@ async def get_invitation_organizations_organization_id_invitations_invitation_id _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Invitation: - """Get Invitation + ) -> IssueType: + """Get Issue Type - Get an invitation by id + Get an issue type by id :param organization_id: (required) :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Invitation", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - async def get_invitation_organizations_organization_id_invitations_invitation_id_get_with_http_info( - self, - organization_id: StrictInt, - invitation_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Invitation]: - """Get Invitation - - Get an invitation by id - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Invitation", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - async def get_invitation_organizations_organization_id_invitations_invitation_id_get_without_preload_content( - self, - organization_id: StrictInt, - invitation_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Invitation - - Get an invitation by id - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Invitation", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_invitation_organizations_organization_id_invitations_invitation_id_get_serialize( - self, - organization_id, - invitation_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if organization_id is not None: - _path_params['organization_id'] = organization_id - if invitation_id is not None: - _path_params['invitation_id'] = invitation_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OpenIdConnect' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/organizations/{organization_id}/invitations/{invitation_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - async def get_issue_type_organizations_organization_id_issue_types_type_id_get( - self, - organization_id: StrictInt, - type_id: StrictInt, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IssueType: - """Get Issue Type - - Get an issue type by id - - :param organization_id: (required) - :type organization_id: int - :param type_id: (required) - :type type_id: int + :param type_id: (required) + :type type_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4231,6 +3762,8 @@ async def get_issue_type_organizations_organization_id_issue_types_type_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "IssueType", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4303,6 +3836,8 @@ async def get_issue_type_organizations_organization_id_issue_types_type_id_get_w _response_types_map: Dict[str, Optional[str]] = { '200': "IssueType", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4375,6 +3910,8 @@ async def get_issue_type_organizations_organization_id_issue_types_type_id_get_w _response_types_map: Dict[str, Optional[str]] = { '200': "IssueType", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4422,7 +3959,8 @@ def _get_issue_type_organizations_organization_id_issue_types_type_id_get_serial if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4506,6 +4044,8 @@ async def get_organization_issue_types_organizations_organization_id_issue_types _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueType]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4574,6 +4114,8 @@ async def get_organization_issue_types_organizations_organization_id_issue_types _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueType]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4642,6 +4184,8 @@ async def get_organization_issue_types_organizations_organization_id_issue_types _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueType]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4686,7 +4230,8 @@ def _get_organization_issue_types_organizations_organization_id_issue_types_get_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4770,6 +4315,8 @@ async def get_organization_organizations_organization_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "Organization", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4838,6 +4385,8 @@ async def get_organization_organizations_organization_id_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "Organization", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4906,6 +4455,8 @@ async def get_organization_organizations_organization_id_get_without_preload_con _response_types_map: Dict[str, Optional[str]] = { '200': "Organization", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4950,7 +4501,8 @@ def _get_organization_organizations_organization_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5034,6 +4586,8 @@ async def get_organization_quota_organizations_organization_id_quota_get( _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationQuota", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5102,6 +4656,8 @@ async def get_organization_quota_organizations_organization_id_quota_get_with_ht _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationQuota", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5170,6 +4726,8 @@ async def get_organization_quota_organizations_organization_id_quota_get_without _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationQuota", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5214,7 +4772,8 @@ def _get_organization_quota_organizations_organization_id_quota_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5246,7 +4805,7 @@ def _get_organization_quota_organizations_organization_id_quota_get_serialize( async def get_organization_resource_detailed_organizations_organization_id_resource_consumption_detailed_get( self, organization_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5259,14 +4818,14 @@ async def get_organization_resource_detailed_organizations_organization_id_resou _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[VersionResources]: + ) -> OrganizationConsumptionDetailed: """Get Organization Resource Detailed consumption :param organization_id: (required) :type organization_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -5300,8 +4859,10 @@ async def get_organization_resource_detailed_organizations_organization_id_resou ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[VersionResources]", + '200': "OrganizationConsumptionDetailed", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5318,7 +4879,7 @@ async def get_organization_resource_detailed_organizations_organization_id_resou async def get_organization_resource_detailed_organizations_organization_id_resource_consumption_detailed_get_with_http_info( self, organization_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5331,14 +4892,14 @@ async def get_organization_resource_detailed_organizations_organization_id_resou _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[VersionResources]]: + ) -> ApiResponse[OrganizationConsumptionDetailed]: """Get Organization Resource Detailed consumption :param organization_id: (required) :type organization_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -5372,8 +4933,10 @@ async def get_organization_resource_detailed_organizations_organization_id_resou ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[VersionResources]", + '200': "OrganizationConsumptionDetailed", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5390,7 +4953,7 @@ async def get_organization_resource_detailed_organizations_organization_id_resou async def get_organization_resource_detailed_organizations_organization_id_resource_consumption_detailed_get_without_preload_content( self, organization_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5410,7 +4973,7 @@ async def get_organization_resource_detailed_organizations_organization_id_resou :param organization_id: (required) :type organization_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -5444,8 +5007,10 @@ async def get_organization_resource_detailed_organizations_organization_id_resou ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[VersionResources]", + '200': "OrganizationConsumptionDetailed", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5495,7 +5060,8 @@ def _get_organization_resource_detailed_organizations_organization_id_resource_c if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5527,7 +5093,7 @@ def _get_organization_resource_detailed_organizations_organization_id_resource_c async def get_organization_resource_usage_organizations_organization_id_resource_consumption_total_get( self, organization_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5547,7 +5113,7 @@ async def get_organization_resource_usage_organizations_organization_id_resource :param organization_id: (required) :type organization_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -5583,6 +5149,8 @@ async def get_organization_resource_usage_organizations_organization_id_resource _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationConsumption", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5599,7 +5167,7 @@ async def get_organization_resource_usage_organizations_organization_id_resource async def get_organization_resource_usage_organizations_organization_id_resource_consumption_total_get_with_http_info( self, organization_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5619,7 +5187,7 @@ async def get_organization_resource_usage_organizations_organization_id_resource :param organization_id: (required) :type organization_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -5655,6 +5223,8 @@ async def get_organization_resource_usage_organizations_organization_id_resource _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationConsumption", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5671,7 +5241,7 @@ async def get_organization_resource_usage_organizations_organization_id_resource async def get_organization_resource_usage_organizations_organization_id_resource_consumption_total_get_without_preload_content( self, organization_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5691,7 +5261,7 @@ async def get_organization_resource_usage_organizations_organization_id_resource :param organization_id: (required) :type organization_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -5727,6 +5297,8 @@ async def get_organization_resource_usage_organizations_organization_id_resource _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationConsumption", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5776,7 +5348,8 @@ def _get_organization_resource_usage_organizations_organization_id_resource_cons if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5860,6 +5433,8 @@ async def get_organization_restrictions_organizations_organization_id_restrictio _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5928,6 +5503,8 @@ async def get_organization_restrictions_organizations_organization_id_restrictio _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5996,6 +5573,8 @@ async def get_organization_restrictions_organizations_organization_id_restrictio _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6040,7 +5619,8 @@ def _get_organization_restrictions_organizations_organization_id_restrictions_ge if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -6132,6 +5712,8 @@ async def get_organization_usage_organizations_organization_id_usage_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6208,6 +5790,8 @@ async def get_organization_usage_organizations_organization_id_usage_get_with_ht _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6284,6 +5868,8 @@ async def get_organization_usage_organizations_organization_id_usage_get_without _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6356,7 +5942,8 @@ def _get_organization_usage_organizations_organization_id_usage_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -6440,6 +6027,8 @@ async def get_organization_user_groups_organizations_organization_id_user_groups _response_types_map: Dict[str, Optional[str]] = { '200': "List[UserGroup]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6508,6 +6097,8 @@ async def get_organization_user_groups_organizations_organization_id_user_groups _response_types_map: Dict[str, Optional[str]] = { '200': "List[UserGroup]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6576,6 +6167,8 @@ async def get_organization_user_groups_organizations_organization_id_user_groups _response_types_map: Dict[str, Optional[str]] = { '200': "List[UserGroup]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6620,7 +6213,8 @@ def _get_organization_user_groups_organizations_organization_id_user_groups_get_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -6704,6 +6298,8 @@ async def get_organization_users_organizations_organization_id_users_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6772,6 +6368,8 @@ async def get_organization_users_organizations_organization_id_users_get_with_ht _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6840,6 +6438,8 @@ async def get_organization_users_organizations_organization_id_users_get_without _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6884,7 +6484,8 @@ def _get_organization_users_organizations_organization_id_users_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -6980,6 +6581,8 @@ async def get_organizations_organizations_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7060,6 +6663,8 @@ async def get_organizations_organizations_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7140,6 +6745,8 @@ async def get_organizations_organizations_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAdmin]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7219,7 +6826,8 @@ def _get_organizations_organizations_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -7303,6 +6911,8 @@ async def get_pending_invitations_organizations_organization_id_pending_invitati _response_types_map: Dict[str, Optional[str]] = { '200': "List[Invitation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7371,6 +6981,8 @@ async def get_pending_invitations_organizations_organization_id_pending_invitati _response_types_map: Dict[str, Optional[str]] = { '200': "List[Invitation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7439,6 +7051,8 @@ async def get_pending_invitations_organizations_organization_id_pending_invitati _response_types_map: Dict[str, Optional[str]] = { '200': "List[Invitation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7483,7 +7097,8 @@ def _get_pending_invitations_organizations_organization_id_pending_invitations_g if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -7571,6 +7186,8 @@ async def get_user_effective_restrictions_organizations_organization_id_users_us _response_types_map: Dict[str, Optional[str]] = { '200': "List[EffectiveUserAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7643,6 +7260,8 @@ async def get_user_effective_restrictions_organizations_organization_id_users_us _response_types_map: Dict[str, Optional[str]] = { '200': "List[EffectiveUserAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7715,6 +7334,8 @@ async def get_user_effective_restrictions_organizations_organization_id_users_us _response_types_map: Dict[str, Optional[str]] = { '200': "List[EffectiveUserAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7762,7 +7383,8 @@ def _get_user_effective_restrictions_organizations_organization_id_users_user_id if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -7846,6 +7468,8 @@ async def get_user_organization_settings_organizations_organization_id_user_sett _response_types_map: Dict[str, Optional[str]] = { '200': "UserOrganizationSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7914,6 +7538,8 @@ async def get_user_organization_settings_organizations_organization_id_user_sett _response_types_map: Dict[str, Optional[str]] = { '200': "UserOrganizationSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7982,6 +7608,8 @@ async def get_user_organization_settings_organizations_organization_id_user_sett _response_types_map: Dict[str, Optional[str]] = { '200': "UserOrganizationSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -8026,7 +7654,8 @@ def _get_user_organization_settings_organizations_organization_id_user_settings_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -8114,6 +7743,8 @@ async def get_user_restrictions_organizations_organization_id_users_user_id_rest _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -8186,6 +7817,8 @@ async def get_user_restrictions_organizations_organization_id_users_user_id_rest _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -8258,6 +7891,8 @@ async def get_user_restrictions_organizations_organization_id_users_user_id_rest _response_types_map: Dict[str, Optional[str]] = { '200': "List[OrganizationAccessRestriction]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -8305,7 +7940,8 @@ def _get_user_restrictions_organizations_organization_id_users_user_id_restricti if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -8334,11 +7970,10 @@ def _get_user_restrictions_organizations_organization_id_users_user_id_restricti @validate_call - async def patch_invitation_organizations_organization_id_invitations_invitation_id_patch( + async def patch_organization_organizations_organization_id_patch( self, organization_id: StrictInt, - invitation_id: StrictInt, - invitation_patch: InvitationPatch, + resource_patch: ResourcePatch, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8352,459 +7987,9 @@ async def patch_invitation_organizations_organization_id_invitations_invitation_ _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SuccessAndMessageResponse: - """Patch Invitation + """Patch Organization - Patch an invitation - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param invitation_patch: (required) - :type invitation_patch: InvitationPatch - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - invitation_patch=invitation_patch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - async def patch_invitation_organizations_organization_id_invitations_invitation_id_patch_with_http_info( - self, - organization_id: StrictInt, - invitation_id: StrictInt, - invitation_patch: InvitationPatch, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessAndMessageResponse]: - """Patch Invitation - - Patch an invitation - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param invitation_patch: (required) - :type invitation_patch: InvitationPatch - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - invitation_patch=invitation_patch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - async def patch_invitation_organizations_organization_id_invitations_invitation_id_patch_without_preload_content( - self, - organization_id: StrictInt, - invitation_id: StrictInt, - invitation_patch: InvitationPatch, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Patch Invitation - - Patch an invitation - - :param organization_id: (required) - :type organization_id: int - :param invitation_id: (required) - :type invitation_id: int - :param invitation_patch: (required) - :type invitation_patch: InvitationPatch - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( - organization_id=organization_id, - invitation_id=invitation_id, - invitation_patch=invitation_patch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _patch_invitation_organizations_organization_id_invitations_invitation_id_patch_serialize( - self, - organization_id, - invitation_id, - invitation_patch, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if organization_id is not None: - _path_params['organization_id'] = organization_id - if invitation_id is not None: - _path_params['invitation_id'] = invitation_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if invitation_patch is not None: - _body_params = invitation_patch - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OpenIdConnect' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/organizations/{organization_id}/invitations/{invitation_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - async def patch_organization_organizations_organization_id_patch( - self, - organization_id: StrictInt, - resource_patch: ResourcePatch, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessAndMessageResponse: - """Patch Organization - - Patch organization - - :param organization_id: (required) - :type organization_id: int - :param resource_patch: (required) - :type resource_patch: ResourcePatch - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_organization_organizations_organization_id_patch_serialize( - organization_id=organization_id, - resource_patch=resource_patch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - async def patch_organization_organizations_organization_id_patch_with_http_info( - self, - organization_id: StrictInt, - resource_patch: ResourcePatch, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuccessAndMessageResponse]: - """Patch Organization - - Patch organization - - :param organization_id: (required) - :type organization_id: int - :param resource_patch: (required) - :type resource_patch: ResourcePatch - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_organization_organizations_organization_id_patch_serialize( - organization_id=organization_id, - resource_patch=resource_patch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - await response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - async def patch_organization_organizations_organization_id_patch_without_preload_content( - self, - organization_id: StrictInt, - resource_patch: ResourcePatch, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Patch Organization - - Patch organization + Patch organization :param organization_id: (required) :type organization_id: int @@ -8844,154 +8029,8 @@ async def patch_organization_organizations_organization_id_patch_without_preload _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", - } - response_data = await self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _patch_organization_organizations_organization_id_patch_serialize( - self, - organization_id, - resource_patch, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if organization_id is not None: - _path_params['organization_id'] = organization_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if resource_patch is not None: - _body_params = resource_patch - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OpenIdConnect' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/organizations/{organization_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - async def patch_user_organizations_organization_id_users_patch( - self, - organization_id: StrictInt, - user_patch: UserPatch, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuccessAndMessageResponse: - """Patch User - - Patch user - - :param organization_id: (required) - :type organization_id: int - :param user_patch: (required) - :type user_patch: UserPatch - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_user_organizations_organization_id_users_patch_serialize( - organization_id=organization_id, - user_patch=user_patch, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuccessAndMessageResponse", - '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9005,10 +8044,10 @@ async def patch_user_organizations_organization_id_users_patch( @validate_call - async def patch_user_organizations_organization_id_users_patch_with_http_info( + async def patch_organization_organizations_organization_id_patch_with_http_info( self, organization_id: StrictInt, - user_patch: UserPatch, + resource_patch: ResourcePatch, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9022,14 +8061,14 @@ async def patch_user_organizations_organization_id_users_patch_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[SuccessAndMessageResponse]: - """Patch User + """Patch Organization - Patch user + Patch organization :param organization_id: (required) :type organization_id: int - :param user_patch: (required) - :type user_patch: UserPatch + :param resource_patch: (required) + :type resource_patch: ResourcePatch :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9052,9 +8091,9 @@ async def patch_user_organizations_organization_id_users_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_user_organizations_organization_id_users_patch_serialize( + _param = self._patch_organization_organizations_organization_id_patch_serialize( organization_id=organization_id, - user_patch=user_patch, + resource_patch=resource_patch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9064,6 +8103,8 @@ async def patch_user_organizations_organization_id_users_patch_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9077,10 +8118,10 @@ async def patch_user_organizations_organization_id_users_patch_with_http_info( @validate_call - async def patch_user_organizations_organization_id_users_patch_without_preload_content( + async def patch_organization_organizations_organization_id_patch_without_preload_content( self, organization_id: StrictInt, - user_patch: UserPatch, + resource_patch: ResourcePatch, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9094,14 +8135,14 @@ async def patch_user_organizations_organization_id_users_patch_without_preload_c _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Patch User + """Patch Organization - Patch user + Patch organization :param organization_id: (required) :type organization_id: int - :param user_patch: (required) - :type user_patch: UserPatch + :param resource_patch: (required) + :type resource_patch: ResourcePatch :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9124,9 +8165,9 @@ async def patch_user_organizations_organization_id_users_patch_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = self._patch_user_organizations_organization_id_users_patch_serialize( + _param = self._patch_organization_organizations_organization_id_patch_serialize( organization_id=organization_id, - user_patch=user_patch, + resource_patch=resource_patch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9136,6 +8177,8 @@ async def patch_user_organizations_organization_id_users_patch_without_preload_c _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9144,10 +8187,10 @@ async def patch_user_organizations_organization_id_users_patch_without_preload_c return response_data.response - def _patch_user_organizations_organization_id_users_patch_serialize( + def _patch_organization_organizations_organization_id_patch_serialize( self, organization_id, - user_patch, + resource_patch, _request_auth, _content_type, _headers, @@ -9175,15 +8218,16 @@ def _patch_user_organizations_organization_id_users_patch_serialize( # process the header parameters # process the form parameters # process the body parameter - if user_patch is not None: - _body_params = user_patch + if resource_patch is not None: + _body_params = resource_patch # set the HTTP header `Accept` if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -9208,7 +8252,7 @@ def _patch_user_organizations_organization_id_users_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/organizations/{organization_id}/users', + resource_path='/organizations/{organization_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9225,10 +8269,10 @@ def _patch_user_organizations_organization_id_users_patch_serialize( @validate_call - async def post_invitation_organizations_organization_id_invitations_post( + async def patch_user_organizations_organization_id_users_patch( self, organization_id: StrictInt, - new_invitation: NewInvitation, + user_patch: UserPatch, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9242,14 +8286,14 @@ async def post_invitation_organizations_organization_id_invitations_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SuccessAndMessageResponse: - """Post Invitation + """Patch User - Create a user invitation for an organization + Patch user :param organization_id: (required) :type organization_id: int - :param new_invitation: (required) - :type new_invitation: NewInvitation + :param user_patch: (required) + :type user_patch: UserPatch :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9272,9 +8316,9 @@ async def post_invitation_organizations_organization_id_invitations_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_invitation_organizations_organization_id_invitations_post_serialize( + _param = self._patch_user_organizations_organization_id_users_patch_serialize( organization_id=organization_id, - new_invitation=new_invitation, + user_patch=user_patch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9284,6 +8328,8 @@ async def post_invitation_organizations_organization_id_invitations_post( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9297,10 +8343,10 @@ async def post_invitation_organizations_organization_id_invitations_post( @validate_call - async def post_invitation_organizations_organization_id_invitations_post_with_http_info( + async def patch_user_organizations_organization_id_users_patch_with_http_info( self, organization_id: StrictInt, - new_invitation: NewInvitation, + user_patch: UserPatch, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9314,14 +8360,14 @@ async def post_invitation_organizations_organization_id_invitations_post_with_ht _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[SuccessAndMessageResponse]: - """Post Invitation + """Patch User - Create a user invitation for an organization + Patch user :param organization_id: (required) :type organization_id: int - :param new_invitation: (required) - :type new_invitation: NewInvitation + :param user_patch: (required) + :type user_patch: UserPatch :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9344,9 +8390,9 @@ async def post_invitation_organizations_organization_id_invitations_post_with_ht :return: Returns the result object. """ # noqa: E501 - _param = self._post_invitation_organizations_organization_id_invitations_post_serialize( + _param = self._patch_user_organizations_organization_id_users_patch_serialize( organization_id=organization_id, - new_invitation=new_invitation, + user_patch=user_patch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9356,6 +8402,8 @@ async def post_invitation_organizations_organization_id_invitations_post_with_ht _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9369,10 +8417,10 @@ async def post_invitation_organizations_organization_id_invitations_post_with_ht @validate_call - async def post_invitation_organizations_organization_id_invitations_post_without_preload_content( + async def patch_user_organizations_organization_id_users_patch_without_preload_content( self, organization_id: StrictInt, - new_invitation: NewInvitation, + user_patch: UserPatch, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9386,14 +8434,14 @@ async def post_invitation_organizations_organization_id_invitations_post_without _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Post Invitation + """Patch User - Create a user invitation for an organization + Patch user :param organization_id: (required) :type organization_id: int - :param new_invitation: (required) - :type new_invitation: NewInvitation + :param user_patch: (required) + :type user_patch: UserPatch :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9416,9 +8464,9 @@ async def post_invitation_organizations_organization_id_invitations_post_without :return: Returns the result object. """ # noqa: E501 - _param = self._post_invitation_organizations_organization_id_invitations_post_serialize( + _param = self._patch_user_organizations_organization_id_users_patch_serialize( organization_id=organization_id, - new_invitation=new_invitation, + user_patch=user_patch, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9428,6 +8476,8 @@ async def post_invitation_organizations_organization_id_invitations_post_without _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9436,10 +8486,10 @@ async def post_invitation_organizations_organization_id_invitations_post_without return response_data.response - def _post_invitation_organizations_organization_id_invitations_post_serialize( + def _patch_user_organizations_organization_id_users_patch_serialize( self, organization_id, - new_invitation, + user_patch, _request_auth, _content_type, _headers, @@ -9467,15 +8517,16 @@ def _post_invitation_organizations_organization_id_invitations_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if new_invitation is not None: - _body_params = new_invitation + if user_patch is not None: + _body_params = user_patch # set the HTTP header `Accept` if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -9499,8 +8550,8 @@ def _post_invitation_organizations_organization_id_invitations_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/organizations/{organization_id}/invitations', + method='PATCH', + resource_path='/organizations/{organization_id}/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9576,6 +8627,8 @@ async def post_issue_type_organizations_organization_id_issue_types_post( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9648,6 +8701,8 @@ async def post_issue_type_organizations_organization_id_issue_types_post_with_ht _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9720,6 +8775,8 @@ async def post_issue_type_organizations_organization_id_issue_types_post_without _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9767,7 +8824,8 @@ def _post_issue_type_organizations_organization_id_issue_types_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -9864,6 +8922,8 @@ async def post_organization_organizations_post( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -9932,6 +8992,8 @@ async def post_organization_organizations_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10000,6 +9062,8 @@ async def post_organization_organizations_post_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10044,7 +9108,8 @@ def _post_organization_organizations_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -10145,6 +9210,8 @@ async def post_organization_user_organizations_organization_id_users_post( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10217,6 +9284,8 @@ async def post_organization_user_organizations_organization_id_users_post_with_h _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10289,6 +9358,8 @@ async def post_organization_user_organizations_organization_id_users_post_withou _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10336,7 +9407,8 @@ def _post_organization_user_organizations_organization_id_users_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -10441,6 +9513,8 @@ async def put_issue_type_organizations_organization_id_issue_types_type_id_put( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10517,6 +9591,8 @@ async def put_issue_type_organizations_organization_id_issue_types_type_id_put_w _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10593,6 +9669,8 @@ async def put_issue_type_organizations_organization_id_issue_types_type_id_put_w _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10643,7 +9721,8 @@ def _put_issue_type_organizations_organization_id_issue_types_type_id_put_serial if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -10744,6 +9823,8 @@ async def put_organization_organizations_organization_id_put( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10816,6 +9897,8 @@ async def put_organization_organizations_organization_id_put_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10888,6 +9971,8 @@ async def put_organization_organizations_organization_id_put_without_preload_con _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -10935,7 +10020,8 @@ def _put_organization_organizations_organization_id_put_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -11036,6 +10122,8 @@ async def put_organization_restrictions_organizations_organization_id_restrictio _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11108,6 +10196,8 @@ async def put_organization_restrictions_organizations_organization_id_restrictio _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11180,6 +10270,8 @@ async def put_organization_restrictions_organizations_organization_id_restrictio _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11228,7 +10320,8 @@ def _put_organization_restrictions_organizations_organization_id_restrictions_pu if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -11329,6 +10422,8 @@ async def put_user_organization_settings_organizations_organization_id_user_sett _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11401,6 +10496,8 @@ async def put_user_organization_settings_organizations_organization_id_user_sett _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11473,6 +10570,8 @@ async def put_user_organization_settings_organizations_organization_id_user_sett _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11520,7 +10619,8 @@ def _put_user_organization_settings_organizations_organization_id_user_settings_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -11625,6 +10725,8 @@ async def put_user_restrictions_organizations_organization_id_users_user_id_rest _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11701,6 +10803,8 @@ async def put_user_restrictions_organizations_organization_id_users_user_id_rest _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11777,6 +10881,8 @@ async def put_user_restrictions_organizations_organization_id_users_user_id_rest _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -11828,7 +10934,8 @@ def _put_user_restrictions_organizations_organization_id_users_user_id_restricti if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -11929,6 +11036,8 @@ async def remove_project_from_favorites_organizations_organization_id_favorite_p _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -12001,6 +11110,8 @@ async def remove_project_from_favorites_organizations_organization_id_favorite_p _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -12073,6 +11184,8 @@ async def remove_project_from_favorites_organizations_organization_id_favorite_p _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -12120,7 +11233,8 @@ def _remove_project_from_favorites_organizations_organization_id_favorite_projec if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/projects_api.py b/audithub_sdk/api/projects_api.py index 1810c4e..ffc91e7 100644 --- a/audithub_sdk/api/projects_api.py +++ b/audithub_sdk/api/projects_api.py @@ -23,6 +23,7 @@ from audithub_sdk.models.id_and_message_response import IdAndMessageResponse from audithub_sdk.models.issue_status_transition import IssueStatusTransition from audithub_sdk.models.organization_consumption import OrganizationConsumption +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed from audithub_sdk.models.project import Project from audithub_sdk.models.project_git_hub_link import ProjectGitHubLink from audithub_sdk.models.project_info_input import ProjectInfoInput @@ -38,7 +39,6 @@ from audithub_sdk.models.user_information import UserInformation from audithub_sdk.models.user_project_setting import UserProjectSetting from audithub_sdk.models.user_thread_setting import UserThreadSetting -from audithub_sdk.models.version_resources import VersionResources from audithub_sdk.api_client import ApiClient, RequestSerialized from audithub_sdk.api_response import ApiResponse @@ -118,6 +118,8 @@ async def delete_github_link_organizations_organization_id_projects_project_id_g _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -190,6 +192,8 @@ async def delete_github_link_organizations_organization_id_projects_project_id_g _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -262,6 +266,8 @@ async def delete_github_link_organizations_organization_id_projects_project_id_g _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -309,7 +315,8 @@ def _delete_github_link_organizations_organization_id_projects_project_id_gh_lin if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -397,6 +404,8 @@ async def delete_project_organizations_organization_id_projects_project_id_delet _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -469,6 +478,8 @@ async def delete_project_organizations_organization_id_projects_project_id_delet _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -541,6 +552,8 @@ async def delete_project_organizations_organization_id_projects_project_id_delet _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -588,7 +601,8 @@ def _delete_project_organizations_organization_id_projects_project_id_delete_ser if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -704,6 +718,8 @@ async def get_issue_transitions_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueStatusTransition]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -804,6 +820,8 @@ async def get_issue_transitions_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueStatusTransition]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -904,6 +922,8 @@ async def get_issue_transitions_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "List[IssueStatusTransition]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1004,7 +1024,8 @@ def _get_issue_transitions_organizations_organization_id_projects_project_id_iss if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1038,6 +1059,7 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro organization_id: StrictInt, project_id: StrictInt, include_commenter_ids: Annotated[Optional[StrictBool], Field(description="Include distinct user ids of users who created comments in each thread.")] = None, + include_message_count: Annotated[Optional[StrictBool], Field(description="Include the count of messages in each thread.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1061,6 +1083,8 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro :type project_id: int :param include_commenter_ids: Include distinct user ids of users who created comments in each thread. :type include_commenter_ids: bool + :param include_message_count: Include the count of messages in each thread. + :type include_message_count: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1087,6 +1111,7 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro organization_id=organization_id, project_id=project_id, include_commenter_ids=include_commenter_ids, + include_message_count=include_message_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1096,6 +1121,8 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro _response_types_map: Dict[str, Optional[str]] = { '200': "List[Thread]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1114,6 +1141,7 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro organization_id: StrictInt, project_id: StrictInt, include_commenter_ids: Annotated[Optional[StrictBool], Field(description="Include distinct user ids of users who created comments in each thread.")] = None, + include_message_count: Annotated[Optional[StrictBool], Field(description="Include the count of messages in each thread.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1137,6 +1165,8 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro :type project_id: int :param include_commenter_ids: Include distinct user ids of users who created comments in each thread. :type include_commenter_ids: bool + :param include_message_count: Include the count of messages in each thread. + :type include_message_count: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1163,6 +1193,7 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro organization_id=organization_id, project_id=project_id, include_commenter_ids=include_commenter_ids, + include_message_count=include_message_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1172,6 +1203,8 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro _response_types_map: Dict[str, Optional[str]] = { '200': "List[Thread]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1190,6 +1223,7 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro organization_id: StrictInt, project_id: StrictInt, include_commenter_ids: Annotated[Optional[StrictBool], Field(description="Include distinct user ids of users who created comments in each thread.")] = None, + include_message_count: Annotated[Optional[StrictBool], Field(description="Include the count of messages in each thread.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1213,6 +1247,8 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro :type project_id: int :param include_commenter_ids: Include distinct user ids of users who created comments in each thread. :type include_commenter_ids: bool + :param include_message_count: Include the count of messages in each thread. + :type include_message_count: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1239,6 +1275,7 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro organization_id=organization_id, project_id=project_id, include_commenter_ids=include_commenter_ids, + include_message_count=include_message_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1248,6 +1285,8 @@ async def get_project_comment_threads_organizations_organization_id_projects_pro _response_types_map: Dict[str, Optional[str]] = { '200': "List[Thread]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1261,6 +1300,7 @@ def _get_project_comment_threads_organizations_organization_id_projects_project_ organization_id, project_id, include_commenter_ids, + include_message_count, _request_auth, _content_type, _headers, @@ -1291,6 +1331,10 @@ def _get_project_comment_threads_organizations_organization_id_projects_project_ _query_params.append(('include_commenter_ids', include_commenter_ids)) + if include_message_count is not None: + + _query_params.append(('include_message_count', include_message_count)) + # process the header parameters # process the form parameters # process the body parameter @@ -1300,7 +1344,8 @@ def _get_project_comment_threads_organizations_organization_id_projects_project_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1335,6 +1380,7 @@ async def get_project_comments_organizations_organization_id_projects_project_id project_id: StrictInt, limit: StrictInt, offset: StrictInt, + thread_id: Optional[StrictInt] = None, from_date: Optional[datetime] = None, to_date: Optional[datetime] = None, order_by: Annotated[Optional[StrictStr], Field(description="Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: thread_id, comment_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. ")] = None, @@ -1363,6 +1409,8 @@ async def get_project_comments_organizations_organization_id_projects_project_id :type limit: int :param offset: (required) :type offset: int + :param thread_id: + :type thread_id: int :param from_date: :type from_date: datetime :param to_date: @@ -1396,6 +1444,7 @@ async def get_project_comments_organizations_organization_id_projects_project_id project_id=project_id, limit=limit, offset=offset, + thread_id=thread_id, from_date=from_date, to_date=to_date, order_by=order_by, @@ -1408,6 +1457,8 @@ async def get_project_comments_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[Comment]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1427,6 +1478,7 @@ async def get_project_comments_organizations_organization_id_projects_project_id project_id: StrictInt, limit: StrictInt, offset: StrictInt, + thread_id: Optional[StrictInt] = None, from_date: Optional[datetime] = None, to_date: Optional[datetime] = None, order_by: Annotated[Optional[StrictStr], Field(description="Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: thread_id, comment_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. ")] = None, @@ -1455,6 +1507,8 @@ async def get_project_comments_organizations_organization_id_projects_project_id :type limit: int :param offset: (required) :type offset: int + :param thread_id: + :type thread_id: int :param from_date: :type from_date: datetime :param to_date: @@ -1488,6 +1542,7 @@ async def get_project_comments_organizations_organization_id_projects_project_id project_id=project_id, limit=limit, offset=offset, + thread_id=thread_id, from_date=from_date, to_date=to_date, order_by=order_by, @@ -1500,6 +1555,8 @@ async def get_project_comments_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[Comment]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1519,6 +1576,7 @@ async def get_project_comments_organizations_organization_id_projects_project_id project_id: StrictInt, limit: StrictInt, offset: StrictInt, + thread_id: Optional[StrictInt] = None, from_date: Optional[datetime] = None, to_date: Optional[datetime] = None, order_by: Annotated[Optional[StrictStr], Field(description="Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: thread_id, comment_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. ")] = None, @@ -1547,6 +1605,8 @@ async def get_project_comments_organizations_organization_id_projects_project_id :type limit: int :param offset: (required) :type offset: int + :param thread_id: + :type thread_id: int :param from_date: :type from_date: datetime :param to_date: @@ -1580,6 +1640,7 @@ async def get_project_comments_organizations_organization_id_projects_project_id project_id=project_id, limit=limit, offset=offset, + thread_id=thread_id, from_date=from_date, to_date=to_date, order_by=order_by, @@ -1592,6 +1653,8 @@ async def get_project_comments_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[Comment]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1606,6 +1669,7 @@ def _get_project_comments_organizations_organization_id_projects_project_id_comm project_id, limit, offset, + thread_id, from_date, to_date, order_by, @@ -1643,6 +1707,10 @@ def _get_project_comments_organizations_organization_id_projects_project_id_comm _query_params.append(('offset', offset)) + if thread_id is not None: + + _query_params.append(('thread_id', thread_id)) + if from_date is not None: if isinstance(from_date, datetime): _query_params.append( @@ -1682,7 +1750,8 @@ def _get_project_comments_organizations_organization_id_projects_project_id_comm if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1770,6 +1839,8 @@ async def get_project_findings_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskFIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1842,6 +1913,8 @@ async def get_project_findings_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskFIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1914,6 +1987,8 @@ async def get_project_findings_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskFIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1961,7 +2036,8 @@ def _get_project_findings_organizations_organization_id_projects_project_id_find if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2049,6 +2125,8 @@ async def get_project_organizations_organization_id_projects_project_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "Project", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2121,6 +2199,8 @@ async def get_project_organizations_organization_id_projects_project_id_get_with _response_types_map: Dict[str, Optional[str]] = { '200': "Project", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2193,6 +2273,8 @@ async def get_project_organizations_organization_id_projects_project_id_get_with _response_types_map: Dict[str, Optional[str]] = { '200': "Project", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2240,7 +2322,8 @@ def _get_project_organizations_organization_id_projects_project_id_get_serialize if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2273,7 +2356,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p self, organization_id: StrictInt, project_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2286,7 +2369,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[VersionResources]: + ) -> OrganizationConsumptionDetailed: """Get Project Resource Detailed Returns project detailed consumption @@ -2295,7 +2378,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p :type organization_id: int :param project_id: (required) :type project_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2330,8 +2413,10 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[VersionResources]", + '200': "OrganizationConsumptionDetailed", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2349,7 +2434,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p self, organization_id: StrictInt, project_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2362,7 +2447,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[VersionResources]]: + ) -> ApiResponse[OrganizationConsumptionDetailed]: """Get Project Resource Detailed Returns project detailed consumption @@ -2371,7 +2456,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p :type organization_id: int :param project_id: (required) :type project_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2406,8 +2491,10 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[VersionResources]", + '200': "OrganizationConsumptionDetailed", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2425,7 +2512,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p self, organization_id: StrictInt, project_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2447,7 +2534,7 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p :type organization_id: int :param project_id: (required) :type project_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2482,8 +2569,10 @@ async def get_project_resource_detailed_organizations_organization_id_projects_p ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[VersionResources]", + '200': "OrganizationConsumptionDetailed", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2536,7 +2625,8 @@ def _get_project_resource_detailed_organizations_organization_id_projects_projec if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2569,7 +2659,7 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj self, organization_id: StrictInt, project_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2591,7 +2681,7 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj :type organization_id: int :param project_id: (required) :type project_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2628,6 +2718,8 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationConsumption", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2645,7 +2737,7 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj self, organization_id: StrictInt, project_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2667,7 +2759,7 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj :type organization_id: int :param project_id: (required) :type project_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2704,6 +2796,8 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationConsumption", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2721,7 +2815,7 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj self, organization_id: StrictInt, project_id: StrictInt, - months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Fallback date interval in months when the organization has no active subscriptions.")] = None, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2743,7 +2837,7 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj :type organization_id: int :param project_id: (required) :type project_id: int - :param months: Fallback date interval in months when the organization has no active subscriptions. + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. :type months: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2780,6 +2874,8 @@ async def get_project_resource_usage_organizations_organization_id_projects_proj _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationConsumption", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2832,7 +2928,8 @@ def _get_project_resource_usage_organizations_organization_id_projects_project_i if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2924,6 +3021,8 @@ async def get_project_revision_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "ProjectInfoOutput", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3000,6 +3099,8 @@ async def get_project_revision_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "ProjectInfoOutput", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3076,6 +3177,8 @@ async def get_project_revision_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "ProjectInfoOutput", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3126,7 +3229,8 @@ def _get_project_revision_organizations_organization_id_projects_project_id_revi if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3210,6 +3314,8 @@ async def get_projects_organizations_organization_id_projects_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[Project]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3278,6 +3384,8 @@ async def get_projects_organizations_organization_id_projects_get_with_http_info _response_types_map: Dict[str, Optional[str]] = { '200': "List[Project]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3346,6 +3454,8 @@ async def get_projects_organizations_organization_id_projects_get_without_preloa _response_types_map: Dict[str, Optional[str]] = { '200': "List[Project]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3390,7 +3500,8 @@ def _get_projects_organizations_organization_id_projects_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3478,6 +3589,8 @@ async def get_projects_revisions_organizations_organization_id_projects_project_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3550,6 +3663,8 @@ async def get_projects_revisions_organizations_organization_id_projects_project_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3622,6 +3737,8 @@ async def get_projects_revisions_organizations_organization_id_projects_project_ _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3669,7 +3786,8 @@ def _get_projects_revisions_organizations_organization_id_projects_project_id_re if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3757,6 +3875,8 @@ async def get_user_project_settings_organizations_organization_id_projects_proje _response_types_map: Dict[str, Optional[str]] = { '200': "UserProjectSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3829,6 +3949,8 @@ async def get_user_project_settings_organizations_organization_id_projects_proje _response_types_map: Dict[str, Optional[str]] = { '200': "UserProjectSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3901,6 +4023,8 @@ async def get_user_project_settings_organizations_organization_id_projects_proje _response_types_map: Dict[str, Optional[str]] = { '200': "UserProjectSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3948,7 +4072,8 @@ def _get_user_project_settings_organizations_organization_id_projects_project_id if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4040,6 +4165,8 @@ async def get_user_thread_settings_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "UserThreadSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4116,6 +4243,8 @@ async def get_user_thread_settings_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "UserThreadSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4192,6 +4321,8 @@ async def get_user_thread_settings_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "UserThreadSetting", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4242,7 +4373,8 @@ def _get_user_thread_settings_organizations_organization_id_projects_project_id_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4330,6 +4462,8 @@ async def get_users_organizations_organization_id_projects_project_id_users_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[UserInformation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4402,6 +4536,8 @@ async def get_users_organizations_organization_id_projects_project_id_users_get_ _response_types_map: Dict[str, Optional[str]] = { '200': "List[UserInformation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4474,6 +4610,8 @@ async def get_users_organizations_organization_id_projects_project_id_users_get_ _response_types_map: Dict[str, Optional[str]] = { '200': "List[UserInformation]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4521,7 +4659,8 @@ def _get_users_organizations_organization_id_projects_project_id_users_get_seria if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4613,6 +4752,8 @@ async def patch_project_organizations_organization_id_projects_project_id_patch( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4689,6 +4830,8 @@ async def patch_project_organizations_organization_id_projects_project_id_patch_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4765,6 +4908,8 @@ async def patch_project_organizations_organization_id_projects_project_id_patch_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4815,7 +4960,8 @@ def _patch_project_organizations_organization_id_projects_project_id_patch_seria if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4924,6 +5070,8 @@ async def patch_thread_organizations_organization_id_projects_project_id_threads _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5004,6 +5152,8 @@ async def patch_thread_organizations_organization_id_projects_project_id_threads _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5084,6 +5234,8 @@ async def patch_thread_organizations_organization_id_projects_project_id_threads _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5137,7 +5289,8 @@ def _patch_thread_organizations_organization_id_projects_project_id_threads_thre if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5246,6 +5399,8 @@ async def post_new_comment_organizations_organization_id_projects_project_id_thr _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5326,6 +5481,8 @@ async def post_new_comment_organizations_organization_id_projects_project_id_thr _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5406,6 +5563,8 @@ async def post_new_comment_organizations_organization_id_projects_project_id_thr _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5459,7 +5618,8 @@ def _post_new_comment_organizations_organization_id_projects_project_id_threads_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5568,6 +5728,8 @@ async def post_project_organizations_organization_id_projects_post( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5648,6 +5810,8 @@ async def post_project_organizations_organization_id_projects_post_with_http_inf _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5728,6 +5892,8 @@ async def post_project_organizations_organization_id_projects_post_without_prelo _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5785,7 +5951,8 @@ def _post_project_organizations_organization_id_projects_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5890,6 +6057,8 @@ async def put_github_link_organizations_organization_id_projects_project_id_gh_l _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5966,6 +6135,8 @@ async def put_github_link_organizations_organization_id_projects_project_id_gh_l _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6042,6 +6213,8 @@ async def put_github_link_organizations_organization_id_projects_project_id_gh_l _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6092,7 +6265,8 @@ def _put_github_link_organizations_organization_id_projects_project_id_gh_link_p if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -6197,6 +6371,8 @@ async def put_project_organizations_organization_id_projects_project_id_put( _response_types_map: Dict[str, Optional[str]] = { '200': "ProjectUpdateResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6273,6 +6449,8 @@ async def put_project_organizations_organization_id_projects_project_id_put_with _response_types_map: Dict[str, Optional[str]] = { '200': "ProjectUpdateResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6349,6 +6527,8 @@ async def put_project_organizations_organization_id_projects_project_id_put_with _response_types_map: Dict[str, Optional[str]] = { '200': "ProjectUpdateResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6399,7 +6579,8 @@ def _put_project_organizations_organization_id_projects_project_id_put_serialize if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -6504,6 +6685,8 @@ async def put_user_project_settings_organizations_organization_id_projects_proje _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6580,6 +6763,8 @@ async def put_user_project_settings_organizations_organization_id_projects_proje _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6656,6 +6841,8 @@ async def put_user_project_settings_organizations_organization_id_projects_proje _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6706,7 +6893,8 @@ def _put_user_project_settings_organizations_organization_id_projects_project_id if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -6815,6 +7003,8 @@ async def put_user_thread_settings_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6895,6 +7085,8 @@ async def put_user_thread_settings_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -6975,6 +7167,8 @@ async def put_user_thread_settings_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -7028,7 +7222,8 @@ def _put_user_thread_settings_organizations_organization_id_projects_project_id_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/subscriptions_api.py b/audithub_sdk/api/subscriptions_api.py index 8b58686..80d0348 100644 --- a/audithub_sdk/api/subscriptions_api.py +++ b/audithub_sdk/api/subscriptions_api.py @@ -97,6 +97,8 @@ async def get_current_organization_subscriptions_organizations_organization_id_s _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -165,6 +167,8 @@ async def get_current_organization_subscriptions_organizations_organization_id_s _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -233,6 +237,8 @@ async def get_current_organization_subscriptions_organizations_organization_id_s _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -277,7 +283,8 @@ def _get_current_organization_subscriptions_organizations_organization_id_subscr if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -365,6 +372,8 @@ async def get_organization_subscription_organizations_organization_id_subscripti _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationSubscription", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -437,6 +446,8 @@ async def get_organization_subscription_organizations_organization_id_subscripti _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationSubscription", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -509,6 +520,8 @@ async def get_organization_subscription_organizations_organization_id_subscripti _response_types_map: Dict[str, Optional[str]] = { '200': "OrganizationSubscription", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -556,7 +569,8 @@ def _get_organization_subscription_organizations_organization_id_subscriptions_s if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -648,6 +662,8 @@ async def patch_subscription_organizations_organization_id_subscriptions_subscri _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -724,6 +740,8 @@ async def patch_subscription_organizations_organization_id_subscriptions_subscri _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -800,6 +818,8 @@ async def patch_subscription_organizations_organization_id_subscriptions_subscri _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -850,7 +870,8 @@ def _patch_subscription_organizations_organization_id_subscriptions_subscription if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -951,6 +972,8 @@ async def post_organization_subscription_organizations_organization_id_subscript _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1023,6 +1046,8 @@ async def post_organization_subscription_organizations_organization_id_subscript _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1095,6 +1120,8 @@ async def post_organization_subscription_organizations_organization_id_subscript _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1142,7 +1169,8 @@ def _post_organization_subscription_organizations_organization_id_subscriptions_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1247,6 +1275,8 @@ async def put_organization_subscription_organizations_organization_id_subscripti _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1323,6 +1353,8 @@ async def put_organization_subscription_organizations_organization_id_subscripti _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1399,6 +1431,8 @@ async def put_organization_subscription_organizations_organization_id_subscripti _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1449,7 +1483,8 @@ def _put_organization_subscription_organizations_organization_id_subscriptions_s if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/tasks_api.py b/audithub_sdk/api/tasks_api.py index d0149a9..43c8f6f 100644 --- a/audithub_sdk/api/tasks_api.py +++ b/audithub_sdk/api/tasks_api.py @@ -106,6 +106,8 @@ async def delete_task_organizations_organization_id_tasks_task_id_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -178,6 +180,8 @@ async def delete_task_organizations_organization_id_tasks_task_id_delete_with_ht _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -250,6 +254,8 @@ async def delete_task_organizations_organization_id_tasks_task_id_delete_without _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -297,7 +303,8 @@ def _delete_task_organizations_organization_id_tasks_task_id_delete_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -389,6 +396,8 @@ async def get_artifact_organizations_organization_id_tasks_task_id_artifacts_art _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -465,6 +474,8 @@ async def get_artifact_organizations_organization_id_tasks_task_id_artifacts_art _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -541,6 +552,8 @@ async def get_artifact_organizations_organization_id_tasks_task_id_artifacts_art _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -591,7 +604,7 @@ def _get_artifact_organizations_organization_id_tasks_task_id_artifacts_artifact if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/problem+json' ] ) @@ -679,6 +692,8 @@ async def get_info_organizations_organization_id_tasks_task_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "Task", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -751,6 +766,8 @@ async def get_info_organizations_organization_id_tasks_task_id_get_with_http_inf _response_types_map: Dict[str, Optional[str]] = { '200': "Task", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -823,6 +840,8 @@ async def get_info_organizations_organization_id_tasks_task_id_get_without_prelo _response_types_map: Dict[str, Optional[str]] = { '200': "Task", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -870,7 +889,8 @@ def _get_info_organizations_organization_id_tasks_task_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -969,6 +989,8 @@ async def get_output_organizations_organization_id_tasks_task_id_step_code_outpu _response_types_map: Dict[str, Optional[str]] = { '200': "List[str]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1052,6 +1074,8 @@ async def get_output_organizations_organization_id_tasks_task_id_step_code_outpu _response_types_map: Dict[str, Optional[str]] = { '200': "List[str]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1135,6 +1159,8 @@ async def get_output_organizations_organization_id_tasks_task_id_step_code_outpu _response_types_map: Dict[str, Optional[str]] = { '200': "List[str]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1196,7 +1222,8 @@ def _get_output_organizations_organization_id_tasks_task_id_step_code_output_get _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/json', - 'text/plain' + 'text/plain', + 'application/problem+json' ] ) @@ -1284,6 +1311,8 @@ async def get_status_organizations_organization_id_tasks_task_id_status_get( _response_types_map: Dict[str, Optional[str]] = { '200': "TaskStatus", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1356,6 +1385,8 @@ async def get_status_organizations_organization_id_tasks_task_id_status_get_with _response_types_map: Dict[str, Optional[str]] = { '200': "TaskStatus", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1428,6 +1459,8 @@ async def get_status_organizations_organization_id_tasks_task_id_status_get_with _response_types_map: Dict[str, Optional[str]] = { '200': "TaskStatus", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1475,7 +1508,8 @@ def _get_status_organizations_organization_id_tasks_task_id_status_get_serialize if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1571,6 +1605,8 @@ async def get_task_accounting_organizations_organization_id_tasks_task_id_accoun _response_types_map: Dict[str, Optional[str]] = { '200': "List[AccountingData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1651,6 +1687,8 @@ async def get_task_accounting_organizations_organization_id_tasks_task_id_accoun _response_types_map: Dict[str, Optional[str]] = { '200': "List[AccountingData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1731,6 +1769,8 @@ async def get_task_accounting_organizations_organization_id_tasks_task_id_accoun _response_types_map: Dict[str, Optional[str]] = { '200': "List[AccountingData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1788,7 +1828,8 @@ def _get_task_accounting_organizations_organization_id_tasks_task_id_accounting_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1876,6 +1917,8 @@ async def get_task_archive_organizations_organization_id_tasks_task_id_archive_g _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1948,6 +1991,8 @@ async def get_task_archive_organizations_organization_id_tasks_task_id_archive_g _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2020,6 +2065,8 @@ async def get_task_archive_organizations_organization_id_tasks_task_id_archive_g _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2068,7 +2115,7 @@ def _get_task_archive_organizations_organization_id_tasks_task_id_archive_get_se _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/zip', - 'application/json' + 'application/problem+json' ] ) @@ -2156,6 +2203,8 @@ async def get_task_catalog_organizations_organization_id_tasks_task_id_catalog_g _response_types_map: Dict[str, Optional[str]] = { '200': "Directory", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2228,6 +2277,8 @@ async def get_task_catalog_organizations_organization_id_tasks_task_id_catalog_g _response_types_map: Dict[str, Optional[str]] = { '200': "Directory", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2300,6 +2351,8 @@ async def get_task_catalog_organizations_organization_id_tasks_task_id_catalog_g _response_types_map: Dict[str, Optional[str]] = { '200': "Directory", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2347,7 +2400,8 @@ def _get_task_catalog_organizations_organization_id_tasks_task_id_catalog_get_se if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2439,6 +2493,8 @@ async def get_task_file_organizations_organization_id_tasks_task_id_file_get( _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2515,6 +2571,8 @@ async def get_task_file_organizations_organization_id_tasks_task_id_file_get_wit _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2591,6 +2649,8 @@ async def get_task_file_organizations_organization_id_tasks_task_id_file_get_wit _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2643,7 +2703,7 @@ def _get_task_file_organizations_organization_id_tasks_task_id_file_get_serializ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/problem+json' ] ) @@ -2739,6 +2799,8 @@ async def get_task_findings_for_analysis_result_organizations_organization_id_ta _response_types_map: Dict[str, Optional[str]] = { '200': "List[FIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2819,6 +2881,8 @@ async def get_task_findings_for_analysis_result_organizations_organization_id_ta _response_types_map: Dict[str, Optional[str]] = { '200': "List[FIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2899,6 +2963,8 @@ async def get_task_findings_for_analysis_result_organizations_organization_id_ta _response_types_map: Dict[str, Optional[str]] = { '200': "List[FIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2954,7 +3020,8 @@ def _get_task_findings_for_analysis_result_organizations_organization_id_tasks_t if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3042,6 +3109,8 @@ async def get_task_findings_organizations_organization_id_tasks_task_id_findings _response_types_map: Dict[str, Optional[str]] = { '200': "List[FIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3114,6 +3183,8 @@ async def get_task_findings_organizations_organization_id_tasks_task_id_findings _response_types_map: Dict[str, Optional[str]] = { '200': "List[FIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3186,6 +3257,8 @@ async def get_task_findings_organizations_organization_id_tasks_task_id_findings _response_types_map: Dict[str, Optional[str]] = { '200': "List[FIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3233,7 +3306,8 @@ def _get_task_findings_organizations_organization_id_tasks_task_id_findings_get_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3345,6 +3419,8 @@ async def get_tasks_organizations_organization_id_tasks_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[Task]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3441,6 +3517,8 @@ async def get_tasks_organizations_organization_id_tasks_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[Task]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3537,6 +3615,8 @@ async def get_tasks_organizations_organization_id_tasks_get_without_preload_cont _response_types_map: Dict[str, Optional[str]] = { '200': "List[Task]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3634,7 +3714,8 @@ def _get_tasks_organizations_organization_id_tasks_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3726,6 +3807,8 @@ async def patch_task_organizations_organization_id_tasks_task_id_patch( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3802,6 +3885,8 @@ async def patch_task_organizations_organization_id_tasks_task_id_patch_with_http _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3878,6 +3963,8 @@ async def patch_task_organizations_organization_id_tasks_task_id_patch_without_p _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3928,7 +4015,8 @@ def _patch_task_organizations_organization_id_tasks_task_id_patch_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4033,6 +4121,8 @@ async def put_task_finding_actions_organizations_organization_id_tasks_task_id_f _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4109,6 +4199,8 @@ async def put_task_finding_actions_organizations_organization_id_tasks_task_id_f _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4185,6 +4277,8 @@ async def put_task_finding_actions_organizations_organization_id_tasks_task_id_f _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4235,7 +4329,8 @@ def _put_task_finding_actions_organizations_organization_id_tasks_task_id_findin if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/tools_api.py b/audithub_sdk/api/tools_api.py index 1732017..e0220e8 100644 --- a/audithub_sdk/api/tools_api.py +++ b/audithub_sdk/api/tools_api.py @@ -112,6 +112,8 @@ async def post_tool_model_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -192,6 +194,8 @@ async def post_tool_model_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -272,6 +276,8 @@ async def post_tool_model_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -325,7 +331,8 @@ def _post_tool_model_organizations_organization_id_projects_project_id_versions_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -434,6 +441,8 @@ async def post_tool_orca_organizations_organization_id_projects_project_id_versi _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -514,6 +523,8 @@ async def post_tool_orca_organizations_organization_id_projects_project_id_versi _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -594,6 +605,8 @@ async def post_tool_orca_organizations_organization_id_projects_project_id_versi _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -647,7 +660,8 @@ def _post_tool_orca_organizations_organization_id_projects_project_id_versions_v if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -756,6 +770,8 @@ async def post_tool_picus_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -836,6 +852,8 @@ async def post_tool_picus_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -916,6 +934,8 @@ async def post_tool_picus_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -969,7 +989,8 @@ def _post_tool_picus_organizations_organization_id_projects_project_id_versions_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1078,6 +1099,8 @@ async def post_tool_picus_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1158,6 +1181,8 @@ async def post_tool_picus_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1238,6 +1263,8 @@ async def post_tool_picus_organizations_organization_id_projects_project_id_vers _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1291,7 +1318,8 @@ def _post_tool_picus_organizations_organization_id_projects_project_id_versions_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1400,6 +1428,8 @@ async def post_tool_vanguard_v2_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1480,6 +1510,8 @@ async def post_tool_vanguard_v2_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1560,6 +1592,8 @@ async def post_tool_vanguard_v2_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1613,7 +1647,8 @@ def _post_tool_vanguard_v2_organizations_organization_id_projects_project_id_ver if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1722,6 +1757,8 @@ async def post_tool_zk_vanguard_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1802,6 +1839,8 @@ async def post_tool_zk_vanguard_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1882,6 +1921,8 @@ async def post_tool_zk_vanguard_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1935,7 +1976,8 @@ def _post_tool_zk_vanguard_organizations_organization_id_projects_project_id_ver if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2044,6 +2086,8 @@ async def post_tool_zk_vanguard_v2_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2124,6 +2168,8 @@ async def post_tool_zk_vanguard_v2_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2204,6 +2250,8 @@ async def post_tool_zk_vanguard_v2_organizations_organization_id_projects_projec _response_types_map: Dict[str, Optional[str]] = { '200': "TaskCreation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2257,7 +2305,8 @@ def _post_tool_zk_vanguard_v2_organizations_organization_id_projects_project_id_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/users_api.py b/audithub_sdk/api/users_api.py index 002feb5..80f4fe0 100644 --- a/audithub_sdk/api/users_api.py +++ b/audithub_sdk/api/users_api.py @@ -15,12 +15,14 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictStr -from typing import List +from pydantic import StrictInt, StrictStr +from typing import List, Optional from audithub_sdk.models.api_key import ApiKey from audithub_sdk.models.api_key_base import ApiKeyBase from audithub_sdk.models.api_key_with_secret import ApiKeyWithSecret -from audithub_sdk.models.organization import Organization +from audithub_sdk.models.favorite_organization_assignment import FavoriteOrganizationAssignment +from audithub_sdk.models.id_and_message_response import IdAndMessageResponse +from audithub_sdk.models.my_organization import MyOrganization from audithub_sdk.models.patch_user import PatchUser from audithub_sdk.models.put_user import PutUser from audithub_sdk.models.self_onboard_request import SelfOnboardRequest @@ -46,6 +48,290 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + async def add_organization_to_favorites_users_favorite_organizations_post( + self, + favorite_organization_assignment: FavoriteOrganizationAssignment, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> IdAndMessageResponse: + """Add Organization To Favorites + + Adds an organization to the user's favorite ones + + :param favorite_organization_assignment: (required) + :type favorite_organization_assignment: FavoriteOrganizationAssignment + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_organization_to_favorites_users_favorite_organizations_post_serialize( + favorite_organization_assignment=favorite_organization_assignment, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IdAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def add_organization_to_favorites_users_favorite_organizations_post_with_http_info( + self, + favorite_organization_assignment: FavoriteOrganizationAssignment, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[IdAndMessageResponse]: + """Add Organization To Favorites + + Adds an organization to the user's favorite ones + + :param favorite_organization_assignment: (required) + :type favorite_organization_assignment: FavoriteOrganizationAssignment + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_organization_to_favorites_users_favorite_organizations_post_serialize( + favorite_organization_assignment=favorite_organization_assignment, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IdAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def add_organization_to_favorites_users_favorite_organizations_post_without_preload_content( + self, + favorite_organization_assignment: FavoriteOrganizationAssignment, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add Organization To Favorites + + Adds an organization to the user's favorite ones + + :param favorite_organization_assignment: (required) + :type favorite_organization_assignment: FavoriteOrganizationAssignment + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_organization_to_favorites_users_favorite_organizations_post_serialize( + favorite_organization_assignment=favorite_organization_assignment, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IdAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _add_organization_to_favorites_users_favorite_organizations_post_serialize( + self, + favorite_organization_assignment, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if favorite_organization_assignment is not None: + _body_params = favorite_organization_assignment + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/users/favorite-organizations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call async def create_api_key_users_api_keys_post( self, @@ -101,6 +387,8 @@ async def create_api_key_users_api_keys_post( _response_types_map: Dict[str, Optional[str]] = { '200': "ApiKeyWithSecret", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -168,6 +456,8 @@ async def create_api_key_users_api_keys_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "ApiKeyWithSecret", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -235,6 +525,8 @@ async def create_api_key_users_api_keys_post_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "ApiKeyWithSecret", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -279,7 +571,8 @@ def _create_api_key_users_api_keys_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -370,6 +663,8 @@ async def get_api_keys_users_api_keys_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ApiKey]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -432,6 +727,8 @@ async def get_api_keys_users_api_keys_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ApiKey]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -494,6 +791,8 @@ async def get_api_keys_users_api_keys_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "List[ApiKey]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -535,7 +834,8 @@ def _get_api_keys_users_api_keys_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -619,6 +919,8 @@ async def get_arbitrary_user_info_users_user_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "UserInformation", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -650,10 +952,273 @@ async def get_arbitrary_user_info_users_user_id_get_with_http_info( ) -> ApiResponse[UserInformation]: """Get Arbitrary User Info - Returns information for the user with the specified id + Returns information for the user with the specified id + + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_arbitrary_user_info_users_user_id_get_serialize( + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserInformation", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def get_arbitrary_user_info_users_user_id_get_without_preload_content( + self, + user_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Arbitrary User Info + + Returns information for the user with the specified id + + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_arbitrary_user_info_users_user_id_get_serialize( + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserInformation", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_arbitrary_user_info_users_user_id_get_serialize( + self, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if user_id is not None: + _path_params['user_id'] = user_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/users/{user_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + async def get_favorite_organizations_users_favorite_organizations_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[Optional[int]]: + """Get Favorite Organizations + + Get the user's favorite organizations + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_favorite_organizations_users_favorite_organizations_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Optional[int]]", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def get_favorite_organizations_users_favorite_organizations_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[Optional[int]]]: + """Get Favorite Organizations + + Get the user's favorite organizations - :param user_id: (required) - :type user_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -676,8 +1241,7 @@ async def get_arbitrary_user_info_users_user_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_arbitrary_user_info_users_user_id_get_serialize( - user_id=user_id, + _param = self._get_favorite_organizations_users_favorite_organizations_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -685,8 +1249,9 @@ async def get_arbitrary_user_info_users_user_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserInformation", - '422': "HTTPValidationError", + '200': "List[Optional[int]]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -700,9 +1265,8 @@ async def get_arbitrary_user_info_users_user_id_get_with_http_info( @validate_call - async def get_arbitrary_user_info_users_user_id_get_without_preload_content( + async def get_favorite_organizations_users_favorite_organizations_get_without_preload_content( self, - user_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -716,12 +1280,10 @@ async def get_arbitrary_user_info_users_user_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Arbitrary User Info + """Get Favorite Organizations - Returns information for the user with the specified id + Get the user's favorite organizations - :param user_id: (required) - :type user_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -744,8 +1306,7 @@ async def get_arbitrary_user_info_users_user_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_arbitrary_user_info_users_user_id_get_serialize( - user_id=user_id, + _param = self._get_favorite_organizations_users_favorite_organizations_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -753,8 +1314,9 @@ async def get_arbitrary_user_info_users_user_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserInformation", - '422': "HTTPValidationError", + '200': "List[Optional[int]]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -763,9 +1325,8 @@ async def get_arbitrary_user_info_users_user_id_get_without_preload_content( return response_data.response - def _get_arbitrary_user_info_users_user_id_get_serialize( + def _get_favorite_organizations_users_favorite_organizations_get_serialize( self, - user_id, _request_auth, _content_type, _headers, @@ -787,8 +1348,6 @@ def _get_arbitrary_user_info_users_user_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if user_id is not None: - _path_params['user_id'] = user_id # process the query parameters # process the header parameters # process the form parameters @@ -799,7 +1358,8 @@ def _get_arbitrary_user_info_users_user_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -811,7 +1371,7 @@ def _get_arbitrary_user_info_users_user_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/users/{user_id}', + resource_path='/users/favorite-organizations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -842,7 +1402,7 @@ async def get_organizations_users_myorganizations_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Organization]: + ) -> List[MyOrganization]: """Get Organizations Returns the organizations the currently logged in user has access to @@ -877,7 +1437,9 @@ async def get_organizations_users_myorganizations_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Organization]", + '200': "List[MyOrganization]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -905,7 +1467,7 @@ async def get_organizations_users_myorganizations_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Organization]]: + ) -> ApiResponse[List[MyOrganization]]: """Get Organizations Returns the organizations the currently logged in user has access to @@ -940,7 +1502,9 @@ async def get_organizations_users_myorganizations_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Organization]", + '200': "List[MyOrganization]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1003,7 +1567,9 @@ async def get_organizations_users_myorganizations_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Organization]", + '200': "List[MyOrganization]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1045,7 +1611,8 @@ def _get_organizations_users_myorganizations_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1124,6 +1691,8 @@ async def get_profile_users_myprofile_get( _response_types_map: Dict[str, Optional[str]] = { '200': "User", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1187,6 +1756,8 @@ async def get_profile_users_myprofile_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "User", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1250,6 +1821,8 @@ async def get_profile_users_myprofile_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "User", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1291,7 +1864,8 @@ def _get_profile_users_myprofile_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1370,6 +1944,8 @@ async def onboard_request_users_onboard_request_post( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1433,6 +2009,8 @@ async def onboard_request_users_onboard_request_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1496,6 +2074,8 @@ async def onboard_request_users_onboard_request_post_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1537,7 +2117,8 @@ def _onboard_request_users_onboard_request_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1621,6 +2202,8 @@ async def patch_profile_users_myprofile_patch( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1689,6 +2272,8 @@ async def patch_profile_users_myprofile_patch_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1757,6 +2342,8 @@ async def patch_profile_users_myprofile_patch_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1801,7 +2388,8 @@ def _patch_profile_users_myprofile_patch_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1898,6 +2486,8 @@ async def put_profile_users_myprofile_put( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1966,6 +2556,8 @@ async def put_profile_users_myprofile_put_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2034,6 +2626,8 @@ async def put_profile_users_myprofile_put_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2078,7 +2672,8 @@ def _put_profile_users_myprofile_put_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2119,6 +2714,277 @@ def _put_profile_users_myprofile_put_serialize( + @validate_call + async def remove_organization_from_favorites_users_favorite_organizations_organization_id_delete( + self, + organization_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SuccessAndMessageResponse: + """Remove Organization From Favorites + + Remove an organization from the user's favorite ones + + :param organization_id: (required) + :type organization_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_organization_from_favorites_users_favorite_organizations_organization_id_delete_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def remove_organization_from_favorites_users_favorite_organizations_organization_id_delete_with_http_info( + self, + organization_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SuccessAndMessageResponse]: + """Remove Organization From Favorites + + Remove an organization from the user's favorite ones + + :param organization_id: (required) + :type organization_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_organization_from_favorites_users_favorite_organizations_organization_id_delete_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def remove_organization_from_favorites_users_favorite_organizations_organization_id_delete_without_preload_content( + self, + organization_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove Organization From Favorites + + Remove an organization from the user's favorite ones + + :param organization_id: (required) + :type organization_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._remove_organization_from_favorites_users_favorite_organizations_organization_id_delete_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SuccessAndMessageResponse", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _remove_organization_from_favorites_users_favorite_organizations_organization_id_delete_serialize( + self, + organization_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization_id is not None: + _path_params['organization_id'] = organization_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/users/favorite-organizations/{organization_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call async def revoke_api_key_users_api_keys_client_id_delete( self, @@ -2174,6 +3040,8 @@ async def revoke_api_key_users_api_keys_client_id_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2241,6 +3109,8 @@ async def revoke_api_key_users_api_keys_client_id_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2308,6 +3178,8 @@ async def revoke_api_key_users_api_keys_client_id_delete_without_preload_content _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2352,7 +3224,8 @@ def _revoke_api_key_users_api_keys_client_id_delete_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2436,6 +3309,8 @@ async def self_onboard_users_self_onboard_post( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2504,6 +3379,8 @@ async def self_onboard_users_self_onboard_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2572,6 +3449,8 @@ async def self_onboard_users_self_onboard_post_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2616,7 +3495,8 @@ def _self_onboard_users_self_onboard_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/v_specs_org_lib_api.py b/audithub_sdk/api/v_specs_org_lib_api.py index a46f93c..1518ab3 100644 --- a/audithub_sdk/api/v_specs_org_lib_api.py +++ b/audithub_sdk/api/v_specs_org_lib_api.py @@ -100,6 +100,8 @@ async def delete_vspec_organizations_organization_id_vspecs_vspec_id_delete( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -172,6 +174,8 @@ async def delete_vspec_organizations_organization_id_vspecs_vspec_id_delete_with _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -244,6 +248,8 @@ async def delete_vspec_organizations_organization_id_vspecs_vspec_id_delete_with _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -291,7 +297,8 @@ def _delete_vspec_organizations_organization_id_vspecs_vspec_id_delete_serialize if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -379,6 +386,8 @@ async def get_vspec_organizations_organization_id_vspecs_vspec_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "VSpec", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -451,6 +460,8 @@ async def get_vspec_organizations_organization_id_vspecs_vspec_id_get_with_http_ _response_types_map: Dict[str, Optional[str]] = { '200': "VSpec", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -523,6 +534,8 @@ async def get_vspec_organizations_organization_id_vspecs_vspec_id_get_without_pr _response_types_map: Dict[str, Optional[str]] = { '200': "VSpec", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -570,7 +583,8 @@ def _get_vspec_organizations_organization_id_vspecs_vspec_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -654,6 +668,8 @@ async def get_vspecs_organizations_organization_id_vspecs_get( _response_types_map: Dict[str, Optional[str]] = { '200': "List[VSpecWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -722,6 +738,8 @@ async def get_vspecs_organizations_organization_id_vspecs_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "List[VSpecWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -790,6 +808,8 @@ async def get_vspecs_organizations_organization_id_vspecs_get_without_preload_co _response_types_map: Dict[str, Optional[str]] = { '200': "List[VSpecWithId]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -834,7 +854,8 @@ def _get_vspecs_organizations_organization_id_vspecs_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -922,6 +943,8 @@ async def post_vspec_organizations_organization_id_vspecs_post( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -994,6 +1017,8 @@ async def post_vspec_organizations_organization_id_vspecs_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1066,6 +1091,8 @@ async def post_vspec_organizations_organization_id_vspecs_post_without_preload_c _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1113,7 +1140,8 @@ def _post_vspec_organizations_organization_id_vspecs_post_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1218,6 +1246,8 @@ async def put_vspec_organizations_organization_id_vspecs_vspec_id_put( _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1294,6 +1324,8 @@ async def put_vspec_organizations_organization_id_vspecs_vspec_id_put_with_http_ _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1370,6 +1402,8 @@ async def put_vspec_organizations_organization_id_vspecs_vspec_id_put_without_pr _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1420,7 +1454,8 @@ def _put_vspec_organizations_organization_id_vspecs_vspec_id_put_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/v_specs_std_lib_api.py b/audithub_sdk/api/v_specs_std_lib_api.py index c695b47..37d21e4 100644 --- a/audithub_sdk/api/v_specs_std_lib_api.py +++ b/audithub_sdk/api/v_specs_std_lib_api.py @@ -87,6 +87,8 @@ async def get_v_specifications_library_v_spec_library_get( _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -150,6 +152,8 @@ async def get_v_specifications_library_v_spec_library_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -213,6 +217,8 @@ async def get_v_specifications_library_v_spec_library_get_without_preload_conten _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, object]", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -254,7 +260,8 @@ def _get_v_specifications_library_v_spec_library_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -338,6 +345,8 @@ async def get_v_specifications_library_version_v_spec_library_version_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -406,6 +415,8 @@ async def get_v_specifications_library_version_v_spec_library_version_id_get_wit _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -474,6 +485,8 @@ async def get_v_specifications_library_version_v_spec_library_version_id_get_wit _response_types_map: Dict[str, Optional[str]] = { '200': "object", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -518,7 +531,8 @@ def _get_v_specifications_library_version_v_spec_library_version_id_get_serializ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api/versions_api.py b/audithub_sdk/api/versions_api.py index fadf0ef..387a47a 100644 --- a/audithub_sdk/api/versions_api.py +++ b/audithub_sdk/api/versions_api.py @@ -23,6 +23,8 @@ from audithub_sdk.models.comment_with_mutations import CommentWithMutations from audithub_sdk.models.directory import Directory from audithub_sdk.models.id_and_message_response import IdAndMessageResponse +from audithub_sdk.models.organization_consumption import OrganizationConsumption +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse from audithub_sdk.models.task_fio_data import TaskFIOData from audithub_sdk.models.temp_version import TempVersion @@ -112,6 +114,8 @@ async def delete_version_organizations_organization_id_projects_project_id_versi _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -188,6 +192,8 @@ async def delete_version_organizations_organization_id_projects_project_id_versi _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -264,6 +270,8 @@ async def delete_version_organizations_organization_id_projects_project_id_versi _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -314,7 +322,8 @@ def _delete_version_organizations_organization_id_projects_project_id_versions_v if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -438,6 +447,8 @@ async def get_comment_mutation_history_organizations_organization_id_projects_pr _response_types_map: Dict[str, Optional[str]] = { '200': "List[CommentWithMutations]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -546,6 +557,8 @@ async def get_comment_mutation_history_organizations_organization_id_projects_pr _response_types_map: Dict[str, Optional[str]] = { '200': "List[CommentWithMutations]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -654,6 +667,8 @@ async def get_comment_mutation_history_organizations_organization_id_projects_pr _response_types_map: Dict[str, Optional[str]] = { '200': "List[CommentWithMutations]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -762,7 +777,8 @@ def _get_comment_mutation_history_organizations_organization_id_projects_project if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -858,6 +874,8 @@ async def get_latest_version_organizations_organization_id_projects_project_id_v _response_types_map: Dict[str, Optional[str]] = { '200': "Version", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -938,6 +956,8 @@ async def get_latest_version_organizations_organization_id_projects_project_id_v _response_types_map: Dict[str, Optional[str]] = { '200': "Version", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1018,6 +1038,8 @@ async def get_latest_version_organizations_organization_id_projects_project_id_v _response_types_map: Dict[str, Optional[str]] = { '200': "Version", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1075,7 +1097,8 @@ def _get_latest_version_organizations_organization_id_projects_project_id_versio if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1167,6 +1190,8 @@ async def get_version_archive_organizations_organization_id_projects_project_id_ _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1243,6 +1268,8 @@ async def get_version_archive_organizations_organization_id_projects_project_id_ _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1319,6 +1346,8 @@ async def get_version_archive_organizations_organization_id_projects_project_id_ _response_types_map: Dict[str, Optional[str]] = { '200': "str", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1370,7 +1399,7 @@ def _get_version_archive_organizations_organization_id_projects_project_id_versi _header_params['Accept'] = self.api_client.select_header_accept( [ 'application/zip', - 'application/json' + 'application/problem+json' ] ) @@ -1462,6 +1491,8 @@ async def get_version_catalog_organizations_organization_id_projects_project_id_ _response_types_map: Dict[str, Optional[str]] = { '200': "Directory", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1538,6 +1569,8 @@ async def get_version_catalog_organizations_organization_id_projects_project_id_ _response_types_map: Dict[str, Optional[str]] = { '200': "Directory", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1614,6 +1647,8 @@ async def get_version_catalog_organizations_organization_id_projects_project_id_ _response_types_map: Dict[str, Optional[str]] = { '200': "Directory", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1664,7 +1699,8 @@ def _get_version_catalog_organizations_organization_id_projects_project_id_versi if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -1699,6 +1735,7 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro project_id: StrictInt, version_id: StrictInt, include_commenter_ids: Annotated[Optional[StrictBool], Field(description="Include distinct user ids of users who created comments in each thread.")] = None, + include_message_count: Annotated[Optional[StrictBool], Field(description="Include the count of messages in each thread.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1724,6 +1761,8 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro :type version_id: int :param include_commenter_ids: Include distinct user ids of users who created comments in each thread. :type include_commenter_ids: bool + :param include_message_count: Include the count of messages in each thread. + :type include_message_count: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1751,6 +1790,7 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro project_id=project_id, version_id=version_id, include_commenter_ids=include_commenter_ids, + include_message_count=include_message_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1760,6 +1800,8 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro _response_types_map: Dict[str, Optional[str]] = { '200': "List[Thread]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1779,6 +1821,7 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro project_id: StrictInt, version_id: StrictInt, include_commenter_ids: Annotated[Optional[StrictBool], Field(description="Include distinct user ids of users who created comments in each thread.")] = None, + include_message_count: Annotated[Optional[StrictBool], Field(description="Include the count of messages in each thread.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1804,6 +1847,8 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro :type version_id: int :param include_commenter_ids: Include distinct user ids of users who created comments in each thread. :type include_commenter_ids: bool + :param include_message_count: Include the count of messages in each thread. + :type include_message_count: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1831,6 +1876,7 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro project_id=project_id, version_id=version_id, include_commenter_ids=include_commenter_ids, + include_message_count=include_message_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1840,6 +1886,8 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro _response_types_map: Dict[str, Optional[str]] = { '200': "List[Thread]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1859,6 +1907,7 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro project_id: StrictInt, version_id: StrictInt, include_commenter_ids: Annotated[Optional[StrictBool], Field(description="Include distinct user ids of users who created comments in each thread.")] = None, + include_message_count: Annotated[Optional[StrictBool], Field(description="Include the count of messages in each thread.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1884,6 +1933,8 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro :type version_id: int :param include_commenter_ids: Include distinct user ids of users who created comments in each thread. :type include_commenter_ids: bool + :param include_message_count: Include the count of messages in each thread. + :type include_message_count: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1911,6 +1962,7 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro project_id=project_id, version_id=version_id, include_commenter_ids=include_commenter_ids, + include_message_count=include_message_count, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1920,6 +1972,8 @@ async def get_version_comment_threads_organizations_organization_id_projects_pro _response_types_map: Dict[str, Optional[str]] = { '200': "List[Thread]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -1934,6 +1988,7 @@ def _get_version_comment_threads_organizations_organization_id_projects_project_ project_id, version_id, include_commenter_ids, + include_message_count, _request_auth, _content_type, _headers, @@ -1966,6 +2021,10 @@ def _get_version_comment_threads_organizations_organization_id_projects_project_ _query_params.append(('include_commenter_ids', include_commenter_ids)) + if include_message_count is not None: + + _query_params.append(('include_message_count', include_message_count)) + # process the header parameters # process the form parameters # process the body parameter @@ -1975,7 +2034,8 @@ def _get_version_comment_threads_organizations_organization_id_projects_project_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2091,6 +2151,8 @@ async def get_version_comments_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[Comment]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2191,6 +2253,8 @@ async def get_version_comments_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[Comment]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2291,6 +2355,8 @@ async def get_version_comments_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[Comment]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2389,7 +2455,8 @@ def _get_version_comments_organizations_organization_id_projects_project_id_vers if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -2485,6 +2552,8 @@ async def get_version_file_organizations_organization_id_projects_project_id_ver _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2565,6 +2634,8 @@ async def get_version_file_organizations_organization_id_projects_project_id_ver _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2645,6 +2716,8 @@ async def get_version_file_organizations_organization_id_projects_project_id_ver _response_types_map: Dict[str, Optional[str]] = { '200': None, '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2700,7 +2773,7 @@ def _get_version_file_organizations_organization_id_projects_project_id_versions if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/problem+json' ] ) @@ -2792,6 +2865,8 @@ async def get_version_findings_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskFIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2868,6 +2943,8 @@ async def get_version_findings_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskFIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2944,6 +3021,8 @@ async def get_version_findings_organizations_organization_id_projects_project_id _response_types_map: Dict[str, Optional[str]] = { '200': "List[TaskFIOData]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -2994,7 +3073,8 @@ def _get_version_findings_organizations_organization_id_projects_project_id_vers if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3094,6 +3174,8 @@ async def get_version_organizations_organization_id_projects_project_id_versions _response_types_map: Dict[str, Optional[str]] = { '200': "Version", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3178,6 +3260,8 @@ async def get_version_organizations_organization_id_projects_project_id_versions _response_types_map: Dict[str, Optional[str]] = { '200': "Version", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3262,6 +3346,8 @@ async def get_version_organizations_organization_id_projects_project_id_versions _response_types_map: Dict[str, Optional[str]] = { '200': "Version", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3322,7 +3408,8 @@ def _get_version_organizations_organization_id_projects_project_id_versions_vers if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3350,6 +3437,642 @@ def _get_version_organizations_organization_id_projects_project_id_versions_vers + @validate_call + async def get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get( + self, + organization_id: StrictInt, + project_id: StrictInt, + version_id: StrictInt, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> OrganizationConsumptionDetailed: + """Get Version Resource Detailed + + Returns version detailed consumption + + :param organization_id: (required) + :type organization_id: int + :param project_id: (required) + :type project_id: int + :param version_id: (required) + :type version_id: int + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. + :type months: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get_serialize( + organization_id=organization_id, + project_id=project_id, + version_id=version_id, + months=months, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "OrganizationConsumptionDetailed", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get_with_http_info( + self, + organization_id: StrictInt, + project_id: StrictInt, + version_id: StrictInt, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[OrganizationConsumptionDetailed]: + """Get Version Resource Detailed + + Returns version detailed consumption + + :param organization_id: (required) + :type organization_id: int + :param project_id: (required) + :type project_id: int + :param version_id: (required) + :type version_id: int + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. + :type months: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get_serialize( + organization_id=organization_id, + project_id=project_id, + version_id=version_id, + months=months, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "OrganizationConsumptionDetailed", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get_without_preload_content( + self, + organization_id: StrictInt, + project_id: StrictInt, + version_id: StrictInt, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Version Resource Detailed + + Returns version detailed consumption + + :param organization_id: (required) + :type organization_id: int + :param project_id: (required) + :type project_id: int + :param version_id: (required) + :type version_id: int + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. + :type months: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get_serialize( + organization_id=organization_id, + project_id=project_id, + version_id=version_id, + months=months, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "OrganizationConsumptionDetailed", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get_serialize( + self, + organization_id, + project_id, + version_id, + months, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization_id is not None: + _path_params['organization_id'] = organization_id + if project_id is not None: + _path_params['project_id'] = project_id + if version_id is not None: + _path_params['version_id'] = version_id + # process the query parameters + if months is not None: + + _query_params.append(('months', months)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/resource-consumption-detailed', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + async def get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get( + self, + organization_id: StrictInt, + project_id: StrictInt, + version_id: StrictInt, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> OrganizationConsumption: + """Get Version Resource Usage + + Returns version consumption + + :param organization_id: (required) + :type organization_id: int + :param project_id: (required) + :type project_id: int + :param version_id: (required) + :type version_id: int + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. + :type months: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get_serialize( + organization_id=organization_id, + project_id=project_id, + version_id=version_id, + months=months, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "OrganizationConsumption", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get_with_http_info( + self, + organization_id: StrictInt, + project_id: StrictInt, + version_id: StrictInt, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[OrganizationConsumption]: + """Get Version Resource Usage + + Returns version consumption + + :param organization_id: (required) + :type organization_id: int + :param project_id: (required) + :type project_id: int + :param version_id: (required) + :type version_id: int + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. + :type months: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get_serialize( + organization_id=organization_id, + project_id=project_id, + version_id=version_id, + months=months, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "OrganizationConsumption", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get_without_preload_content( + self, + organization_id: StrictInt, + project_id: StrictInt, + version_id: StrictInt, + months: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Version Resource Usage + + Returns version consumption + + :param organization_id: (required) + :type organization_id: int + :param project_id: (required) + :type project_id: int + :param version_id: (required) + :type version_id: int + :param months: Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. + :type months: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get_serialize( + organization_id=organization_id, + project_id=project_id, + version_id=version_id, + months=months, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "OrganizationConsumption", + '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get_serialize( + self, + organization_id, + project_id, + version_id, + months, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization_id is not None: + _path_params['organization_id'] = organization_id + if project_id is not None: + _path_params['project_id'] = project_id + if version_id is not None: + _path_params['version_id'] = version_id + # process the query parameters + if months is not None: + + _query_params.append(('months', months)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OpenIdConnect' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/organizations/{organization_id}/projects/{project_id}/versions/{version_id}/resource-consumption-total', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call async def get_versions_organizations_organization_id_projects_project_id_versions_get( self, @@ -3410,6 +4133,8 @@ async def get_versions_organizations_organization_id_projects_project_id_version _response_types_map: Dict[str, Optional[str]] = { '200': "List[Version]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3482,6 +4207,8 @@ async def get_versions_organizations_organization_id_projects_project_id_version _response_types_map: Dict[str, Optional[str]] = { '200': "List[Version]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3554,6 +4281,8 @@ async def get_versions_organizations_organization_id_projects_project_id_version _response_types_map: Dict[str, Optional[str]] = { '200': "List[Version]", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3601,7 +4330,8 @@ def _get_versions_organizations_organization_id_projects_project_id_versions_get if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -3697,6 +4427,8 @@ async def patch_version_organizations_organization_id_projects_project_id_versio _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3777,6 +4509,8 @@ async def patch_version_organizations_organization_id_projects_project_id_versio _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3857,6 +4591,8 @@ async def patch_version_organizations_organization_id_projects_project_id_versio _response_types_map: Dict[str, Optional[str]] = { '200': "SuccessAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -3910,7 +4646,8 @@ def _patch_version_organizations_organization_id_projects_project_id_versions_ve if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4023,6 +4760,8 @@ async def post_temp_version_organizations_organization_id_temp_versions_post( _response_types_map: Dict[str, Optional[str]] = { '200': "TempVersion", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4107,6 +4846,8 @@ async def post_temp_version_organizations_organization_id_temp_versions_post_wit _response_types_map: Dict[str, Optional[str]] = { '200': "TempVersion", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4191,6 +4932,8 @@ async def post_temp_version_organizations_organization_id_temp_versions_post_wit _response_types_map: Dict[str, Optional[str]] = { '200': "TempVersion", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4247,7 +4990,8 @@ def _post_temp_version_organizations_organization_id_temp_versions_post_serializ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4372,6 +5116,8 @@ async def post_temp_version_with_url_organizations_organization_id_temp_versions _response_types_map: Dict[str, Optional[str]] = { '200': "TempVersion", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4468,6 +5214,8 @@ async def post_temp_version_with_url_organizations_organization_id_temp_versions _response_types_map: Dict[str, Optional[str]] = { '200': "TempVersion", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4564,6 +5312,8 @@ async def post_temp_version_with_url_organizations_organization_id_temp_versions _response_types_map: Dict[str, Optional[str]] = { '200': "TempVersion", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4629,7 +5379,8 @@ def _post_temp_version_with_url_organizations_organization_id_temp_versions_url_ if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -4746,6 +5497,8 @@ async def post_version_organizations_organization_id_projects_project_id_version _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4834,6 +5587,8 @@ async def post_version_organizations_organization_id_projects_project_id_version _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4922,6 +5677,8 @@ async def post_version_organizations_organization_id_projects_project_id_version _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -4981,7 +5738,8 @@ def _post_version_organizations_organization_id_projects_project_id_versions_pos if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) @@ -5110,6 +5868,8 @@ async def post_version_with_url_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5210,6 +5970,8 @@ async def post_version_with_url_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5310,6 +6072,8 @@ async def post_version_with_url_organizations_organization_id_projects_project_i _response_types_map: Dict[str, Optional[str]] = { '200': "IdAndMessageResponse", '422': "HTTPValidationError", + '4XX': "Problem", + '5XX': "Problem", } response_data = await self.api_client.call_api( *_param, @@ -5378,7 +6142,8 @@ def _post_version_with_url_organizations_organization_id_projects_project_id_ver if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/json' + 'application/json', + 'application/problem+json' ] ) diff --git a/audithub_sdk/api_client.py b/audithub_sdk/api_client.py index 3e72c1c..953246d 100644 --- a/audithub_sdk/api_client.py +++ b/audithub_sdk/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.1.0/python' + self.user_agent = 'OpenAPI-Generator/1.0.2/python' self.client_side_validation = configuration.client_side_validation async def __aenter__(self): diff --git a/audithub_sdk/configuration.py b/audithub_sdk/configuration.py index 37d3347..b882be9 100644 --- a/audithub_sdk/configuration.py +++ b/audithub_sdk/configuration.py @@ -500,7 +500,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1.0\n"\ - "SDK Package Version: 0.1.0".\ + "SDK Package Version: 1.0.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/audithub_sdk/models/__init__.py b/audithub_sdk/models/__init__.py index 62c0e3a..79d9fd9 100644 --- a/audithub_sdk/models/__init__.py +++ b/audithub_sdk/models/__init__.py @@ -42,6 +42,7 @@ from audithub_sdk.models.env_var import EnvVar from audithub_sdk.models.extra_function_arguments import ExtraFunctionArguments from audithub_sdk.models.fio_data import FIOData +from audithub_sdk.models.favorite_organization_assignment import FavoriteOrganizationAssignment from audithub_sdk.models.favorite_project_assignment import FavoriteProjectAssignment from audithub_sdk.models.file import File from audithub_sdk.models.file_thread_subject import FileThreadSubject @@ -88,6 +89,7 @@ from audithub_sdk.models.machine_info import MachineInfo from audithub_sdk.models.model_tool_input import ModelToolInput from audithub_sdk.models.model_tool_phase_parameters import ModelToolPhaseParameters +from audithub_sdk.models.my_organization import MyOrganization from audithub_sdk.models.npm_project_dependency import NPMProjectDependency from audithub_sdk.models.new_invitation import NewInvitation from audithub_sdk.models.new_organization import NewOrganization @@ -102,6 +104,7 @@ from audithub_sdk.models.organization_active_quota import OrganizationActiveQuota from audithub_sdk.models.organization_admin import OrganizationAdmin from audithub_sdk.models.organization_consumption import OrganizationConsumption +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed from audithub_sdk.models.organization_quota import OrganizationQuota from audithub_sdk.models.organization_subscription import OrganizationSubscription from audithub_sdk.models.psa import PSA @@ -114,6 +117,7 @@ from audithub_sdk.models.picus_parameters import PicusParameters from audithub_sdk.models.picus_v2_input import PicusV2Input from audithub_sdk.models.picus_v2_parameters import PicusV2Parameters +from audithub_sdk.models.problem import Problem from audithub_sdk.models.project import Project from audithub_sdk.models.project_admin import ProjectAdmin from audithub_sdk.models.project_data import ProjectData @@ -152,6 +156,7 @@ from audithub_sdk.models.thread_patch import ThreadPatch from audithub_sdk.models.user import User from audithub_sdk.models.user_access_restriction import UserAccessRestriction +from audithub_sdk.models.user_admin import UserAdmin from audithub_sdk.models.user_for_admin import UserForAdmin from audithub_sdk.models.user_group import UserGroup from audithub_sdk.models.user_information import UserInformation diff --git a/audithub_sdk/models/favorite_organization_assignment.py b/audithub_sdk/models/favorite_organization_assignment.py new file mode 100644 index 0000000..7128fc4 --- /dev/null +++ b/audithub_sdk/models/favorite_organization_assignment.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class FavoriteOrganizationAssignment(BaseModel): + """ + FavoriteOrganizationAssignment + """ # noqa: E501 + organization_id: StrictInt + __properties: ClassVar[List[str]] = ["organization_id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FavoriteOrganizationAssignment from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FavoriteOrganizationAssignment from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organization_id": obj.get("organization_id") + }) + return _obj + + diff --git a/audithub_sdk/models/http_validation_error.py b/audithub_sdk/models/http_validation_error.py index cc7166c..73e4b56 100644 --- a/audithub_sdk/models/http_validation_error.py +++ b/audithub_sdk/models/http_validation_error.py @@ -17,8 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List from audithub_sdk.models.validation_error import ValidationError from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,11 @@ class HTTPValidationError(BaseModel): """ HTTPValidationError """ # noqa: E501 - detail: Optional[List[ValidationError]] = None - __properties: ClassVar[List[str]] = ["detail"] + title: StrictStr + type: StrictStr + status: StrictInt + errors: List[ValidationError] + __properties: ClassVar[List[str]] = ["title", "type", "status", "errors"] model_config = ConfigDict( populate_by_name=True, @@ -69,13 +72,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in detail (list) + # override the default output from pydantic by calling `to_dict()` of each item in errors (list) _items = [] - if self.detail: - for _item_detail in self.detail: - if _item_detail: - _items.append(_item_detail.to_dict()) - _dict['detail'] = _items + if self.errors: + for _item_errors in self.errors: + if _item_errors: + _items.append(_item_errors.to_dict()) + _dict['errors'] = _items return _dict @classmethod @@ -88,7 +91,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "detail": [ValidationError.from_dict(_item) for _item in obj["detail"]] if obj.get("detail") is not None else None + "title": obj.get("title"), + "type": obj.get("type"), + "status": obj.get("status"), + "errors": [ValidationError.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None }) return _obj diff --git a/audithub_sdk/models/my_organization.py b/audithub_sdk/models/my_organization.py new file mode 100644 index 0000000..4641edf --- /dev/null +++ b/audithub_sdk/models/my_organization.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class MyOrganization(BaseModel): + """ + MyOrganization + """ # noqa: E501 + name: StrictStr + support_channel: Optional[StrictStr] = None + user_limit: Optional[StrictInt] = None + id: StrictInt + gh_connected: StrictBool + created_at: datetime + is_favorite: Optional[StrictBool] = False + __properties: ClassVar[List[str]] = ["name", "support_channel", "user_limit", "id", "gh_connected", "created_at", "is_favorite"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MyOrganization from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if support_channel (nullable) is None + # and model_fields_set contains the field + if self.support_channel is None and "support_channel" in self.model_fields_set: + _dict['support_channel'] = None + + # set to None if user_limit (nullable) is None + # and model_fields_set contains the field + if self.user_limit is None and "user_limit" in self.model_fields_set: + _dict['user_limit'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MyOrganization from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "support_channel": obj.get("support_channel"), + "user_limit": obj.get("user_limit"), + "id": obj.get("id"), + "gh_connected": obj.get("gh_connected"), + "created_at": obj.get("created_at"), + "is_favorite": obj.get("is_favorite") if obj.get("is_favorite") is not None else False + }) + return _obj + + diff --git a/audithub_sdk/models/or_ca_input.py b/audithub_sdk/models/or_ca_input.py index 7113beb..7ce26b0 100644 --- a/audithub_sdk/models/or_ca_input.py +++ b/audithub_sdk/models/or_ca_input.py @@ -34,9 +34,10 @@ class OrCaInput(BaseModel): deployment_script_path_override: Optional[StrictStr] = None on_chain: Optional[StrictBool] = Field(default=False, description="Specifies whether to enable on chain fuzzing") deployment_info_file: Optional[StrictStr] = None + auxiliary_deployment_script: Optional[StrictStr] = None name: Optional[StrictStr] = Field(default=None, description="An optional name for this task. If not specified, the current time in UTC will be used.") parameters: OrCaParameters = Field(description="The parameters to pass to OrCa") - __properties: ClassVar[List[str]] = ["specs_override", "hints_override", "deployment_script_path_override", "on_chain", "deployment_info_file", "name", "parameters"] + __properties: ClassVar[List[str]] = ["specs_override", "hints_override", "deployment_script_path_override", "on_chain", "deployment_info_file", "auxiliary_deployment_script", "name", "parameters"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +110,11 @@ def to_dict(self) -> Dict[str, Any]: if self.deployment_info_file is None and "deployment_info_file" in self.model_fields_set: _dict['deployment_info_file'] = None + # set to None if auxiliary_deployment_script (nullable) is None + # and model_fields_set contains the field + if self.auxiliary_deployment_script is None and "auxiliary_deployment_script" in self.model_fields_set: + _dict['auxiliary_deployment_script'] = None + return _dict @classmethod @@ -126,6 +132,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "deployment_script_path_override": obj.get("deployment_script_path_override"), "on_chain": obj.get("on_chain") if obj.get("on_chain") is not None else False, "deployment_info_file": obj.get("deployment_info_file"), + "auxiliary_deployment_script": obj.get("auxiliary_deployment_script"), "name": obj.get("name"), "parameters": OrCaParameters.from_dict(obj["parameters"]) if obj.get("parameters") is not None else None }) diff --git a/audithub_sdk/models/organization_consumption_detailed.py b/audithub_sdk/models/organization_consumption_detailed.py new file mode 100644 index 0000000..4478bfe --- /dev/null +++ b/audithub_sdk/models/organization_consumption_detailed.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from audithub_sdk.models.version_resources import VersionResources +from typing import Optional, Set +from typing_extensions import Self + +class OrganizationConsumptionDetailed(BaseModel): + """ + OrganizationConsumptionDetailed + """ # noqa: E501 + from_date: Optional[datetime] = None + to_date: Optional[datetime] = None + versions: List[VersionResources] + __properties: ClassVar[List[str]] = ["from_date", "to_date", "versions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OrganizationConsumptionDetailed from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in versions (list) + _items = [] + if self.versions: + for _item_versions in self.versions: + if _item_versions: + _items.append(_item_versions.to_dict()) + _dict['versions'] = _items + # set to None if from_date (nullable) is None + # and model_fields_set contains the field + if self.from_date is None and "from_date" in self.model_fields_set: + _dict['from_date'] = None + + # set to None if to_date (nullable) is None + # and model_fields_set contains the field + if self.to_date is None and "to_date" in self.model_fields_set: + _dict['to_date'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OrganizationConsumptionDetailed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "from_date": obj.get("from_date"), + "to_date": obj.get("to_date"), + "versions": [VersionResources.from_dict(_item) for _item in obj["versions"]] if obj.get("versions") is not None else None + }) + return _obj + + diff --git a/audithub_sdk/models/problem.py b/audithub_sdk/models/problem.py new file mode 100644 index 0000000..d94d42b --- /dev/null +++ b/audithub_sdk/models/problem.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Problem(BaseModel): + """ + Problem + """ # noqa: E501 + title: StrictStr + type: StrictStr + status: StrictInt + detail: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["title", "type", "status", "detail"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Problem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if detail (nullable) is None + # and model_fields_set contains the field + if self.detail is None and "detail" in self.model_fields_set: + _dict['detail'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Problem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "title": obj.get("title"), + "type": obj.get("type"), + "status": obj.get("status"), + "detail": obj.get("detail") + }) + return _obj + + diff --git a/audithub_sdk/models/project.py b/audithub_sdk/models/project.py index f935d04..7868293 100644 --- a/audithub_sdk/models/project.py +++ b/audithub_sdk/models/project.py @@ -31,7 +31,7 @@ class Project(BaseModel): Project """ # noqa: E501 name: StrictStr - project_root: StrictStr = Field(description="Relative path inside archive") + project_root: Optional[StrictStr] = Field(default='.', description="Relative path inside archive, for current directory to use when starting external commands, such as npm") env_vars: Optional[List[EnvVar]] = None dependencies: Optional[ProjectDependency] = None build_system: Optional[StrictStr] = None @@ -179,7 +179,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "project_root": obj.get("project_root"), + "project_root": obj.get("project_root") if obj.get("project_root") is not None else '.', "env_vars": [EnvVar.from_dict(_item) for _item in obj["env_vars"]] if obj.get("env_vars") is not None else None, "dependencies": ProjectDependency.from_dict(obj["dependencies"]) if obj.get("dependencies") is not None else None, "build_system": obj.get("build_system"), diff --git a/audithub_sdk/models/project_admin.py b/audithub_sdk/models/project_admin.py index c7342d2..b32fd9d 100644 --- a/audithub_sdk/models/project_admin.py +++ b/audithub_sdk/models/project_admin.py @@ -31,7 +31,7 @@ class ProjectAdmin(BaseModel): ProjectAdmin """ # noqa: E501 name: StrictStr - project_root: StrictStr = Field(description="Relative path inside archive") + project_root: Optional[StrictStr] = Field(default='.', description="Relative path inside archive, for current directory to use when starting external commands, such as npm") env_vars: Optional[List[EnvVar]] = None dependencies: Optional[ProjectDependency] = None build_system: Optional[StrictStr] = None @@ -182,7 +182,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "project_root": obj.get("project_root"), + "project_root": obj.get("project_root") if obj.get("project_root") is not None else '.', "env_vars": [EnvVar.from_dict(_item) for _item in obj["env_vars"]] if obj.get("env_vars") is not None else None, "dependencies": ProjectDependency.from_dict(obj["dependencies"]) if obj.get("dependencies") is not None else None, "build_system": obj.get("build_system"), diff --git a/audithub_sdk/models/project_info_input.py b/audithub_sdk/models/project_info_input.py index 9400dda..555de0e 100644 --- a/audithub_sdk/models/project_info_input.py +++ b/audithub_sdk/models/project_info_input.py @@ -30,7 +30,7 @@ class ProjectInfoInput(BaseModel): ProjectInfoInput """ # noqa: E501 name: StrictStr - project_root: StrictStr = Field(description="Relative path inside archive") + project_root: Optional[StrictStr] = Field(default='.', description="Relative path inside archive, for current directory to use when starting external commands, such as npm") env_vars: Optional[List[EnvVar]] = None dependencies: Optional[ProjectDependency] = None build_system: Optional[StrictStr] = None @@ -169,7 +169,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "project_root": obj.get("project_root"), + "project_root": obj.get("project_root") if obj.get("project_root") is not None else '.', "env_vars": [EnvVar.from_dict(_item) for _item in obj["env_vars"]] if obj.get("env_vars") is not None else None, "dependencies": ProjectDependency.from_dict(obj["dependencies"]) if obj.get("dependencies") is not None else None, "build_system": obj.get("build_system"), diff --git a/audithub_sdk/models/project_info_output.py b/audithub_sdk/models/project_info_output.py index 47b3bc8..4cf55fe 100644 --- a/audithub_sdk/models/project_info_output.py +++ b/audithub_sdk/models/project_info_output.py @@ -30,7 +30,7 @@ class ProjectInfoOutput(BaseModel): ProjectInfoOutput """ # noqa: E501 name: StrictStr - project_root: StrictStr = Field(description="Relative path inside archive") + project_root: Optional[StrictStr] = Field(default='.', description="Relative path inside archive, for current directory to use when starting external commands, such as npm") env_vars: Optional[List[EnvVar]] = None dependencies: Optional[ProjectDependency] = None build_system: Optional[StrictStr] = None @@ -169,7 +169,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "project_root": obj.get("project_root"), + "project_root": obj.get("project_root") if obj.get("project_root") is not None else '.', "env_vars": [EnvVar.from_dict(_item) for _item in obj["env_vars"]] if obj.get("env_vars") is not None else None, "dependencies": ProjectDependency.from_dict(obj["dependencies"]) if obj.get("dependencies") is not None else None, "build_system": obj.get("build_system"), diff --git a/audithub_sdk/models/thread.py b/audithub_sdk/models/thread.py index 0be5bd4..f21d0f7 100644 --- a/audithub_sdk/models/thread.py +++ b/audithub_sdk/models/thread.py @@ -40,7 +40,8 @@ class Thread(BaseModel): resolved: Optional[StrictBool] = False resolved_at: Optional[datetime] = None resolved_by: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["project_id", "version_id", "type", "subject", "title", "id", "created_at", "created_by", "commenter_ids", "resolved", "resolved_at", "resolved_by"] + message_count: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["project_id", "version_id", "type", "subject", "title", "id", "created_at", "created_by", "commenter_ids", "resolved", "resolved_at", "resolved_by", "message_count"] @field_validator('type') def type_validate_enum(cls, value): @@ -116,6 +117,11 @@ def to_dict(self) -> Dict[str, Any]: if self.resolved_by is None and "resolved_by" in self.model_fields_set: _dict['resolved_by'] = None + # set to None if message_count (nullable) is None + # and model_fields_set contains the field + if self.message_count is None and "message_count" in self.model_fields_set: + _dict['message_count'] = None + return _dict @classmethod @@ -139,7 +145,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "commenter_ids": obj.get("commenter_ids"), "resolved": obj.get("resolved") if obj.get("resolved") is not None else False, "resolved_at": obj.get("resolved_at"), - "resolved_by": obj.get("resolved_by") + "resolved_by": obj.get("resolved_by"), + "message_count": obj.get("message_count") }) return _obj diff --git a/audithub_sdk/models/user_admin.py b/audithub_sdk/models/user_admin.py new file mode 100644 index 0000000..bbebebb --- /dev/null +++ b/audithub_sdk/models/user_admin.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class UserAdmin(BaseModel): + """ + UserAdmin + """ # noqa: E501 + id: StrictStr + name: StrictStr + email: StrictStr + roles: List[StrictStr] + enabled: StrictBool + created_at: datetime + organizations: List[StrictInt] + __properties: ClassVar[List[str]] = ["id", "name", "email", "roles", "enabled", "created_at", "organizations"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserAdmin from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserAdmin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "email": obj.get("email"), + "roles": obj.get("roles"), + "enabled": obj.get("enabled"), + "created_at": obj.get("created_at"), + "organizations": obj.get("organizations") + }) + return _obj + + diff --git a/audithub_sdk/models/version_resources.py b/audithub_sdk/models/version_resources.py index 72f0aec..e30126f 100644 --- a/audithub_sdk/models/version_resources.py +++ b/audithub_sdk/models/version_resources.py @@ -29,9 +29,10 @@ class VersionResources(BaseModel): VersionResources """ # noqa: E501 id: StrictInt + project_id: StrictInt resources: Resources tasks: List[TaskResources] - __properties: ClassVar[List[str]] = ["id", "resources", "tasks"] + __properties: ClassVar[List[str]] = ["id", "project_id", "resources", "tasks"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), + "project_id": obj.get("project_id"), "resources": Resources.from_dict(obj["resources"]) if obj.get("resources") is not None else None, "tasks": [TaskResources.from_dict(_item) for _item in obj["tasks"]] if obj.get("tasks") is not None else None }) diff --git a/docs/AdminApi.md b/docs/AdminApi.md index e26c1ce..14f1a0f 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -81,13 +81,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -154,7 +156,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -162,6 +164,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -228,7 +232,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -236,6 +240,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -301,7 +307,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -309,6 +315,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -386,7 +394,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -394,6 +402,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -402,7 +412,7 @@ Name | Type | Description | Notes Get Sources -Get source by task +Get version sources by task ### Example @@ -458,7 +468,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/zip, application/json + - **Accept**: application/zip, application/problem+json ### HTTP response details @@ -466,6 +476,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -530,7 +542,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/zip, application/json + - **Accept**: application/zip, application/problem+json ### HTTP response details @@ -538,6 +550,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -604,7 +618,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -612,6 +626,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -678,7 +694,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -686,6 +702,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -773,7 +791,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -781,6 +799,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -846,7 +866,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -854,11 +874,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_users_admin_users_get** -> object get_users_admin_users_get(user_id=user_id, email=email, from_created_at=from_created_at, to_created_at=to_created_at, order_by=order_by) +> List[UserAdmin] get_users_admin_users_get(user_id=user_id, email=email, from_created_at=from_created_at, to_created_at=to_created_at, order_by=order_by) Get Users @@ -869,6 +891,7 @@ Get list of all users, potentially limiting them with query parameters ```python import audithub_sdk +from audithub_sdk.models.user_admin import UserAdmin from audithub_sdk.rest import ApiException from pprint import pprint @@ -917,7 +940,7 @@ Name | Type | Description | Notes ### Return type -**object** +[**List[UserAdmin]**](UserAdmin.md) ### Authorization @@ -926,7 +949,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -934,6 +957,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1013,7 +1038,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1021,6 +1046,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1086,7 +1113,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1094,6 +1121,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1166,7 +1195,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1174,6 +1203,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1244,7 +1275,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1252,6 +1283,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1320,7 +1353,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1328,6 +1361,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1389,13 +1424,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1463,7 +1500,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1471,6 +1508,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1531,13 +1570,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ConfigurationApi.md b/docs/ConfigurationApi.md index 16f7331..a3f3670 100644 --- a/docs/ConfigurationApi.md +++ b/docs/ConfigurationApi.md @@ -59,13 +59,15 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -121,13 +123,15 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/CustomDetectorsOrgLibApi.md b/docs/CustomDetectorsOrgLibApi.md index f3e80a2..8f9a095 100644 --- a/docs/CustomDetectorsOrgLibApi.md +++ b/docs/CustomDetectorsOrgLibApi.md @@ -75,7 +75,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -83,6 +83,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -150,7 +152,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -158,6 +160,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -223,7 +227,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -231,6 +235,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -299,7 +305,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -307,6 +313,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -377,7 +385,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -385,6 +393,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/CustomDetectorsStdLibApi.md b/docs/CustomDetectorsStdLibApi.md index 2c9bdb2..d8b396d 100644 --- a/docs/CustomDetectorsStdLibApi.md +++ b/docs/CustomDetectorsStdLibApi.md @@ -65,13 +65,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -136,7 +138,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -144,6 +146,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/EditorLanguagesApi.md b/docs/EditorLanguagesApi.md index 4a3c7c3..f02494e 100644 --- a/docs/EditorLanguagesApi.md +++ b/docs/EditorLanguagesApi.md @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -81,6 +81,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -146,7 +148,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -154,6 +156,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -215,13 +219,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -288,7 +294,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -296,6 +302,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -364,7 +372,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -372,6 +380,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/FavoriteOrganizationAssignment.md b/docs/FavoriteOrganizationAssignment.md new file mode 100644 index 0000000..a5e575b --- /dev/null +++ b/docs/FavoriteOrganizationAssignment.md @@ -0,0 +1,29 @@ +# FavoriteOrganizationAssignment + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization_id** | **int** | | + +## Example + +```python +from audithub_sdk.models.favorite_organization_assignment import FavoriteOrganizationAssignment + +# TODO update the JSON string below +json = "{}" +# create an instance of FavoriteOrganizationAssignment from a JSON string +favorite_organization_assignment_instance = FavoriteOrganizationAssignment.from_json(json) +# print the JSON string representation of the object +print(FavoriteOrganizationAssignment.to_json()) + +# convert the object into a dict +favorite_organization_assignment_dict = favorite_organization_assignment_instance.to_dict() +# create an instance of FavoriteOrganizationAssignment from a dict +favorite_organization_assignment_from_dict = FavoriteOrganizationAssignment.from_dict(favorite_organization_assignment_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GenericApi.md b/docs/GenericApi.md index e975757..42c9bd4 100644 --- a/docs/GenericApi.md +++ b/docs/GenericApi.md @@ -62,13 +62,15 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -128,13 +130,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -195,7 +199,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -203,6 +207,8 @@ No authorization required |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -257,13 +263,15 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -324,13 +332,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/HTTPValidationError.md b/docs/HTTPValidationError.md index 67fe5e7..7bf305a 100644 --- a/docs/HTTPValidationError.md +++ b/docs/HTTPValidationError.md @@ -5,7 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**detail** | [**List[ValidationError]**](ValidationError.md) | | [optional] +**title** | **str** | | +**type** | **str** | | +**status** | **int** | | +**errors** | [**List[ValidationError]**](ValidationError.md) | | ## Example diff --git a/docs/HintsOrgLibApi.md b/docs/HintsOrgLibApi.md index 700f395..43e993a 100644 --- a/docs/HintsOrgLibApi.md +++ b/docs/HintsOrgLibApi.md @@ -6,8 +6,8 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_hint_organizations_organization_id_hints_hint_id_delete**](HintsOrgLibApi.md#delete_hint_organizations_organization_id_hints_hint_id_delete) | **DELETE** /organizations/{organization_id}/hints/{hint_id} | Delete Hint [**get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get**](HintsOrgLibApi.md#get_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_get) | **GET** /organizations/{organization_id}/projects/{project_id}/blacklisted-hints | Get Blacklisted Hints +[**get_hint_organizations_organization_id_hints_hint_id_get**](HintsOrgLibApi.md#get_hint_organizations_organization_id_hints_hint_id_get) | **GET** /organizations/{organization_id}/hints/{hint_id} | Get Hint [**get_hints_organizations_organization_id_hints_get**](HintsOrgLibApi.md#get_hints_organizations_organization_id_hints_get) | **GET** /organizations/{organization_id}/hints | Get Hints -[**get_vspec_organizations_organization_id_hints_hint_id_get**](HintsOrgLibApi.md#get_vspec_organizations_organization_id_hints_hint_id_get) | **GET** /organizations/{organization_id}/hints/{hint_id} | Get Vspec [**post_hint_organizations_organization_id_hints_post**](HintsOrgLibApi.md#post_hint_organizations_organization_id_hints_post) | **POST** /organizations/{organization_id}/hints | Post Hint [**put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put**](HintsOrgLibApi.md#put_blacklisted_hints_organizations_organization_id_projects_project_id_blacklisted_hints_put) | **PUT** /organizations/{organization_id}/projects/{project_id}/blacklisted-hints | Put Blacklisted Hints [**put_hint_organizations_organization_id_hints_hint_id_put**](HintsOrgLibApi.md#put_hint_organizations_organization_id_hints_hint_id_put) | **PUT** /organizations/{organization_id}/hints/{hint_id} | Put Hint @@ -77,7 +77,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -85,6 +85,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -152,7 +154,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -160,22 +162,24 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_hints_organizations_organization_id_hints_get** -> List[HintWithId] get_hints_organizations_organization_id_hints_get(organization_id) +# **get_hint_organizations_organization_id_hints_hint_id_get** +> Hint get_hint_organizations_organization_id_hints_hint_id_get(organization_id, hint_id) -Get Hints +Get Hint -Returns all Hints of an organization +Returns hint attributes ### Example ```python import audithub_sdk -from audithub_sdk.models.hint_with_id import HintWithId +from audithub_sdk.models.hint import Hint from audithub_sdk.rest import ApiException from pprint import pprint @@ -195,14 +199,15 @@ async with audithub_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audithub_sdk.HintsOrgLibApi(api_client) organization_id = 56 # int | + hint_id = 56 # int | try: - # Get Hints - api_response = await api_instance.get_hints_organizations_organization_id_hints_get(organization_id) - print("The response of HintsOrgLibApi->get_hints_organizations_organization_id_hints_get:\n") + # Get Hint + api_response = await api_instance.get_hint_organizations_organization_id_hints_hint_id_get(organization_id, hint_id) + print("The response of HintsOrgLibApi->get_hint_organizations_organization_id_hints_hint_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling HintsOrgLibApi->get_hints_organizations_organization_id_hints_get: %s\n" % e) + print("Exception when calling HintsOrgLibApi->get_hint_organizations_organization_id_hints_hint_id_get: %s\n" % e) ``` @@ -213,10 +218,11 @@ async with audithub_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **organization_id** | **int**| | + **hint_id** | **int**| | ### Return type -[**List[HintWithId]**](HintWithId.md) +[**Hint**](Hint.md) ### Authorization @@ -225,7 +231,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -233,22 +239,24 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_vspec_organizations_organization_id_hints_hint_id_get** -> Hint get_vspec_organizations_organization_id_hints_hint_id_get(organization_id, hint_id) +# **get_hints_organizations_organization_id_hints_get** +> List[HintWithId] get_hints_organizations_organization_id_hints_get(organization_id) -Get Vspec +Get Hints -Returns hint attributes +Returns all Hints of an organization ### Example ```python import audithub_sdk -from audithub_sdk.models.hint import Hint +from audithub_sdk.models.hint_with_id import HintWithId from audithub_sdk.rest import ApiException from pprint import pprint @@ -268,15 +276,14 @@ async with audithub_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audithub_sdk.HintsOrgLibApi(api_client) organization_id = 56 # int | - hint_id = 56 # int | try: - # Get Vspec - api_response = await api_instance.get_vspec_organizations_organization_id_hints_hint_id_get(organization_id, hint_id) - print("The response of HintsOrgLibApi->get_vspec_organizations_organization_id_hints_hint_id_get:\n") + # Get Hints + api_response = await api_instance.get_hints_organizations_organization_id_hints_get(organization_id) + print("The response of HintsOrgLibApi->get_hints_organizations_organization_id_hints_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling HintsOrgLibApi->get_vspec_organizations_organization_id_hints_hint_id_get: %s\n" % e) + print("Exception when calling HintsOrgLibApi->get_hints_organizations_organization_id_hints_get: %s\n" % e) ``` @@ -287,11 +294,10 @@ async with audithub_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **organization_id** | **int**| | - **hint_id** | **int**| | ### Return type -[**Hint**](Hint.md) +[**List[HintWithId]**](HintWithId.md) ### Authorization @@ -300,7 +306,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -308,6 +314,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -376,7 +384,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -384,6 +392,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -454,7 +464,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -462,6 +472,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -532,7 +544,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -540,6 +552,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/HintsStdLibApi.md b/docs/HintsStdLibApi.md index aa7abf2..fd945d4 100644 --- a/docs/HintsStdLibApi.md +++ b/docs/HintsStdLibApi.md @@ -65,13 +65,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -136,7 +138,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -144,6 +146,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/InvitationsApi.md b/docs/InvitationsApi.md new file mode 100644 index 0000000..89e144b --- /dev/null +++ b/docs/InvitationsApi.md @@ -0,0 +1,324 @@ +# audithub_sdk.InvitationsApi + +All URIs are relative to *https://audithub.dev.veridise.tools/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_invitation_organizations_organization_id_invitations_invitation_id_delete**](InvitationsApi.md#delete_invitation_organizations_organization_id_invitations_invitation_id_delete) | **DELETE** /organizations/{organization_id}/invitations/{invitation_id} | Delete Invitation +[**get_invitation_organizations_organization_id_invitations_invitation_id_get**](InvitationsApi.md#get_invitation_organizations_organization_id_invitations_invitation_id_get) | **GET** /organizations/{organization_id}/invitations/{invitation_id} | Get Invitation +[**patch_invitation_organizations_organization_id_invitations_invitation_id_patch**](InvitationsApi.md#patch_invitation_organizations_organization_id_invitations_invitation_id_patch) | **PATCH** /organizations/{organization_id}/invitations/{invitation_id} | Patch Invitation +[**post_invitation_organizations_organization_id_invitations_post**](InvitationsApi.md#post_invitation_organizations_organization_id_invitations_post) | **POST** /organizations/{organization_id}/invitations | Post Invitation + + +# **delete_invitation_organizations_organization_id_invitations_invitation_id_delete** +> SuccessAndMessageResponse delete_invitation_organizations_organization_id_invitations_invitation_id_delete(organization_id, invitation_id) + +Delete Invitation + +Delete an invitation by id + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.InvitationsApi(api_client) + organization_id = 56 # int | + invitation_id = 56 # int | + + try: + # Delete Invitation + api_response = await api_instance.delete_invitation_organizations_organization_id_invitations_invitation_id_delete(organization_id, invitation_id) + print("The response of InvitationsApi->delete_invitation_organizations_organization_id_invitations_invitation_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InvitationsApi->delete_invitation_organizations_organization_id_invitations_invitation_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **int**| | + **invitation_id** | **int**| | + +### Return type + +[**SuccessAndMessageResponse**](SuccessAndMessageResponse.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_invitation_organizations_organization_id_invitations_invitation_id_get** +> Invitation get_invitation_organizations_organization_id_invitations_invitation_id_get(organization_id, invitation_id) + +Get Invitation + +Get an invitation by id + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.invitation import Invitation +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.InvitationsApi(api_client) + organization_id = 56 # int | + invitation_id = 56 # int | + + try: + # Get Invitation + api_response = await api_instance.get_invitation_organizations_organization_id_invitations_invitation_id_get(organization_id, invitation_id) + print("The response of InvitationsApi->get_invitation_organizations_organization_id_invitations_invitation_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InvitationsApi->get_invitation_organizations_organization_id_invitations_invitation_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **int**| | + **invitation_id** | **int**| | + +### Return type + +[**Invitation**](Invitation.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_invitation_organizations_organization_id_invitations_invitation_id_patch** +> SuccessAndMessageResponse patch_invitation_organizations_organization_id_invitations_invitation_id_patch(organization_id, invitation_id, invitation_patch) + +Patch Invitation + +Patch an invitation + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.invitation_patch import InvitationPatch +from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.InvitationsApi(api_client) + organization_id = 56 # int | + invitation_id = 56 # int | + invitation_patch = audithub_sdk.InvitationPatch() # InvitationPatch | + + try: + # Patch Invitation + api_response = await api_instance.patch_invitation_organizations_organization_id_invitations_invitation_id_patch(organization_id, invitation_id, invitation_patch) + print("The response of InvitationsApi->patch_invitation_organizations_organization_id_invitations_invitation_id_patch:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InvitationsApi->patch_invitation_organizations_organization_id_invitations_invitation_id_patch: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **int**| | + **invitation_id** | **int**| | + **invitation_patch** | [**InvitationPatch**](InvitationPatch.md)| | + +### Return type + +[**SuccessAndMessageResponse**](SuccessAndMessageResponse.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_invitation_organizations_organization_id_invitations_post** +> SuccessAndMessageResponse post_invitation_organizations_organization_id_invitations_post(organization_id, new_invitation) + +Post Invitation + +Create a user invitation for an organization + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.new_invitation import NewInvitation +from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.InvitationsApi(api_client) + organization_id = 56 # int | + new_invitation = audithub_sdk.NewInvitation() # NewInvitation | + + try: + # Post Invitation + api_response = await api_instance.post_invitation_organizations_organization_id_invitations_post(organization_id, new_invitation) + print("The response of InvitationsApi->post_invitation_organizations_organization_id_invitations_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InvitationsApi->post_invitation_organizations_organization_id_invitations_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **int**| | + **new_invitation** | [**NewInvitation**](NewInvitation.md)| | + +### Return type + +[**SuccessAndMessageResponse**](SuccessAndMessageResponse.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/IssuesApi.md b/docs/IssuesApi.md index eefccda..c3530a7 100644 --- a/docs/IssuesApi.md +++ b/docs/IssuesApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -90,6 +90,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -156,7 +158,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -164,6 +166,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -233,7 +237,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -241,6 +245,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -308,7 +314,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -316,6 +322,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -388,7 +396,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -396,6 +404,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -466,7 +476,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -474,6 +484,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -543,7 +555,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -551,6 +563,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -620,7 +634,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -628,6 +642,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -700,7 +716,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -708,6 +724,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/MyOrganization.md b/docs/MyOrganization.md new file mode 100644 index 0000000..c99ab37 --- /dev/null +++ b/docs/MyOrganization.md @@ -0,0 +1,35 @@ +# MyOrganization + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**support_channel** | **str** | | [optional] +**user_limit** | **int** | | [optional] +**id** | **int** | | +**gh_connected** | **bool** | | +**created_at** | **datetime** | | +**is_favorite** | **bool** | | [optional] [default to False] + +## Example + +```python +from audithub_sdk.models.my_organization import MyOrganization + +# TODO update the JSON string below +json = "{}" +# create an instance of MyOrganization from a JSON string +my_organization_instance = MyOrganization.from_json(json) +# print the JSON string representation of the object +print(MyOrganization.to_json()) + +# convert the object into a dict +my_organization_dict = my_organization_instance.to_dict() +# create an instance of MyOrganization from a dict +my_organization_from_dict = MyOrganization.from_dict(my_organization_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrCaInput.md b/docs/OrCaInput.md index 98e9902..ad47a0d 100644 --- a/docs/OrCaInput.md +++ b/docs/OrCaInput.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **deployment_script_path_override** | **str** | | [optional] **on_chain** | **bool** | Specifies whether to enable on chain fuzzing | [optional] [default to False] **deployment_info_file** | **str** | | [optional] +**auxiliary_deployment_script** | **str** | | [optional] **name** | **str** | An optional name for this task. If not specified, the current time in UTC will be used. | [optional] **parameters** | [**OrCaParameters**](OrCaParameters.md) | The parameters to pass to OrCa | diff --git a/docs/OrganizationConsumptionDetailed.md b/docs/OrganizationConsumptionDetailed.md new file mode 100644 index 0000000..4fe0aa6 --- /dev/null +++ b/docs/OrganizationConsumptionDetailed.md @@ -0,0 +1,31 @@ +# OrganizationConsumptionDetailed + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from_date** | **datetime** | | [optional] +**to_date** | **datetime** | | [optional] +**versions** | [**List[VersionResources]**](VersionResources.md) | | + +## Example + +```python +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed + +# TODO update the JSON string below +json = "{}" +# create an instance of OrganizationConsumptionDetailed from a JSON string +organization_consumption_detailed_instance = OrganizationConsumptionDetailed.from_json(json) +# print the JSON string representation of the object +print(OrganizationConsumptionDetailed.to_json()) + +# convert the object into a dict +organization_consumption_detailed_dict = organization_consumption_detailed_instance.to_dict() +# create an instance of OrganizationConsumptionDetailed from a dict +organization_consumption_detailed_from_dict = OrganizationConsumptionDetailed.from_dict(organization_consumption_detailed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationsApi.md b/docs/OrganizationsApi.md index 65c5622..9b2427b 100644 --- a/docs/OrganizationsApi.md +++ b/docs/OrganizationsApi.md @@ -8,7 +8,6 @@ Method | HTTP request | Description [**create_missing_environment_organizations_organization_id_environment_get**](OrganizationsApi.md#create_missing_environment_organizations_organization_id_environment_get) | **GET** /organizations/{organization_id}/environment | Create Missing Environment [**create_missing_organization_namespaces_organizations_namespace_get**](OrganizationsApi.md#create_missing_organization_namespaces_organizations_namespace_get) | **GET** /organizations/namespace | Create Missing Organization Namespaces [**delete_github_connect_organizations_organization_id_github_connect_delete**](OrganizationsApi.md#delete_github_connect_organizations_organization_id_github_connect_delete) | **DELETE** /organizations/{organization_id}/github-connect | Delete Github Connect -[**delete_invitation_organizations_organization_id_invitations_invitation_id_delete**](OrganizationsApi.md#delete_invitation_organizations_organization_id_invitations_invitation_id_delete) | **DELETE** /organizations/{organization_id}/invitations/{invitation_id} | Delete Invitation [**delete_issue_type_organizations_organization_id_issue_types_type_id_delete**](OrganizationsApi.md#delete_issue_type_organizations_organization_id_issue_types_type_id_delete) | **DELETE** /organizations/{organization_id}/issue_types/{type_id} | Delete Issue Type [**delete_organization_organizations_organization_id_delete**](OrganizationsApi.md#delete_organization_organizations_organization_id_delete) | **DELETE** /organizations/{organization_id} | Delete Organization [**delete_organization_user_organizations_organization_id_users_user_id_delete**](OrganizationsApi.md#delete_organization_user_organizations_organization_id_users_user_id_delete) | **DELETE** /organizations/{organization_id}/users/{user_id} | Delete Organization User @@ -18,7 +17,6 @@ Method | HTTP request | Description [**get_gh_repos_organizations_organization_id_gh_repos_get**](OrganizationsApi.md#get_gh_repos_organizations_organization_id_gh_repos_get) | **GET** /organizations/{organization_id}/gh-repos | Get Gh Repos [**get_github_connect_info_organizations_github_connect_commit_get**](OrganizationsApi.md#get_github_connect_info_organizations_github_connect_commit_get) | **GET** /organizations/github-connect-commit | Get Github Connect Info [**get_github_connect_url_organizations_organization_id_github_connect_get**](OrganizationsApi.md#get_github_connect_url_organizations_organization_id_github_connect_get) | **GET** /organizations/{organization_id}/github-connect | Get Github Connect Url -[**get_invitation_organizations_organization_id_invitations_invitation_id_get**](OrganizationsApi.md#get_invitation_organizations_organization_id_invitations_invitation_id_get) | **GET** /organizations/{organization_id}/invitations/{invitation_id} | Get Invitation [**get_issue_type_organizations_organization_id_issue_types_type_id_get**](OrganizationsApi.md#get_issue_type_organizations_organization_id_issue_types_type_id_get) | **GET** /organizations/{organization_id}/issue_types/{type_id} | Get Issue Type [**get_organization_issue_types_organizations_organization_id_issue_types_get**](OrganizationsApi.md#get_organization_issue_types_organizations_organization_id_issue_types_get) | **GET** /organizations/{organization_id}/issue_types | Get Organization Issue Types [**get_organization_organizations_organization_id_get**](OrganizationsApi.md#get_organization_organizations_organization_id_get) | **GET** /organizations/{organization_id} | Get Organization @@ -34,10 +32,8 @@ Method | HTTP request | Description [**get_user_effective_restrictions_organizations_organization_id_users_user_id_effective_restrictions_get**](OrganizationsApi.md#get_user_effective_restrictions_organizations_organization_id_users_user_id_effective_restrictions_get) | **GET** /organizations/{organization_id}/users/{user_id}/effective-restrictions | Get User Effective Restrictions [**get_user_organization_settings_organizations_organization_id_user_settings_get**](OrganizationsApi.md#get_user_organization_settings_organizations_organization_id_user_settings_get) | **GET** /organizations/{organization_id}/user-settings | Get User Organization Settings [**get_user_restrictions_organizations_organization_id_users_user_id_restrictions_get**](OrganizationsApi.md#get_user_restrictions_organizations_organization_id_users_user_id_restrictions_get) | **GET** /organizations/{organization_id}/users/{user_id}/restrictions | Get User Restrictions -[**patch_invitation_organizations_organization_id_invitations_invitation_id_patch**](OrganizationsApi.md#patch_invitation_organizations_organization_id_invitations_invitation_id_patch) | **PATCH** /organizations/{organization_id}/invitations/{invitation_id} | Patch Invitation [**patch_organization_organizations_organization_id_patch**](OrganizationsApi.md#patch_organization_organizations_organization_id_patch) | **PATCH** /organizations/{organization_id} | Patch Organization [**patch_user_organizations_organization_id_users_patch**](OrganizationsApi.md#patch_user_organizations_organization_id_users_patch) | **PATCH** /organizations/{organization_id}/users | Patch User -[**post_invitation_organizations_organization_id_invitations_post**](OrganizationsApi.md#post_invitation_organizations_organization_id_invitations_post) | **POST** /organizations/{organization_id}/invitations | Post Invitation [**post_issue_type_organizations_organization_id_issue_types_post**](OrganizationsApi.md#post_issue_type_organizations_organization_id_issue_types_post) | **POST** /organizations/{organization_id}/issue_types | Post Issue Type [**post_organization_organizations_post**](OrganizationsApi.md#post_organization_organizations_post) | **POST** /organizations | Post Organization [**post_organization_user_organizations_organization_id_users_post**](OrganizationsApi.md#post_organization_user_organizations_organization_id_users_post) | **POST** /organizations/{organization_id}/users | Post Organization User @@ -114,7 +110,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -122,6 +118,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -187,7 +185,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -195,6 +193,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -256,13 +256,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,82 +330,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_invitation_organizations_organization_id_invitations_invitation_id_delete** -> SuccessAndMessageResponse delete_invitation_organizations_organization_id_invitations_invitation_id_delete(organization_id, invitation_id) - -Delete Invitation - -Delete an invitation by id - -### Example - - -```python -import audithub_sdk -from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse -from audithub_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = audithub_sdk.Configuration( - host = "https://audithub.dev.veridise.tools/api/v1" -) - -# 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. - -# Enter a context with an instance of the API client -async with audithub_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = audithub_sdk.OrganizationsApi(api_client) - organization_id = 56 # int | - invitation_id = 56 # int | - - try: - # Delete Invitation - api_response = await api_instance.delete_invitation_organizations_organization_id_invitations_invitation_id_delete(organization_id, invitation_id) - print("The response of OrganizationsApi->delete_invitation_organizations_organization_id_invitations_invitation_id_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling OrganizationsApi->delete_invitation_organizations_organization_id_invitations_invitation_id_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization_id** | **int**| | - **invitation_id** | **int**| | - -### Return type - -[**SuccessAndMessageResponse**](SuccessAndMessageResponse.md) - -### Authorization - -[OpenIdConnect](../README.md#OpenIdConnect) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -411,6 +338,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -478,7 +407,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -486,6 +415,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -550,7 +481,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -558,6 +489,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -625,7 +558,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -633,6 +566,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -701,7 +636,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -709,6 +644,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -774,7 +711,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -782,6 +719,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -846,7 +785,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -854,6 +793,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -918,7 +859,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -926,6 +867,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -992,7 +935,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1000,6 +943,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1066,82 +1011,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_invitation_organizations_organization_id_invitations_invitation_id_get** -> Invitation get_invitation_organizations_organization_id_invitations_invitation_id_get(organization_id, invitation_id) - -Get Invitation - -Get an invitation by id - -### Example - - -```python -import audithub_sdk -from audithub_sdk.models.invitation import Invitation -from audithub_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = audithub_sdk.Configuration( - host = "https://audithub.dev.veridise.tools/api/v1" -) - -# 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. - -# Enter a context with an instance of the API client -async with audithub_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = audithub_sdk.OrganizationsApi(api_client) - organization_id = 56 # int | - invitation_id = 56 # int | - - try: - # Get Invitation - api_response = await api_instance.get_invitation_organizations_organization_id_invitations_invitation_id_get(organization_id, invitation_id) - print("The response of OrganizationsApi->get_invitation_organizations_organization_id_invitations_invitation_id_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling OrganizationsApi->get_invitation_organizations_organization_id_invitations_invitation_id_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization_id** | **int**| | - **invitation_id** | **int**| | - -### Return type - -[**Invitation**](Invitation.md) - -### Authorization - -[OpenIdConnect](../README.md#OpenIdConnect) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1149,6 +1019,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1216,7 +1088,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1224,6 +1096,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1289,7 +1163,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1297,6 +1171,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1362,7 +1238,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1370,6 +1246,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1435,7 +1313,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1443,11 +1321,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_organization_resource_detailed_organizations_organization_id_resource_consumption_detailed_get** -> List[VersionResources] get_organization_resource_detailed_organizations_organization_id_resource_consumption_detailed_get(organization_id, months=months) +> OrganizationConsumptionDetailed get_organization_resource_detailed_organizations_organization_id_resource_consumption_detailed_get(organization_id, months=months) Get Organization Resource Detailed @@ -1458,7 +1338,7 @@ consumption ```python import audithub_sdk -from audithub_sdk.models.version_resources import VersionResources +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed from audithub_sdk.rest import ApiException from pprint import pprint @@ -1478,7 +1358,7 @@ async with audithub_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audithub_sdk.OrganizationsApi(api_client) organization_id = 56 # int | - months = 3 # int | Fallback date interval in months when the organization has no active subscriptions. (optional) (default to 3) + months = 56 # int | Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. (optional) try: # Get Organization Resource Detailed @@ -1497,11 +1377,11 @@ async with audithub_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **organization_id** | **int**| | - **months** | **int**| Fallback date interval in months when the organization has no active subscriptions. | [optional] [default to 3] + **months** | **int**| Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. | [optional] ### Return type -[**List[VersionResources]**](VersionResources.md) +[**OrganizationConsumptionDetailed**](OrganizationConsumptionDetailed.md) ### Authorization @@ -1510,7 +1390,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1518,6 +1398,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1553,7 +1435,7 @@ async with audithub_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audithub_sdk.OrganizationsApi(api_client) organization_id = 56 # int | - months = 3 # int | Fallback date interval in months when the organization has no active subscriptions. (optional) (default to 3) + months = 56 # int | Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. (optional) try: # Get Organization Resource Usage @@ -1572,7 +1454,7 @@ async with audithub_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **organization_id** | **int**| | - **months** | **int**| Fallback date interval in months when the organization has no active subscriptions. | [optional] [default to 3] + **months** | **int**| Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. | [optional] ### Return type @@ -1585,7 +1467,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1593,6 +1475,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1658,7 +1542,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1666,6 +1550,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1734,7 +1620,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1742,6 +1628,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1807,7 +1695,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1815,6 +1703,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1879,7 +1769,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1887,6 +1777,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1958,7 +1850,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1966,6 +1858,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2031,7 +1925,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2039,6 +1933,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2106,7 +2002,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2114,6 +2010,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2179,7 +2077,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2187,6 +2085,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2254,85 +2154,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_invitation_organizations_organization_id_invitations_invitation_id_patch** -> SuccessAndMessageResponse patch_invitation_organizations_organization_id_invitations_invitation_id_patch(organization_id, invitation_id, invitation_patch) - -Patch Invitation - -Patch an invitation - -### Example - - -```python -import audithub_sdk -from audithub_sdk.models.invitation_patch import InvitationPatch -from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse -from audithub_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = audithub_sdk.Configuration( - host = "https://audithub.dev.veridise.tools/api/v1" -) - -# 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. - -# Enter a context with an instance of the API client -async with audithub_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = audithub_sdk.OrganizationsApi(api_client) - organization_id = 56 # int | - invitation_id = 56 # int | - invitation_patch = audithub_sdk.InvitationPatch() # InvitationPatch | - - try: - # Patch Invitation - api_response = await api_instance.patch_invitation_organizations_organization_id_invitations_invitation_id_patch(organization_id, invitation_id, invitation_patch) - print("The response of OrganizationsApi->patch_invitation_organizations_organization_id_invitations_invitation_id_patch:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling OrganizationsApi->patch_invitation_organizations_organization_id_invitations_invitation_id_patch: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization_id** | **int**| | - **invitation_id** | **int**| | - **invitation_patch** | [**InvitationPatch**](InvitationPatch.md)| | - -### Return type - -[**SuccessAndMessageResponse**](SuccessAndMessageResponse.md) - -### Authorization - -[OpenIdConnect](../README.md#OpenIdConnect) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2340,6 +2162,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2408,7 +2232,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2416,6 +2240,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2484,83 +2310,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation Error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_invitation_organizations_organization_id_invitations_post** -> SuccessAndMessageResponse post_invitation_organizations_organization_id_invitations_post(organization_id, new_invitation) - -Post Invitation - -Create a user invitation for an organization - -### Example - - -```python -import audithub_sdk -from audithub_sdk.models.new_invitation import NewInvitation -from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse -from audithub_sdk.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = audithub_sdk.Configuration( - host = "https://audithub.dev.veridise.tools/api/v1" -) - -# 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. - -# Enter a context with an instance of the API client -async with audithub_sdk.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = audithub_sdk.OrganizationsApi(api_client) - organization_id = 56 # int | - new_invitation = audithub_sdk.NewInvitation() # NewInvitation | - - try: - # Post Invitation - api_response = await api_instance.post_invitation_organizations_organization_id_invitations_post(organization_id, new_invitation) - print("The response of OrganizationsApi->post_invitation_organizations_organization_id_invitations_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling OrganizationsApi->post_invitation_organizations_organization_id_invitations_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization_id** | **int**| | - **new_invitation** | [**NewInvitation**](NewInvitation.md)| | - -### Return type - -[**SuccessAndMessageResponse**](SuccessAndMessageResponse.md) - -### Authorization - -[OpenIdConnect](../README.md#OpenIdConnect) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2568,6 +2318,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2636,7 +2388,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2644,6 +2396,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2710,7 +2464,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2718,6 +2472,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2786,7 +2542,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2794,6 +2550,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2864,7 +2622,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2872,6 +2630,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2940,7 +2700,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -2948,6 +2708,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3016,7 +2778,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -3024,6 +2786,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3092,7 +2856,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -3100,6 +2864,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3170,7 +2936,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -3178,6 +2944,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3245,7 +3013,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -3253,6 +3021,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/Problem.md b/docs/Problem.md new file mode 100644 index 0000000..3e10fcf --- /dev/null +++ b/docs/Problem.md @@ -0,0 +1,32 @@ +# Problem + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | +**type** | **str** | | +**status** | **int** | | +**detail** | **str** | | [optional] + +## Example + +```python +from audithub_sdk.models.problem import Problem + +# TODO update the JSON string below +json = "{}" +# create an instance of Problem from a JSON string +problem_instance = Problem.from_json(json) +# print the JSON string representation of the object +print(Problem.to_json()) + +# convert the object into a dict +problem_dict = problem_instance.to_dict() +# create an instance of Problem from a dict +problem_from_dict = Problem.from_dict(problem_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Project.md b/docs/Project.md index 7bfc3f7..4a90491 100644 --- a/docs/Project.md +++ b/docs/Project.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**project_root** | **str** | Relative path inside archive | +**project_root** | **str** | Relative path inside archive, for current directory to use when starting external commands, such as npm | [optional] [default to '.'] **env_vars** | [**List[EnvVar]**](EnvVar.md) | | [optional] **dependencies** | [**ProjectDependency**](ProjectDependency.md) | | [optional] **build_system** | **str** | | [optional] diff --git a/docs/ProjectAdmin.md b/docs/ProjectAdmin.md index 8895b7e..6253221 100644 --- a/docs/ProjectAdmin.md +++ b/docs/ProjectAdmin.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**project_root** | **str** | Relative path inside archive | +**project_root** | **str** | Relative path inside archive, for current directory to use when starting external commands, such as npm | [optional] [default to '.'] **env_vars** | [**List[EnvVar]**](EnvVar.md) | | [optional] **dependencies** | [**ProjectDependency**](ProjectDependency.md) | | [optional] **build_system** | **str** | | [optional] diff --git a/docs/ProjectInfoInput.md b/docs/ProjectInfoInput.md index 348b209..3f7490e 100644 --- a/docs/ProjectInfoInput.md +++ b/docs/ProjectInfoInput.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**project_root** | **str** | Relative path inside archive | +**project_root** | **str** | Relative path inside archive, for current directory to use when starting external commands, such as npm | [optional] [default to '.'] **env_vars** | [**List[EnvVar]**](EnvVar.md) | | [optional] **dependencies** | [**ProjectDependency**](ProjectDependency.md) | | [optional] **build_system** | **str** | | [optional] diff --git a/docs/ProjectInfoOutput.md b/docs/ProjectInfoOutput.md index ad22251..81354af 100644 --- a/docs/ProjectInfoOutput.md +++ b/docs/ProjectInfoOutput.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**project_root** | **str** | Relative path inside archive | +**project_root** | **str** | Relative path inside archive, for current directory to use when starting external commands, such as npm | [optional] [default to '.'] **env_vars** | [**List[EnvVar]**](EnvVar.md) | | [optional] **dependencies** | [**ProjectDependency**](ProjectDependency.md) | | [optional] **build_system** | **str** | | [optional] diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 7509a07..d90a51c 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -93,7 +93,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -101,6 +101,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -168,7 +170,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -176,6 +178,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -257,7 +261,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -265,11 +269,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_project_comment_threads_organizations_organization_id_projects_project_id_comment_threads_get** -> List[Thread] get_project_comment_threads_organizations_organization_id_projects_project_id_comment_threads_get(organization_id, project_id, include_commenter_ids=include_commenter_ids) +> List[Thread] get_project_comment_threads_organizations_organization_id_projects_project_id_comment_threads_get(organization_id, project_id, include_commenter_ids=include_commenter_ids, include_message_count=include_message_count) Get Project Comment Threads @@ -302,10 +308,11 @@ async with audithub_sdk.ApiClient(configuration) as api_client: organization_id = 56 # int | project_id = 56 # int | include_commenter_ids = False # bool | Include distinct user ids of users who created comments in each thread. (optional) (default to False) + include_message_count = False # bool | Include the count of messages in each thread. (optional) (default to False) try: # Get Project Comment Threads - api_response = await api_instance.get_project_comment_threads_organizations_organization_id_projects_project_id_comment_threads_get(organization_id, project_id, include_commenter_ids=include_commenter_ids) + api_response = await api_instance.get_project_comment_threads_organizations_organization_id_projects_project_id_comment_threads_get(organization_id, project_id, include_commenter_ids=include_commenter_ids, include_message_count=include_message_count) print("The response of ProjectsApi->get_project_comment_threads_organizations_organization_id_projects_project_id_comment_threads_get:\n") pprint(api_response) except Exception as e: @@ -322,6 +329,7 @@ Name | Type | Description | Notes **organization_id** | **int**| | **project_id** | **int**| | **include_commenter_ids** | **bool**| Include distinct user ids of users who created comments in each thread. | [optional] [default to False] + **include_message_count** | **bool**| Include the count of messages in each thread. | [optional] [default to False] ### Return type @@ -334,7 +342,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -342,11 +350,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_project_comments_organizations_organization_id_projects_project_id_comments_get** -> List[Comment] get_project_comments_organizations_organization_id_projects_project_id_comments_get(organization_id, project_id, limit, offset, from_date=from_date, to_date=to_date, order_by=order_by) +> List[Comment] get_project_comments_organizations_organization_id_projects_project_id_comments_get(organization_id, project_id, limit, offset, thread_id=thread_id, from_date=from_date, to_date=to_date, order_by=order_by) Get Project Comments @@ -380,13 +390,14 @@ async with audithub_sdk.ApiClient(configuration) as api_client: project_id = 56 # int | limit = 56 # int | offset = 56 # int | + thread_id = 56 # int | (optional) from_date = '2013-10-20T19:20:30+01:00' # datetime | (optional) to_date = '2013-10-20T19:20:30+01:00' # datetime | (optional) order_by = 'created_at DESC' # str | Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: thread_id, comment_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. (optional) (default to 'created_at DESC') try: # Get Project Comments - api_response = await api_instance.get_project_comments_organizations_organization_id_projects_project_id_comments_get(organization_id, project_id, limit, offset, from_date=from_date, to_date=to_date, order_by=order_by) + api_response = await api_instance.get_project_comments_organizations_organization_id_projects_project_id_comments_get(organization_id, project_id, limit, offset, thread_id=thread_id, from_date=from_date, to_date=to_date, order_by=order_by) print("The response of ProjectsApi->get_project_comments_organizations_organization_id_projects_project_id_comments_get:\n") pprint(api_response) except Exception as e: @@ -404,6 +415,7 @@ Name | Type | Description | Notes **project_id** | **int**| | **limit** | **int**| | **offset** | **int**| | + **thread_id** | **int**| | [optional] **from_date** | **datetime**| | [optional] **to_date** | **datetime**| | [optional] **order_by** | **str**| Order of results, as a comma-separated list of columns and, optionally, a direction. Column values are: thread_id, comment_id, created_by, created_at If direction in specified for any column, separate it with a space from the column name and provide ASC or DESC for ascending or descending order. e.g., \"created_by, created_at DESC\" orders the results per user, with the most recent task first for each user. | [optional] [default to 'created_at DESC'] @@ -419,7 +431,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -427,6 +439,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -494,7 +508,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -502,6 +516,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -569,7 +585,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -577,11 +593,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_project_resource_detailed_organizations_organization_id_projects_project_id_resource_consumption_detailed_get** -> List[VersionResources] get_project_resource_detailed_organizations_organization_id_projects_project_id_resource_consumption_detailed_get(organization_id, project_id, months=months) +> OrganizationConsumptionDetailed get_project_resource_detailed_organizations_organization_id_projects_project_id_resource_consumption_detailed_get(organization_id, project_id, months=months) Get Project Resource Detailed @@ -592,7 +610,7 @@ Returns project detailed consumption ```python import audithub_sdk -from audithub_sdk.models.version_resources import VersionResources +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed from audithub_sdk.rest import ApiException from pprint import pprint @@ -613,7 +631,7 @@ async with audithub_sdk.ApiClient(configuration) as api_client: api_instance = audithub_sdk.ProjectsApi(api_client) organization_id = 56 # int | project_id = 56 # int | - months = 3 # int | Fallback date interval in months when the organization has no active subscriptions. (optional) (default to 3) + months = 56 # int | Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. (optional) try: # Get Project Resource Detailed @@ -633,11 +651,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **organization_id** | **int**| | **project_id** | **int**| | - **months** | **int**| Fallback date interval in months when the organization has no active subscriptions. | [optional] [default to 3] + **months** | **int**| Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. | [optional] ### Return type -[**List[VersionResources]**](VersionResources.md) +[**OrganizationConsumptionDetailed**](OrganizationConsumptionDetailed.md) ### Authorization @@ -646,7 +664,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -654,6 +672,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -690,7 +710,7 @@ async with audithub_sdk.ApiClient(configuration) as api_client: api_instance = audithub_sdk.ProjectsApi(api_client) organization_id = 56 # int | project_id = 56 # int | - months = 3 # int | Fallback date interval in months when the organization has no active subscriptions. (optional) (default to 3) + months = 56 # int | Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. (optional) try: # Get Project Resource Usage @@ -710,7 +730,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **organization_id** | **int**| | **project_id** | **int**| | - **months** | **int**| Fallback date interval in months when the organization has no active subscriptions. | [optional] [default to 3] + **months** | **int**| Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. | [optional] ### Return type @@ -723,7 +743,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -731,6 +751,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -800,7 +822,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -808,6 +830,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -873,7 +897,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -881,6 +905,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -947,7 +973,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -955,6 +981,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1022,7 +1050,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1030,6 +1058,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1099,7 +1129,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1107,6 +1137,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1174,7 +1206,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1182,6 +1214,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1252,7 +1286,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1260,6 +1294,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1332,7 +1368,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1340,6 +1376,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1412,7 +1450,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1420,6 +1458,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1492,7 +1532,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1500,6 +1540,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1570,7 +1612,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1578,6 +1620,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1648,7 +1692,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1656,6 +1700,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1726,7 +1772,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1734,6 +1780,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1806,7 +1854,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1814,6 +1862,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index 427f6d7..1c59239 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -72,7 +72,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -80,6 +80,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -147,7 +149,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -155,6 +157,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -225,7 +229,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -233,6 +237,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -301,7 +307,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -309,6 +315,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -379,7 +387,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -387,6 +395,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TasksApi.md b/docs/TasksApi.md index e131aea..4642691 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -92,6 +92,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -158,7 +160,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/problem+json ### HTTP response details @@ -166,6 +168,8 @@ void (empty response body) |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -233,7 +237,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -241,6 +245,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -311,7 +317,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, text/plain + - **Accept**: application/json, text/plain, application/problem+json ### HTTP response details @@ -319,6 +325,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Return the output of the task | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -386,7 +394,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -394,6 +402,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -465,7 +475,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -473,6 +483,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -539,7 +551,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/zip, application/json + - **Accept**: application/zip, application/problem+json ### HTTP response details @@ -547,6 +559,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -614,7 +628,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -622,6 +636,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -688,7 +704,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/problem+json ### HTTP response details @@ -696,6 +712,8 @@ void (empty response body) |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -767,7 +785,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -775,6 +793,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -842,7 +862,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -850,6 +870,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -929,7 +951,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -937,6 +959,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1007,7 +1031,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1015,6 +1039,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1084,7 +1110,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1092,6 +1118,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/Thread.md b/docs/Thread.md index ff6f6f9..67aa70e 100644 --- a/docs/Thread.md +++ b/docs/Thread.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **resolved** | **bool** | | [optional] [default to False] **resolved_at** | **datetime** | | [optional] **resolved_by** | **str** | | [optional] +**message_count** | **int** | | [optional] ## Example diff --git a/docs/ToolsApi.md b/docs/ToolsApi.md index d7f4026..7a007f5 100644 --- a/docs/ToolsApi.md +++ b/docs/ToolsApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -90,6 +90,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -162,7 +164,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -170,6 +172,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -242,7 +246,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -250,6 +254,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -322,7 +328,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -330,6 +336,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -402,7 +410,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -410,6 +418,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -482,7 +492,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -490,6 +500,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -562,7 +574,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -570,6 +582,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/UserAdmin.md b/docs/UserAdmin.md new file mode 100644 index 0000000..b3ed5ea --- /dev/null +++ b/docs/UserAdmin.md @@ -0,0 +1,35 @@ +# UserAdmin + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | +**email** | **str** | | +**roles** | **List[str]** | | +**enabled** | **bool** | | +**created_at** | **datetime** | | +**organizations** | **List[int]** | | + +## Example + +```python +from audithub_sdk.models.user_admin import UserAdmin + +# TODO update the JSON string below +json = "{}" +# create an instance of UserAdmin from a JSON string +user_admin_instance = UserAdmin.from_json(json) +# print the JSON string representation of the object +print(UserAdmin.to_json()) + +# convert the object into a dict +user_admin_dict = user_admin_instance.to_dict() +# create an instance of UserAdmin from a dict +user_admin_from_dict = UserAdmin.from_dict(user_admin_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersApi.md b/docs/UsersApi.md index 23258b7..bf46564 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -4,18 +4,97 @@ All URIs are relative to *https://audithub.dev.veridise.tools/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**add_organization_to_favorites_users_favorite_organizations_post**](UsersApi.md#add_organization_to_favorites_users_favorite_organizations_post) | **POST** /users/favorite-organizations | Add Organization To Favorites [**create_api_key_users_api_keys_post**](UsersApi.md#create_api_key_users_api_keys_post) | **POST** /users/api-keys | Create Api Key [**get_api_keys_users_api_keys_get**](UsersApi.md#get_api_keys_users_api_keys_get) | **GET** /users/api-keys | Get Api Keys [**get_arbitrary_user_info_users_user_id_get**](UsersApi.md#get_arbitrary_user_info_users_user_id_get) | **GET** /users/{user_id} | Get Arbitrary User Info +[**get_favorite_organizations_users_favorite_organizations_get**](UsersApi.md#get_favorite_organizations_users_favorite_organizations_get) | **GET** /users/favorite-organizations | Get Favorite Organizations [**get_organizations_users_myorganizations_get**](UsersApi.md#get_organizations_users_myorganizations_get) | **GET** /users/myorganizations | Get Organizations [**get_profile_users_myprofile_get**](UsersApi.md#get_profile_users_myprofile_get) | **GET** /users/myprofile | Get Profile [**onboard_request_users_onboard_request_post**](UsersApi.md#onboard_request_users_onboard_request_post) | **POST** /users/onboard-request | Onboard Request [**patch_profile_users_myprofile_patch**](UsersApi.md#patch_profile_users_myprofile_patch) | **PATCH** /users/myprofile | Patch Profile [**put_profile_users_myprofile_put**](UsersApi.md#put_profile_users_myprofile_put) | **PUT** /users/myprofile | Put Profile +[**remove_organization_from_favorites_users_favorite_organizations_organization_id_delete**](UsersApi.md#remove_organization_from_favorites_users_favorite_organizations_organization_id_delete) | **DELETE** /users/favorite-organizations/{organization_id} | Remove Organization From Favorites [**revoke_api_key_users_api_keys_client_id_delete**](UsersApi.md#revoke_api_key_users_api_keys_client_id_delete) | **DELETE** /users/api-keys/{client_id} | Revoke Api Key [**self_onboard_users_self_onboard_post**](UsersApi.md#self_onboard_users_self_onboard_post) | **POST** /users/self-onboard | Self Onboard +# **add_organization_to_favorites_users_favorite_organizations_post** +> IdAndMessageResponse add_organization_to_favorites_users_favorite_organizations_post(favorite_organization_assignment) + +Add Organization To Favorites + +Adds an organization to the user's favorite ones + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.favorite_organization_assignment import FavoriteOrganizationAssignment +from audithub_sdk.models.id_and_message_response import IdAndMessageResponse +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.UsersApi(api_client) + favorite_organization_assignment = audithub_sdk.FavoriteOrganizationAssignment() # FavoriteOrganizationAssignment | + + try: + # Add Organization To Favorites + api_response = await api_instance.add_organization_to_favorites_users_favorite_organizations_post(favorite_organization_assignment) + print("The response of UsersApi->add_organization_to_favorites_users_favorite_organizations_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->add_organization_to_favorites_users_favorite_organizations_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **favorite_organization_assignment** | [**FavoriteOrganizationAssignment**](FavoriteOrganizationAssignment.md)| | + +### Return type + +[**IdAndMessageResponse**](IdAndMessageResponse.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_api_key_users_api_keys_post** > ApiKeyWithSecret create_api_key_users_api_keys_post(api_key_base) @@ -77,7 +156,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -85,6 +164,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -144,13 +225,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -216,7 +299,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -224,11 +307,82 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_favorite_organizations_users_favorite_organizations_get** +> List[Optional[int]] get_favorite_organizations_users_favorite_organizations_get() + +Get Favorite Organizations + +Get the user's favorite organizations + +### Example + + +```python +import audithub_sdk +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.UsersApi(api_client) + + try: + # Get Favorite Organizations + api_response = await api_instance.get_favorite_organizations_users_favorite_organizations_get() + print("The response of UsersApi->get_favorite_organizations_users_favorite_organizations_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->get_favorite_organizations_users_favorite_organizations_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**List[Optional[int]]** + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_organizations_users_myorganizations_get** -> List[Organization] get_organizations_users_myorganizations_get() +> List[MyOrganization] get_organizations_users_myorganizations_get() Get Organizations @@ -239,7 +393,7 @@ Returns the organizations the currently logged in user has access to ```python import audithub_sdk -from audithub_sdk.models.organization import Organization +from audithub_sdk.models.my_organization import MyOrganization from audithub_sdk.rest import ApiException from pprint import pprint @@ -276,7 +430,7 @@ This endpoint does not need any parameter. ### Return type -[**List[Organization]**](Organization.md) +[**List[MyOrganization]**](MyOrganization.md) ### Authorization @@ -285,13 +439,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -353,13 +509,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -421,13 +579,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -494,7 +654,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -502,6 +662,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -568,7 +730,82 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **remove_organization_from_favorites_users_favorite_organizations_organization_id_delete** +> SuccessAndMessageResponse remove_organization_from_favorites_users_favorite_organizations_organization_id_delete(organization_id) + +Remove Organization From Favorites + +Remove an organization from the user's favorite ones + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.success_and_message_response import SuccessAndMessageResponse +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.UsersApi(api_client) + organization_id = 56 # int | + + try: + # Remove Organization From Favorites + api_response = await api_instance.remove_organization_from_favorites_users_favorite_organizations_organization_id_delete(organization_id) + print("The response of UsersApi->remove_organization_from_favorites_users_favorite_organizations_organization_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->remove_organization_from_favorites_users_favorite_organizations_organization_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **int**| | + +### Return type + +[**SuccessAndMessageResponse**](SuccessAndMessageResponse.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -576,6 +813,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -639,7 +878,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -647,6 +886,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -713,7 +954,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -721,6 +962,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/VSpecsOrgLibApi.md b/docs/VSpecsOrgLibApi.md index 105eb05..9f86e1a 100644 --- a/docs/VSpecsOrgLibApi.md +++ b/docs/VSpecsOrgLibApi.md @@ -75,7 +75,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -83,6 +83,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -150,7 +152,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -158,6 +160,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -223,7 +227,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -231,6 +235,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -299,7 +305,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -307,6 +313,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -377,7 +385,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -385,6 +393,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/VSpecsStdLibApi.md b/docs/VSpecsStdLibApi.md index 6ea7478..12bef13 100644 --- a/docs/VSpecsStdLibApi.md +++ b/docs/VSpecsStdLibApi.md @@ -65,13 +65,15 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Successful Response | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -136,7 +138,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -144,6 +146,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/VersionResources.md b/docs/VersionResources.md index 42ca4a2..b6f520a 100644 --- a/docs/VersionResources.md +++ b/docs/VersionResources.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | +**project_id** | **int** | | **resources** | [**Resources**](Resources.md) | | **tasks** | [**List[TaskResources]**](TaskResources.md) | | diff --git a/docs/VersionsApi.md b/docs/VersionsApi.md index 3caf488..13ca4fc 100644 --- a/docs/VersionsApi.md +++ b/docs/VersionsApi.md @@ -14,6 +14,8 @@ Method | HTTP request | Description [**get_version_file_organizations_organization_id_projects_project_id_versions_version_id_file_get**](VersionsApi.md#get_version_file_organizations_organization_id_projects_project_id_versions_version_id_file_get) | **GET** /organizations/{organization_id}/projects/{project_id}/versions/{version_id}/file | Get Version File [**get_version_findings_organizations_organization_id_projects_project_id_versions_version_id_findings_get**](VersionsApi.md#get_version_findings_organizations_organization_id_projects_project_id_versions_version_id_findings_get) | **GET** /organizations/{organization_id}/projects/{project_id}/versions/{version_id}/findings | Get Version Findings [**get_version_organizations_organization_id_projects_project_id_versions_version_id_get**](VersionsApi.md#get_version_organizations_organization_id_projects_project_id_versions_version_id_get) | **GET** /organizations/{organization_id}/projects/{project_id}/versions/{version_id} | Get Version +[**get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get**](VersionsApi.md#get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get) | **GET** /organizations/{organization_id}/projects/{project_id}/versions/{version_id}/resource-consumption-detailed | Get Version Resource Detailed +[**get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get**](VersionsApi.md#get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get) | **GET** /organizations/{organization_id}/projects/{project_id}/versions/{version_id}/resource-consumption-total | Get Version Resource Usage [**get_versions_organizations_organization_id_projects_project_id_versions_get**](VersionsApi.md#get_versions_organizations_organization_id_projects_project_id_versions_get) | **GET** /organizations/{organization_id}/projects/{project_id}/versions | Get Versions [**patch_version_organizations_organization_id_projects_project_id_versions_version_id_patch**](VersionsApi.md#patch_version_organizations_organization_id_projects_project_id_versions_version_id_patch) | **PATCH** /organizations/{organization_id}/projects/{project_id}/versions/{version_id} | Patch Version [**post_temp_version_organizations_organization_id_temp_versions_post**](VersionsApi.md#post_temp_version_organizations_organization_id_temp_versions_post) | **POST** /organizations/{organization_id}/temp-versions | Post Temp Version @@ -88,7 +90,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -96,6 +98,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -181,7 +185,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -189,6 +193,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -260,7 +266,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -268,6 +274,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -336,7 +344,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/zip, application/json + - **Accept**: application/zip, application/problem+json ### HTTP response details @@ -344,6 +352,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -413,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -421,11 +431,13 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_version_comment_threads_organizations_organization_id_projects_project_id_versions_version_id_comment_threads_get** -> List[Thread] get_version_comment_threads_organizations_organization_id_projects_project_id_versions_version_id_comment_threads_get(organization_id, project_id, version_id, include_commenter_ids=include_commenter_ids) +> List[Thread] get_version_comment_threads_organizations_organization_id_projects_project_id_versions_version_id_comment_threads_get(organization_id, project_id, version_id, include_commenter_ids=include_commenter_ids, include_message_count=include_message_count) Get Version Comment Threads @@ -459,10 +471,11 @@ async with audithub_sdk.ApiClient(configuration) as api_client: project_id = 56 # int | version_id = 56 # int | include_commenter_ids = False # bool | Include distinct user ids of users who created comments in each thread. (optional) (default to False) + include_message_count = False # bool | Include the count of messages in each thread. (optional) (default to False) try: # Get Version Comment Threads - api_response = await api_instance.get_version_comment_threads_organizations_organization_id_projects_project_id_versions_version_id_comment_threads_get(organization_id, project_id, version_id, include_commenter_ids=include_commenter_ids) + api_response = await api_instance.get_version_comment_threads_organizations_organization_id_projects_project_id_versions_version_id_comment_threads_get(organization_id, project_id, version_id, include_commenter_ids=include_commenter_ids, include_message_count=include_message_count) print("The response of VersionsApi->get_version_comment_threads_organizations_organization_id_projects_project_id_versions_version_id_comment_threads_get:\n") pprint(api_response) except Exception as e: @@ -480,6 +493,7 @@ Name | Type | Description | Notes **project_id** | **int**| | **version_id** | **int**| | **include_commenter_ids** | **bool**| Include distinct user ids of users who created comments in each thread. | [optional] [default to False] + **include_message_count** | **bool**| Include the count of messages in each thread. | [optional] [default to False] ### Return type @@ -492,7 +506,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -500,6 +514,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -581,7 +597,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -589,6 +605,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -657,7 +675,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/problem+json ### HTTP response details @@ -665,6 +683,8 @@ void (empty response body) |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -734,7 +754,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -742,6 +762,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -815,7 +837,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -823,6 +845,170 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get** +> OrganizationConsumptionDetailed get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get(organization_id, project_id, version_id, months=months) + +Get Version Resource Detailed + +Returns version detailed consumption + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.VersionsApi(api_client) + organization_id = 56 # int | + project_id = 56 # int | + version_id = 56 # int | + months = 56 # int | Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. (optional) + + try: + # Get Version Resource Detailed + api_response = await api_instance.get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get(organization_id, project_id, version_id, months=months) + print("The response of VersionsApi->get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VersionsApi->get_version_resource_detailed_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_detailed_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **int**| | + **project_id** | **int**| | + **version_id** | **int**| | + **months** | **int**| Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. | [optional] + +### Return type + +[**OrganizationConsumptionDetailed**](OrganizationConsumptionDetailed.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get** +> OrganizationConsumption get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get(organization_id, project_id, version_id, months=months) + +Get Version Resource Usage + +Returns version consumption + +### Example + + +```python +import audithub_sdk +from audithub_sdk.models.organization_consumption import OrganizationConsumption +from audithub_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://audithub.dev.veridise.tools/api/v1 +# See configuration.py for a list of all supported configuration parameters. +configuration = audithub_sdk.Configuration( + host = "https://audithub.dev.veridise.tools/api/v1" +) + +# 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. + +# Enter a context with an instance of the API client +async with audithub_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audithub_sdk.VersionsApi(api_client) + organization_id = 56 # int | + project_id = 56 # int | + version_id = 56 # int | + months = 56 # int | Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. (optional) + + try: + # Get Version Resource Usage + api_response = await api_instance.get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get(organization_id, project_id, version_id, months=months) + print("The response of VersionsApi->get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VersionsApi->get_version_resource_usage_organizations_organization_id_projects_project_id_versions_version_id_resource_consumption_total_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **int**| | + **project_id** | **int**| | + **version_id** | **int**| | + **months** | **int**| Number of months, since today, to report on. When not defined, active subscription period will be used, if any. Otherwise a default period of 3 months will be used. | [optional] + +### Return type + +[**OrganizationConsumption**](OrganizationConsumption.md) + +### Authorization + +[OpenIdConnect](../README.md#OpenIdConnect) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -890,7 +1076,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -898,6 +1084,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -970,7 +1158,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -978,6 +1166,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1051,7 +1241,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: multipart/form-data - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1059,6 +1249,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1138,7 +1330,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1146,6 +1338,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1221,7 +1415,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: multipart/form-data - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1229,6 +1423,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1310,7 +1506,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json + - **Accept**: application/json, application/problem+json ### HTTP response details @@ -1318,6 +1514,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Successful Response | - | **422** | Validation Error | - | +**4XX** | Client Error | - | +**5XX** | Server Error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/pyproject.toml b/pyproject.toml index 89ea689..2dae077 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "audithub-sdk" -version = "0.1.0" +version = "1.0.2" description = "Generated Python SDK for the AuditHub API." authors = [ {name = "Veridise"}, @@ -44,6 +44,41 @@ types-python-dateutil = ">= 2.8.19.14" mypy = ">= 1.5" +[tool.bumpversion] +parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" +serialize = ["{major}.{minor}.{patch}"] +search = "{current_version}" +replace = "{new_version}" +regex = false +ignore_missing_version = false +tag = true +sign_tags = false +tag_name = "v{new_version}" +tag_message = "Bump version: {current_version} -> {new_version}" +commit = true +message = "Bump version: {current_version} -> {new_version}" + +[[tool.bumpversion.files]] +filename = "setup.py" +search = 'VERSION = "{current_version}"' +replace = 'VERSION = "{new_version}"' + +[[tool.bumpversion.files]] +filename = "audithub_sdk/__init__.py" +search = '__version__ = "{current_version}"' +replace = '__version__ = "{new_version}"' + +[[tool.bumpversion.files]] +filename = "audithub_sdk/api_client.py" +search = "OpenAPI-Generator/{current_version}/python" +replace = "OpenAPI-Generator/{new_version}/python" + +[[tool.bumpversion.files]] +filename = "audithub_sdk/configuration.py" +search = "SDK Package Version: {current_version}" +replace = "SDK Package Version: {new_version}" + + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/scripts/regenerate-sdk.sh b/scripts/regenerate-sdk.sh new file mode 100755 index 0000000..bedfe84 --- /dev/null +++ b/scripts/regenerate-sdk.sh @@ -0,0 +1,98 @@ +#!/usr/bin/env bash +set -euo pipefail + +usage() { + cat <<'USAGE' +Usage: scripts/regenerate-sdk.sh VERSION + +Regenerates the AuditHub Python SDK from the live OpenAPI document using +VERSION as the packageVersion, then syncs repository-maintained version +references. +USAGE +} + +if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then + usage + exit 0 +fi + +if [[ $# -ne 1 ]]; then + usage >&2 + exit 2 +fi + +VERSION="$1" + +if [[ -z "$VERSION" || "$VERSION" == *","* || "$VERSION" =~ [[:space:]] ]]; then + echo "Version must be non-empty and must not contain commas or whitespace." >&2 + exit 2 +fi + +if ! command -v openapi-generator >/dev/null 2>&1; then + echo "openapi-generator is required. Install OpenAPI Generator 7.20.0 before regenerating." >&2 + exit 127 +fi + +PYTHON="${PYTHON:-python3}" +if ! command -v "$PYTHON" >/dev/null 2>&1; then + echo "$PYTHON is required to sync repository metadata." >&2 + exit 127 +fi + +openapi-generator generate \ + -i https://audithub.dev.veridise.tools/api/v1/openapi.json \ + -g python \ + -o . \ + --additional-properties="packageName=audithub_sdk,projectName=audithub-sdk,packageVersion=${VERSION},hideGenerationTimestamp=true,library=httpx" + +"$PYTHON" - "$VERSION" <<'PY' +from __future__ import annotations + +from pathlib import Path +import re +import sys + + +version = sys.argv[1] + + +def replace_exact(path: str, pattern: str, replacement, expected: int) -> None: + file_path = Path(path) + text = file_path.read_text(encoding="utf-8") + updated, count = re.subn(pattern, replacement, text, flags=re.MULTILINE) + if count != expected: + raise SystemExit(f"{path}: expected {expected} replacement(s), made {count}") + file_path.write_text(updated, encoding="utf-8") + + +replace_exact( + "pyproject.toml", + r'^(version = ")[^"]+(")$', + lambda match: f"{match.group(1)}{version}{match.group(2)}", + 1, +) +replace_exact( + "setup.py", + r'^(VERSION = ")[^"]+(")$', + lambda match: f"{match.group(1)}{version}{match.group(2)}", + 1, +) +replace_exact( + "README.md", + r"packageVersion=[^,]+", + f"packageVersion={version}", + 1, +) +replace_exact( + "AGENTS.md", + r"(Package version currently used during generation: `)[^`]+(`)", + lambda match: f"{match.group(1)}{version}{match.group(2)}", + 1, +) +replace_exact( + "AGENTS.md", + r"packageVersion=[^,]+", + f"packageVersion={version}", + 1, +) +PY diff --git a/setup.py b/setup.py index b83c8da..31c1c63 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "audithub-sdk" -VERSION = "0.1.0" +VERSION = "1.0.2" PYTHON_REQUIRES = ">= 3.9" DESCRIPTION = "Generated Python SDK for the AuditHub API." REQUIRES = [ diff --git a/test/test_favorite_organization_assignment.py b/test/test_favorite_organization_assignment.py new file mode 100644 index 0000000..8e8c46a --- /dev/null +++ b/test/test_favorite_organization_assignment.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from audithub_sdk.models.favorite_organization_assignment import FavoriteOrganizationAssignment + +class TestFavoriteOrganizationAssignment(unittest.TestCase): + """FavoriteOrganizationAssignment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FavoriteOrganizationAssignment: + """Test FavoriteOrganizationAssignment + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FavoriteOrganizationAssignment` + """ + model = FavoriteOrganizationAssignment() + if include_optional: + return FavoriteOrganizationAssignment( + organization_id = 56 + ) + else: + return FavoriteOrganizationAssignment( + organization_id = 56, + ) + """ + + def testFavoriteOrganizationAssignment(self): + """Test FavoriteOrganizationAssignment""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_invitations_api.py b/test/test_invitations_api.py new file mode 100644 index 0000000..2d0c802 --- /dev/null +++ b/test/test_invitations_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from audithub_sdk.api.invitations_api import InvitationsApi + + +class TestInvitationsApi(unittest.IsolatedAsyncioTestCase): + """InvitationsApi unit test stubs""" + + async def asyncSetUp(self) -> None: + self.api = InvitationsApi() + + async def asyncTearDown(self) -> None: + await self.api.api_client.close() + + async def test_delete_invitation_organizations_organization_id_invitations_invitation_id_delete(self) -> None: + """Test case for delete_invitation_organizations_organization_id_invitations_invitation_id_delete + + Delete Invitation + """ + pass + + async def test_get_invitation_organizations_organization_id_invitations_invitation_id_get(self) -> None: + """Test case for get_invitation_organizations_organization_id_invitations_invitation_id_get + + Get Invitation + """ + pass + + async def test_patch_invitation_organizations_organization_id_invitations_invitation_id_patch(self) -> None: + """Test case for patch_invitation_organizations_organization_id_invitations_invitation_id_patch + + Patch Invitation + """ + pass + + async def test_post_invitation_organizations_organization_id_invitations_post(self) -> None: + """Test case for post_invitation_organizations_organization_id_invitations_post + + Post Invitation + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_my_organization.py b/test/test_my_organization.py new file mode 100644 index 0000000..6dc6ba8 --- /dev/null +++ b/test/test_my_organization.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from audithub_sdk.models.my_organization import MyOrganization + +class TestMyOrganization(unittest.TestCase): + """MyOrganization unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MyOrganization: + """Test MyOrganization + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MyOrganization` + """ + model = MyOrganization() + if include_optional: + return MyOrganization( + name = '', + support_channel = '', + user_limit = 56, + id = 56, + gh_connected = True, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_favorite = True + ) + else: + return MyOrganization( + name = '', + id = 56, + gh_connected = True, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ) + """ + + def testMyOrganization(self): + """Test MyOrganization""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_organization_consumption_detailed.py b/test/test_organization_consumption_detailed.py new file mode 100644 index 0000000..ad1a42a --- /dev/null +++ b/test/test_organization_consumption_detailed.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from audithub_sdk.models.organization_consumption_detailed import OrganizationConsumptionDetailed + +class TestOrganizationConsumptionDetailed(unittest.TestCase): + """OrganizationConsumptionDetailed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OrganizationConsumptionDetailed: + """Test OrganizationConsumptionDetailed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `OrganizationConsumptionDetailed` + """ + model = OrganizationConsumptionDetailed() + if include_optional: + return OrganizationConsumptionDetailed( + from_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + to_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + versions = [ + audithub_sdk.models.version_resources.VersionResources( + id = 56, + project_id = 56, + resources = audithub_sdk.models.resources.Resources( + cpu_minutes = 1.337, ), + tasks = [ + audithub_sdk.models.task_resources.TaskResources( + id = 56, + resources = audithub_sdk.models.resources.Resources( + cpu_minutes = 1.337, ), + steps = [ + audithub_sdk.models.step_resources.StepResources( + code = '', + resources = , + containers = [ + audithub_sdk.models.container_resources.ContainerResources( + code = '', + resources = , ) + ], ) + ], ) + ], ) + ] + ) + else: + return OrganizationConsumptionDetailed( + versions = [ + audithub_sdk.models.version_resources.VersionResources( + id = 56, + project_id = 56, + resources = audithub_sdk.models.resources.Resources( + cpu_minutes = 1.337, ), + tasks = [ + audithub_sdk.models.task_resources.TaskResources( + id = 56, + resources = audithub_sdk.models.resources.Resources( + cpu_minutes = 1.337, ), + steps = [ + audithub_sdk.models.step_resources.StepResources( + code = '', + resources = , + containers = [ + audithub_sdk.models.container_resources.ContainerResources( + code = '', + resources = , ) + ], ) + ], ) + ], ) + ], + ) + """ + + def testOrganizationConsumptionDetailed(self): + """Test OrganizationConsumptionDetailed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_problem.py b/test/test_problem.py new file mode 100644 index 0000000..174fe80 --- /dev/null +++ b/test/test_problem.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from audithub_sdk.models.problem import Problem + +class TestProblem(unittest.TestCase): + """Problem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Problem: + """Test Problem + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Problem` + """ + model = Problem() + if include_optional: + return Problem( + title = '', + type = '', + status = 56, + detail = '' + ) + else: + return Problem( + title = '', + type = '', + status = 56, + ) + """ + + def testProblem(self): + """Test Problem""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_admin.py b/test/test_user_admin.py new file mode 100644 index 0000000..162d499 --- /dev/null +++ b/test/test_user_admin.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + FastAPI + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from audithub_sdk.models.user_admin import UserAdmin + +class TestUserAdmin(unittest.TestCase): + """UserAdmin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserAdmin: + """Test UserAdmin + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UserAdmin` + """ + model = UserAdmin() + if include_optional: + return UserAdmin( + id = '', + name = '', + email = '', + roles = [ + '' + ], + enabled = True, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + organizations = [ + 56 + ] + ) + else: + return UserAdmin( + id = '', + name = '', + email = '', + roles = [ + '' + ], + enabled = True, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + organizations = [ + 56 + ], + ) + """ + + def testUserAdmin(self): + """Test UserAdmin""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()