|
1 | 1 | # generated by datamodel-codegen: |
2 | 2 | # filename: <stdin> |
3 | | -# timestamp: 2026-01-19T10:11:23+00:00 |
| 3 | +# timestamp: 2026-01-21T10:22:35+00:00 |
4 | 4 |
|
5 | 5 | from __future__ import annotations |
6 | 6 |
|
@@ -1981,6 +1981,18 @@ class GetAgentRunConfigRequest(BaseModel): |
1981 | 1981 | ) |
1982 | 1982 |
|
1983 | 1983 |
|
| 1984 | +class GetAggregatedPolicyStatsAPIRequest(BaseModel): |
| 1985 | + pass |
| 1986 | + |
| 1987 | + |
| 1988 | +class GetAggregatedPolicyStatsRequest(BaseModel): |
| 1989 | + tenant_id: UUID = Field(..., title="Tenant Id") |
| 1990 | + |
| 1991 | + |
| 1992 | +class GetAggregatedPolicyStatsResponse(BaseModel): |
| 1993 | + stats: Dict[str, Any] = Field(..., title="Stats") |
| 1994 | + |
| 1995 | + |
1984 | 1996 | class GetAggregatedTicketsStatsResponse(BaseModel): |
1985 | 1997 | stat_name: str = Field(..., title="Stat Name") |
1986 | 1998 | total: float = Field(..., title="Total") |
@@ -4182,6 +4194,11 @@ class PolicyTicketStatus(str, Enum): |
4182 | 4194 | DEPRECATED = "DEPRECATED" |
4183 | 4195 |
|
4184 | 4196 |
|
| 4197 | +class PolicyType(str, Enum): |
| 4198 | + POLICY = "POLICY" |
| 4199 | + INSIGHTS = "INSIGHTS" |
| 4200 | + |
| 4201 | + |
4185 | 4202 | class PostNaviraLogsRequest(BaseModel): |
4186 | 4203 | pagination: Optional[PaginationParams] = Field( |
4187 | 4204 | {"page": 1, "page_size": 10}, |
@@ -5289,6 +5306,12 @@ class ResponseEnableTenantPolicyResponse(BaseModel): |
5289 | 5306 | status_code: Optional[int] = Field(200, title="Status Code") |
5290 | 5307 |
|
5291 | 5308 |
|
| 5309 | +class ResponseGetAggregatedPolicyStatsResponse(BaseModel): |
| 5310 | + data: GetAggregatedPolicyStatsResponse |
| 5311 | + message: Optional[str] = Field(None, title="Message") |
| 5312 | + status_code: Optional[int] = Field(200, title="Status Code") |
| 5313 | + |
| 5314 | + |
5292 | 5315 | class ResponseGetAggregatedTicketsStatsResponse(BaseModel): |
5293 | 5316 | data: GetAggregatedTicketsStatsResponse |
5294 | 5317 | message: Optional[str] = Field(None, title="Message") |
@@ -5907,6 +5930,27 @@ class SyncRecommendationUnitFromRepoResponse(BaseModel): |
5907 | 5930 | ) |
5908 | 5931 |
|
5909 | 5932 |
|
| 5933 | +class SyncTenantPoliciesDataRequest(BaseModel): |
| 5934 | + policy_ids: List[UUID4] = Field( |
| 5935 | + ..., description="The ids of the policies.", title="Policy Ids" |
| 5936 | + ) |
| 5937 | + tenant_id: UUID4 = Field(..., title="Tenant Id") |
| 5938 | + |
| 5939 | + |
| 5940 | +class SyncTenantPoliciesDataResponse(BaseModel): |
| 5941 | + policies_synced: bool = Field( |
| 5942 | + ..., description="Whether the policies were synced", title="Policies Synced" |
| 5943 | + ) |
| 5944 | + policies_synced_count: int = Field( |
| 5945 | + ..., description="The number of policies synced", title="Policies Synced Count" |
| 5946 | + ) |
| 5947 | + policies_not_synced_count: int = Field( |
| 5948 | + ..., |
| 5949 | + description="The number of policies not synced", |
| 5950 | + title="Policies Not Synced Count", |
| 5951 | + ) |
| 5952 | + |
| 5953 | + |
5910 | 5954 | class SyncTicketDataRequest(BaseModel): |
5911 | 5955 | ticket_ids: List[UUID] = Field( |
5912 | 5956 | ..., description="The unique identifiers of the tickets", title="Ticket Ids" |
@@ -7274,6 +7318,10 @@ class UploadedFileDetails(BaseModel): |
7274 | 7318 | ) |
7275 | 7319 |
|
7276 | 7320 |
|
| 7321 | +class UpsertAggregatedPoliciesResponse(BaseModel): |
| 7322 | + pass |
| 7323 | + |
| 7324 | + |
7277 | 7325 | class UpsertAggregatedTicketsResponse(BaseModel): |
7278 | 7326 | pass |
7279 | 7327 |
|
@@ -8076,6 +8124,33 @@ class AggregatedBucketMetrics(BaseModel): |
8076 | 8124 | total_objects_sum: int = Field(..., title="Total Objects Sum") |
8077 | 8125 |
|
8078 | 8126 |
|
| 8127 | +class AggregatedPoliciesMixin(BaseModel): |
| 8128 | + policy_ol_id: UUID = Field( |
| 8129 | + ..., description="The unique identifier of the policy", title="Policy Ol Id" |
| 8130 | + ) |
| 8131 | + title: str = Field(..., description="The title of the policy", title="Title") |
| 8132 | + alias: str = Field(..., description="The alias of the policy", title="Alias") |
| 8133 | + description: str = Field( |
| 8134 | + ..., description="The description of the policy", title="Description" |
| 8135 | + ) |
| 8136 | + category: PolicyCategory = Field(..., description="The category of the policy") |
| 8137 | + subcategory: OnelensModelsServiceInterfacesPoliciesCommonsSubcategory = Field( |
| 8138 | + ..., description="The subcategory of the policy" |
| 8139 | + ) |
| 8140 | + system_state: TenantPolicySystemState = Field( |
| 8141 | + ..., description="The system state of the policy" |
| 8142 | + ) |
| 8143 | + state: TenantPolicyState = Field(..., description="The state of the policy") |
| 8144 | + service: Union[AwsService, GcpService] = Field( |
| 8145 | + ..., description="The service of the policy", title="Service" |
| 8146 | + ) |
| 8147 | + provider: Provider = Field(..., description="The provider of the policy") |
| 8148 | + policy_type: PolicyType = Field(..., description="The type of the policy") |
| 8149 | + last_run_on: Optional[datetime] = Field( |
| 8150 | + None, description="The last run on date of the policy", title="Last Run On" |
| 8151 | + ) |
| 8152 | + |
| 8153 | + |
8079 | 8154 | class AggregatedStorageMetrics(BaseModel): |
8080 | 8155 | ol_id: str = Field(..., title="Ol Id") |
8081 | 8156 | metrics_by_storage: List[StorageMetrics] = Field(..., title="Metrics By Storage") |
@@ -9907,6 +9982,11 @@ class GetActionTypeResponse(BaseModel): |
9907 | 9982 | pagination: PaginationFields = Field(..., description="Pagination fields") |
9908 | 9983 |
|
9909 | 9984 |
|
| 9985 | +class GetAggregatedPoliciesAPIResponse(BaseModel): |
| 9986 | + pagination: PaginationFields = Field(..., description="Pagination fields.") |
| 9987 | + data: List[Dict[str, Any]] = Field(..., title="Data") |
| 9988 | + |
| 9989 | + |
9910 | 9990 | class GetAggregatedTicketsAPIResponse(BaseModel): |
9911 | 9991 | pagination: PaginationFields = Field(..., description="Pagination fields.") |
9912 | 9992 | data: List[Dict[str, Any]] = Field(..., title="Data") |
@@ -12596,6 +12676,12 @@ class ResponseFetchTenantUsersResponse(BaseModel): |
12596 | 12676 | status_code: Optional[int] = Field(200, title="Status Code") |
12597 | 12677 |
|
12598 | 12678 |
|
| 12679 | +class ResponseGetAggregatedPoliciesAPIResponse(BaseModel): |
| 12680 | + data: GetAggregatedPoliciesAPIResponse |
| 12681 | + message: Optional[str] = Field(None, title="Message") |
| 12682 | + status_code: Optional[int] = Field(200, title="Status Code") |
| 12683 | + |
| 12684 | + |
12599 | 12685 | class ResponseGetAggregatedTicketsAPIResponse(BaseModel): |
12600 | 12686 | data: GetAggregatedTicketsAPIResponse |
12601 | 12687 | message: Optional[str] = Field(None, title="Message") |
@@ -14234,6 +14320,15 @@ class UpdateUserResponse(BaseModel): |
14234 | 14320 | id: UUID4 = Field(..., description="Unique identifier for the user", title="Id") |
14235 | 14321 |
|
14236 | 14322 |
|
| 14323 | +class UpsertAggregatedPoliciesRequest(BaseModel): |
| 14324 | + tenant_id: UUID = Field( |
| 14325 | + ..., description="The unique identifier of the tenant", title="Tenant Id" |
| 14326 | + ) |
| 14327 | + aggregated_policies: List[AggregatedPoliciesMixin] = Field( |
| 14328 | + ..., description="The aggregated policies", title="Aggregated Policies" |
| 14329 | + ) |
| 14330 | + |
| 14331 | + |
14237 | 14332 | class UpsertAggregatedTicketsRequest(BaseModel): |
14238 | 14333 | tenant_id: UUID = Field( |
14239 | 14334 | ..., description="The unique identifier of the tenant", title="Tenant Id" |
@@ -15223,6 +15318,29 @@ class GetAgentRunConfigResponse(BaseModel): |
15223 | 15318 | ) |
15224 | 15319 |
|
15225 | 15320 |
|
| 15321 | +class GetAggregatedPoliciesAPIRequest(BaseModel): |
| 15322 | + pagination: Optional[PaginationParams] = Field( |
| 15323 | + {"page": 1, "page_size": 10}, |
| 15324 | + description="Pagination parameters for the request.", |
| 15325 | + ) |
| 15326 | + filters: Optional[ |
| 15327 | + List[OnelensDomainUtilitiesRepositoriesDynamicFiltersFilterCriteria] |
| 15328 | + ] = Field(None, title="Filters") |
| 15329 | + sort_criteria: Optional[SortCriteria] = None |
| 15330 | + |
| 15331 | + |
| 15332 | +class GetAggregatedPoliciesRequest(BaseModel): |
| 15333 | + pagination: Optional[PaginationParams] = Field( |
| 15334 | + {"page": 1, "page_size": 10}, |
| 15335 | + description="Pagination parameters for the request.", |
| 15336 | + ) |
| 15337 | + filters: Optional[ |
| 15338 | + List[OnelensDomainUtilitiesRepositoriesDynamicFiltersFilterCriteria] |
| 15339 | + ] = Field(None, title="Filters") |
| 15340 | + sort_criteria: Optional[SortCriteria] = None |
| 15341 | + tenant_id: UUID = Field(..., title="Tenant Id") |
| 15342 | + |
| 15343 | + |
15226 | 15344 | class GetAggregatedTicketsAPIRequest(BaseModel): |
15227 | 15345 | pagination: Optional[PaginationParams] = Field( |
15228 | 15346 | {"page": 1, "page_size": 10}, |
@@ -19904,17 +20022,17 @@ class CreateCustomTenantTicketRequestMixin(BaseModel): |
19904 | 20022 | title="Post Policy Execution Last Run", |
19905 | 20023 | ) |
19906 | 20024 | last_run_id: Optional[UUID4] = Field( |
19907 | | - "d42994fb-4730-48ec-93b3-8c53da91553d", |
| 20025 | + "36acc280-dc7a-44a5-90e1-b6812172b7ab", |
19908 | 20026 | description="Id of the last policy violation/anomaly run", |
19909 | 20027 | title="Last Run Id", |
19910 | 20028 | ) |
19911 | 20029 | last_run_at: Optional[datetime] = Field( |
19912 | | - "2026-01-19T15:40:47.753395", |
| 20030 | + "2026-01-21T15:52:05.844398", |
19913 | 20031 | description="Datetime of the last policy violation/anomaly run", |
19914 | 20032 | title="Last Run At", |
19915 | 20033 | ) |
19916 | 20034 | first_run_at: Optional[datetime] = Field( |
19917 | | - "2026-01-19T15:40:47.753410", |
| 20035 | + "2026-01-21T15:52:05.844412", |
19918 | 20036 | description="Datetime of the first policy violation/anomaly run", |
19919 | 20037 | title="First Run At", |
19920 | 20038 | ) |
|
0 commit comments