diff --git a/packages/compliance/src/.openapi-generator/VERSION b/packages/compliance/src/.openapi-generator/VERSION
index cd802a1ec..412252180 100644
--- a/packages/compliance/src/.openapi-generator/VERSION
+++ b/packages/compliance/src/.openapi-generator/VERSION
@@ -1 +1 @@
-6.6.0
\ No newline at end of file
+7.0.0
\ No newline at end of file
diff --git a/packages/compliance/src/PolicySystems/index.ts b/packages/compliance/src/PolicySystems/index.ts
index b357adc4c..7305da86b 100644
--- a/packages/compliance/src/PolicySystems/index.ts
+++ b/packages/compliance/src/PolicySystems/index.ts
@@ -55,7 +55,7 @@ export type PolicySystemsParams = {
*/
sortBy?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_minor_version`, and `group_name` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_minor_version`, `group_name`, and `group_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof PolicySystemsApi
*/
diff --git a/packages/compliance/src/PolicySystemsOS/index.ts b/packages/compliance/src/PolicySystemsOS/index.ts
index c98923f59..2d271daa1 100644
--- a/packages/compliance/src/PolicySystemsOS/index.ts
+++ b/packages/compliance/src/PolicySystemsOS/index.ts
@@ -25,7 +25,7 @@ export type PolicySystemsOSParams = {
*/
xRHIDENTITY?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `group_id`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof PolicySystemsOSApi
*/
diff --git a/packages/compliance/src/ReportSystems/index.ts b/packages/compliance/src/ReportSystems/index.ts
index 5959e639b..d80695d5e 100644
--- a/packages/compliance/src/ReportSystems/index.ts
+++ b/packages/compliance/src/ReportSystems/index.ts
@@ -55,7 +55,7 @@ export type ReportSystemsParams = {
*/
sortBy?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_minor_version`, `never_reported`, and `group_name` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_minor_version`, `never_reported`, `group_name`, and `group_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof ReportSystemsApi
*/
diff --git a/packages/compliance/src/ReportSystemsOS/index.ts b/packages/compliance/src/ReportSystemsOS/index.ts
index a872b5b3c..1d51e24e0 100644
--- a/packages/compliance/src/ReportSystemsOS/index.ts
+++ b/packages/compliance/src/ReportSystemsOS/index.ts
@@ -25,7 +25,7 @@ export type ReportSystemsOSParams = {
*/
xRHIDENTITY?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `group_id`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof ReportSystemsOSApi
*/
diff --git a/packages/compliance/src/ReportTestResults/index.ts b/packages/compliance/src/ReportTestResults/index.ts
index a05c90c91..cb21bf04b 100644
--- a/packages/compliance/src/ReportTestResults/index.ts
+++ b/packages/compliance/src/ReportTestResults/index.ts
@@ -55,7 +55,7 @@ export type ReportTestResultsParams = {
*/
sortBy?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Test Results are searchable using attributes `score`, `supported`, `system_id`, `display_name`, `os_minor_version`, `security_guide_version`, `compliant`, `group_name`, and `failed_rule_severity` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Test Results are searchable using attributes `score`, `supported`, `system_id`, `display_name`, `os_minor_version`, `security_guide_version`, `compliant`, `group_name`, `group_id`, and `failed_rule_severity` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof ReportTestResultsApi
*/
diff --git a/packages/compliance/src/ReportTestResultsOS/index.ts b/packages/compliance/src/ReportTestResultsOS/index.ts
index 27e024951..d03607e17 100644
--- a/packages/compliance/src/ReportTestResultsOS/index.ts
+++ b/packages/compliance/src/ReportTestResultsOS/index.ts
@@ -25,7 +25,7 @@ export type ReportTestResultsOSParams = {
*/
xRHIDENTITY?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Test Results are searchable using attributes `score`, `supported`, `system_id`, `display_name`, `os_minor_version`, `security_guide_version`, `compliant`, `group_name`, and `failed_rule_severity` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Test Results are searchable using attributes `score`, `supported`, `system_id`, `display_name`, `os_minor_version`, `security_guide_version`, `compliant`, `group_name`, `group_id`, and `failed_rule_severity` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof ReportTestResultsOSApi
*/
diff --git a/packages/compliance/src/SecurityGuidesOS/index.ts b/packages/compliance/src/SecurityGuidesOS/index.ts
index 94bdfcd29..6582e917f 100644
--- a/packages/compliance/src/SecurityGuidesOS/index.ts
+++ b/packages/compliance/src/SecurityGuidesOS/index.ts
@@ -19,7 +19,7 @@ export type SecurityGuidesOSParams = {
*/
xRHIDENTITY?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `group_id`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof SecurityGuidesOSApi
*/
diff --git a/packages/compliance/src/Systems/index.ts b/packages/compliance/src/Systems/index.ts
index ab34248ef..3a9fe8e34 100644
--- a/packages/compliance/src/Systems/index.ts
+++ b/packages/compliance/src/Systems/index.ts
@@ -49,7 +49,7 @@ export type SystemsParams = {
*/
sortBy?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `group_name`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `group_name`, `group_id`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof SystemsApi
*/
diff --git a/packages/compliance/src/SystemsOS/index.ts b/packages/compliance/src/SystemsOS/index.ts
index 2053264d9..b2aa30626 100644
--- a/packages/compliance/src/SystemsOS/index.ts
+++ b/packages/compliance/src/SystemsOS/index.ts
@@ -19,7 +19,7 @@ export type SystemsOSParams = {
*/
xRHIDENTITY?: any,
/**
- * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
+ * Query string to filter items by their attributes. Compliant with scoped_search query language . However, only `=` or `!=` (resp. `<>`) operators are supported. Systems are searchable using attributes `display_name`, `os_version`, `os_major_version`, `os_minor_version`, `assigned_or_scanned`, `never_reported`, `group_name`, `group_id`, `policies`, and `profile_ref_id` (e.g.: `(field_1=something AND field_2!=\"something else\") OR field_3>40`)
* @type { any }
* @memberof SystemsOSApi
*/
diff --git a/packages/compliance/src/types/index.ts b/packages/compliance/src/types/index.ts
index b0b166fb2..40c3ba508 100644
--- a/packages/compliance/src/types/index.ts
+++ b/packages/compliance/src/types/index.ts
@@ -436,31 +436,31 @@ export interface Report {
*/
'percent_compliant'?: any;
/**
- * The number of Systems assigned to this Report. Not visible under the Systems endpoint.
+ * The number of Systems assigned to this Report
* @type {any}
* @memberof Report
*/
'assigned_system_count'?: any;
/**
- * The number of compliant Systems in this Report. Inconsistent under the Systems endpoint.
+ * The number of compliant Systems in this Report
* @type {any}
* @memberof Report
*/
'compliant_system_count'?: any;
/**
- * Informs if the user has access to all the Systems under the Report. \\ Inconsistent under the Systems endpoint.
+ * Informs if the user has access to all the Systems under the Report
* @type {any}
* @memberof Report
*/
'all_systems_exposed'?: any;
/**
- * The number of unsupported Systems in this Report. \\ Inconsistent under the Systems endpoint.
+ * The number of unsupported Systems in this Report
* @type {any}
* @memberof Report
*/
'unsupported_system_count'?: any;
/**
- * The number of Systems in this Report that have Test Results available. \\ Inconsistent under the Systems endpoint.
+ * The number of Systems in this Report that have Test Results available
* @type {any}
* @memberof Report
*/
diff --git a/packages/config-manager/src/.openapi-generator/FILES b/packages/config-manager/src/.openapi-generator/FILES
index 8981b206c..62da6d411 100644
--- a/packages/config-manager/src/.openapi-generator/FILES
+++ b/packages/config-manager/src/.openapi-generator/FILES
@@ -4,10 +4,6 @@
CreateProfile/index.ts
GetProfile/index.ts
api.ts
-docs/CreateProfileApi.md
-docs/CreateProfileRequest.md
-docs/GetProfileApi.md
-docs/Profile.md
git_push.sh
index.ts
index.ts
diff --git a/packages/config-manager/src/.openapi-generator/VERSION b/packages/config-manager/src/.openapi-generator/VERSION
index 2540a3a5b..412252180 100644
--- a/packages/config-manager/src/.openapi-generator/VERSION
+++ b/packages/config-manager/src/.openapi-generator/VERSION
@@ -1 +1 @@
-7.20.0
+7.0.0
\ No newline at end of file
diff --git a/packages/config-manager/src/api.ts b/packages/config-manager/src/api.ts
index 9f986865c..14220d9f7 100644
--- a/packages/config-manager/src/api.ts
+++ b/packages/config-manager/src/api.ts
@@ -10,7 +10,8 @@ import {
const endpointList = {
createProfile,
- getProfile,
+ getProfile,
+
};
diff --git a/packages/config-manager/src/docs/CreateProfileApi.md b/packages/config-manager/src/docs/CreateProfileApi.md
deleted file mode 100644
index 5eb1755dc..000000000
--- a/packages/config-manager/src/docs/CreateProfileApi.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# CreateProfileApi
-
-All URIs are relative to *https://raw.githubusercontent.com/api/config-manager/v2*
-
-|Method | HTTP request | Description|
-|------------- | ------------- | -------------|
-|[**createProfile**](#createprofile) | **POST** /profiles | Create a new profile|
-
-# **createProfile**
-> Profile createProfile(createProfileRequest)
-
-Create and optionally activate a new profile.
-
-### Example
-
-```typescript
-import {
- CreateProfileApi,
- Configuration,
- CreateProfileRequest
-} from './api';
-
-const configuration = new Configuration();
-const apiInstance = new CreateProfileApi(configuration);
-
-let createProfileRequest: CreateProfileRequest; //
-
-const { status, data } = await apiInstance.createProfile(
- createProfileRequest
-);
-```
-
-### Parameters
-
-|Name | Type | Description | Notes|
-|------------- | ------------- | ------------- | -------------|
-| **createProfileRequest** | **CreateProfileRequest**| | |
-
-
-### Return type
-
-**Profile**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json, text/plain
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-|**201** | Created | - |
-|**304** | Not Modified | - |
-|**400** | Bad Request | - |
-|**500** | Internal Server Error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/packages/config-manager/src/docs/CreateProfileRequest.md b/packages/config-manager/src/docs/CreateProfileRequest.md
deleted file mode 100644
index c8b31cc1b..000000000
--- a/packages/config-manager/src/docs/CreateProfileRequest.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# CreateProfileRequest
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**active** | **boolean** | Remote host configuration enabled state | [default to undefined]
-**compliance** | **boolean** | Remote configuration status for running Compliance data collection | [default to undefined]
-**insights** | **boolean** | Remote configuration status for running Insights data collection | [default to undefined]
-**remediations** | **boolean** | Remote configuration status for running Remediation playbooks | [default to undefined]
-
-## Example
-
-```typescript
-import { CreateProfileRequest } from './api';
-
-const instance: CreateProfileRequest = {
- active,
- compliance,
- insights,
- remediations,
-};
-```
-
-[[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/packages/config-manager/src/docs/GetProfileApi.md b/packages/config-manager/src/docs/GetProfileApi.md
deleted file mode 100644
index f59e86cf1..000000000
--- a/packages/config-manager/src/docs/GetProfileApi.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# GetProfileApi
-
-All URIs are relative to *https://raw.githubusercontent.com/api/config-manager/v2*
-
-|Method | HTTP request | Description|
-|------------- | ------------- | -------------|
-|[**getProfile**](#getprofile) | **GET** /profiles/{id} | Get a specific profile|
-
-# **getProfile**
-> Profile getProfile()
-
-Retrieve a specific profile identified by the \'id\' path parameter for the identified account. If the special value \"current\" is used for the \'id\' path parameter, the most recent profile is retrieved instead.
-
-### Example
-
-```typescript
-import {
- GetProfileApi,
- Configuration
-} from './api';
-
-const configuration = new Configuration();
-const apiInstance = new GetProfileApi(configuration);
-
-let id: string; // (default to undefined)
-
-const { status, data } = await apiInstance.getProfile(
- id
-);
-```
-
-### Parameters
-
-|Name | Type | Description | Notes|
-|------------- | ------------- | ------------- | -------------|
-| **id** | [**string**] | | defaults to undefined|
-
-
-### Return type
-
-**Profile**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json, text/plain
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-|**200** | OK | - |
-|**400** | Bad Request | - |
-|**404** | Not Found | - |
-|**500** | Internal Server Error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/packages/config-manager/src/docs/Profile.md b/packages/config-manager/src/docs/Profile.md
deleted file mode 100644
index ec1c9b86c..000000000
--- a/packages/config-manager/src/docs/Profile.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# Profile
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **string** | Profile unique identity value | [optional] [default to undefined]
-**account_id** | **string** | Red Hat account number | [optional] [default to undefined]
-**org_id** | **string** | Red Hat organization identity value | [optional] [default to undefined]
-**created_at** | **string** | Time of profile creation | [optional] [default to undefined]
-**active** | **boolean** | Remote host configuration enabled state | [optional] [default to undefined]
-**compliance** | **boolean** | Remote configuration status for running Compliance data collection | [optional] [default to undefined]
-**insights** | **boolean** | Remote configuration status for running Insights data collection | [optional] [default to undefined]
-**remediations** | **boolean** | Remote configuration status for running Remediation playbooks | [optional] [default to undefined]
-
-## Example
-
-```typescript
-import { Profile } from './api';
-
-const instance: Profile = {
- id,
- account_id,
- org_id,
- created_at,
- active,
- compliance,
- insights,
- remediations,
-};
-```
-
-[[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/packages/host-inventory/src/.openapi-generator/FILES b/packages/host-inventory/src/.openapi-generator/FILES
index ed9dd6643..24cdc35c7 100644
--- a/packages/host-inventory/src/.openapi-generator/FILES
+++ b/packages/host-inventory/src/.openapi-generator/FILES
@@ -36,6 +36,12 @@ ApiSystemProfileGetSapSids/index.ts
ApiSystemProfileGetSapSystem/index.ts
ApiSystemProfileValidateSchema/index.ts
ApiTagGetTags/index.ts
+ApiViewsCloneView/index.ts
+ApiViewsCreateView/index.ts
+ApiViewsDeleteView/index.ts
+ApiViewsGetViewById/index.ts
+ApiViewsGetViewsList/index.ts
+ApiViewsUpdateView/index.ts
api.ts
git_push.sh
index.ts
diff --git a/packages/host-inventory/src/ApiGroupGetGroupList/index.ts b/packages/host-inventory/src/ApiGroupGetGroupList/index.ts
index 9c5831cfa..d6d6a92b3 100644
--- a/packages/host-inventory/src/ApiGroupGetGroupList/index.ts
+++ b/packages/host-inventory/src/ApiGroupGetGroupList/index.ts
@@ -37,7 +37,7 @@ export type ApiGroupGetGroupListParams = {
*/
orderBy?: ApiGroupGetGroupListOrderByEnum,
/**
- * Direction of the ordering (case-insensitive); defaults to ASC for name, and to DESC for host_count
+ * Direction of the ordering (case-insensitive); defaults to ASC for name, and to DESC for host_count and updated
* @type { string }
* @memberof ApiGroupGetGroupListApi
*/
diff --git a/packages/host-inventory/src/ApiGroupGetGroupsById/index.ts b/packages/host-inventory/src/ApiGroupGetGroupsById/index.ts
index 0af91ff56..e454b8e1b 100644
--- a/packages/host-inventory/src/ApiGroupGetGroupsById/index.ts
+++ b/packages/host-inventory/src/ApiGroupGetGroupsById/index.ts
@@ -37,7 +37,7 @@ export type ApiGroupGetGroupsByIdParams = {
*/
orderBy?: ApiGroupGetGroupsByIdOrderByEnum,
/**
- * Direction of the ordering (case-insensitive); defaults to ASC for name, and to DESC for host_count
+ * Direction of the ordering (case-insensitive); defaults to ASC for name, and to DESC for host_count and updated
* @type { string }
* @memberof ApiGroupGetGroupsByIdApi
*/
diff --git a/packages/host-inventory/src/ApiHostDeleteHostsByFilter/index.ts b/packages/host-inventory/src/ApiHostDeleteHostsByFilter/index.ts
index 398eac42f..f47295412 100644
--- a/packages/host-inventory/src/ApiHostDeleteHostsByFilter/index.ts
+++ b/packages/host-inventory/src/ApiHostDeleteHostsByFilter/index.ts
@@ -79,12 +79,24 @@ export type ApiHostDeleteHostsByFilterParams = {
*/
groupName?: Array,
/**
+ * Filter by workspace name
+ * @type { Array }
+ * @memberof ApiHostDeleteHostsByFilterApi
+ */
+ workspaceName?: Array,
+ /**
* Filter by group ID (UUID format)
* @type { Array }
* @memberof ApiHostDeleteHostsByFilterApi
*/
groupId?: Array,
/**
+ * Filter by workspace ID (UUID format)
+ * @type { Array }
+ * @memberof ApiHostDeleteHostsByFilterApi
+ */
+ workspaceId?: Array,
+ /**
* Filters out any host not registered by the specified reporters
* @type { Array }
* @memberof ApiHostDeleteHostsByFilterApi
@@ -194,9 +206,9 @@ const isApiHostDeleteHostsByFilterObjectParams = (params: [ApiHostDeleteHostsByF
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const apiHostDeleteHostsByFilterParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiHostDeleteHostsByFilterParams] | [string, string, string, string, string, ApiHostDeleteHostsByFilterProviderTypeEnum, string, string, string, string, Array, Array, Array, Array, Array, Array, { [key: string]: SystemProfileNestedObjectValue; }, string, AxiosRequestConfig])) => {
- const params = isApiHostDeleteHostsByFilterObjectParams(config) ? config[0] : ['displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'groupName', 'groupId', 'registeredWith', 'systemType', 'staleness', 'tags', 'filter', 'subscriptionManagerId', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiHostDeleteHostsByFilterParams;
- const { displayName, fqdn, hostnameOrId, insightsId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, groupName, groupId, registeredWith, systemType, staleness, tags, filter, subscriptionManagerId, options = {} } = params;
+export const apiHostDeleteHostsByFilterParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiHostDeleteHostsByFilterParams] | [string, string, string, string, string, ApiHostDeleteHostsByFilterProviderTypeEnum, string, string, string, string, Array, Array, Array, Array, Array, Array, Array, Array, { [key: string]: SystemProfileNestedObjectValue; }, string, AxiosRequestConfig])) => {
+ const params = isApiHostDeleteHostsByFilterObjectParams(config) ? config[0] : ['displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'groupName', 'workspaceName', 'groupId', 'workspaceId', 'registeredWith', 'systemType', 'staleness', 'tags', 'filter', 'subscriptionManagerId', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiHostDeleteHostsByFilterParams;
+ const { displayName, fqdn, hostnameOrId, insightsId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, groupName, workspaceName, groupId, workspaceId, registeredWith, systemType, staleness, tags, filter, subscriptionManagerId, options = {} } = params;
const localVarPath = `/hosts`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -256,10 +268,18 @@ export const apiHostDeleteHostsByFilterParamCreator = async (sendRequest: BaseAP
localVarQueryParameter['group_name'] = groupName;
}
+ if (workspaceName) {
+ localVarQueryParameter['workspace_name'] = workspaceName;
+ }
+
if (groupId) {
localVarQueryParameter['group_id'] = groupId;
}
+ if (workspaceId) {
+ localVarQueryParameter['workspace_id'] = workspaceId;
+ }
+
if (registeredWith) {
localVarQueryParameter['registered_with'] = registeredWith;
}
diff --git a/packages/host-inventory/src/ApiHostGetHostList/index.ts b/packages/host-inventory/src/ApiHostGetHostList/index.ts
index 250504188..2f4d12827 100644
--- a/packages/host-inventory/src/ApiHostGetHostList/index.ts
+++ b/packages/host-inventory/src/ApiHostGetHostList/index.ts
@@ -85,12 +85,24 @@ export type ApiHostGetHostListParams = {
*/
groupName?: Array,
/**
+ * Filter by workspace name
+ * @type { Array }
+ * @memberof ApiHostGetHostListApi
+ */
+ workspaceName?: Array,
+ /**
* Filter by group ID (UUID format)
* @type { Array }
* @memberof ApiHostGetHostListApi
*/
groupId?: Array,
/**
+ * Filter by workspace ID (UUID format)
+ * @type { Array }
+ * @memberof ApiHostGetHostListApi
+ */
+ workspaceId?: Array,
+ /**
* Filter by branch_id
* @type { string }
* @memberof ApiHostGetHostListApi
@@ -242,9 +254,9 @@ const isApiHostGetHostListObjectParams = (params: [ApiHostGetHostListParams] | u
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const apiHostGetHostListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiHostGetHostListParams] | [string, string, string, string, string, string, ApiHostGetHostListProviderTypeEnum, string, string, string, string, Array, Array, string, number, number, ApiHostGetHostListOrderByEnum, string, Array, Array, Array, Array, { [key: string]: SystemProfileNestedObjectValue; }, { [key: string]: SystemProfileNestedObjectValue; }, AxiosRequestConfig])) => {
- const params = isApiHostGetHostListObjectParams(config) ? config[0] : ['displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'subscriptionManagerId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'groupName', 'groupId', 'branchId', 'perPage', 'page', 'orderBy', 'orderHow', 'staleness', 'tags', 'registeredWith', 'systemType', 'filter', 'fields', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiHostGetHostListParams;
- const { displayName, fqdn, hostnameOrId, insightsId, subscriptionManagerId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, groupName, groupId, branchId, perPage, page, orderBy, orderHow, staleness, tags, registeredWith, systemType, filter, fields, options = {} } = params;
+export const apiHostGetHostListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiHostGetHostListParams] | [string, string, string, string, string, string, ApiHostGetHostListProviderTypeEnum, string, string, string, string, Array, Array, Array, Array, string, number, number, ApiHostGetHostListOrderByEnum, string, Array, Array, Array, Array, { [key: string]: SystemProfileNestedObjectValue; }, { [key: string]: SystemProfileNestedObjectValue; }, AxiosRequestConfig])) => {
+ const params = isApiHostGetHostListObjectParams(config) ? config[0] : ['displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'subscriptionManagerId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'groupName', 'workspaceName', 'groupId', 'workspaceId', 'branchId', 'perPage', 'page', 'orderBy', 'orderHow', 'staleness', 'tags', 'registeredWith', 'systemType', 'filter', 'fields', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiHostGetHostListParams;
+ const { displayName, fqdn, hostnameOrId, insightsId, subscriptionManagerId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, groupName, workspaceName, groupId, workspaceId, branchId, perPage, page, orderBy, orderHow, staleness, tags, registeredWith, systemType, filter, fields, options = {} } = params;
const localVarPath = `/hosts`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -308,10 +320,18 @@ export const apiHostGetHostListParamCreator = async (sendRequest: BaseAPI["sendR
localVarQueryParameter['group_name'] = groupName;
}
+ if (workspaceName) {
+ localVarQueryParameter['workspace_name'] = workspaceName;
+ }
+
if (groupId) {
localVarQueryParameter['group_id'] = groupId;
}
+ if (workspaceId) {
+ localVarQueryParameter['workspace_id'] = workspaceId;
+ }
+
if (branchId !== undefined) {
localVarQueryParameter['branch_id'] = branchId;
}
diff --git a/packages/host-inventory/src/ApiHostViewsGetHostViews/index.ts b/packages/host-inventory/src/ApiHostViewsGetHostViews/index.ts
index a6f1ad124..b54b64a67 100644
--- a/packages/host-inventory/src/ApiHostViewsGetHostViews/index.ts
+++ b/packages/host-inventory/src/ApiHostViewsGetHostViews/index.ts
@@ -8,7 +8,7 @@ import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/b
import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
// @ts-ignore
-import type { HostViewFilterComparison, HostViewQueryOutput } from '../types';
+import type { HostViewCombinedFields, HostViewCombinedFilterValue, HostViewQueryOutput } from '../types';
export type ApiHostViewsGetHostViewsParams = {
@@ -79,11 +79,17 @@ export type ApiHostViewsGetHostViewsParams = {
*/
lastCheckInEnd?: string,
/**
- * Filter by group name
+ * Filter by workspace name
* @type { Array }
* @memberof ApiHostViewsGetHostViewsApi
*/
- groupName?: Array,
+ workspaceName?: Array,
+ /**
+ * Filter by workspace ID (UUID format)
+ * @type { Array }
+ * @memberof ApiHostViewsGetHostViewsApi
+ */
+ workspaceId?: Array,
/**
* Filter by branch_id
* @type { string }
@@ -139,17 +145,17 @@ export type ApiHostViewsGetHostViewsParams = {
*/
systemType?: Array,
/**
- * Filters on aggregated application data using the syntax `filter[app_name][field_name][operator]=value`. Supported operators are `eq`, `ne`, `gte`, and `lte`. For example: `filter[vulnerability][critical_cves][gte]=1` or `filter[patch][template][eq]=production`.
- * @type { { [key: string]: any; } }
+ * Filters hosts based on system_profile fields and/or application data metrics. Both filter types can be combined in a single request. **System profile filters** use the syntax `filter[system_profile][field][operator]=value`. For example: \"?filter[system_profile][host_type][eq]=edge\" \"?filter[system_profile][operating_system][name][eq]=rhel\" **Application data filters** use the syntax `filter[app_name][field_name][operator]=value`. For example: \"?filter[vulnerability][critical_cves][gte]=1\" \"?filter[patch][template_name][eq]=production\" **Combined** example: \"?filter[system_profile][host_type][eq]=edge&filter[vulnerability][critical_cves][gte]=1\"
+ * @type { { [key: string]: HostViewCombinedFilterValue; } }
* @memberof ApiHostViewsGetHostViewsApi
*/
- filter?: { [key: string]: any; },
+ filter?: { [key: string]: HostViewCombinedFilterValue; },
/**
- * Selects which application objects (or sub-fields) should be joined into the host view response. Use `fields[advisor]=recommendations` to request specific fields, or `fields[advisor]=recommendations&fields[vulnerability]=critical_cves` for multiple apps. When this parameter is omitted, all fields from all applications are returned by default (per JSON:API sparse fieldsets specification).
- * @type { { [key: string]: { [key: string]: boolean; }; } }
+ * Selects which system_profile fields and/or application data fields to include in the response. Both can be requested in a single call. **System profile fields:** `fields[system_profile]=arch,host_type` returns only the requested system_profile fields on each host. When not specified, no system_profile data is returned (default behavior). **Application data fields:** `fields[advisor]=recommendations` returns only the requested fields for that application. When not specified, all fields from all applications are returned by default. **Application shorthand:** `fields[app_data]=true` explicitly requests all application data for all apps. **Combined** example: \"?fields[system_profile]=arch,os_release&fields[advisor]=recommendations\"
+ * @type { HostViewCombinedFields }
* @memberof ApiHostViewsGetHostViewsApi
*/
- fields?: { [key: string]: { [key: string]: boolean; }; },
+ fields?: HostViewCombinedFields,
options?: AxiosRequestConfig
}
/**
@@ -177,14 +183,34 @@ export const ApiHostViewsGetHostViewsOrderByEnum = {
LastCheckIn: 'last_check_in',
Advisorrecommendations: 'advisor:recommendations',
Advisorincidents: 'advisor:incidents',
+ Advisorcritical: 'advisor:critical',
+ Advisorimportant: 'advisor:important',
+ Advisormoderate: 'advisor:moderate',
+ Advisorlow: 'advisor:low',
VulnerabilitytotalCves: 'vulnerability:total_cves',
VulnerabilitycriticalCves: 'vulnerability:critical_cves',
+ VulnerabilityhighSeverityCves: 'vulnerability:high_severity_cves',
+ VulnerabilitycvesWithSecurityRules: 'vulnerability:cves_with_security_rules',
+ VulnerabilitycvesWithKnownExploits: 'vulnerability:cves_with_known_exploits',
PatchadvisoriesRhsaInstallable: 'patch:advisories_rhsa_installable',
+ PatchadvisoriesRhbaInstallable: 'patch:advisories_rhba_installable',
+ PatchadvisoriesRheaInstallable: 'patch:advisories_rhea_installable',
+ PatchadvisoriesOtherInstallable: 'patch:advisories_other_installable',
+ PatchadvisoriesRhsaApplicable: 'patch:advisories_rhsa_applicable',
+ PatchadvisoriesRhbaApplicable: 'patch:advisories_rhba_applicable',
+ PatchadvisoriesRheaApplicable: 'patch:advisories_rhea_applicable',
+ PatchadvisoriesOtherApplicable: 'patch:advisories_other_applicable',
PatchpackagesInstallable: 'patch:packages_installable',
+ PatchpackagesApplicable: 'patch:packages_applicable',
+ PatchpackagesInstalled: 'patch:packages_installed',
+ PatchtemplateName: 'patch:template_name',
RemediationsremediationsPlans: 'remediations:remediations_plans',
CompliancelastScan: 'compliance:last_scan',
+ CompliancepoliciesCount: 'compliance:policies_count',
MalwarelastMatches: 'malware:last_matches',
- MalwarelastScan: 'malware:last_scan'
+ MalwaretotalMatches: 'malware:total_matches',
+ MalwarelastScan: 'malware:last_scan',
+ MalwarelastStatus: 'malware:last_status'
} as const;
export type ApiHostViewsGetHostViewsOrderByEnum = typeof ApiHostViewsGetHostViewsOrderByEnum[keyof typeof ApiHostViewsGetHostViewsOrderByEnum];
/**
@@ -246,9 +272,9 @@ const isApiHostViewsGetHostViewsObjectParams = (params: [ApiHostViewsGetHostView
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const apiHostViewsGetHostViewsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiHostViewsGetHostViewsParams] | [string, string, string, string, string, string, ApiHostViewsGetHostViewsProviderTypeEnum, string, string, string, string, Array, string, number, number, ApiHostViewsGetHostViewsOrderByEnum, string, Array, Array, Array, Array, { [key: string]: any; }, { [key: string]: { [key: string]: boolean; }; }, AxiosRequestConfig])) => {
- const params = isApiHostViewsGetHostViewsObjectParams(config) ? config[0] : ['displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'subscriptionManagerId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'groupName', 'branchId', 'perPage', 'page', 'orderBy', 'orderHow', 'staleness', 'tags', 'registeredWith', 'systemType', 'filter', 'fields', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiHostViewsGetHostViewsParams;
- const { displayName, fqdn, hostnameOrId, insightsId, subscriptionManagerId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, groupName, branchId, perPage, page, orderBy, orderHow, staleness, tags, registeredWith, systemType, filter, fields, options = {} } = params;
+export const apiHostViewsGetHostViewsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiHostViewsGetHostViewsParams] | [string, string, string, string, string, string, ApiHostViewsGetHostViewsProviderTypeEnum, string, string, string, string, Array, Array, string, number, number, ApiHostViewsGetHostViewsOrderByEnum, string, Array, Array, Array, Array, { [key: string]: HostViewCombinedFilterValue; }, HostViewCombinedFields, AxiosRequestConfig])) => {
+ const params = isApiHostViewsGetHostViewsObjectParams(config) ? config[0] : ['displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'subscriptionManagerId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'workspaceName', 'workspaceId', 'branchId', 'perPage', 'page', 'orderBy', 'orderHow', 'staleness', 'tags', 'registeredWith', 'systemType', 'filter', 'fields', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiHostViewsGetHostViewsParams;
+ const { displayName, fqdn, hostnameOrId, insightsId, subscriptionManagerId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, workspaceName, workspaceId, branchId, perPage, page, orderBy, orderHow, staleness, tags, registeredWith, systemType, filter, fields, options = {} } = params;
const localVarPath = `/beta/hosts-view`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -308,8 +334,12 @@ export const apiHostViewsGetHostViewsParamCreator = async (sendRequest: BaseAPI[
lastCheckInEnd;
}
- if (groupName) {
- localVarQueryParameter['group_name'] = groupName;
+ if (workspaceName) {
+ localVarQueryParameter['workspace_name'] = workspaceName;
+ }
+
+ if (workspaceId) {
+ localVarQueryParameter['workspace_id'] = workspaceId;
}
if (branchId !== undefined) {
diff --git a/packages/host-inventory/src/ApiTagGetTags/index.ts b/packages/host-inventory/src/ApiTagGetTags/index.ts
index e446d85aa..76950059a 100644
--- a/packages/host-inventory/src/ApiTagGetTags/index.ts
+++ b/packages/host-inventory/src/ApiTagGetTags/index.ts
@@ -121,12 +121,24 @@ export type ApiTagGetTagsParams = {
*/
groupName?: Array,
/**
+ * Filter by workspace name
+ * @type { Array }
+ * @memberof ApiTagGetTagsApi
+ */
+ workspaceName?: Array,
+ /**
* Filter by group ID (UUID format)
* @type { Array }
* @memberof ApiTagGetTagsApi
*/
groupId?: Array,
/**
+ * Filter by workspace ID (UUID format)
+ * @type { Array }
+ * @memberof ApiTagGetTagsApi
+ */
+ workspaceId?: Array,
+ /**
* Filters out any host not registered by the specified reporters
* @type { Array }
* @memberof ApiTagGetTagsApi
@@ -227,9 +239,9 @@ const isApiTagGetTagsObjectParams = (params: [ApiTagGetTagsParams] | unknown[]):
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const apiTagGetTagsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiTagGetTagsParams] | [Array, ApiTagGetTagsOrderByEnum, string, number, number, Array, string, string, string, string, string, string, ApiTagGetTagsProviderTypeEnum, string, string, string, string, Array, Array, Array, Array, { [key: string]: SystemProfileNestedObjectValue; }, AxiosRequestConfig])) => {
- const params = isApiTagGetTagsObjectParams(config) ? config[0] : ['tags', 'orderBy', 'orderHow', 'perPage', 'page', 'staleness', 'search', 'displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'groupName', 'groupId', 'registeredWith', 'systemType', 'filter', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiTagGetTagsParams;
- const { tags, orderBy, orderHow, perPage, page, staleness, search, displayName, fqdn, hostnameOrId, insightsId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, groupName, groupId, registeredWith, systemType, filter, options = {} } = params;
+export const apiTagGetTagsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiTagGetTagsParams] | [Array, ApiTagGetTagsOrderByEnum, string, number, number, Array, string, string, string, string, string, string, ApiTagGetTagsProviderTypeEnum, string, string, string, string, Array, Array, Array, Array, Array, Array, { [key: string]: SystemProfileNestedObjectValue; }, AxiosRequestConfig])) => {
+ const params = isApiTagGetTagsObjectParams(config) ? config[0] : ['tags', 'orderBy', 'orderHow', 'perPage', 'page', 'staleness', 'search', 'displayName', 'fqdn', 'hostnameOrId', 'insightsId', 'providerId', 'providerType', 'updatedStart', 'updatedEnd', 'lastCheckInStart', 'lastCheckInEnd', 'groupName', 'workspaceName', 'groupId', 'workspaceId', 'registeredWith', 'systemType', 'filter', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiTagGetTagsParams;
+ const { tags, orderBy, orderHow, perPage, page, staleness, search, displayName, fqdn, hostnameOrId, insightsId, providerId, providerType, updatedStart, updatedEnd, lastCheckInStart, lastCheckInEnd, groupName, workspaceName, groupId, workspaceId, registeredWith, systemType, filter, options = {} } = params;
const localVarPath = `/tags`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -317,10 +329,18 @@ export const apiTagGetTagsParamCreator = async (sendRequest: BaseAPI["sendReques
localVarQueryParameter['group_name'] = groupName;
}
+ if (workspaceName) {
+ localVarQueryParameter['workspace_name'] = workspaceName;
+ }
+
if (groupId) {
localVarQueryParameter['group_id'] = groupId;
}
+ if (workspaceId) {
+ localVarQueryParameter['workspace_id'] = workspaceId;
+ }
+
if (registeredWith) {
localVarQueryParameter['registered_with'] = registeredWith;
}
diff --git a/packages/host-inventory/src/ApiViewsCloneView/index.ts b/packages/host-inventory/src/ApiViewsCloneView/index.ts
new file mode 100644
index 000000000..efedff661
--- /dev/null
+++ b/packages/host-inventory/src/ApiViewsCloneView/index.ts
@@ -0,0 +1,72 @@
+// @ts-ignore
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
+// @ts-ignore
+import { COLLECTION_FORMATS, RequiredError, AuthTypeEnum, DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+// @ts-ignore
+import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
+import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
+
+// @ts-ignore
+import type { ViewOut } from '../types';
+
+
+export type ApiViewsCloneViewParams = {
+ /**
+ * View ID.
+ * @type { string }
+ * @memberof ApiViewsCloneViewApi
+ */
+ viewId: string,
+ options?: AxiosRequestConfig
+}
+
+export type ApiViewsCloneViewReturnType = ViewOut;
+
+const isApiViewsCloneViewObjectParams = (params: [ApiViewsCloneViewParams] | unknown[]): params is [ApiViewsCloneViewParams] => {
+ const l = params.length === 1
+ if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
+ return true && Object.prototype.hasOwnProperty.call(params[0], 'viewId')
+ }
+ return false
+}
+/**
+* Creates a copy of any visible view (including system views) as a new private view owned by the requesting user. The cloned view name is prefixed with \"Copy of \". Required permissions: inventory:views:write NOTE: This endpoint is not yet implemented and will return HTTP 501.
+* @summary Clone an inventory view
+* @param {ApiViewsCloneViewParams} config with all available params.
+* @param {*} [options] Override http request option.
+* @throws {RequiredError}
+*/
+export const apiViewsCloneViewParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiViewsCloneViewParams] | [string, AxiosRequestConfig])) => {
+ const params = isApiViewsCloneViewObjectParams(config) ? config[0] : ['viewId', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiViewsCloneViewParams;
+ const { viewId, options = {} } = params;
+ const localVarPath = `/beta/views/{view_id}/clone`
+ .replace(`{${"view_id"}}`, encodeURIComponent(String(viewId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ const localVarRequestOptions = { method: 'POST' as Method, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers};
+
+ const args = {
+ urlObj: localVarUrlObj,
+ options: localVarRequestOptions,
+ auth:[
+ {
+ // authentication ApiKeyAuth required
+ // in header with key required
+ authType: AuthTypeEnum.InHeader,
+ authKey: "x-rh-identity"
+ }
+ ]
+ };
+
+ return sendRequest(Promise.resolve(args));
+}
+
+export default apiViewsCloneViewParamCreator;
diff --git a/packages/host-inventory/src/ApiViewsCreateView/index.ts b/packages/host-inventory/src/ApiViewsCreateView/index.ts
new file mode 100644
index 000000000..86abc5fb0
--- /dev/null
+++ b/packages/host-inventory/src/ApiViewsCreateView/index.ts
@@ -0,0 +1,74 @@
+// @ts-ignore
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
+// @ts-ignore
+import { COLLECTION_FORMATS, RequiredError, AuthTypeEnum, DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+// @ts-ignore
+import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
+import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
+
+// @ts-ignore
+import type { ViewIn, ViewOut } from '../types';
+
+
+export type ApiViewsCreateViewParams = {
+ /**
+ * Data required to create a new inventory view.
+ * @type { ViewIn }
+ * @memberof ApiViewsCreateViewApi
+ */
+ viewIn: ViewIn,
+ options?: AxiosRequestConfig
+}
+
+export type ApiViewsCreateViewReturnType = ViewOut;
+
+const isApiViewsCreateViewObjectParams = (params: [ApiViewsCreateViewParams] | unknown[]): params is [ApiViewsCreateViewParams] => {
+ const l = params.length === 1
+ if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
+ return true && Object.prototype.hasOwnProperty.call(params[0], 'viewIn')
+ }
+ return false
+}
+/**
+* Creates a new inventory view with the provided name and configuration. The view is owned by the requesting user. Required permissions: inventory:views:write NOTE: This endpoint is not yet implemented and will return HTTP 501.
+* @summary Create a new inventory view
+* @param {ApiViewsCreateViewParams} config with all available params.
+* @param {*} [options] Override http request option.
+* @throws {RequiredError}
+*/
+export const apiViewsCreateViewParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiViewsCreateViewParams] | [ViewIn, AxiosRequestConfig])) => {
+ const params = isApiViewsCreateViewObjectParams(config) ? config[0] : ['viewIn', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiViewsCreateViewParams;
+ const { viewIn, options = {} } = params;
+ const localVarPath = `/beta/views`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ const localVarRequestOptions = { method: 'POST' as Method, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers};
+
+ const args = {
+ urlObj: localVarUrlObj,
+ options: localVarRequestOptions,
+ serializeData: viewIn,
+ auth:[
+ {
+ // authentication ApiKeyAuth required
+ // in header with key required
+ authType: AuthTypeEnum.InHeader,
+ authKey: "x-rh-identity"
+ }
+ ]
+ };
+
+ return sendRequest(Promise.resolve(args));
+}
+
+export default apiViewsCreateViewParamCreator;
diff --git a/packages/host-inventory/src/ApiViewsDeleteView/index.ts b/packages/host-inventory/src/ApiViewsDeleteView/index.ts
new file mode 100644
index 000000000..19bb4ef2c
--- /dev/null
+++ b/packages/host-inventory/src/ApiViewsDeleteView/index.ts
@@ -0,0 +1,72 @@
+// @ts-ignore
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
+// @ts-ignore
+import { COLLECTION_FORMATS, RequiredError, AuthTypeEnum, DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+// @ts-ignore
+import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
+import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
+
+// @ts-ignore
+import type { } from '../types';
+
+
+export type ApiViewsDeleteViewParams = {
+ /**
+ * View ID.
+ * @type { string }
+ * @memberof ApiViewsDeleteViewApi
+ */
+ viewId: string,
+ options?: AxiosRequestConfig
+}
+
+export type ApiViewsDeleteViewReturnType = void;
+
+const isApiViewsDeleteViewObjectParams = (params: [ApiViewsDeleteViewParams] | unknown[]): params is [ApiViewsDeleteViewParams] => {
+ const l = params.length === 1
+ if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
+ return true && Object.prototype.hasOwnProperty.call(params[0], 'viewId')
+ }
+ return false
+}
+/**
+* Deletes an existing inventory view. Only the view creator can delete a view. System views cannot be deleted. Required permissions: inventory:views:write NOTE: This endpoint is not yet implemented and will return HTTP 501.
+* @summary Delete an inventory view
+* @param {ApiViewsDeleteViewParams} config with all available params.
+* @param {*} [options] Override http request option.
+* @throws {RequiredError}
+*/
+export const apiViewsDeleteViewParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiViewsDeleteViewParams] | [string, AxiosRequestConfig])) => {
+ const params = isApiViewsDeleteViewObjectParams(config) ? config[0] : ['viewId', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiViewsDeleteViewParams;
+ const { viewId, options = {} } = params;
+ const localVarPath = `/beta/views/{view_id}`
+ .replace(`{${"view_id"}}`, encodeURIComponent(String(viewId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ const localVarRequestOptions = { method: 'DELETE' as Method, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers};
+
+ const args = {
+ urlObj: localVarUrlObj,
+ options: localVarRequestOptions,
+ auth:[
+ {
+ // authentication ApiKeyAuth required
+ // in header with key required
+ authType: AuthTypeEnum.InHeader,
+ authKey: "x-rh-identity"
+ }
+ ]
+ };
+
+ return sendRequest(Promise.resolve(args));
+}
+
+export default apiViewsDeleteViewParamCreator;
diff --git a/packages/host-inventory/src/ApiViewsGetViewById/index.ts b/packages/host-inventory/src/ApiViewsGetViewById/index.ts
new file mode 100644
index 000000000..ceee6ffae
--- /dev/null
+++ b/packages/host-inventory/src/ApiViewsGetViewById/index.ts
@@ -0,0 +1,72 @@
+// @ts-ignore
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
+// @ts-ignore
+import { COLLECTION_FORMATS, RequiredError, AuthTypeEnum, DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+// @ts-ignore
+import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
+import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
+
+// @ts-ignore
+import type { ViewOut } from '../types';
+
+
+export type ApiViewsGetViewByIdParams = {
+ /**
+ * View ID.
+ * @type { string }
+ * @memberof ApiViewsGetViewByIdApi
+ */
+ viewId: string,
+ options?: AxiosRequestConfig
+}
+
+export type ApiViewsGetViewByIdReturnType = ViewOut;
+
+const isApiViewsGetViewByIdObjectParams = (params: [ApiViewsGetViewByIdParams] | unknown[]): params is [ApiViewsGetViewByIdParams] => {
+ const l = params.length === 1
+ if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
+ return true && Object.prototype.hasOwnProperty.call(params[0], 'viewId')
+ }
+ return false
+}
+/**
+* Returns the full details and configuration for a single inventory view. The view must be visible to the requesting user. Required permissions: inventory:views:read NOTE: This endpoint is not yet implemented and will return HTTP 501.
+* @summary Get a single inventory view
+* @param {ApiViewsGetViewByIdParams} config with all available params.
+* @param {*} [options] Override http request option.
+* @throws {RequiredError}
+*/
+export const apiViewsGetViewByIdParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiViewsGetViewByIdParams] | [string, AxiosRequestConfig])) => {
+ const params = isApiViewsGetViewByIdObjectParams(config) ? config[0] : ['viewId', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiViewsGetViewByIdParams;
+ const { viewId, options = {} } = params;
+ const localVarPath = `/beta/views/{view_id}`
+ .replace(`{${"view_id"}}`, encodeURIComponent(String(viewId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ const localVarRequestOptions = { method: 'GET' as Method, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers};
+
+ const args = {
+ urlObj: localVarUrlObj,
+ options: localVarRequestOptions,
+ auth:[
+ {
+ // authentication ApiKeyAuth required
+ // in header with key required
+ authType: AuthTypeEnum.InHeader,
+ authKey: "x-rh-identity"
+ }
+ ]
+ };
+
+ return sendRequest(Promise.resolve(args));
+}
+
+export default apiViewsGetViewByIdParamCreator;
diff --git a/packages/host-inventory/src/ApiViewsGetViewsList/index.ts b/packages/host-inventory/src/ApiViewsGetViewsList/index.ts
new file mode 100644
index 000000000..0aae02a91
--- /dev/null
+++ b/packages/host-inventory/src/ApiViewsGetViewsList/index.ts
@@ -0,0 +1,85 @@
+// @ts-ignore
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
+// @ts-ignore
+import { COLLECTION_FORMATS, RequiredError, AuthTypeEnum, DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+// @ts-ignore
+import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
+import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
+
+// @ts-ignore
+import type { ViewsListOut } from '../types';
+
+
+export type ApiViewsGetViewsListParams = {
+ /**
+ * A number of items to return per page.
+ * @type { number }
+ * @memberof ApiViewsGetViewsListApi
+ */
+ perPage?: number,
+ /**
+ * A page number of the items to return.
+ * @type { number }
+ * @memberof ApiViewsGetViewsListApi
+ */
+ page?: number,
+ options?: AxiosRequestConfig
+}
+
+export type ApiViewsGetViewsListReturnType = ViewsListOut;
+
+const isApiViewsGetViewsListObjectParams = (params: [ApiViewsGetViewsListParams] | unknown[]): params is [ApiViewsGetViewsListParams] => {
+ const l = params.length === 1
+ if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
+ return true
+ }
+ return false
+}
+/**
+* Read the list of all inventory views visible to the requesting user. This includes system views, org-wide views, and private views owned by the requester. Required permissions: inventory:views:read NOTE: This endpoint is not yet implemented and will return HTTP 501.
+* @summary Read the list of inventory views
+* @param {ApiViewsGetViewsListParams} config with all available params.
+* @param {*} [options] Override http request option.
+* @throws {RequiredError}
+*/
+export const apiViewsGetViewsListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiViewsGetViewsListParams] | [number, number, AxiosRequestConfig])) => {
+ const params = isApiViewsGetViewsListObjectParams(config) ? config[0] : ['perPage', 'page', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiViewsGetViewsListParams;
+ const { perPage, page, options = {} } = params;
+ const localVarPath = `/beta/views`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ const localVarRequestOptions = { method: 'GET' as Method, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (perPage !== undefined) {
+ localVarQueryParameter['per_page'] = perPage;
+ }
+
+ if (page !== undefined) {
+ localVarQueryParameter['page'] = page;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers};
+
+ const args = {
+ urlObj: localVarUrlObj,
+ options: localVarRequestOptions,
+ auth:[
+ {
+ // authentication ApiKeyAuth required
+ // in header with key required
+ authType: AuthTypeEnum.InHeader,
+ authKey: "x-rh-identity"
+ }
+ ]
+ };
+
+ return sendRequest(Promise.resolve(args));
+}
+
+export default apiViewsGetViewsListParamCreator;
diff --git a/packages/host-inventory/src/ApiViewsUpdateView/index.ts b/packages/host-inventory/src/ApiViewsUpdateView/index.ts
new file mode 100644
index 000000000..6dba1fa32
--- /dev/null
+++ b/packages/host-inventory/src/ApiViewsUpdateView/index.ts
@@ -0,0 +1,81 @@
+// @ts-ignore
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
+// @ts-ignore
+import { COLLECTION_FORMATS, RequiredError, AuthTypeEnum, DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+// @ts-ignore
+import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
+import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
+
+// @ts-ignore
+import type { ViewOut, ViewPatch } from '../types';
+
+
+export type ApiViewsUpdateViewParams = {
+ /**
+ * View ID.
+ * @type { string }
+ * @memberof ApiViewsUpdateViewApi
+ */
+ viewId: string,
+ /**
+ * Data with which to update the inventory view.
+ * @type { ViewPatch }
+ * @memberof ApiViewsUpdateViewApi
+ */
+ viewPatch: ViewPatch,
+ options?: AxiosRequestConfig
+}
+
+export type ApiViewsUpdateViewReturnType = ViewOut;
+
+const isApiViewsUpdateViewObjectParams = (params: [ApiViewsUpdateViewParams] | unknown[]): params is [ApiViewsUpdateViewParams] => {
+ const l = params.length === 1
+ if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
+ return true && Object.prototype.hasOwnProperty.call(params[0], 'viewId') && Object.prototype.hasOwnProperty.call(params[0], 'viewPatch')
+ }
+ return false
+}
+/**
+* Updates an existing inventory view\'s name, description, configuration, or sharing settings. Only the view creator can update a view. System views cannot be updated. Required permissions: inventory:views:write NOTE: This endpoint is not yet implemented and will return HTTP 501.
+* @summary Update an inventory view
+* @param {ApiViewsUpdateViewParams} config with all available params.
+* @param {*} [options] Override http request option.
+* @throws {RequiredError}
+*/
+export const apiViewsUpdateViewParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ApiViewsUpdateViewParams] | [string, ViewPatch, AxiosRequestConfig])) => {
+ const params = isApiViewsUpdateViewObjectParams(config) ? config[0] : ['viewId', 'viewPatch', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ApiViewsUpdateViewParams;
+ const { viewId, viewPatch, options = {} } = params;
+ const localVarPath = `/beta/views/{view_id}`
+ .replace(`{${"view_id"}}`, encodeURIComponent(String(viewId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ const localVarRequestOptions = { method: 'PUT' as Method, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers};
+
+ const args = {
+ urlObj: localVarUrlObj,
+ options: localVarRequestOptions,
+ serializeData: viewPatch,
+ auth:[
+ {
+ // authentication ApiKeyAuth required
+ // in header with key required
+ authType: AuthTypeEnum.InHeader,
+ authKey: "x-rh-identity"
+ }
+ ]
+ };
+
+ return sendRequest(Promise.resolve(args));
+}
+
+export default apiViewsUpdateViewParamCreator;
diff --git a/packages/host-inventory/src/api.ts b/packages/host-inventory/src/api.ts
index 992601a5f..ac654b47c 100644
--- a/packages/host-inventory/src/api.ts
+++ b/packages/host-inventory/src/api.ts
@@ -38,6 +38,12 @@ import {
apiSystemProfileGetSapSystem,
apiSystemProfileValidateSchema,
apiTagGetTags,
+ apiViewsCloneView,
+ apiViewsCreateView,
+ apiViewsDeleteView,
+ apiViewsGetViewById,
+ apiViewsGetViewsList,
+ apiViewsUpdateView,
} from './index';
@@ -77,6 +83,12 @@ const endpointList = {
apiSystemProfileGetSapSystem,
apiSystemProfileValidateSchema,
apiTagGetTags,
+ apiViewsCloneView,
+ apiViewsCreateView,
+ apiViewsDeleteView,
+ apiViewsGetViewById,
+ apiViewsGetViewsList,
+ apiViewsUpdateView,
};
diff --git a/packages/host-inventory/src/index.ts b/packages/host-inventory/src/index.ts
index 3f5cd4cd7..f277d6f2d 100644
--- a/packages/host-inventory/src/index.ts
+++ b/packages/host-inventory/src/index.ts
@@ -68,5 +68,17 @@ export { default as apiSystemProfileValidateSchema, type ApiSystemProfileValidat
export { default as apiTagGetTags, type ApiTagGetTagsReturnType } from './ApiTagGetTags'
+export { default as apiViewsCloneView, type ApiViewsCloneViewReturnType } from './ApiViewsCloneView'
+
+export { default as apiViewsCreateView, type ApiViewsCreateViewReturnType } from './ApiViewsCreateView'
+
+export { default as apiViewsDeleteView, type ApiViewsDeleteViewReturnType } from './ApiViewsDeleteView'
+
+export { default as apiViewsGetViewById, type ApiViewsGetViewByIdReturnType } from './ApiViewsGetViewById'
+
+export { default as apiViewsGetViewsList, type ApiViewsGetViewsListReturnType } from './ApiViewsGetViewsList'
+
+export { default as apiViewsUpdateView, type ApiViewsUpdateViewReturnType } from './ApiViewsUpdateView'
+
export * from './types'
diff --git a/packages/host-inventory/src/types/index.ts b/packages/host-inventory/src/types/index.ts
index 6d7512158..de88d43ac 100644
--- a/packages/host-inventory/src/types/index.ts
+++ b/packages/host-inventory/src/types/index.ts
@@ -98,7 +98,7 @@ export interface AdvisorAppData {
'low'?: number | null;
}
/**
- * Application data fields available for sorting in the /hosts-view endpoint. Use format `app_name:field_name` with the `order_by` parameter. **Advisor** - `advisor:recommendations` - Number of Advisor recommendations - `advisor:incidents` - Number of Advisor incidents **Vulnerability** - `vulnerability:total_cves` - Total CVE count - `vulnerability:critical_cves` - Critical severity CVEs **Patch** - `patch:advisories_rhsa_installable` - Number of RHSA installable advisories - `patch:packages_installable` - Number of installable packages **Remediations** - `remediations:remediations_plans` - Active remediation plans count **Compliance** - `compliance:last_scan` - Last compliance scan timestamp **Malware** - `malware:last_matches` - Malware matches count - `malware:last_scan` - Last malware scan timestamp
+ * Application data fields available for sorting in the /hosts-view endpoint. Use format `app_name:field_name` with the `order_by` parameter. **Advisor** - `advisor:recommendations` - Number of Advisor recommendations - `advisor:incidents` - Number of Advisor incidents - `advisor:critical` - Critical severity recommendations - `advisor:important` - Important severity recommendations - `advisor:moderate` - Moderate severity recommendations - `advisor:low` - Low severity recommendations **Vulnerability** - `vulnerability:total_cves` - Total CVE count - `vulnerability:critical_cves` - Critical severity CVEs - `vulnerability:high_severity_cves` - High severity CVEs - `vulnerability:cves_with_security_rules` - CVEs with security rules - `vulnerability:cves_with_known_exploits` - CVEs with known exploits **Patch** - `patch:advisories_rhsa_installable` - Number of RHSA installable advisories - `patch:advisories_rhba_installable` - Number of RHBA installable advisories - `patch:advisories_rhea_installable` - Number of RHEA installable advisories - `patch:advisories_other_installable` - Number of other installable advisories - `patch:advisories_rhsa_applicable` - Number of RHSA applicable advisories - `patch:advisories_rhba_applicable` - Number of RHBA applicable advisories - `patch:advisories_rhea_applicable` - Number of RHEA applicable advisories - `patch:advisories_other_applicable` - Number of other applicable advisories - `patch:packages_installable` - Number of installable packages - `patch:packages_applicable` - Number of applicable packages - `patch:packages_installed` - Number of installed packages - `patch:template_name` - Patch template name **Remediations** - `remediations:remediations_plans` - Active remediation plans count **Compliance** - `compliance:last_scan` - Last compliance scan timestamp - `compliance:policies_count` - Number of compliance policies **Malware** - `malware:last_matches` - Malware matches count - `malware:total_matches` - Total malware matches count - `malware:last_scan` - Last malware scan timestamp - `malware:last_status` - Last malware detection status
* @export
* @enum {string}
*/
@@ -106,14 +106,34 @@ export interface AdvisorAppData {
export const AppSortableFields = {
Advisorrecommendations: 'advisor:recommendations',
Advisorincidents: 'advisor:incidents',
+ Advisorcritical: 'advisor:critical',
+ Advisorimportant: 'advisor:important',
+ Advisormoderate: 'advisor:moderate',
+ Advisorlow: 'advisor:low',
VulnerabilitytotalCves: 'vulnerability:total_cves',
VulnerabilitycriticalCves: 'vulnerability:critical_cves',
+ VulnerabilityhighSeverityCves: 'vulnerability:high_severity_cves',
+ VulnerabilitycvesWithSecurityRules: 'vulnerability:cves_with_security_rules',
+ VulnerabilitycvesWithKnownExploits: 'vulnerability:cves_with_known_exploits',
PatchadvisoriesRhsaInstallable: 'patch:advisories_rhsa_installable',
+ PatchadvisoriesRhbaInstallable: 'patch:advisories_rhba_installable',
+ PatchadvisoriesRheaInstallable: 'patch:advisories_rhea_installable',
+ PatchadvisoriesOtherInstallable: 'patch:advisories_other_installable',
+ PatchadvisoriesRhsaApplicable: 'patch:advisories_rhsa_applicable',
+ PatchadvisoriesRhbaApplicable: 'patch:advisories_rhba_applicable',
+ PatchadvisoriesRheaApplicable: 'patch:advisories_rhea_applicable',
+ PatchadvisoriesOtherApplicable: 'patch:advisories_other_applicable',
PatchpackagesInstallable: 'patch:packages_installable',
+ PatchpackagesApplicable: 'patch:packages_applicable',
+ PatchpackagesInstalled: 'patch:packages_installed',
+ PatchtemplateName: 'patch:template_name',
RemediationsremediationsPlans: 'remediations:remediations_plans',
CompliancelastScan: 'compliance:last_scan',
+ CompliancepoliciesCount: 'compliance:policies_count',
MalwarelastMatches: 'malware:last_matches',
- MalwarelastScan: 'malware:last_scan'
+ MalwaretotalMatches: 'malware:total_matches',
+ MalwarelastScan: 'malware:last_scan',
+ MalwarelastStatus: 'malware:last_status'
} as const;
export type AppSortableFields = typeof AppSortableFields[keyof typeof AppSortableFields];
@@ -253,6 +273,12 @@ export interface ComplianceAppData {
* @memberof ComplianceAppData
*/
'policies'?: Array | null;
+ /**
+ * Number of compliance policies (computed from policies array length)
+ * @type {number}
+ * @memberof ComplianceAppData
+ */
+ 'policies_count'?: number;
/**
*
* @type {string}
@@ -784,6 +810,68 @@ export interface HostSystemProfileOut {
*/
'system_profile'?: SystemProfile;
}
+/**
+ * Combined sparse fieldset supporting both system_profile and application data fields. The `system_profile` key selects system profile fields, while all other keys select application data fields. The `app_data` key is an explicit shorthand to request all app data. When omitted, all application data is returned by default but no system_profile data is included.
+ * @export
+ * @interface HostViewCombinedFields
+ */
+export interface HostViewCombinedFields {
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'system_profile'?: { [key: string]: boolean; };
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'app_data'?: { [key: string]: boolean; };
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'advisor'?: { [key: string]: boolean; };
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'vulnerability'?: { [key: string]: boolean; };
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'patch'?: { [key: string]: boolean; };
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'remediations'?: { [key: string]: boolean; };
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'compliance'?: { [key: string]: boolean; };
+ /**
+ * Map of field names to include. Keys are field names, values are always true.
+ * @type {{ [key: string]: boolean; }}
+ * @memberof HostViewCombinedFields
+ */
+ 'malware'?: { [key: string]: boolean; };
+}
+/**
+ *
+ * @export
+ * @interface HostViewCombinedFilterValue
+ */
+export interface HostViewCombinedFilterValue {
+}
/**
* Supported comparison operators for application metrics filtering. **Value comparisons:** - `eq` - Equal to - `ne` - Not equal to - `gt` - Greater than - `lt` - Less than - `gte` - Greater than or equal to - `lte` - Less than or equal to **null checks:** - `nil` - Field is null/missing - `not_nil` - Field is not null/exists
* @export
@@ -2269,6 +2357,12 @@ export type SystemProfileDnfModuleStatusEnum = typeof SystemProfileDnfModuleStat
* @interface SystemProfileImageBuilder
*/
export interface SystemProfileImageBuilder {
+ /**
+ * The blueprint used to build the image deployed on this host
+ * @type {string}
+ * @memberof SystemProfileImageBuilder
+ */
+ 'blueprint_id'?: string;
/**
* The compliance policy that was used and applied during the image build
* @type {string}
@@ -3080,6 +3174,249 @@ export interface TagsOut {
*/
'results'?: { [key: string]: Array; };
}
+/**
+ * Configuration for a single column in a view.
+ * @export
+ * @interface ViewColumnConfig
+ */
+export interface ViewColumnConfig {
+ /**
+ * The column key identifier, e.g. \"insights_id\", \"compliance.last_scan\", \"advisor.recommendations\".
+ * @type {string}
+ * @memberof ViewColumnConfig
+ */
+ 'key': string;
+ /**
+ * Whether the column is visible in the view.
+ * @type {boolean}
+ * @memberof ViewColumnConfig
+ */
+ 'visible'?: boolean;
+}
+/**
+ * The full visual configuration for an inventory view, including column layout, sort order, and active filters.
+ * @export
+ * @interface ViewConfiguration
+ */
+export interface ViewConfiguration {
+ /**
+ * Ordered list of column configurations.
+ * @type {Array}
+ * @memberof ViewConfiguration
+ */
+ 'columns': Array;
+ /**
+ *
+ * @type {ViewSortConfig}
+ * @memberof ViewConfiguration
+ */
+ 'sort'?: ViewSortConfig;
+ /**
+ * Active filter criteria. Keys are filter names, values are arrays of selected filter values.
+ * @type {{ [key: string]: Array; }}
+ * @memberof ViewConfiguration
+ */
+ 'filters'?: { [key: string]: Array; };
+}
+/**
+ * Data required to create a new inventory view.
+ * @export
+ * @interface ViewIn
+ */
+export interface ViewIn {
+ /**
+ * The display name for the view.
+ * @type {string}
+ * @memberof ViewIn
+ */
+ 'name': string;
+ /**
+ * An optional description of the view.
+ * @type {string}
+ * @memberof ViewIn
+ */
+ 'description'?: string | null;
+ /**
+ *
+ * @type {ViewConfiguration}
+ * @memberof ViewIn
+ */
+ 'configuration': ViewConfiguration;
+ /**
+ * If true, the view is visible to all users in the organization. If false, only the creator can see it.
+ * @type {boolean}
+ * @memberof ViewIn
+ */
+ 'org_wide'?: boolean;
+}
+/**
+ * Full representation of an inventory view returned by the API.
+ * @export
+ * @interface ViewOut
+ */
+export interface ViewOut {
+ /**
+ * The unique identifier of the view.
+ * @type {string}
+ * @memberof ViewOut
+ */
+ 'id': string;
+ /**
+ * The organization ID that owns the view. null for system views.
+ * @type {string}
+ * @memberof ViewOut
+ */
+ 'org_id'?: string | null;
+ /**
+ * The display name for the view.
+ * @type {string}
+ * @memberof ViewOut
+ */
+ 'name': string;
+ /**
+ * An optional description of the view.
+ * @type {string}
+ * @memberof ViewOut
+ */
+ 'description'?: string | null;
+ /**
+ *
+ * @type {ViewConfiguration}
+ * @memberof ViewOut
+ */
+ 'configuration': ViewConfiguration;
+ /**
+ * Whether the view is visible to the entire organization.
+ * @type {boolean}
+ * @memberof ViewOut
+ */
+ 'org_wide': boolean;
+ /**
+ * True if this is a read-only system view (Red Hat preset). System views cannot be updated or deleted, but can be cloned.
+ * @type {boolean}
+ * @memberof ViewOut
+ */
+ 'is_system_view': boolean;
+ /**
+ * True if the requesting user is the creator of this view. Only the owner can update or delete a view.
+ * @type {boolean}
+ * @memberof ViewOut
+ */
+ 'is_owner': boolean;
+ /**
+ * The username of the view creator.
+ * @type {string}
+ * @memberof ViewOut
+ */
+ 'created_by'?: string | null;
+ /**
+ * Timestamp when the view was created.
+ * @type {string}
+ * @memberof ViewOut
+ */
+ 'created_at': string;
+ /**
+ * Timestamp when the view was last updated.
+ * @type {string}
+ * @memberof ViewOut
+ */
+ 'updated_at': string;
+}
+/**
+ * Data for updating an existing inventory view. All fields are optional.
+ * @export
+ * @interface ViewPatch
+ */
+export interface ViewPatch {
+ /**
+ * The display name for the view.
+ * @type {string}
+ * @memberof ViewPatch
+ */
+ 'name'?: string;
+ /**
+ * An optional description of the view.
+ * @type {string}
+ * @memberof ViewPatch
+ */
+ 'description'?: string | null;
+ /**
+ *
+ * @type {ViewConfiguration}
+ * @memberof ViewPatch
+ */
+ 'configuration'?: ViewConfiguration;
+ /**
+ * If true, the view is visible to all users in the organization. If false, only the creator can see it.
+ * @type {boolean}
+ * @memberof ViewPatch
+ */
+ 'org_wide'?: boolean;
+}
+/**
+ * Sort configuration for a view.
+ * @export
+ * @interface ViewSortConfig
+ */
+export interface ViewSortConfig {
+ /**
+ * The column key to sort by.
+ * @type {string}
+ * @memberof ViewSortConfig
+ */
+ 'key': string;
+ /**
+ * The sort direction.
+ * @type {string}
+ * @memberof ViewSortConfig
+ */
+ 'direction'?: ViewSortConfigDirectionEnum;
+}
+
+export const ViewSortConfigDirectionEnum = {
+ Asc: 'asc',
+ Desc: 'desc'
+} as const;
+
+export type ViewSortConfigDirectionEnum = typeof ViewSortConfigDirectionEnum[keyof typeof ViewSortConfigDirectionEnum];
+
+/**
+ * A paginated list of inventory views.
+ * @export
+ * @interface ViewsListOut
+ */
+export interface ViewsListOut {
+ /**
+ * The number of items on the current page
+ * @type {number}
+ * @memberof ViewsListOut
+ */
+ 'count': number;
+ /**
+ * The page number
+ * @type {number}
+ * @memberof ViewsListOut
+ */
+ 'page': number;
+ /**
+ * The number of items to return per page
+ * @type {number}
+ * @memberof ViewsListOut
+ */
+ 'per_page': number;
+ /**
+ * Total number of items
+ * @type {number}
+ * @memberof ViewsListOut
+ */
+ 'total': number;
+ /**
+ * List of inventory views.
+ * @type {Array}
+ * @memberof ViewsListOut
+ */
+ 'results': Array;
+}
/**
*
* @export
diff --git a/packages/insights/src/RuleSystemsDetailList/index.ts b/packages/insights/src/RuleSystemsDetailList/index.ts
index 99673966d..aa3bb6173 100644
--- a/packages/insights/src/RuleSystemsDetailList/index.ts
+++ b/packages/insights/src/RuleSystemsDetailList/index.ts
@@ -68,10 +68,10 @@ export type RuleSystemsDetailListParams = {
offset?: number,
/**
* Display only systems with these versions of RHEL
- * @type { Array }
+ * @type { Array }
* @memberof RuleSystemsDetailListApi
*/
- rhelVersion?: Array,
+ rhelVersion?: Array,
/**
* Order by this field
* @type { RuleSystemsDetailListSortEnum }
@@ -92,58 +92,6 @@ export type RuleSystemsDetailListParams = {
tags?: Array,
options?: AxiosRequestConfig
}
-/**
- * @export
- * @enum {string}
- */
-export const RuleSystemsDetailListRhelVersionEnum = {
- _100: '10.0',
- _101: '10.1',
- _102: '10.2',
- _60: '6.0',
- _61: '6.1',
- _610: '6.10',
- _62: '6.2',
- _63: '6.3',
- _64: '6.4',
- _65: '6.5',
- _66: '6.6',
- _67: '6.7',
- _68: '6.8',
- _69: '6.9',
- _70: '7.0',
- _71: '7.1',
- _710: '7.10',
- _72: '7.2',
- _73: '7.3',
- _74: '7.4',
- _75: '7.5',
- _76: '7.6',
- _77: '7.7',
- _78: '7.8',
- _79: '7.9',
- _80: '8.0',
- _81: '8.1',
- _810: '8.10',
- _82: '8.2',
- _83: '8.3',
- _84: '8.4',
- _85: '8.5',
- _86: '8.6',
- _87: '8.7',
- _88: '8.8',
- _89: '8.9',
- _90: '9.0',
- _91: '9.1',
- _92: '9.2',
- _93: '9.3',
- _94: '9.4',
- _95: '9.5',
- _96: '9.6',
- _97: '9.7',
- _98: '9.8'
-} as const;
-export type RuleSystemsDetailListRhelVersionEnum = typeof RuleSystemsDetailListRhelVersionEnum[keyof typeof RuleSystemsDetailListRhelVersionEnum];
/**
* @export
* @enum {string}
@@ -198,7 +146,7 @@ const isRuleSystemsDetailListObjectParams = (params: [RuleSystemsDetailListParam
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const ruleSystemsDetailListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RuleSystemsDetailListParams] | [string, boolean, boolean, Array, boolean, Array, number, string, number, Array, RuleSystemsDetailListSortEnum, RuleSystemsDetailListSystemTypeEnum, Array, AxiosRequestConfig])) => {
+export const ruleSystemsDetailListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RuleSystemsDetailListParams] | [string, boolean, boolean, Array, boolean, Array, number, string, number, Array, RuleSystemsDetailListSortEnum, RuleSystemsDetailListSystemTypeEnum, Array, AxiosRequestConfig])) => {
const params = isRuleSystemsDetailListObjectParams(config) ? config[0] : ['ruleId', 'filterSystemProfileAnsible', 'filterSystemProfileMssql', 'filterSystemProfileSapSidsContains', 'filterSystemProfileSapSystem', 'groups', 'limit', 'name', 'offset', 'rhelVersion', 'sort', 'systemType', 'tags', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as RuleSystemsDetailListParams;
const { ruleId, filterSystemProfileAnsible, filterSystemProfileMssql, filterSystemProfileSapSidsContains, filterSystemProfileSapSystem, groups, limit, name, offset, rhelVersion, sort, systemType, tags, options = {} } = params;
const localVarPath = `/api/insights/v1/rule/{rule_id}/systems_detail/`
diff --git a/packages/insights/src/RuleSystemsRetrieve/index.ts b/packages/insights/src/RuleSystemsRetrieve/index.ts
index a4108379f..d39cffdcf 100644
--- a/packages/insights/src/RuleSystemsRetrieve/index.ts
+++ b/packages/insights/src/RuleSystemsRetrieve/index.ts
@@ -62,10 +62,10 @@ export type RuleSystemsRetrieveParams = {
name?: string,
/**
* Display only systems with these versions of RHEL
- * @type { Array }
+ * @type { Array }
* @memberof RuleSystemsRetrieveApi
*/
- rhelVersion?: Array,
+ rhelVersion?: Array,
/**
* Order by this field
* @type { Array }
@@ -101,58 +101,6 @@ export const RuleSystemsRetrieveFormatEnum = {
Json: 'json'
} as const;
export type RuleSystemsRetrieveFormatEnum = typeof RuleSystemsRetrieveFormatEnum[keyof typeof RuleSystemsRetrieveFormatEnum];
-/**
- * @export
- * @enum {string}
- */
-export const RuleSystemsRetrieveRhelVersionEnum = {
- _100: '10.0',
- _101: '10.1',
- _102: '10.2',
- _60: '6.0',
- _61: '6.1',
- _610: '6.10',
- _62: '6.2',
- _63: '6.3',
- _64: '6.4',
- _65: '6.5',
- _66: '6.6',
- _67: '6.7',
- _68: '6.8',
- _69: '6.9',
- _70: '7.0',
- _71: '7.1',
- _710: '7.10',
- _72: '7.2',
- _73: '7.3',
- _74: '7.4',
- _75: '7.5',
- _76: '7.6',
- _77: '7.7',
- _78: '7.8',
- _79: '7.9',
- _80: '8.0',
- _81: '8.1',
- _810: '8.10',
- _82: '8.2',
- _83: '8.3',
- _84: '8.4',
- _85: '8.5',
- _86: '8.6',
- _87: '8.7',
- _88: '8.8',
- _89: '8.9',
- _90: '9.0',
- _91: '9.1',
- _92: '9.2',
- _93: '9.3',
- _94: '9.4',
- _95: '9.5',
- _96: '9.6',
- _97: '9.7',
- _98: '9.8'
-} as const;
-export type RuleSystemsRetrieveRhelVersionEnum = typeof RuleSystemsRetrieveRhelVersionEnum[keyof typeof RuleSystemsRetrieveRhelVersionEnum];
/**
* @export
* @enum {string}
@@ -206,7 +154,7 @@ const isRuleSystemsRetrieveObjectParams = (params: [RuleSystemsRetrieveParams] |
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const ruleSystemsRetrieveParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RuleSystemsRetrieveParams] | [string, boolean, boolean, Array, boolean, RuleSystemsRetrieveFormatEnum, Array, string, Array, Array, RuleSystemsRetrieveSystemTypeEnum, Array, Array, AxiosRequestConfig])) => {
+export const ruleSystemsRetrieveParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RuleSystemsRetrieveParams] | [string, boolean, boolean, Array, boolean, RuleSystemsRetrieveFormatEnum, Array, string, Array, Array, RuleSystemsRetrieveSystemTypeEnum, Array, Array, AxiosRequestConfig])) => {
const params = isRuleSystemsRetrieveObjectParams(config) ? config[0] : ['ruleId', 'filterSystemProfileAnsible', 'filterSystemProfileMssql', 'filterSystemProfileSapSidsContains', 'filterSystemProfileSapSystem', 'format', 'groups', 'name', 'rhelVersion', 'sort', 'systemType', 'tags', 'updateMethod', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as RuleSystemsRetrieveParams;
const { ruleId, filterSystemProfileAnsible, filterSystemProfileMssql, filterSystemProfileSapSidsContains, filterSystemProfileSapSystem, format, groups, name, rhelVersion, sort, systemType, tags, updateMethod, options = {} } = params;
const localVarPath = `/api/insights/v1/rule/{rule_id}/systems/`
diff --git a/packages/insights/src/SystemList/index.ts b/packages/insights/src/SystemList/index.ts
index aa97e815e..ea48f1f03 100644
--- a/packages/insights/src/SystemList/index.ts
+++ b/packages/insights/src/SystemList/index.ts
@@ -86,10 +86,10 @@ export type SystemListParams = {
pathway?: string,
/**
* Display only systems with these versions of RHEL
- * @type { Array }
+ * @type { Array }
* @memberof SystemListApi
*/
- rhelVersion?: Array,
+ rhelVersion?: Array,
/**
* Order by this field
* @type { SystemListSortEnum }
@@ -130,58 +130,6 @@ export const SystemListHitsEnum = {
Yes: 'yes'
} as const;
export type SystemListHitsEnum = typeof SystemListHitsEnum[keyof typeof SystemListHitsEnum];
-/**
- * @export
- * @enum {string}
- */
-export const SystemListRhelVersionEnum = {
- _100: '10.0',
- _101: '10.1',
- _102: '10.2',
- _60: '6.0',
- _61: '6.1',
- _610: '6.10',
- _62: '6.2',
- _63: '6.3',
- _64: '6.4',
- _65: '6.5',
- _66: '6.6',
- _67: '6.7',
- _68: '6.8',
- _69: '6.9',
- _70: '7.0',
- _71: '7.1',
- _710: '7.10',
- _72: '7.2',
- _73: '7.3',
- _74: '7.4',
- _75: '7.5',
- _76: '7.6',
- _77: '7.7',
- _78: '7.8',
- _79: '7.9',
- _80: '8.0',
- _81: '8.1',
- _810: '8.10',
- _82: '8.2',
- _83: '8.3',
- _84: '8.4',
- _85: '8.5',
- _86: '8.6',
- _87: '8.7',
- _88: '8.8',
- _89: '8.9',
- _90: '9.0',
- _91: '9.1',
- _92: '9.2',
- _93: '9.3',
- _94: '9.4',
- _95: '9.5',
- _96: '9.6',
- _97: '9.7',
- _98: '9.8'
-} as const;
-export type SystemListRhelVersionEnum = typeof SystemListRhelVersionEnum[keyof typeof SystemListRhelVersionEnum];
/**
* @export
* @enum {string}
@@ -243,7 +191,7 @@ const isSystemListObjectParams = (params: [SystemListParams] | unknown[]): param
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const systemListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([SystemListParams] | [string, boolean, boolean, Array, boolean, Array, boolean, Array, boolean, number, number, string, Array, SystemListSortEnum, SystemListSystemTypeEnum, Array, Array, AxiosRequestConfig])) => {
+export const systemListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([SystemListParams] | [string, boolean, boolean, Array, boolean, Array, boolean, Array, boolean, number, number, string, Array, SystemListSortEnum, SystemListSystemTypeEnum, Array, Array, AxiosRequestConfig])) => {
const params = isSystemListObjectParams(config) ? config[0] : ['displayName', 'filterSystemProfileAnsible', 'filterSystemProfileMssql', 'filterSystemProfileSapSidsContains', 'filterSystemProfileSapSystem', 'groups', 'hasDisabledRecommendation', 'hits', 'incident', 'limit', 'offset', 'pathway', 'rhelVersion', 'sort', 'systemType', 'tags', 'updateMethod', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as SystemListParams;
const { displayName, filterSystemProfileAnsible, filterSystemProfileMssql, filterSystemProfileSapSidsContains, filterSystemProfileSapSystem, groups, hasDisabledRecommendation, hits, incident, limit, offset, pathway, rhelVersion, sort, systemType, tags, updateMethod, options = {} } = params;
const localVarPath = `/api/insights/v1/system/`;
diff --git a/packages/notifications/src/DrawerResourceV1GetDrawerEntries/index.ts b/packages/notifications/src/DrawerResourceV1GetDrawerEntries/index.ts
index fe28067fd..3a88d8c3d 100644
--- a/packages/notifications/src/DrawerResourceV1GetDrawerEntries/index.ts
+++ b/packages/notifications/src/DrawerResourceV1GetDrawerEntries/index.ts
@@ -91,7 +91,7 @@ const isDrawerResourceV1GetDrawerEntriesObjectParams = (params: [DrawerResourceV
return false
}
/**
-* Allowed `sort_by` fields are `bundleIds`, `applicationIds`, `eventTypeIds`, `startTime`, `endTime` and `read`. The ordering can be optionally specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `desc` for the `created` field and to `asc` for all other fields.
+* Retrieve paginated drawer notifications with optional filtering and sorting. Available filters: `bundleIds`, `appIds`, `eventTypeIds`, `startDate`, `endDate`, `readStatus`. Allowed `sort_by` fields: `bundle`, `application`, `event`, `created`. Sorting can be specified by appending `:asc` or `:desc` to the field, e.g. `bundle:desc`. Defaults to `created:desc`.
* @summary Retrieve drawer notifications entries.
* @param {DrawerResourceV1GetDrawerEntriesParams} config with all available params.
* @param {*} [options] Override http request option.
diff --git a/packages/notifications/src/types/index.ts b/packages/notifications/src/types/index.ts
index f7ed713ec..8d5c9519a 100644
--- a/packages/notifications/src/types/index.ts
+++ b/packages/notifications/src/types/index.ts
@@ -625,6 +625,12 @@ export interface EventType {
* @memberof EventType
*/
'restrict_to_recipients_integrations'?: any;
+ /**
+ *
+ * @type {any}
+ * @memberof EventType
+ */
+ 'included_in_drawer'?: any;
/**
*
* @type {any}
diff --git a/packages/notifications/src/v2/types/index.ts b/packages/notifications/src/v2/types/index.ts
index 586b969a2..8ea1b9bb4 100644
--- a/packages/notifications/src/v2/types/index.ts
+++ b/packages/notifications/src/v2/types/index.ts
@@ -356,6 +356,12 @@ export interface EventType {
* @memberof EventType
*/
'restrict_to_recipients_integrations'?: any;
+ /**
+ *
+ * @type {any}
+ * @memberof EventType
+ */
+ 'included_in_drawer'?: any;
/**
*
* @type {any}
diff --git a/packages/patch/src/.openapi-generator/FILES b/packages/patch/src/.openapi-generator/FILES
index 2a43a7a3e..11e93cdd2 100644
--- a/packages/patch/src/.openapi-generator/FILES
+++ b/packages/patch/src/.openapi-generator/FILES
@@ -23,6 +23,7 @@ ListSystemAdvisoriesIds/index.ts
ListSystemTags/index.ts
ListSystems/index.ts
ListSystemsIds/index.ts
+ListSystemsPost/index.ts
ListTemplate/index.ts
ListTemplateSystems/index.ts
ListTemplateSystemsIds/index.ts
diff --git a/packages/patch/src/ExportAdvisories/index.ts b/packages/patch/src/ExportAdvisories/index.ts
index 2720d6ec2..6da6b647c 100644
--- a/packages/patch/src/ExportAdvisories/index.ts
+++ b/packages/patch/src/ExportAdvisories/index.ts
@@ -56,6 +56,12 @@ export type ExportAdvisoriesParams = {
filterSeverity?: number,
/**
* Filter
+ * @type { ExportAdvisoriesFilterSeverityNameEnum }
+ * @memberof ExportAdvisoriesApi
+ */
+ filterSeverityName?: ExportAdvisoriesFilterSeverityNameEnum,
+ /**
+ * Filter
* @type { number }
* @memberof ExportAdvisoriesApi
*/
@@ -75,6 +81,17 @@ export const ExportAdvisoriesFilterAdvisoryTypeNameEnum = {
Security: 'security'
} as const;
export type ExportAdvisoriesFilterAdvisoryTypeNameEnum = typeof ExportAdvisoriesFilterAdvisoryTypeNameEnum[keyof typeof ExportAdvisoriesFilterAdvisoryTypeNameEnum];
+/**
+ * @export
+ * @enum {string}
+ */
+export const ExportAdvisoriesFilterSeverityNameEnum = {
+ Low: 'Low',
+ Medium: 'Medium',
+ High: 'High',
+ Critical: 'Critical'
+} as const;
+export type ExportAdvisoriesFilterSeverityNameEnum = typeof ExportAdvisoriesFilterSeverityNameEnum[keyof typeof ExportAdvisoriesFilterSeverityNameEnum];
export type ExportAdvisoriesReturnType = Array;
@@ -92,9 +109,9 @@ const isExportAdvisoriesObjectParams = (params: [ExportAdvisoriesParams] | unkno
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const exportAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ExportAdvisoriesParams] | [string, string, string, string, string, ExportAdvisoriesFilterAdvisoryTypeNameEnum, number, number, AxiosRequestConfig])) => {
- const params = isExportAdvisoriesObjectParams(config) ? config[0] : ['search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'filterApplicableSystems', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ExportAdvisoriesParams;
- const { search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, filterApplicableSystems, options = {} } = params;
+export const exportAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ExportAdvisoriesParams] | [string, string, string, string, string, ExportAdvisoriesFilterAdvisoryTypeNameEnum, number, ExportAdvisoriesFilterSeverityNameEnum, number, AxiosRequestConfig])) => {
+ const params = isExportAdvisoriesObjectParams(config) ? config[0] : ['search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'filterSeverityName', 'filterApplicableSystems', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ExportAdvisoriesParams;
+ const { search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, filterSeverityName, filterApplicableSystems, options = {} } = params;
const localVarPath = `/export/advisories`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -130,6 +147,10 @@ export const exportAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendReq
localVarQueryParameter['filter[severity]'] = filterSeverity;
}
+ if (filterSeverityName !== undefined) {
+ localVarQueryParameter['filter[severity_name]'] = filterSeverityName;
+ }
+
if (filterApplicableSystems !== undefined) {
localVarQueryParameter['filter[applicable_systems]'] = filterApplicableSystems;
}
diff --git a/packages/patch/src/ExportSystemAdvisories/index.ts b/packages/patch/src/ExportSystemAdvisories/index.ts
index c51222779..03dc32317 100644
--- a/packages/patch/src/ExportSystemAdvisories/index.ts
+++ b/packages/patch/src/ExportSystemAdvisories/index.ts
@@ -60,6 +60,12 @@ export type ExportSystemAdvisoriesParams = {
* @memberof ExportSystemAdvisoriesApi
*/
filterSeverity?: number,
+ /**
+ * Filter
+ * @type { ExportSystemAdvisoriesFilterSeverityNameEnum }
+ * @memberof ExportSystemAdvisoriesApi
+ */
+ filterSeverityName?: ExportSystemAdvisoriesFilterSeverityNameEnum,
options?: AxiosRequestConfig
}
/**
@@ -75,6 +81,17 @@ export const ExportSystemAdvisoriesFilterAdvisoryTypeNameEnum = {
Security: 'security'
} as const;
export type ExportSystemAdvisoriesFilterAdvisoryTypeNameEnum = typeof ExportSystemAdvisoriesFilterAdvisoryTypeNameEnum[keyof typeof ExportSystemAdvisoriesFilterAdvisoryTypeNameEnum];
+/**
+ * @export
+ * @enum {string}
+ */
+export const ExportSystemAdvisoriesFilterSeverityNameEnum = {
+ Low: 'Low',
+ Medium: 'Medium',
+ High: 'High',
+ Critical: 'Critical'
+} as const;
+export type ExportSystemAdvisoriesFilterSeverityNameEnum = typeof ExportSystemAdvisoriesFilterSeverityNameEnum[keyof typeof ExportSystemAdvisoriesFilterSeverityNameEnum];
export type ExportSystemAdvisoriesReturnType = Array;
@@ -92,9 +109,9 @@ const isExportSystemAdvisoriesObjectParams = (params: [ExportSystemAdvisoriesPar
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const exportSystemAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ExportSystemAdvisoriesParams] | [string, string, string, string, string, string, ExportSystemAdvisoriesFilterAdvisoryTypeNameEnum, number, AxiosRequestConfig])) => {
- const params = isExportSystemAdvisoriesObjectParams(config) ? config[0] : ['inventoryId', 'search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ExportSystemAdvisoriesParams;
- const { inventoryId, search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, options = {} } = params;
+export const exportSystemAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ExportSystemAdvisoriesParams] | [string, string, string, string, string, string, ExportSystemAdvisoriesFilterAdvisoryTypeNameEnum, number, ExportSystemAdvisoriesFilterSeverityNameEnum, AxiosRequestConfig])) => {
+ const params = isExportSystemAdvisoriesObjectParams(config) ? config[0] : ['inventoryId', 'search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'filterSeverityName', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ExportSystemAdvisoriesParams;
+ const { inventoryId, search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, filterSeverityName, options = {} } = params;
const localVarPath = `/export/systems/{inventory_id}/advisories`
.replace(`{${"inventory_id"}}`, encodeURIComponent(String(inventoryId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -131,6 +148,10 @@ export const exportSystemAdvisoriesParamCreator = async (sendRequest: BaseAPI["s
localVarQueryParameter['filter[severity]'] = filterSeverity;
}
+ if (filterSeverityName !== undefined) {
+ localVarQueryParameter['filter[severity_name]'] = filterSeverityName;
+ }
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
diff --git a/packages/patch/src/ListAdvisories/index.ts b/packages/patch/src/ListAdvisories/index.ts
index bb73b11d9..7ed2eeb9b 100644
--- a/packages/patch/src/ListAdvisories/index.ts
+++ b/packages/patch/src/ListAdvisories/index.ts
@@ -74,6 +74,12 @@ export type ListAdvisoriesParams = {
filterSeverity?: number,
/**
* Filter
+ * @type { ListAdvisoriesFilterSeverityNameEnum }
+ * @memberof ListAdvisoriesApi
+ */
+ filterSeverityName?: ListAdvisoriesFilterSeverityNameEnum,
+ /**
+ * Filter
* @type { number }
* @memberof ListAdvisoriesApi
*/
@@ -161,6 +167,17 @@ export const ListAdvisoriesFilterAdvisoryTypeNameEnum = {
Security: 'security'
} as const;
export type ListAdvisoriesFilterAdvisoryTypeNameEnum = typeof ListAdvisoriesFilterAdvisoryTypeNameEnum[keyof typeof ListAdvisoriesFilterAdvisoryTypeNameEnum];
+/**
+ * @export
+ * @enum {string}
+ */
+export const ListAdvisoriesFilterSeverityNameEnum = {
+ Low: 'Low',
+ Medium: 'Medium',
+ High: 'High',
+ Critical: 'Critical'
+} as const;
+export type ListAdvisoriesFilterSeverityNameEnum = typeof ListAdvisoriesFilterSeverityNameEnum[keyof typeof ListAdvisoriesFilterSeverityNameEnum];
export type ListAdvisoriesReturnType = ControllersAdvisoriesResponse;
@@ -178,9 +195,9 @@ const isListAdvisoriesObjectParams = (params: [ListAdvisoriesParams] | unknown[]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const listAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListAdvisoriesParams] | [number, number, ListAdvisoriesSortEnum, string, string, string, string, string, ListAdvisoriesFilterAdvisoryTypeNameEnum, number, number, number, Array, Array, boolean, Array, string, string, string, string, AxiosRequestConfig])) => {
- const params = isListAdvisoriesObjectParams(config) ? config[0] : ['limit', 'offset', 'sort', 'search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'filterInstallableSystems', 'filterApplicableSystems', 'tags', 'filterGroupName', 'filterSystemProfileSapSystem', 'filterSystemProfileSapSids', 'filterSystemProfileAnsible', 'filterSystemProfileAnsibleControllerVersion', 'filterSystemProfileMssql', 'filterSystemProfileMssqlVersion', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListAdvisoriesParams;
- const { limit, offset, sort, search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, filterInstallableSystems, filterApplicableSystems, tags, filterGroupName, filterSystemProfileSapSystem, filterSystemProfileSapSids, filterSystemProfileAnsible, filterSystemProfileAnsibleControllerVersion, filterSystemProfileMssql, filterSystemProfileMssqlVersion, options = {} } = params;
+export const listAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListAdvisoriesParams] | [number, number, ListAdvisoriesSortEnum, string, string, string, string, string, ListAdvisoriesFilterAdvisoryTypeNameEnum, number, ListAdvisoriesFilterSeverityNameEnum, number, number, Array, Array, boolean, Array, string, string, string, string, AxiosRequestConfig])) => {
+ const params = isListAdvisoriesObjectParams(config) ? config[0] : ['limit', 'offset', 'sort', 'search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'filterSeverityName', 'filterInstallableSystems', 'filterApplicableSystems', 'tags', 'filterGroupName', 'filterSystemProfileSapSystem', 'filterSystemProfileSapSids', 'filterSystemProfileAnsible', 'filterSystemProfileAnsibleControllerVersion', 'filterSystemProfileMssql', 'filterSystemProfileMssqlVersion', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListAdvisoriesParams;
+ const { limit, offset, sort, search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, filterSeverityName, filterInstallableSystems, filterApplicableSystems, tags, filterGroupName, filterSystemProfileSapSystem, filterSystemProfileSapSids, filterSystemProfileAnsible, filterSystemProfileAnsibleControllerVersion, filterSystemProfileMssql, filterSystemProfileMssqlVersion, options = {} } = params;
const localVarPath = `/advisories`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -228,6 +245,10 @@ export const listAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendReque
localVarQueryParameter['filter[severity]'] = filterSeverity;
}
+ if (filterSeverityName !== undefined) {
+ localVarQueryParameter['filter[severity_name]'] = filterSeverityName;
+ }
+
if (filterInstallableSystems !== undefined) {
localVarQueryParameter['filter[installable_systems]'] = filterInstallableSystems;
}
diff --git a/packages/patch/src/ListAdvisorySystemsIds/index.ts b/packages/patch/src/ListAdvisorySystemsIds/index.ts
index 8abf7e6dc..586c6aa22 100644
--- a/packages/patch/src/ListAdvisorySystemsIds/index.ts
+++ b/packages/patch/src/ListAdvisorySystemsIds/index.ts
@@ -53,12 +53,6 @@ export type ListAdvisorySystemsIdsParams = {
* @type { string }
* @memberof ListAdvisorySystemsIdsApi
*/
- filterInsightsId?: string,
- /**
- * Filter
- * @type { string }
- * @memberof ListAdvisorySystemsIdsApi
- */
filterDisplayName?: string,
/**
* Filter
@@ -247,9 +241,9 @@ const isListAdvisorySystemsIdsObjectParams = (params: [ListAdvisorySystemsIdsPar
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const listAdvisorySystemsIdsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListAdvisorySystemsIdsParams] | [string, number, number, ListAdvisorySystemsIdsSortEnum, string, string, string, string, string, string, number, number, number, number, boolean, boolean, string, string, string, string, string, string, string, string, boolean, Array, Array, boolean, Array, string, string, string, string, AxiosRequestConfig])) => {
- const params = isListAdvisorySystemsIdsObjectParams(config) ? config[0] : ['advisoryId', 'limit', 'offset', 'sort', 'search', 'filterId', 'filterInsightsId', 'filterDisplayName', 'filterLastEvaluation', 'filterLastUpload', 'filterRhsaCount', 'filterRhbaCount', 'filterRheaCount', 'filterOtherCount', 'filterSatelliteManaged', 'filterStale', 'filterStaleTimestamp', 'filterStaleWarningTimestamp', 'filterCulledTimestamp', 'filterCreated', 'filterOsname', 'filterOsminor', 'filterOsmajor', 'filterOs', 'filterBuiltPkgcache', 'tags', 'filterGroupName', 'filterSystemProfileSapSystem', 'filterSystemProfileSapSids', 'filterSystemProfileAnsible', 'filterSystemProfileAnsibleControllerVersion', 'filterSystemProfileMssql', 'filterSystemProfileMssqlVersion', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListAdvisorySystemsIdsParams;
- const { advisoryId, limit, offset, sort, search, filterId, filterInsightsId, filterDisplayName, filterLastEvaluation, filterLastUpload, filterRhsaCount, filterRhbaCount, filterRheaCount, filterOtherCount, filterSatelliteManaged, filterStale, filterStaleTimestamp, filterStaleWarningTimestamp, filterCulledTimestamp, filterCreated, filterOsname, filterOsminor, filterOsmajor, filterOs, filterBuiltPkgcache, tags, filterGroupName, filterSystemProfileSapSystem, filterSystemProfileSapSids, filterSystemProfileAnsible, filterSystemProfileAnsibleControllerVersion, filterSystemProfileMssql, filterSystemProfileMssqlVersion, options = {} } = params;
+export const listAdvisorySystemsIdsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListAdvisorySystemsIdsParams] | [string, number, number, ListAdvisorySystemsIdsSortEnum, string, string, string, string, string, number, number, number, number, boolean, boolean, string, string, string, string, string, string, string, string, boolean, Array, Array, boolean, Array, string, string, string, string, AxiosRequestConfig])) => {
+ const params = isListAdvisorySystemsIdsObjectParams(config) ? config[0] : ['advisoryId', 'limit', 'offset', 'sort', 'search', 'filterId', 'filterDisplayName', 'filterLastEvaluation', 'filterLastUpload', 'filterRhsaCount', 'filterRhbaCount', 'filterRheaCount', 'filterOtherCount', 'filterSatelliteManaged', 'filterStale', 'filterStaleTimestamp', 'filterStaleWarningTimestamp', 'filterCulledTimestamp', 'filterCreated', 'filterOsname', 'filterOsminor', 'filterOsmajor', 'filterOs', 'filterBuiltPkgcache', 'tags', 'filterGroupName', 'filterSystemProfileSapSystem', 'filterSystemProfileSapSids', 'filterSystemProfileAnsible', 'filterSystemProfileAnsibleControllerVersion', 'filterSystemProfileMssql', 'filterSystemProfileMssqlVersion', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListAdvisorySystemsIdsParams;
+ const { advisoryId, limit, offset, sort, search, filterId, filterDisplayName, filterLastEvaluation, filterLastUpload, filterRhsaCount, filterRhbaCount, filterRheaCount, filterOtherCount, filterSatelliteManaged, filterStale, filterStaleTimestamp, filterStaleWarningTimestamp, filterCulledTimestamp, filterCreated, filterOsname, filterOsminor, filterOsmajor, filterOs, filterBuiltPkgcache, tags, filterGroupName, filterSystemProfileSapSystem, filterSystemProfileSapSids, filterSystemProfileAnsible, filterSystemProfileAnsibleControllerVersion, filterSystemProfileMssql, filterSystemProfileMssqlVersion, options = {} } = params;
const localVarPath = `/ids/advisories/{advisory_id}/systems`
.replace(`{${"advisory_id"}}`, encodeURIComponent(String(advisoryId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -278,10 +272,6 @@ export const listAdvisorySystemsIdsParamCreator = async (sendRequest: BaseAPI["s
localVarQueryParameter['filter[id]'] = filterId;
}
- if (filterInsightsId !== undefined) {
- localVarQueryParameter['filter[insights_id]'] = filterInsightsId;
- }
-
if (filterDisplayName !== undefined) {
localVarQueryParameter['filter[display_name]'] = filterDisplayName;
}
diff --git a/packages/patch/src/ListSystemAdvisories/index.ts b/packages/patch/src/ListSystemAdvisories/index.ts
index b426e9117..f26df0ce4 100644
--- a/packages/patch/src/ListSystemAdvisories/index.ts
+++ b/packages/patch/src/ListSystemAdvisories/index.ts
@@ -78,6 +78,12 @@ export type ListSystemAdvisoriesParams = {
* @memberof ListSystemAdvisoriesApi
*/
filterSeverity?: number,
+ /**
+ * Filter
+ * @type { ListSystemAdvisoriesFilterSeverityNameEnum }
+ * @memberof ListSystemAdvisoriesApi
+ */
+ filterSeverityName?: ListSystemAdvisoriesFilterSeverityNameEnum,
options?: AxiosRequestConfig
}
/**
@@ -105,6 +111,17 @@ export const ListSystemAdvisoriesFilterAdvisoryTypeNameEnum = {
Security: 'security'
} as const;
export type ListSystemAdvisoriesFilterAdvisoryTypeNameEnum = typeof ListSystemAdvisoriesFilterAdvisoryTypeNameEnum[keyof typeof ListSystemAdvisoriesFilterAdvisoryTypeNameEnum];
+/**
+ * @export
+ * @enum {string}
+ */
+export const ListSystemAdvisoriesFilterSeverityNameEnum = {
+ Low: 'Low',
+ Medium: 'Medium',
+ High: 'High',
+ Critical: 'Critical'
+} as const;
+export type ListSystemAdvisoriesFilterSeverityNameEnum = typeof ListSystemAdvisoriesFilterSeverityNameEnum[keyof typeof ListSystemAdvisoriesFilterSeverityNameEnum];
export type ListSystemAdvisoriesReturnType = ControllersSystemAdvisoriesResponse;
@@ -122,9 +139,9 @@ const isListSystemAdvisoriesObjectParams = (params: [ListSystemAdvisoriesParams]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const listSystemAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListSystemAdvisoriesParams] | [string, number, number, ListSystemAdvisoriesSortEnum, string, string, string, string, string, ListSystemAdvisoriesFilterAdvisoryTypeNameEnum, number, AxiosRequestConfig])) => {
- const params = isListSystemAdvisoriesObjectParams(config) ? config[0] : ['inventoryId', 'limit', 'offset', 'sort', 'search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListSystemAdvisoriesParams;
- const { inventoryId, limit, offset, sort, search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, options = {} } = params;
+export const listSystemAdvisoriesParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListSystemAdvisoriesParams] | [string, number, number, ListSystemAdvisoriesSortEnum, string, string, string, string, string, ListSystemAdvisoriesFilterAdvisoryTypeNameEnum, number, ListSystemAdvisoriesFilterSeverityNameEnum, AxiosRequestConfig])) => {
+ const params = isListSystemAdvisoriesObjectParams(config) ? config[0] : ['inventoryId', 'limit', 'offset', 'sort', 'search', 'filterId', 'filterDescription', 'filterPublicDate', 'filterSynopsis', 'filterAdvisoryTypeName', 'filterSeverity', 'filterSeverityName', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListSystemAdvisoriesParams;
+ const { inventoryId, limit, offset, sort, search, filterId, filterDescription, filterPublicDate, filterSynopsis, filterAdvisoryTypeName, filterSeverity, filterSeverityName, options = {} } = params;
const localVarPath = `/systems/{inventory_id}/advisories`
.replace(`{${"inventory_id"}}`, encodeURIComponent(String(inventoryId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -173,6 +190,10 @@ export const listSystemAdvisoriesParamCreator = async (sendRequest: BaseAPI["sen
localVarQueryParameter['filter[severity]'] = filterSeverity;
}
+ if (filterSeverityName !== undefined) {
+ localVarQueryParameter['filter[severity_name]'] = filterSeverityName;
+ }
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
diff --git a/packages/patch/src/ListSystemTags/index.ts b/packages/patch/src/ListSystemTags/index.ts
index fc7863ca3..988c400af 100644
--- a/packages/patch/src/ListSystemTags/index.ts
+++ b/packages/patch/src/ListSystemTags/index.ts
@@ -25,6 +25,12 @@ export type ListSystemTagsParams = {
*/
limit?: number,
/**
+ * Find matching text
+ * @type { string }
+ * @memberof ListSystemTagsApi
+ */
+ search?: string,
+ /**
* Offset for paging
* @type { number }
* @memberof ListSystemTagsApi
@@ -58,9 +64,9 @@ const isListSystemTagsObjectParams = (params: [ListSystemTagsParams] | unknown[]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const listSystemTagsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListSystemTagsParams] | [ListSystemTagsSortEnum, number, number, AxiosRequestConfig])) => {
- const params = isListSystemTagsObjectParams(config) ? config[0] : ['sort', 'limit', 'offset', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListSystemTagsParams;
- const { sort, limit, offset, options = {} } = params;
+export const listSystemTagsParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListSystemTagsParams] | [ListSystemTagsSortEnum, number, string, number, AxiosRequestConfig])) => {
+ const params = isListSystemTagsObjectParams(config) ? config[0] : ['sort', 'limit', 'search', 'offset', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListSystemTagsParams;
+ const { sort, limit, search, offset, options = {} } = params;
const localVarPath = `/tags`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -76,6 +82,10 @@ export const listSystemTagsParamCreator = async (sendRequest: BaseAPI["sendReque
localVarQueryParameter['limit'] = limit;
}
+ if (search !== undefined) {
+ localVarQueryParameter['search'] = search;
+ }
+
if (offset !== undefined) {
localVarQueryParameter['offset'] = offset;
}
diff --git a/packages/patch/src/ListSystemsPost/index.ts b/packages/patch/src/ListSystemsPost/index.ts
new file mode 100644
index 000000000..c5c96f6a8
--- /dev/null
+++ b/packages/patch/src/ListSystemsPost/index.ts
@@ -0,0 +1,544 @@
+// @ts-ignore
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
+// @ts-ignore
+import { COLLECTION_FORMATS, RequiredError, AuthTypeEnum, DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
+// @ts-ignore
+import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/base';
+import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
+
+// @ts-ignore
+import type { ControllersSystemsListPostRequest, ControllersSystemsResponse, UtilsErrorResponse } from '../types';
+
+
+export type ListSystemsPostParams = {
+ /**
+ * Inventory IDs
+ * @type { ControllersSystemsListPostRequest }
+ * @memberof ListSystemsPostApi
+ */
+ body: ControllersSystemsListPostRequest,
+ /**
+ * Limit for paging
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ limit?: number,
+ /**
+ * Offset for paging
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ offset?: number,
+ /**
+ * Sort field
+ * @type { ListSystemsPostSortEnum }
+ * @memberof ListSystemsPostApi
+ */
+ sort?: ListSystemsPostSortEnum,
+ /**
+ * Find matching text
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ search?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterDisplayName?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterLastEvaluation?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterLastUpload?: string,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterRhsaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterRhbaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterRheaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterOtherCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterInstallableRhsaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterInstallableRhbaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterInstallableRheaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterInstallableOtherCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterApplicableRhsaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterApplicableRhbaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterApplicableRheaCount?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterApplicableOtherCount?: number,
+ /**
+ * Filter
+ * @type { boolean }
+ * @memberof ListSystemsPostApi
+ */
+ filterStale?: boolean,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterPackagesInstalled?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterPackagesInstallable?: number,
+ /**
+ * Filter
+ * @type { number }
+ * @memberof ListSystemsPostApi
+ */
+ filterPackagesApplicable?: number,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterStaleTimestamp?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterStaleWarningTimestamp?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterCulledTimestamp?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterCreated?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterBaselineName?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterTemplateName?: string,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterTemplateUuid?: string,
+ /**
+ * Filter
+ * @type { boolean }
+ * @memberof ListSystemsPostApi
+ */
+ filterSatelliteManaged?: boolean,
+ /**
+ * Filter
+ * @type { boolean }
+ * @memberof ListSystemsPostApi
+ */
+ filterBuiltPkgcache?: boolean,
+ /**
+ * Filter
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterArch?: string,
+ /**
+ * Filter OS version
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterOs?: string,
+ /**
+ * Filter OS name
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterOsname?: string,
+ /**
+ * Filter OS major version
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterOsmajor?: string,
+ /**
+ * Filter OS minor version
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterOsminor?: string,
+ /**
+ * Tag filter
+ * @type { Array }
+ * @memberof ListSystemsPostApi
+ */
+ tags?: Array,
+ /**
+ * Filter systems by inventory groups
+ * @type { Array }
+ * @memberof ListSystemsPostApi
+ */
+ filterGroupName?: Array,
+ /**
+ * Filter only SAP systems
+ * @type { boolean }
+ * @memberof ListSystemsPostApi
+ */
+ filterSystemProfileSapSystem?: boolean,
+ /**
+ * Filter systems by their SAP SIDs
+ * @type { Array }
+ * @memberof ListSystemsPostApi
+ */
+ filterSystemProfileSapSids?: Array,
+ /**
+ * Filter systems by ansible
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterSystemProfileAnsible?: string,
+ /**
+ * Filter systems by ansible version
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterSystemProfileAnsibleControllerVersion?: string,
+ /**
+ * Filter systems by mssql version
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterSystemProfileMssql?: string,
+ /**
+ * Filter systems by mssql version
+ * @type { string }
+ * @memberof ListSystemsPostApi
+ */
+ filterSystemProfileMssqlVersion?: string,
+ options?: AxiosRequestConfig
+}
+/**
+ * @export
+ * @enum {string}
+ */
+export const ListSystemsPostSortEnum = {
+ Id: 'id',
+ DisplayName: 'display_name',
+ LastUpload: 'last_upload',
+ RhsaCount: 'rhsa_count',
+ RhbaCount: 'rhba_count',
+ RheaCount: 'rhea_count',
+ OtherCount: 'other_count',
+ Stale: 'stale',
+ PackagesInstalled: 'packages_installed',
+ BaselineName: 'baseline_name',
+ Groups: 'groups',
+ SatelliteManaged: 'satellite_managed',
+ BuiltPkgcache: 'built_pkgcache'
+} as const;
+export type ListSystemsPostSortEnum = typeof ListSystemsPostSortEnum[keyof typeof ListSystemsPostSortEnum];
+
+export type ListSystemsPostReturnType = ControllersSystemsResponse;
+
+const isListSystemsPostObjectParams = (params: [ListSystemsPostParams] | unknown[]): params is [ListSystemsPostParams] => {
+ const l = params.length === 1
+ if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
+ return true && Object.prototype.hasOwnProperty.call(params[0], 'body')
+ }
+ return false
+}
+/**
+* Same response as GET /systems, restricted to the given inventory IDs. Use query parameters for paging, sort, search, and filters.
+* @summary List systems by inventory IDs
+* @param {ListSystemsPostParams} config with all available params.
+* @param {*} [options] Override http request option.
+* @throws {RequiredError}
+*/
+export const listSystemsPostParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([ListSystemsPostParams] | [ControllersSystemsListPostRequest, number, number, ListSystemsPostSortEnum, string, string, string, string, number, number, number, number, number, number, number, number, number, number, number, number, boolean, number, number, number, string, string, string, string, string, string, string, boolean, boolean, string, string, string, string, string, Array, Array, boolean, Array, string, string, string, string, AxiosRequestConfig])) => {
+ const params = isListSystemsPostObjectParams(config) ? config[0] : ['body', 'limit', 'offset', 'sort', 'search', 'filterDisplayName', 'filterLastEvaluation', 'filterLastUpload', 'filterRhsaCount', 'filterRhbaCount', 'filterRheaCount', 'filterOtherCount', 'filterInstallableRhsaCount', 'filterInstallableRhbaCount', 'filterInstallableRheaCount', 'filterInstallableOtherCount', 'filterApplicableRhsaCount', 'filterApplicableRhbaCount', 'filterApplicableRheaCount', 'filterApplicableOtherCount', 'filterStale', 'filterPackagesInstalled', 'filterPackagesInstallable', 'filterPackagesApplicable', 'filterStaleTimestamp', 'filterStaleWarningTimestamp', 'filterCulledTimestamp', 'filterCreated', 'filterBaselineName', 'filterTemplateName', 'filterTemplateUuid', 'filterSatelliteManaged', 'filterBuiltPkgcache', 'filterArch', 'filterOs', 'filterOsname', 'filterOsmajor', 'filterOsminor', 'tags', 'filterGroupName', 'filterSystemProfileSapSystem', 'filterSystemProfileSapSids', 'filterSystemProfileAnsible', 'filterSystemProfileAnsibleControllerVersion', 'filterSystemProfileMssql', 'filterSystemProfileMssqlVersion', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as ListSystemsPostParams;
+ const { body, limit, offset, sort, search, filterDisplayName, filterLastEvaluation, filterLastUpload, filterRhsaCount, filterRhbaCount, filterRheaCount, filterOtherCount, filterInstallableRhsaCount, filterInstallableRhbaCount, filterInstallableRheaCount, filterInstallableOtherCount, filterApplicableRhsaCount, filterApplicableRhbaCount, filterApplicableRheaCount, filterApplicableOtherCount, filterStale, filterPackagesInstalled, filterPackagesInstallable, filterPackagesApplicable, filterStaleTimestamp, filterStaleWarningTimestamp, filterCulledTimestamp, filterCreated, filterBaselineName, filterTemplateName, filterTemplateUuid, filterSatelliteManaged, filterBuiltPkgcache, filterArch, filterOs, filterOsname, filterOsmajor, filterOsminor, tags, filterGroupName, filterSystemProfileSapSystem, filterSystemProfileSapSids, filterSystemProfileAnsible, filterSystemProfileAnsibleControllerVersion, filterSystemProfileMssql, filterSystemProfileMssqlVersion, options = {} } = params;
+ const localVarPath = `/systems`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ const localVarRequestOptions = { method: 'POST' as Method, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (limit !== undefined) {
+ localVarQueryParameter['limit'] = limit;
+ }
+
+ if (offset !== undefined) {
+ localVarQueryParameter['offset'] = offset;
+ }
+
+ if (sort !== undefined) {
+ localVarQueryParameter['sort'] = sort;
+ }
+
+ if (search !== undefined) {
+ localVarQueryParameter['search'] = search;
+ }
+
+ if (filterDisplayName !== undefined) {
+ localVarQueryParameter['filter[display_name]'] = filterDisplayName;
+ }
+
+ if (filterLastEvaluation !== undefined) {
+ localVarQueryParameter['filter[last_evaluation]'] = filterLastEvaluation;
+ }
+
+ if (filterLastUpload !== undefined) {
+ localVarQueryParameter['filter[last_upload]'] = filterLastUpload;
+ }
+
+ if (filterRhsaCount !== undefined) {
+ localVarQueryParameter['filter[rhsa_count]'] = filterRhsaCount;
+ }
+
+ if (filterRhbaCount !== undefined) {
+ localVarQueryParameter['filter[rhba_count]'] = filterRhbaCount;
+ }
+
+ if (filterRheaCount !== undefined) {
+ localVarQueryParameter['filter[rhea_count]'] = filterRheaCount;
+ }
+
+ if (filterOtherCount !== undefined) {
+ localVarQueryParameter['filter[other_count]'] = filterOtherCount;
+ }
+
+ if (filterInstallableRhsaCount !== undefined) {
+ localVarQueryParameter['filter[installable_rhsa_count]'] = filterInstallableRhsaCount;
+ }
+
+ if (filterInstallableRhbaCount !== undefined) {
+ localVarQueryParameter['filter[installable_rhba_count]'] = filterInstallableRhbaCount;
+ }
+
+ if (filterInstallableRheaCount !== undefined) {
+ localVarQueryParameter['filter[installable_rhea_count]'] = filterInstallableRheaCount;
+ }
+
+ if (filterInstallableOtherCount !== undefined) {
+ localVarQueryParameter['filter[installable_other_count]'] = filterInstallableOtherCount;
+ }
+
+ if (filterApplicableRhsaCount !== undefined) {
+ localVarQueryParameter['filter[applicable_rhsa_count]'] = filterApplicableRhsaCount;
+ }
+
+ if (filterApplicableRhbaCount !== undefined) {
+ localVarQueryParameter['filter[applicable_rhba_count]'] = filterApplicableRhbaCount;
+ }
+
+ if (filterApplicableRheaCount !== undefined) {
+ localVarQueryParameter['filter[applicable_rhea_count]'] = filterApplicableRheaCount;
+ }
+
+ if (filterApplicableOtherCount !== undefined) {
+ localVarQueryParameter['filter[applicable_other_count]'] = filterApplicableOtherCount;
+ }
+
+ if (filterStale !== undefined) {
+ localVarQueryParameter['filter[stale]'] = filterStale;
+ }
+
+ if (filterPackagesInstalled !== undefined) {
+ localVarQueryParameter['filter[packages_installed]'] = filterPackagesInstalled;
+ }
+
+ if (filterPackagesInstallable !== undefined) {
+ localVarQueryParameter['filter[packages_installable]'] = filterPackagesInstallable;
+ }
+
+ if (filterPackagesApplicable !== undefined) {
+ localVarQueryParameter['filter[packages_applicable]'] = filterPackagesApplicable;
+ }
+
+ if (filterStaleTimestamp !== undefined) {
+ localVarQueryParameter['filter[stale_timestamp]'] = filterStaleTimestamp;
+ }
+
+ if (filterStaleWarningTimestamp !== undefined) {
+ localVarQueryParameter['filter[stale_warning_timestamp]'] = filterStaleWarningTimestamp;
+ }
+
+ if (filterCulledTimestamp !== undefined) {
+ localVarQueryParameter['filter[culled_timestamp]'] = filterCulledTimestamp;
+ }
+
+ if (filterCreated !== undefined) {
+ localVarQueryParameter['filter[created]'] = filterCreated;
+ }
+
+ if (filterBaselineName !== undefined) {
+ localVarQueryParameter['filter[baseline_name]'] = filterBaselineName;
+ }
+
+ if (filterTemplateName !== undefined) {
+ localVarQueryParameter['filter[template_name]'] = filterTemplateName;
+ }
+
+ if (filterTemplateUuid !== undefined) {
+ localVarQueryParameter['filter[template_uuid]'] = filterTemplateUuid;
+ }
+
+ if (filterSatelliteManaged !== undefined) {
+ localVarQueryParameter['filter[satellite_managed]'] = filterSatelliteManaged;
+ }
+
+ if (filterBuiltPkgcache !== undefined) {
+ localVarQueryParameter['filter[built_pkgcache]'] = filterBuiltPkgcache;
+ }
+
+ if (filterArch !== undefined) {
+ localVarQueryParameter['filter[arch]'] = filterArch;
+ }
+
+ if (filterOs !== undefined) {
+ localVarQueryParameter['filter[os]'] = filterOs;
+ }
+
+ if (filterOsname !== undefined) {
+ localVarQueryParameter['filter[osname]'] = filterOsname;
+ }
+
+ if (filterOsmajor !== undefined) {
+ localVarQueryParameter['filter[osmajor]'] = filterOsmajor;
+ }
+
+ if (filterOsminor !== undefined) {
+ localVarQueryParameter['filter[osminor]'] = filterOsminor;
+ }
+
+ if (tags) {
+ localVarQueryParameter['tags'] = tags;
+ }
+
+ if (filterGroupName) {
+ localVarQueryParameter['filter[group_name]'] = filterGroupName;
+ }
+
+ if (filterSystemProfileSapSystem !== undefined) {
+ localVarQueryParameter['filter[system_profile][sap_system]'] = filterSystemProfileSapSystem;
+ }
+
+ if (filterSystemProfileSapSids) {
+ localVarQueryParameter['filter[system_profile][sap_sids]'] = filterSystemProfileSapSids;
+ }
+
+ if (filterSystemProfileAnsible !== undefined) {
+ localVarQueryParameter['filter[system_profile][ansible]'] = filterSystemProfileAnsible;
+ }
+
+ if (filterSystemProfileAnsibleControllerVersion !== undefined) {
+ localVarQueryParameter['filter[system_profile][ansible][controller_version]'] = filterSystemProfileAnsibleControllerVersion;
+ }
+
+ if (filterSystemProfileMssql !== undefined) {
+ localVarQueryParameter['filter[system_profile][mssql]'] = filterSystemProfileMssql;
+ }
+
+ if (filterSystemProfileMssqlVersion !== undefined) {
+ localVarQueryParameter['filter[system_profile][mssql][version]'] = filterSystemProfileMssqlVersion;
+ }
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers};
+
+ const args = {
+ urlObj: localVarUrlObj,
+ options: localVarRequestOptions,
+ serializeData: body,
+ auth:[
+ {
+ // authentication RhIdentity required
+ // in header with key required
+ authType: AuthTypeEnum.InHeader,
+ authKey: "x-rh-identity"
+ }
+ ]
+ };
+
+ return sendRequest(Promise.resolve(args));
+}
+
+export default listSystemsPostParamCreator;
diff --git a/packages/patch/src/api.ts b/packages/patch/src/api.ts
index 934651e09..c5a0f54dc 100644
--- a/packages/patch/src/api.ts
+++ b/packages/patch/src/api.ts
@@ -25,6 +25,7 @@ import {
listSystemTags,
listSystems,
listSystemsIds,
+ listSystemsPost,
listTemplate,
listTemplateSystems,
listTemplateSystemsIds,
@@ -64,6 +65,7 @@ const endpointList = {
listSystemTags,
listSystems,
listSystemsIds,
+ listSystemsPost,
listTemplate,
listTemplateSystems,
listTemplateSystemsIds,
diff --git a/packages/patch/src/index.ts b/packages/patch/src/index.ts
index 177585773..d9fbc5724 100644
--- a/packages/patch/src/index.ts
+++ b/packages/patch/src/index.ts
@@ -42,6 +42,8 @@ export { default as listSystems, type ListSystemsReturnType } from './ListSystem
export { default as listSystemsIds, type ListSystemsIdsReturnType } from './ListSystemsIds'
+export { default as listSystemsPost, type ListSystemsPostReturnType } from './ListSystemsPost'
+
export { default as listTemplate, type ListTemplateReturnType } from './ListTemplate'
export { default as listTemplateSystems, type ListTemplateSystemsReturnType } from './ListTemplateSystems'
diff --git a/packages/patch/src/types/index.ts b/packages/patch/src/types/index.ts
index 733b359a1..29dbc641d 100644
--- a/packages/patch/src/types/index.ts
+++ b/packages/patch/src/types/index.ts
@@ -64,6 +64,12 @@ export interface ControllersAdvisoriesDBLookup {
* @memberof ControllersAdvisoriesDBLookup
*/
'severity'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof ControllersAdvisoriesDBLookup
+ */
+ 'severity_name'?: string;
/**
*
* @type {string}
@@ -193,6 +199,12 @@ export interface ControllersAdvisoryDetailAttributes {
* @memberof ControllersAdvisoryDetailAttributes
*/
'severity'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof ControllersAdvisoryDetailAttributes
+ */
+ 'severity_name'?: string;
/**
*
* @type {string}
@@ -335,6 +347,12 @@ export interface ControllersAdvisoryItemAttributes {
* @memberof ControllersAdvisoryItemAttributes
*/
'severity'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof ControllersAdvisoryItemAttributes
+ */
+ 'severity_name'?: string;
/**
*
* @type {string}
@@ -1198,6 +1216,12 @@ export interface ControllersSystemAdvisoriesDBLookup {
* @memberof ControllersSystemAdvisoriesDBLookup
*/
'severity'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof ControllersSystemAdvisoriesDBLookup
+ */
+ 'severity_name'?: string;
/**
*
* @type {string}
@@ -1309,6 +1333,12 @@ export interface ControllersSystemAdvisoryItemAttributes {
* @memberof ControllersSystemAdvisoryItemAttributes
*/
'severity'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof ControllersSystemAdvisoryItemAttributes
+ */
+ 'severity_name'?: string;
/**
*
* @type {string}
@@ -1891,12 +1921,6 @@ export interface ControllersSystemItemAttributesExtended {
* @memberof ControllersSystemItemAttributesExtended
*/
'groups'?: Array;
- /**
- *
- * @type {string}
- * @memberof ControllersSystemItemAttributesExtended
- */
- 'insights_id'?: string;
/**
*
* @type {number}
@@ -2365,6 +2389,19 @@ export interface ControllersSystemsAdvisoriesResponse {
*/
'meta'?: ControllersListMeta;
}
+/**
+ *
+ * @export
+ * @interface ControllersSystemsListPostRequest
+ */
+export interface ControllersSystemsListPostRequest {
+ /**
+ *
+ * @type {Array}
+ * @memberof ControllersSystemsListPostRequest
+ */
+ 'ids'?: Array;
+}
/**
*
* @export
diff --git a/packages/quickstarts/src/QuickstartsGet/index.ts b/packages/quickstarts/src/QuickstartsGet/index.ts
index 8e0d4d3b9..fd85beeb6 100644
--- a/packages/quickstarts/src/QuickstartsGet/index.ts
+++ b/packages/quickstarts/src/QuickstartsGet/index.ts
@@ -67,6 +67,12 @@ export type QuickstartsGetParams = {
*/
displayName?: string,
/**
+ * Enable fuzzy search using Levenshtein distance for typo tolerance (searches spec.displayName)
+ * @type { boolean }
+ * @memberof QuickstartsGetApi
+ */
+ fuzzy?: boolean,
+ /**
* Pagination limit
* @type { number }
* @memberof QuickstartsGetApi
@@ -97,9 +103,9 @@ const isQuickstartsGetObjectParams = (params: [QuickstartsGetParams] | unknown[]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const quickstartsGetParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([QuickstartsGetParams] | [Array, Array, Array, Array, Array, Array, Array, string, string, number, number, AxiosRequestConfig])) => {
- const params = isQuickstartsGetObjectParams(config) ? config[0] : ['productFamilies', 'content', 'useCase', 'bundle', 'application', 'kind', 'topic', 'name', 'displayName', 'limit', 'offset', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as QuickstartsGetParams;
- const { productFamilies, content, useCase, bundle, application, kind, topic, name, displayName, limit, offset, options = {} } = params;
+export const quickstartsGetParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([QuickstartsGetParams] | [Array, Array, Array, Array, Array, Array, Array, string, string, boolean, number, number, AxiosRequestConfig])) => {
+ const params = isQuickstartsGetObjectParams(config) ? config[0] : ['productFamilies', 'content', 'useCase', 'bundle', 'application', 'kind', 'topic', 'name', 'displayName', 'fuzzy', 'limit', 'offset', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as QuickstartsGetParams;
+ const { productFamilies, content, useCase, bundle, application, kind, topic, name, displayName, fuzzy, limit, offset, options = {} } = params;
const localVarPath = `/quickstarts`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -143,6 +149,10 @@ export const quickstartsGetParamCreator = async (sendRequest: BaseAPI["sendReque
localVarQueryParameter['display-name'] = displayName;
}
+ if (fuzzy !== undefined) {
+ localVarQueryParameter['fuzzy'] = fuzzy;
+ }
+
if (limit !== undefined) {
localVarQueryParameter['limit'] = limit;
}
diff --git a/packages/rbac/src/v2/RoleBindingsListBySubject/index.ts b/packages/rbac/src/v2/RoleBindingsListBySubject/index.ts
index 510387b9d..caae244c8 100644
--- a/packages/rbac/src/v2/RoleBindingsListBySubject/index.ts
+++ b/packages/rbac/src/v2/RoleBindingsListBySubject/index.ts
@@ -13,29 +13,35 @@ import type { ExcludeSources, ProblemsProblem403, ResourceType, RoleBindingsBind
export type RoleBindingsListBySubjectParams = {
/**
- * Filter by resource ID. For workspace: UUID. For tenant: tenant resource ID (format: {domain}/{org_id}).
+ *
+ * @type { number }
+ * @memberof RoleBindingsListBySubjectApi
+ */
+ limit?: number,
+ /**
+ * Cursor for cursor-based pagination.
* @type { string }
* @memberof RoleBindingsListBySubjectApi
*/
- resourceId: string,
+ cursor?: string,
/**
- * Filter by resource type
- * @type { ResourceType }
+ * Filter by resource ID. For workspace: UUID. For tenant: tenant resource ID (format: {domain}/{org_id}). Required unless resource.tenant.org_id is provided.
+ * @type { string }
* @memberof RoleBindingsListBySubjectApi
*/
- resourceType: ResourceType,
+ resourceId?: string,
/**
- *
- * @type { number }
+ * Filter by resource type. Required unless resource.tenant.org_id is provided.
+ * @type { ResourceType }
* @memberof RoleBindingsListBySubjectApi
*/
- limit?: number,
+ resourceType?: ResourceType,
/**
- * Cursor for cursor-based pagination.
+ * Org ID of the tenant resource to filter by. Cannot be combined with resource_id. When provided, resource_type is implicitly \'tenant\'.
* @type { string }
* @memberof RoleBindingsListBySubjectApi
*/
- cursor?: string,
+ resourceTenantOrgId?: string,
/**
* Filter by binding subject kind: group or user (principal UUID). There is no granted_subject.* on this endpoint.
* @type { RoleBindingsBindingSubjectType }
@@ -74,7 +80,7 @@ export type RoleBindingsListBySubjectReturnType = RoleBindingsListBySubject200Re
const isRoleBindingsListBySubjectObjectParams = (params: [RoleBindingsListBySubjectParams] | unknown[]): params is [RoleBindingsListBySubjectParams] => {
const l = params.length === 1
if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
- return true && Object.prototype.hasOwnProperty.call(params[0], 'resourceId') && Object.prototype.hasOwnProperty.call(params[0], 'resourceType')
+ return true
}
return false
}
@@ -85,9 +91,9 @@ const isRoleBindingsListBySubjectObjectParams = (params: [RoleBindingsListBySubj
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const roleBindingsListBySubjectParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RoleBindingsListBySubjectParams] | [string, ResourceType, number, string, RoleBindingsBindingSubjectType, string, ExcludeSources, string, string, AxiosRequestConfig])) => {
- const params = isRoleBindingsListBySubjectObjectParams(config) ? config[0] : ['resourceId', 'resourceType', 'limit', 'cursor', 'subjectType', 'subjectId', 'excludeSources', 'fields', 'orderBy', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as RoleBindingsListBySubjectParams;
- const { resourceId, resourceType, limit, cursor, subjectType, subjectId, excludeSources, fields, orderBy, options = {} } = params;
+export const roleBindingsListBySubjectParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RoleBindingsListBySubjectParams] | [number, string, string, ResourceType, string, RoleBindingsBindingSubjectType, string, ExcludeSources, string, string, AxiosRequestConfig])) => {
+ const params = isRoleBindingsListBySubjectObjectParams(config) ? config[0] : ['limit', 'cursor', 'resourceId', 'resourceType', 'resourceTenantOrgId', 'subjectType', 'subjectId', 'excludeSources', 'fields', 'orderBy', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as RoleBindingsListBySubjectParams;
+ const { limit, cursor, resourceId, resourceType, resourceTenantOrgId, subjectType, subjectId, excludeSources, fields, orderBy, options = {} } = params;
const localVarPath = `/role-bindings/by-subject/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -111,6 +117,10 @@ export const roleBindingsListBySubjectParamCreator = async (sendRequest: BaseAPI
localVarQueryParameter['resource_type'] = resourceType;
}
+ if (resourceTenantOrgId !== undefined) {
+ localVarQueryParameter['resource.tenant.org_id'] = resourceTenantOrgId;
+ }
+
if (subjectType !== undefined) {
localVarQueryParameter['subject_type'] = subjectType;
}
diff --git a/packages/rbac/src/v2/RoleBindingsUpdate/index.ts b/packages/rbac/src/v2/RoleBindingsUpdate/index.ts
index 8a38dc783..9d7d4c520 100644
--- a/packages/rbac/src/v2/RoleBindingsUpdate/index.ts
+++ b/packages/rbac/src/v2/RoleBindingsUpdate/index.ts
@@ -12,18 +12,6 @@ import type { ProblemsProblem400, ProblemsProblem403, ProblemsProblem404, Resour
export type RoleBindingsUpdateParams = {
- /**
- * Identify the resource ID for the set of role bindings to replace. For workspace: UUID. For tenant: tenant resource ID (format: {domain}/{org_id}).
- * @type { string }
- * @memberof RoleBindingsUpdateApi
- */
- resourceId: string,
- /**
- * Identify the resource type for the set of role bindings to replace
- * @type { ResourceType }
- * @memberof RoleBindingsUpdateApi
- */
- resourceType: ResourceType,
/**
* Identify the subject ID for the set of role bindings to replace
* @type { string }
@@ -43,6 +31,24 @@ export type RoleBindingsUpdateParams = {
*/
roleBindingsUpdateRoleBindingsRequest: RoleBindingsUpdateRoleBindingsRequest,
/**
+ * Identify the resource ID for the set of role bindings to replace. For workspace: UUID. For tenant: tenant resource ID (format: {domain}/{org_id}). Required unless resource.tenant.org_id is provided.
+ * @type { string }
+ * @memberof RoleBindingsUpdateApi
+ */
+ resourceId?: string,
+ /**
+ * Identify the resource type for the set of role bindings to replace. Required unless resource.tenant.org_id is provided.
+ * @type { ResourceType }
+ * @memberof RoleBindingsUpdateApi
+ */
+ resourceType?: ResourceType,
+ /**
+ * Org ID of the tenant resource. Cannot be combined with resource_id. When provided, resource_type is implicitly \'tenant\'.
+ * @type { string }
+ * @memberof RoleBindingsUpdateApi
+ */
+ resourceTenantOrgId?: string,
+ /**
*
* @type { string }
* @memberof RoleBindingsUpdateApi
@@ -56,7 +62,7 @@ export type RoleBindingsUpdateReturnType = RoleBindingsRoleBindingBySubject;
const isRoleBindingsUpdateObjectParams = (params: [RoleBindingsUpdateParams] | unknown[]): params is [RoleBindingsUpdateParams] => {
const l = params.length === 1
if(l && typeof params[0] === 'object' && !Array.isArray(params[0])) {
- return true && Object.prototype.hasOwnProperty.call(params[0], 'resourceId') && Object.prototype.hasOwnProperty.call(params[0], 'resourceType') && Object.prototype.hasOwnProperty.call(params[0], 'subjectId') && Object.prototype.hasOwnProperty.call(params[0], 'subjectType') && Object.prototype.hasOwnProperty.call(params[0], 'roleBindingsUpdateRoleBindingsRequest')
+ return true && Object.prototype.hasOwnProperty.call(params[0], 'subjectId') && Object.prototype.hasOwnProperty.call(params[0], 'subjectType') && Object.prototype.hasOwnProperty.call(params[0], 'roleBindingsUpdateRoleBindingsRequest')
}
return false
}
@@ -67,9 +73,9 @@ const isRoleBindingsUpdateObjectParams = (params: [RoleBindingsUpdateParams] | u
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const roleBindingsUpdateParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RoleBindingsUpdateParams] | [string, ResourceType, string, RoleBindingsBindingSubjectType, RoleBindingsUpdateRoleBindingsRequest, string, AxiosRequestConfig])) => {
- const params = isRoleBindingsUpdateObjectParams(config) ? config[0] : ['resourceId', 'resourceType', 'subjectId', 'subjectType', 'roleBindingsUpdateRoleBindingsRequest', 'fields', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as RoleBindingsUpdateParams;
- const { resourceId, resourceType, subjectId, subjectType, roleBindingsUpdateRoleBindingsRequest, fields, options = {} } = params;
+export const roleBindingsUpdateParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([RoleBindingsUpdateParams] | [string, RoleBindingsBindingSubjectType, RoleBindingsUpdateRoleBindingsRequest, string, ResourceType, string, string, AxiosRequestConfig])) => {
+ const params = isRoleBindingsUpdateObjectParams(config) ? config[0] : ['subjectId', 'subjectType', 'roleBindingsUpdateRoleBindingsRequest', 'resourceId', 'resourceType', 'resourceTenantOrgId', 'fields', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as RoleBindingsUpdateParams;
+ const { subjectId, subjectType, roleBindingsUpdateRoleBindingsRequest, resourceId, resourceType, resourceTenantOrgId, fields, options = {} } = params;
const localVarPath = `/role-bindings/by-subject/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -85,6 +91,10 @@ export const roleBindingsUpdateParamCreator = async (sendRequest: BaseAPI["sendR
localVarQueryParameter['resource_type'] = resourceType;
}
+ if (resourceTenantOrgId !== undefined) {
+ localVarQueryParameter['resource.tenant.org_id'] = resourceTenantOrgId;
+ }
+
if (subjectId !== undefined) {
localVarQueryParameter['subject_id'] = subjectId;
}
diff --git a/packages/rbac/src/v2/RolesList/index.ts b/packages/rbac/src/v2/RolesList/index.ts
index 3117d27ec..492bbe9e3 100644
--- a/packages/rbac/src/v2/RolesList/index.ts
+++ b/packages/rbac/src/v2/RolesList/index.ts
@@ -25,7 +25,7 @@ export type RolesListParams = {
*/
cursor?: string,
/**
- * Filter by role name. Exact match by default; use * as a wildcard for partial matching (e.g. foo*).
+ * Filter by role name. Case-insensitive substring match by default; use * for glob patterns (e.g. foo*).
* @type { string }
* @memberof RolesListApi
*/
diff --git a/packages/rbac/src/v2/WorkspacesList/index.ts b/packages/rbac/src/v2/WorkspacesList/index.ts
index 1f76e06a1..8a14872f9 100644
--- a/packages/rbac/src/v2/WorkspacesList/index.ts
+++ b/packages/rbac/src/v2/WorkspacesList/index.ts
@@ -8,7 +8,7 @@ import { BaseAPI } from '@redhat-cloud-services/javascript-clients-shared/dist/b
import { Configuration } from '@redhat-cloud-services/javascript-clients-shared/dist/configuration';
// @ts-ignore
-import type { ProblemsProblem403, RoleBindingsList401Response, RoleBindingsList500Response, WorkspacesWorkspaceListResponse, WorkspacesWorkspaceTypesQueryParam } from '../types';
+import type { ProblemsProblem403, RoleBindingsList401Response, RoleBindingsList500Response, WorkspacesWorkspaceListResponse } from '../types';
export type WorkspacesListParams = {
@@ -25,13 +25,13 @@ export type WorkspacesListParams = {
*/
offset?: number,
/**
- * Defaults to all when param is not supplied.
- * @type { WorkspacesWorkspaceTypesQueryParam }
+ * Filter by workspace type. Supports comma-separated values (e.g. type=standard,ungrouped-hosts). Defaults to all when not supplied. Case-insensitive.
+ * @type { string }
* @memberof WorkspacesListApi
*/
- type?: WorkspacesWorkspaceTypesQueryParam,
+ type?: string,
/**
- * Case sensitive exact match of workspace by name.
+ * Filter by workspace name. Case-insensitive substring match by default; use * for glob patterns (e.g. foo*).
* @type { string }
* @memberof WorkspacesListApi
*/
@@ -73,7 +73,7 @@ const isWorkspacesListObjectParams = (params: [WorkspacesListParams] | unknown[]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
-export const workspacesListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([WorkspacesListParams] | [number, number, WorkspacesWorkspaceTypesQueryParam, string, string, Array, string, AxiosRequestConfig])) => {
+export const workspacesListParamCreator = async (sendRequest: BaseAPI["sendRequest"], ...config: ([WorkspacesListParams] | [number, number, string, string, string, Array, string, AxiosRequestConfig])) => {
const params = isWorkspacesListObjectParams(config) ? config[0] : ['limit', 'offset', 'type', 'name', 'parentId', 'ids', 'orderBy', 'options'].reduce((acc, curr, index) => ({ ...acc, [curr]: config[index] }), {}) as WorkspacesListParams;
const { limit, offset, type, name, parentId, ids, orderBy, options = {} } = params;
const localVarPath = `/workspaces/`;
diff --git a/packages/rbac/src/v2/types/index.ts b/packages/rbac/src/v2/types/index.ts
index 2600c8bf0..81acdcf76 100644
--- a/packages/rbac/src/v2/types/index.ts
+++ b/packages/rbac/src/v2/types/index.ts
@@ -494,7 +494,7 @@ export interface RoleBindingsCreateRoleBindingsRequest {
*/
export interface RoleBindingsCreateRoleBindingsRequestResource {
/**
- *
+ * Identifier of the resource
* @type {string}
* @memberof RoleBindingsCreateRoleBindingsRequestResource
*/
@@ -751,7 +751,7 @@ export interface RoleBindingsListBySubject200Response {
*/
export interface RoleBindingsResource {
/**
- *
+ * Resource identifier
* @type {string}
* @memberof RoleBindingsResource
*/
diff --git a/packages/remediations/src/types/index.ts b/packages/remediations/src/types/index.ts
index 7adef0a73..3ae278a7d 100644
--- a/packages/remediations/src/types/index.ts
+++ b/packages/remediations/src/types/index.ts
@@ -1401,6 +1401,12 @@ export interface RemediationListItem {
* @memberof RemediationListItem
*/
'archived': boolean;
+ /**
+ * Timestamp of the most recent playbook run for the remediation or null if never executed
+ * @type {string}
+ * @memberof RemediationListItem
+ */
+ 'last_run_at'?: string | null;
/**
*
* @type {Array}
diff --git a/packages/vulnerabilities/api.ts b/packages/vulnerabilities/api.ts
index 1c6530874..8265f7ec9 100644
--- a/packages/vulnerabilities/api.ts
+++ b/packages/vulnerabilities/api.ts
@@ -3,7 +3,7 @@
* Vulnerability Engine Manager
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 2.70.8
+ * The version of the OpenAPI document: 2.74.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,1041 +33,2170 @@ export interface AffectedSystemsIdsOut {
data: string | Array;
/**
*
- * @type {Links}
+ * @type {InlineResponse2003Links}
* @memberof AffectedSystemsIdsOut
*/
- links: Links;
+ links: InlineResponse2003Links;
/**
*
- * @type {MetaAffectedSystems}
+ * @type {object}
* @memberof AffectedSystemsIdsOut
*/
- meta: MetaAffectedSystems;
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface AffectedSystemsOut
+ */
+export interface AffectedSystemsOut {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof AffectedSystemsOut
+ */
+ data: string | Array;
+ /**
+ *
+ * @type {InlineResponse2003Links}
+ * @memberof AffectedSystemsOut
+ */
+ links: InlineResponse2003Links;
+ /**
+ *
+ * @type {object}
+ * @memberof AffectedSystemsOut
+ */
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface AnnouncementOut
+ */
+export interface AnnouncementOut {
+ /**
+ * Announcement message.
+ * @type {string}
+ * @memberof AnnouncementOut
+ */
+ message: string;
+ /**
+ * Datetime string.
+ * @type {string}
+ * @memberof AnnouncementOut
+ */
+ last_updated: string;
+}
+/**
+ *
+ * @export
+ * @interface BulkChangeOut
+ */
+export interface BulkChangeOut {
+ /**
+ * List of updated objects/updated object IDs.
+ * @type {Array}
+ * @memberof BulkChangeOut
+ */
+ updated: Array;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof BulkChangeOut
+ */
+ meta?: InlineResponse2002Meta;
+}
+/**
+ *
+ * @export
+ * @interface BusinessRiskListOut
+ */
+export interface BusinessRiskListOut {
+ /**
+ * List of available business risk/business_risk_id pairs.
+ * @type {Array}
+ * @memberof BusinessRiskListOut
+ */
+ data: Array;
+ /**
+ *
+ * @type {InlineResponse2001Meta}
+ * @memberof BusinessRiskListOut
+ */
+ meta: InlineResponse2001Meta;
+}
+/**
+ *
+ * @export
+ * @interface CveDetailOut
+ */
+export interface CveDetailOut {
+ /**
+ *
+ * @type {InlineResponse2002Data}
+ * @memberof CveDetailOut
+ */
+ data?: InlineResponse2002Data;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof CveDetailOut
+ */
+ meta?: InlineResponse2002Meta;
+}
+/**
+ * @type CveOrList
+ * @export
+ */
+export type CveOrList = Array | string;
+
+/**
+ *
+ * @export
+ * @interface CveRiskIn
+ */
+export interface CveRiskIn {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof CveRiskIn
+ */
+ cve: string | Array;
+ /**
+ * Business risk ID to be set, obtained by GET method.
+ * @type {number}
+ * @memberof CveRiskIn
+ */
+ business_risk_id?: number;
+ /**
+ * Complementary text to the business risk.
+ * @type {string}
+ * @memberof CveRiskIn
+ */
+ business_risk_text?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface CveStatusIn
+ */
+export interface CveStatusIn {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof CveStatusIn
+ */
+ cve: string | Array;
+ /**
+ * Status ID to be set, obtained by GET method.
+ * @type {number}
+ * @memberof CveStatusIn
+ */
+ status_id?: number;
+ /**
+ * Complementary text to the status.
+ * @type {string}
+ * @memberof CveStatusIn
+ */
+ status_text?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface CvesWithoutErrataIn
+ */
+export interface CvesWithoutErrataIn {
+ /**
+ * Enable or disable CVEs without Errata feature.
+ * @type {boolean}
+ * @memberof CvesWithoutErrataIn
+ */
+ enable: boolean;
+}
+/**
+ *
+ * @export
+ * @interface CvesWithoutErrataOut
+ */
+export interface CvesWithoutErrataOut {
+ /**
+ *
+ * @type {InlineResponse20022CvesWithoutErrata}
+ * @memberof CvesWithoutErrataOut
+ */
+ cves_without_errata: InlineResponse20022CvesWithoutErrata;
+}
+/**
+ *
+ * @export
+ * @interface CvesWithoutErrataPatchOut
+ */
+export interface CvesWithoutErrataPatchOut {
+ /**
+ *
+ * @type {InlineResponse20023Updated}
+ * @memberof CvesWithoutErrataPatchOut
+ */
+ updated: InlineResponse20023Updated;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof CvesWithoutErrataPatchOut
+ */
+ meta: InlineResponse2002Meta;
+}
+/**
+ *
+ * @export
+ * @interface DashbarOut
+ */
+export interface DashbarOut {
+ /**
+ *
+ * @type {number}
+ * @memberof DashbarOut
+ */
+ exploitable_cves?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof DashbarOut
+ */
+ cves_with_rule?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof DashbarOut
+ */
+ critical_cves?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof DashbarOut
+ */
+ important_cves?: number;
+}
+/**
+ *
+ * @export
+ * @interface Dashboard
+ */
+export interface Dashboard {
+ /**
+ * Number of unique CVEs discovered on the managed systems.
+ * @type {number}
+ * @memberof Dashboard
+ */
+ cves_total: number;
+ /**
+ *
+ * @type {InlineResponse2006CvesBySeverity}
+ * @memberof Dashboard
+ */
+ cves_by_severity: InlineResponse2006CvesBySeverity;
+ /**
+ *
+ * @type {InlineResponse2006RecentCves}
+ * @memberof Dashboard
+ */
+ recent_cves: InlineResponse2006RecentCves;
+ /**
+ * List of recently (14 days) released security rules.
+ * @type {Array}
+ * @memberof Dashboard
+ */
+ recent_rules: Array;
+ /**
+ * Total number of CVEs with associated security rules affecting given account.
+ * @type {number}
+ * @memberof Dashboard
+ */
+ rules_cves_total: number;
+ /**
+ * Total systems registered to Vulnerability service (with applied filtering).
+ * @type {number}
+ * @memberof Dashboard
+ */
+ system_count: number;
+ /**
+ * unique number of CVEs having known exploit affecting at least one system
+ * @type {number}
+ * @memberof Dashboard
+ */
+ exploited_cves_count: number;
+}
+/**
+ *
+ * @export
+ * @interface Errors
+ */
+export interface Errors {
+ /**
+ *
+ * @type {Array}
+ * @memberof Errors
+ */
+ errors: Array;
+}
+/**
+ *
+ * @export
+ * @interface ExecutiveReport
+ */
+export interface ExecutiveReport {
+ /**
+ *
+ * @type {InlineResponse2008SystemCountPerType}
+ * @memberof ExecutiveReport
+ */
+ system_count_per_type?: InlineResponse2008SystemCountPerType;
+ /**
+ * Total number of systems managed by vulnerability application.
+ * @type {number}
+ * @memberof ExecutiveReport
+ */
+ system_count: number;
+ /**
+ * Number of unique CVEs discovered on the managed systems.
+ * @type {number}
+ * @memberof ExecutiveReport
+ */
+ cves_total: number;
+ /**
+ *
+ * @type {InlineResponse2008CvesBySeverity}
+ * @memberof ExecutiveReport
+ */
+ cves_by_severity: InlineResponse2008CvesBySeverity;
+ /**
+ *
+ * @type {InlineResponse2006RecentCves}
+ * @memberof ExecutiveReport
+ */
+ recent_cves: InlineResponse2006RecentCves;
+ /**
+ *
+ * @type {InlineResponse2008RulesBySeverity}
+ * @memberof ExecutiveReport
+ */
+ rules_by_severity: InlineResponse2008RulesBySeverity;
+ /**
+ * Number of unique CVEs discovered on the managed systems.
+ * @type {number}
+ * @memberof ExecutiveReport
+ */
+ rules_total: number;
+ /**
+ *
+ * @type {Array}
+ * @memberof ExecutiveReport
+ */
+ top_cves?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof ExecutiveReport
+ */
+ top_rules?: Array;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof ExecutiveReport
+ */
+ meta?: InlineResponse2002Meta;
+}
+/**
+ *
+ * @export
+ * @interface InlineObject
+ */
+export interface InlineObject {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineObject
+ */
+ cve: string | Array;
+ /**
+ * Business risk ID to be set, obtained by GET method.
+ * @type {number}
+ * @memberof InlineObject
+ */
+ business_risk_id?: number;
+ /**
+ * Complementary text to the business risk.
+ * @type {string}
+ * @memberof InlineObject
+ */
+ business_risk_text?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface InlineObject1
+ */
+export interface InlineObject1 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineObject1
+ */
+ cve: string | Array;
+ /**
+ * Status ID to be set, obtained by GET method.
+ * @type {number}
+ * @memberof InlineObject1
+ */
+ status_id?: number;
+ /**
+ * Complementary text to the status.
+ * @type {string}
+ * @memberof InlineObject1
+ */
+ status_text?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface InlineObject2
+ */
+export interface InlineObject2 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineObject2
+ */
+ inventory_id?: string | Array;
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineObject2
+ */
+ cve: string | Array;
+ /**
+ * Status ID to be set, obtained by GET method. If not specified, global CVE status is set.
+ * @type {number}
+ * @memberof InlineObject2
+ */
+ status_id?: number;
+ /**
+ * Complementary text to the status.
+ * @type {string}
+ * @memberof InlineObject2
+ */
+ status_text?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface InlineObject3
+ */
+export interface InlineObject3 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineObject3
+ */
+ inventory_id: string | Array;
+ /**
+ * Opt out setting to be set.
+ * @type {boolean}
+ * @memberof InlineObject3
+ */
+ opt_out: boolean;
+}
+/**
+ *
+ * @export
+ * @interface InlineObject4
+ */
+export interface InlineObject4 {
+ /**
+ * Array of CVEs to provide info about
+ * @type {Array}
+ * @memberof InlineObject4
+ */
+ cve_list: Array;
+}
+/**
+ *
+ * @export
+ * @interface InlineObject5
+ */
+export interface InlineObject5 {
+ /**
+ * Enable or disable CVEs without Errata feature.
+ * @type {boolean}
+ * @memberof InlineObject5
+ */
+ enable: boolean;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse200
+ */
+export interface InlineResponse200 {
+ /**
+ * Version of application.
+ * @type {string}
+ * @memberof InlineResponse200
+ */
+ application_version: string;
+ /**
+ * Version of database schema.
+ * @type {string | number}
+ * @memberof InlineResponse200
+ */
+ database_version: string | number;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse2001
+ */
+export interface InlineResponse2001 {
+ /**
+ * List of available business risk/business_risk_id pairs.
+ * @type {Array}
+ * @memberof InlineResponse2001
+ */
+ data: Array;
+ /**
+ *
+ * @type {InlineResponse2001Meta}
+ * @memberof InlineResponse2001
+ */
+ meta: InlineResponse2001Meta;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20010
+ */
+export interface InlineResponse20010 {
+ /**
+ * List of available status/status_id pairs.
+ * @type {Array}
+ * @memberof InlineResponse20010
+ */
+ data: Array;
+ /**
+ *
+ * @type {InlineResponse20010Meta}
+ * @memberof InlineResponse20010
+ */
+ meta: InlineResponse20010Meta;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20010Data
+ */
+export interface InlineResponse20010Data {
+ /**
+ * Internal status_id.
+ * @type {number}
+ * @memberof InlineResponse20010Data
+ */
+ id: number;
+ /**
+ * Represenation of internal status_id.
+ * @type {string}
+ * @memberof InlineResponse20010Data
+ */
+ name: string;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20010Meta
+ */
+export interface InlineResponse20010Meta {
+ /**
+ * Total number of available status/status_id pairs.
+ * @type {number}
+ * @memberof InlineResponse20010Meta
+ */
+ total_items: number;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20011
+ */
+export interface InlineResponse20011 {
+ /**
+ * List of updated objects/updated object IDs.
+ * @type {Array}
+ * @memberof InlineResponse20011
+ */
+ updated: Array;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof InlineResponse20011
+ */
+ meta?: InlineResponse2002Meta;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20011Updated
+ */
+export interface InlineResponse20011Updated {
+ /**
+ *
+ * @type {string}
+ * @memberof InlineResponse20011Updated
+ */
+ inventory_id: string;
+ /**
+ *
+ * @type {string}
+ * @memberof InlineResponse20011Updated
+ */
+ cve: string;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20012
+ */
+export interface InlineResponse20012 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineResponse20012
+ */
+ data: string | Array;
+ /**
+ *
+ * @type {InlineResponse2003Links}
+ * @memberof InlineResponse20012
+ */
+ links: InlineResponse2003Links;
+ /**
+ *
+ * @type {object}
+ * @memberof InlineResponse20012
+ */
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20013
+ */
+export interface InlineResponse20013 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineResponse20013
+ */
+ data: string | Array;
+ /**
+ *
+ * @type {InlineResponse2003Links}
+ * @memberof InlineResponse20013
+ */
+ links: InlineResponse2003Links;
+ /**
+ *
+ * @type {object}
+ * @memberof InlineResponse20013
+ */
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20014
+ */
+export interface InlineResponse20014 {
+ /**
+ *
+ * @type {InlineResponse20014Data}
+ * @memberof InlineResponse20014
+ */
+ data: InlineResponse20014Data;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof InlineResponse20014
+ */
+ meta: InlineResponse2002Meta;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20014Data
+ */
+export interface InlineResponse20014Data {
+ /**
+ * Date of last evaluation.
+ * @type {string}
+ * @memberof InlineResponse20014Data
+ */
+ last_evaluation: string | null;
+ /**
+ * Date of last security rules evaluation.
+ * @type {string}
+ * @memberof InlineResponse20014Data
+ */
+ rules_evaluation: string | null;
+ /**
+ * System opt out status.
+ * @type {boolean}
+ * @memberof InlineResponse20014Data
+ */
+ opt_out: boolean;
+ /**
+ * Date of the latest upload of archive.
+ * @type {string}
+ * @memberof InlineResponse20014Data
+ */
+ last_upload: string | null;
+ /**
+ * System stale status.
+ * @type {boolean}
+ * @memberof InlineResponse20014Data
+ */
+ stale?: boolean;
+ /**
+ * Date of the lastest upload of archive taken from Inventory syndicated data.
+ * @type {string}
+ * @memberof InlineResponse20014Data
+ */
+ updated?: string | null;
+ /**
+ * Operating system.
+ * @type {string}
+ * @memberof InlineResponse20014Data
+ */
+ os: string;
+ /**
+ * System is locked to following RHSM version.
+ * @type {string}
+ * @memberof InlineResponse20014Data
+ */
+ rhsm_lock: string | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof InlineResponse20014Data
+ */
+ tags: Array;
+ /**
+ * Type of the host
+ * @type {string}
+ * @memberof InlineResponse20014Data
+ */
+ host_type: InlineResponse20014DataHostTypeEnum;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum InlineResponse20014DataHostTypeEnum {
+ Rpmdnf = 'rpmdnf',
+ Image = 'image'
+}
+
+/**
+ *
+ * @export
+ * @interface InlineResponse20014DataTags
+ */
+export interface InlineResponse20014DataTags {
+ /**
+ * Namespace of single tag.
+ * @type {string}
+ * @memberof InlineResponse20014DataTags
+ */
+ namespace: string | null;
+ /**
+ * Key of the single tag.
+ * @type {string}
+ * @memberof InlineResponse20014DataTags
+ */
+ key: string;
+ /**
+ * Value of the single tag.
+ * @type {string}
+ * @memberof InlineResponse20014DataTags
+ */
+ value: string | null;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20015
+ */
+export interface InlineResponse20015 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineResponse20015
+ */
+ data: string | Array;
+ /**
+ *
+ * @type {InlineResponse2003Links}
+ * @memberof InlineResponse20015
+ */
+ links: InlineResponse2003Links;
+ /**
+ *
+ * @type {object}
+ * @memberof InlineResponse20015
+ */
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20016
+ */
+export interface InlineResponse20016 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineResponse20016
+ */
+ data: string | Array;
+ /**
+ *
+ * @type {InlineResponse2003Links}
+ * @memberof InlineResponse20016
+ */
+ links: InlineResponse2003Links;
+ /**
+ *
+ * @type {object}
+ * @memberof InlineResponse20016
+ */
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20017
+ */
+export interface InlineResponse20017 {
+ /**
+ *
+ * @type {string | Array}
+ * @memberof InlineResponse20017
+ */
+ data: string | Array;
+ /**
+ *
+ * @type {InlineResponse2003Links}
+ * @memberof InlineResponse20017
+ */
+ links: InlineResponse2003Links;
+ /**
+ *
+ * @type {object}
+ * @memberof InlineResponse20017
+ */
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20018
+ */
+export interface InlineResponse20018 {
+ /**
+ *
+ * @type {Array}
+ * @memberof InlineResponse20018
+ */
+ data: Array;
+ /**
+ *
+ * @type {InlineResponse2003Links}
+ * @memberof InlineResponse20018
+ */
+ links: InlineResponse2003Links;
+ /**
+ *
+ * @type {object}
+ * @memberof InlineResponse20018
+ */
+ meta: object;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20018Attributes
+ */
+export interface InlineResponse20018Attributes {
+ /**
+ * String representation of cvss3 or cvvs2 (if v3 is not present) score of the CVE.
+ * @type {string}
+ * @memberof InlineResponse20018Attributes
+ */
+ cvss_score: string | null;
+ /**
+ * Red Hat security impact of the CVE.
+ * @type {string}
+ * @memberof InlineResponse20018Attributes
+ */
+ impact: string;
+ /**
+ * Synopsis of the CVE.
+ * @type {string}
+ * @memberof InlineResponse20018Attributes
+ */
+ synopsis: string;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20018Data
+ */
+export interface InlineResponse20018Data {
+ /**
+ * CVE id.
+ * @type {string}
+ * @memberof InlineResponse20018Data
+ */
+ id: string;
+ /**
+ * Type of the record.
+ * @type {string}
+ * @memberof InlineResponse20018Data
+ */
+ type: string;
+ /**
+ *
+ * @type {InlineResponse20018Attributes}
+ * @memberof InlineResponse20018Data
+ */
+ attributes: InlineResponse20018Attributes;
}
/**
*
* @export
- * @interface AffectedSystemsOut
+ * @interface InlineResponse20019
*/
-export interface AffectedSystemsOut {
+export interface InlineResponse20019 {
/**
*
* @type {string | Array}
- * @memberof AffectedSystemsOut
+ * @memberof InlineResponse20019
*/
data: string | Array;
/**
*
- * @type {Links}
- * @memberof AffectedSystemsOut
+ * @type {InlineResponse2003Links}
+ * @memberof InlineResponse20019
*/
- links: Links;
+ links: InlineResponse2003Links;
/**
*
- * @type {MetaAffectedSystems}
- * @memberof AffectedSystemsOut
+ * @type {object}
+ * @memberof InlineResponse20019
*/
- meta: MetaAffectedSystems;
+ meta: object;
}
/**
*
* @export
- * @interface AnnouncementOut
+ * @interface InlineResponse2001Data
*/
-export interface AnnouncementOut {
+export interface InlineResponse2001Data {
+ /**
+ * Internal business_risk_id.
+ * @type {number}
+ * @memberof InlineResponse2001Data
+ */
+ id: number;
+ /**
+ * Represenation of internal business_risk_id.
+ * @type {string}
+ * @memberof InlineResponse2001Data
+ */
+ name: string;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse2001Meta
+ */
+export interface InlineResponse2001Meta {
+ /**
+ * Total number of available business risk/business_risk_id pairs.
+ * @type {number}
+ * @memberof InlineResponse2001Meta
+ */
+ total_items: number;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse2002
+ */
+export interface InlineResponse2002 {
+ /**
+ *
+ * @type {InlineResponse2002Data}
+ * @memberof InlineResponse2002
+ */
+ data?: InlineResponse2002Data;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof InlineResponse2002
+ */
+ meta?: InlineResponse2002Meta;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20020
+ */
+export interface InlineResponse20020 {
/**
* Announcement message.
* @type {string}
- * @memberof AnnouncementOut
+ * @memberof InlineResponse20020
*/
message: string;
/**
* Datetime string.
* @type {string}
- * @memberof AnnouncementOut
+ * @memberof InlineResponse20020
*/
last_updated: string;
}
/**
*
* @export
- * @interface BulkChangeOut
+ * @interface InlineResponse20021
*/
-export interface BulkChangeOut {
+export interface InlineResponse20021 {
/**
- * List of updated objects/updated object IDs.
- * @type {Array}
- * @memberof BulkChangeOut
+ *
+ * @type {number}
+ * @memberof InlineResponse20021
*/
- updated: Array;
+ exploitable_cves?: number;
/**
*
- * @type {MetaPermissions}
- * @memberof BulkChangeOut
+ * @type {number}
+ * @memberof InlineResponse20021
+ */
+ cves_with_rule?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof InlineResponse20021
+ */
+ critical_cves?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof InlineResponse20021
*/
- meta?: MetaPermissions;
+ important_cves?: number;
}
/**
*
* @export
- * @interface BusinessRiskListOut
+ * @interface InlineResponse20022
*/
-export interface BusinessRiskListOut {
- /**
- * List of available business risk/business_risk_id pairs.
- * @type {Array}
- * @memberof BusinessRiskListOut
- */
- data: Array;
+export interface InlineResponse20022 {
/**
*
- * @type {BusinessRiskListOutMeta}
- * @memberof BusinessRiskListOut
+ * @type {InlineResponse20022CvesWithoutErrata}
+ * @memberof InlineResponse20022
*/
- meta: BusinessRiskListOutMeta;
+ cves_without_errata: InlineResponse20022CvesWithoutErrata;
}
/**
*
* @export
- * @interface BusinessRiskListOutData
+ * @interface InlineResponse20022CvesWithoutErrata
*/
-export interface BusinessRiskListOutData {
- /**
- * Internal business_risk_id.
- * @type {number}
- * @memberof BusinessRiskListOutData
- */
- id: number;
+export interface InlineResponse20022CvesWithoutErrata {
/**
- * Represenation of internal business_risk_id.
- * @type {string}
- * @memberof BusinessRiskListOutData
+ *
+ * @type {boolean}
+ * @memberof InlineResponse20022CvesWithoutErrata
*/
- name: string;
+ enabled?: boolean;
}
/**
*
* @export
- * @interface BusinessRiskListOutMeta
+ * @interface InlineResponse20023
*/
-export interface BusinessRiskListOutMeta {
+export interface InlineResponse20023 {
/**
- * Total number of available business risk/business_risk_id pairs.
- * @type {number}
- * @memberof BusinessRiskListOutMeta
+ *
+ * @type {InlineResponse20023Updated}
+ * @memberof InlineResponse20023
*/
- total_items: number;
+ updated: InlineResponse20023Updated;
+ /**
+ *
+ * @type {InlineResponse2002Meta}
+ * @memberof InlineResponse20023
+ */
+ meta: InlineResponse2002Meta;
}
/**
*
* @export
- * @interface CveDetailOut
+ * @interface InlineResponse20023Updated
*/
-export interface CveDetailOut {
+export interface InlineResponse20023Updated {
/**
*
- * @type {CveDetailOutData}
- * @memberof CveDetailOut
+ * @type {string}
+ * @memberof InlineResponse20023Updated
*/
- data?: CveDetailOutData;
+ org_id?: string;
/**
*
- * @type {MetaPermissions}
- * @memberof CveDetailOut
+ * @type {InlineResponse20022CvesWithoutErrata}
+ * @memberof InlineResponse20023Updated
+ */
+ cves_without_errata?: InlineResponse20022CvesWithoutErrata;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponse20024
+ */
+export interface InlineResponse20024 {
+ /**
+ * Number of deleted notifications for CVEs
+ * @type {number}
+ * @memberof InlineResponse20024
*/
- meta?: MetaPermissions;
+ deleted: number;
}
/**
*
* @export
- * @interface CveDetailOutData
+ * @interface InlineResponse2002Data
*/
-export interface CveDetailOutData {
+export interface InlineResponse2002Data {
/**
* CVE id.
* @type {string}
- * @memberof CveDetailOutData
+ * @memberof InlineResponse2002Data
*/
id: string;
/**
* Type of the record.
* @type {string}
- * @memberof CveDetailOutData
+ * @memberof InlineResponse2002Data
*/
type: string;
/**
*
- * @type {CveDetailOutDataAttributes}
- * @memberof CveDetailOutData
+ * @type {InlineResponse2002DataAttributes}
+ * @memberof InlineResponse2002Data
*/
- attributes: CveDetailOutDataAttributes;
+ attributes: InlineResponse2002DataAttributes;
}
/**
*
* @export
- * @interface CveDetailOutDataAttributes
+ * @interface InlineResponse2002DataAttributes
*/
-export interface CveDetailOutDataAttributes {
+export interface InlineResponse2002DataAttributes {
/**
* Business risk of the vulnerability.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
business_risk: string;
/**
* Internal ID of the vulnerability business risk.
* @type {number}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
business_risk_id: number;
/**
* Complementary text to the business risk.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
business_risk_text: string | null;
/**
* \"Celebrity\" name of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
celebrity_name: string | null;
/**
* cvss2 metrics of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
cvss2_metrics: string | null;
/**
* String representation of cvss2 score of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
cvss2_score: string | null;
/**
* cvss3 metrics of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
cvss3_metrics: string | null;
/**
* String representation of cvss3 score of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
cvss3_score: string | null;
/**
* Description of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
description: string;
/**
* String representation of ISO-8601 formatted date of last modification of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
modified_date: string | null;
/**
* Red Hat security impact of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
impact: string;
/**
* String representation of ISO-8601 formatted date of first public disclosure of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
public_date: string | null;
/**
* Additional resource about the CVE, provided by Red Hat.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
redhat_url: string | null;
/**
*
- * @type {Array}
- * @memberof CveDetailOutDataAttributes
+ * @type {Array}
+ * @memberof InlineResponse2002DataAttributes
*/
- rules: Array;
+ rules: Array;
/**
* Additional resources about the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
secondary_url: string | null;
/**
* Status of the vulnerability.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
status: string;
/**
* Internal ID of the vulnerability status.
* @type {number}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
status_id: number;
/**
* Complementary text to the status.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
status_text: string | null;
/**
* Synopsis of the CVE.
* @type {string}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
synopsis: string;
/**
* Counts of systems with given status type.
* @type {object}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
systems_status_detail: object;
/**
* How many systems-CVE pairs have different status than CVE-level.
* @type {number}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
systems_status_divergent: number;
/**
* List of advisory names or detailed advisory information
* @type {Array}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
advisories_list: Array | null;
/**
* Shows whether a CVE has known exploits or not
* @type {boolean}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
known_exploit: boolean;
/**
* Number of systems that are affected by given CVE but are not vulnerable.
* @type {number}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
affected_but_not_vulnerable: number | null;
/**
* Number of systems that are overall affected by given CVE
* @type {number}
- * @memberof CveDetailOutDataAttributes
+ * @memberof InlineResponse2002DataAttributes
*/
affected_systems?: number | null;
}
-/**
- * @type CveOrList
- * @export
- */
-export type CveOrList = Array | string;
-
/**
*
* @export
- * @interface CveRiskIn
+ * @interface InlineResponse2002DataAttributesRules
*/
-export interface CveRiskIn {
+export interface InlineResponse2002DataAttributesRules {
/**
- *
- * @type {CveOrList}
- * @memberof CveRiskIn
+ * ID(s) of associated security rule(s).
+ * @type {string}
+ * @memberof InlineResponse2002DataAttributesRules
*/
- cve: CveOrList;
+ rule_id: string;
/**
- * Business risk ID to be set, obtained by GET method.
- * @type {number}
- * @memberof CveRiskIn
+ * Description of the rule.
+ * @type {string}
+ * @memberof InlineResponse2002DataAttributesRules
*/
- business_risk_id?: number;
+ description: string | null;
/**
- * Complementary text to the business risk.
+ * Summary of the rule.
* @type {string}
- * @memberof CveRiskIn
+ * @memberof InlineResponse2002DataAttributesRules
*/
- business_risk_text?: string | null;
-}
-/**
- *
- * @export
- * @interface CveStatusIn
- */
-export interface CveStatusIn {
+ summary: string | null;
/**
- *
- * @type {CveOrList}
- * @memberof CveStatusIn
+ * Indicator whter reboot is required to mitigate vulnerability.
+ * @type {boolean}
+ * @memberof InlineResponse2002DataAttributesRules
*/
- cve: CveOrList;
+ reboot_required: boolean | null;
/**
- * Status ID to be set, obtained by GET method.
+ * Number of available Ansible playbooks for remediation/mitigation.
* @type {number}
- * @memberof CveStatusIn
+ * @memberof InlineResponse2002DataAttributesRules
*/
- status_id?: number;
+ playbook_count: number | null;
/**
- * Complementary text to the status.
+ * Indicates how likely remediation can change environment on the remediatied system.
+ * @type {number}
+ * @memberof InlineResponse2002DataAttributesRules
+ */
+ change_risk: number | null;
+ /**
+ * ID of associated Red Hat knowledgebase article.
+ * @type {number}
+ * @memberof InlineResponse2002DataAttributesRules
+ */
+ kbase_node_id: number | null;
+ /**
+ * List of CVEs associated with the rule.
+ * @type {Array}
+ * @memberof InlineResponse2002DataAttributesRules
+ */
+ associated_cves: Array;
+ /**
+ * Shows rules impact number from 1 to 4
+ * @type {number}
+ * @memberof InlineResponse2002DataAttributesRules
+ */
+ rule_impact: number | null;
+ /**
+ * Number of systems affected by the rule.
+ * @type {number}
+ * @memberof InlineResponse2002DataAttributesRules
+ */
+ systems_affected?: number;
+ /**
+ * Date when the rule was published.
* @type {string}
- * @memberof CveStatusIn
+ * @memberof InlineResponse2002DataAttributesRules
*/
- status_text?: string | null;
+ publish_date: string | null;
}
/**
*
* @export
- * @interface CvesWithoutErrataIn
+ * @interface InlineResponse2002Meta
*/
-export interface CvesWithoutErrataIn {
+export interface InlineResponse2002Meta {
/**
- * Enable or disable CVEs without Errata feature.
- * @type {boolean}
- * @memberof CvesWithoutErrataIn
+ * Fetched permissions from RBAC for given user
+ * @type {Array}
+ * @memberof InlineResponse2002Meta
*/
- enable: boolean;
+ permissions: Array