Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.116.5
v3.118.0
2 changes: 2 additions & 0 deletions docs/AnalysisScope.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/AnalysisUpdateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**binary_name** | **str** | | [optional]
**analysis_scope** | **str** | | [optional]
**analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v3.116.5"
__version__ = "v3.118.0"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
1 change: 1 addition & 0 deletions revengai/models/analysis_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AnalysisScope(str, Enum):
"""
PRIVATE = 'PRIVATE'
PUBLIC = 'PUBLIC'
TEAM = 'TEAM'
UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api'

@classmethod
Expand Down
15 changes: 3 additions & 12 deletions revengai/models/analysis_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down