Skip to content
Open
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
24 changes: 0 additions & 24 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/CreateUARInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions docs/UAR.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion opal_security/models/create_uar_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion opal_security/models/uar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down