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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/compliance/src/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.6.0
7.0.0
4 changes: 0 additions & 4 deletions packages/config-manager/src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/config-manager/src/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.20.0
7.0.0
3 changes: 2 additions & 1 deletion packages/config-manager/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {

const endpointList = {
createProfile,
getProfile,
getProfile,


};

Expand Down
63 changes: 0 additions & 63 deletions packages/config-manager/src/docs/CreateProfileApi.md

This file was deleted.

26 changes: 0 additions & 26 deletions packages/config-manager/src/docs/CreateProfileRequest.md

This file was deleted.

62 changes: 0 additions & 62 deletions packages/config-manager/src/docs/GetProfileApi.md

This file was deleted.

34 changes: 0 additions & 34 deletions packages/config-manager/src/docs/Profile.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/host-inventory/src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/host-inventory/src/ApiGroupGetGroupList/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/host-inventory/src/ApiGroupGetGroupsById/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
72 changes: 72 additions & 0 deletions packages/host-inventory/src/ApiViewsCloneView/index.ts
Original file line number Diff line number Diff line change
@@ -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 \". <br /><br /> Required permissions: inventory:views:write <br /><br /> <b>NOTE:</b> 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<ApiViewsCloneViewReturnType>(Promise.resolve(args));
}

export default apiViewsCloneViewParamCreator;
74 changes: 74 additions & 0 deletions packages/host-inventory/src/ApiViewsCreateView/index.ts
Original file line number Diff line number Diff line change
@@ -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. <br /><br /> Required permissions: inventory:views:write <br /><br /> <b>NOTE:</b> 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<ApiViewsCreateViewReturnType>(Promise.resolve(args));
}

export default apiViewsCreateViewParamCreator;
Loading
Loading