diff --git a/.sdk-version b/.sdk-version index ee92a31..051b3df 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.116.5 +v3.118.0 diff --git a/docs/AnalysisScope.md b/docs/AnalysisScope.md index ecc6d77..7ad05e7 100644 --- a/docs/AnalysisScope.md +++ b/docs/AnalysisScope.md @@ -7,6 +7,8 @@ * `PUBLIC` (value: `'PUBLIC'`) +* `TEAM` (value: `'TEAM'`) + * `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`) [[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/AnalysisUpdateRequest.md b/docs/AnalysisUpdateRequest.md index 7679903..fc3dcee 100644 --- a/docs/AnalysisUpdateRequest.md +++ b/docs/AnalysisUpdateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **binary_name** | **str** | | [optional] -**analysis_scope** | **str** | | [optional] +**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | | [optional] ## Example diff --git a/revengai/__init__.py b/revengai/__init__.py index 2c383a1..77ed00d 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.116.5" +__version__ = "v3.118.0" # Define package exports __all__ = [ diff --git a/revengai/api_client.py b/revengai/api_client.py index 2215969..b3cd14e 100644 --- a/revengai/api_client.py +++ b/revengai/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/v3.116.5/python' + self.user_agent = 'OpenAPI-Generator/v3.118.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index befbb2c..48c75ab 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -541,8 +541,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v3.116.5\n"\ - "SDK Package Version: v3.116.5".\ + "Version of the API: v3.118.0\n"\ + "SDK Package Version: v3.118.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/analysis_scope.py b/revengai/models/analysis_scope.py index 299844c..4c30935 100644 --- a/revengai/models/analysis_scope.py +++ b/revengai/models/analysis_scope.py @@ -27,6 +27,7 @@ class AnalysisScope(str, Enum): """ PRIVATE = 'PRIVATE' PUBLIC = 'PUBLIC' + TEAM = 'TEAM' UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api' @classmethod diff --git a/revengai/models/analysis_update_request.py b/revengai/models/analysis_update_request.py index 3cddf74..cf4744a 100644 --- a/revengai/models/analysis_update_request.py +++ b/revengai/models/analysis_update_request.py @@ -16,8 +16,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from revengai.models.analysis_scope import AnalysisScope from typing import Optional, Set from typing_extensions import Self @@ -26,19 +27,9 @@ class AnalysisUpdateRequest(BaseModel): AnalysisUpdateRequest """ # noqa: E501 binary_name: Optional[StrictStr] = None - analysis_scope: Optional[StrictStr] = None + analysis_scope: Optional[AnalysisScope] = None __properties: ClassVar[List[str]] = ["binary_name", "analysis_scope"] - @field_validator('analysis_scope') - def analysis_scope_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['PUBLIC', 'PRIVATE', 'unknown_default_open_api']): - raise ValueError("must be one of enum values ('PUBLIC', 'PRIVATE', 'unknown_default_open_api')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True,