diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 62dab66..924f029 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -523,28 +523,4 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_create_delegation_request.py -test/test_delegation.py -test/test_delegations_api.py -test/test_paginated_delegations_list.py -test/test_resource_remote_info_anthropic_workspace.py -test/test_resource_remote_info_azure_enterprise_app.py -test/test_resource_remote_info_azure_entra_id_role.py -test/test_resource_remote_info_azure_management_group.py -test/test_resource_remote_info_azure_resource_group.py -test/test_resource_remote_info_azure_sql_database.py -test/test_resource_remote_info_azure_sql_managed_database.py -test/test_resource_remote_info_azure_sql_managed_instance.py -test/test_resource_remote_info_azure_sql_server.py -test/test_resource_remote_info_azure_storage_account.py -test/test_resource_remote_info_azure_storage_container.py -test/test_resource_remote_info_azure_subscription.py -test/test_resource_remote_info_azure_user_assigned_managed_identity.py -test/test_resource_remote_info_azure_virtual_machine.py -test/test_resource_remote_info_coupa_role.py -test/test_resource_remote_info_cursor_organization.py -test/test_resource_remote_info_github_org.py -test/test_resource_remote_info_openai_platform_project.py -test/test_resource_remote_info_openai_platform_service_account.py -test/test_resource_remote_info_oracle_fusion_role.py tox.ini diff --git a/api/openapi.yaml b/api/openapi.yaml index 6d9b28f..5b5a48d 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -4986,6 +4986,10 @@ components: description: A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. example: False type: boolean + instantly_action_reviews: + description: A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + type: boolean + example: False uar_scope: $ref: "#/components/schemas/UARScope" required: @@ -4996,6 +5000,7 @@ components: - send_reviewer_assignment_notification - time_zone - self_review_allowed + - instantly_action_reviews type: object CreateUARInfo: description: Information needed to start a user access review. @@ -5042,6 +5047,10 @@ components: description: A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. example: False type: boolean + instantly_action_reviews: + description: A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + type: boolean + example: False reminder_schedule: items: type: integer diff --git a/docs/CreateUARInfo.md b/docs/CreateUARInfo.md index 30f1fff..40d9ce1 100644 --- a/docs/CreateUARInfo.md +++ b/docs/CreateUARInfo.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **deadline** | **datetime** | The last day for reviewers to complete their access reviews. | **time_zone** | **str** | The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. | **self_review_allowed** | **bool** | A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. | +**instantly_action_reviews** | **bool** | A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. | [optional] **reminder_schedule** | **List[int]** | | [optional] **reminder_include_manager** | **bool** | | [optional] **uar_scope** | [**UARScope**](UARScope.md) | | [optional] diff --git a/docs/UAR.md b/docs/UAR.md index 7165f6f..6c11dbb 100644 --- a/docs/UAR.md +++ b/docs/UAR.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **deadline** | **datetime** | The last day for reviewers to complete their access reviews. | **time_zone** | **str** | The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. | **self_review_allowed** | **bool** | A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. | +**instantly_action_reviews** | **bool** | A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. | **uar_scope** | [**UARScope**](UARScope.md) | | [optional] ## Example diff --git a/opal_security/models/create_uar_info.py b/opal_security/models/create_uar_info.py index 421704e..c58ec86 100644 --- a/opal_security/models/create_uar_info.py +++ b/opal_security/models/create_uar_info.py @@ -36,11 +36,12 @@ class CreateUARInfo(BaseModel): deadline: datetime = Field(description="The last day for reviewers to complete their access reviews.") time_zone: StrictStr = Field(description="The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles.") self_review_allowed: StrictBool = Field(description="A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False.") + instantly_action_reviews: Optional[StrictBool] = Field(default=None, description="A bool representing whether to instantly action changes when reviewers submit their decision. Default is False.") reminder_schedule: Optional[List[StrictInt]] = None reminder_include_manager: Optional[StrictBool] = None uar_scope: Optional[UARScope] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name", "reviewer_assignment_policy", "send_reviewer_assignment_notification", "deadline", "time_zone", "self_review_allowed", "reminder_schedule", "reminder_include_manager", "uar_scope"] + __properties: ClassVar[List[str]] = ["name", "reviewer_assignment_policy", "send_reviewer_assignment_notification", "deadline", "time_zone", "self_review_allowed", "instantly_action_reviews", "reminder_schedule", "reminder_include_manager", "uar_scope"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "deadline": obj.get("deadline"), "time_zone": obj.get("time_zone"), "self_review_allowed": obj.get("self_review_allowed"), + "instantly_action_reviews": obj.get("instantly_action_reviews"), "reminder_schedule": obj.get("reminder_schedule"), "reminder_include_manager": obj.get("reminder_include_manager"), "uar_scope": UARScope.from_dict(obj["uar_scope"]) if obj.get("uar_scope") is not None else None diff --git a/opal_security/models/uar.py b/opal_security/models/uar.py index 223cbc3..127aa75 100644 --- a/opal_security/models/uar.py +++ b/opal_security/models/uar.py @@ -37,9 +37,10 @@ class UAR(BaseModel): deadline: datetime = Field(description="The last day for reviewers to complete their access reviews.") time_zone: StrictStr = Field(description="The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles.") self_review_allowed: StrictBool = Field(description="A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False.") + instantly_action_reviews: StrictBool = Field(description="A bool representing whether to instantly action changes when reviewers submit their decision. Default is False.") uar_scope: Optional[UARScope] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["uar_id", "name", "reviewer_assignment_policy", "send_reviewer_assignment_notification", "deadline", "time_zone", "self_review_allowed", "uar_scope"] + __properties: ClassVar[List[str]] = ["uar_id", "name", "reviewer_assignment_policy", "send_reviewer_assignment_notification", "deadline", "time_zone", "self_review_allowed", "instantly_action_reviews", "uar_scope"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "deadline": obj.get("deadline"), "time_zone": obj.get("time_zone"), "self_review_allowed": obj.get("self_review_allowed"), + "instantly_action_reviews": obj.get("instantly_action_reviews"), "uar_scope": UARScope.from_dict(obj["uar_scope"]) if obj.get("uar_scope") is not None else None }) # store additional fields in additional_properties