Skip to content

Commit

Permalink
Release new version of Js clients on 23-08-31
Browse files Browse the repository at this point in the history
  • Loading branch information
karelhala committed Aug 31, 2023
1 parent 9c11347 commit 44f414c
Show file tree
Hide file tree
Showing 270 changed files with 22,727 additions and 1,417 deletions.
76 changes: 69 additions & 7 deletions packages/host-inventory/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,56 @@ import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';

/**
* Data of a single account staleness.
* @export
* @interface AccountStalenessIn
*/
export interface AccountStalenessIn {
}
/**
*
* @export
* @interface AccountStalenessInAnyOf
*/
export interface AccountStalenessInAnyOf {
/**
*
* @type {string}
* @memberof AccountStalenessInAnyOf
*/
conventional_staleness_delta?: string;
/**
*
* @type {string}
* @memberof AccountStalenessInAnyOf
*/
conventional_stale_warning_delta?: string;
/**
*
* @type {string}
* @memberof AccountStalenessInAnyOf
*/
conventional_culling_delta?: string;
/**
*
* @type {string}
* @memberof AccountStalenessInAnyOf
*/
immutable_staleness_delta?: string;
/**
*
* @type {string}
* @memberof AccountStalenessInAnyOf
*/
immutable_stale_warning_delta?: string;
/**
*
* @type {string}
* @memberof AccountStalenessInAnyOf
*/
immutable_culling_delta?: string;
}
/**
* Data of a account staleness.
* @export
Expand Down Expand Up @@ -2625,10 +2675,15 @@ export const AccountsStalenessApiAxiosParamCreator = function (configuration?: C
/**
* Create account staleness record. Required permissions: inventory:TODO:write
* @summary Create account staleness record
* @param {AccountStalenessIn} accountStalenessIn Data required to create a record for a account staleness.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiAccountStalenessCreateStaleness: async (options: any = {}): Promise<RequestArgs> => {
apiAccountStalenessCreateStaleness: async (accountStalenessIn: AccountStalenessIn, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'accountStalenessIn' is not null or undefined
if (accountStalenessIn === null || accountStalenessIn === undefined) {
throw new RequiredError('accountStalenessIn','Required parameter accountStalenessIn was null or undefined when calling apiAccountStalenessCreateStaleness.');
}
const localVarPath = `/account/staleness`;
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
let baseOptions;
Expand All @@ -2649,11 +2704,15 @@ export const AccountsStalenessApiAxiosParamCreator = function (configuration?: C



localVarHeaderParameter['Content-Type'] = 'application/json';

localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query};
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
delete localVarUrlObj.search;
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
const needsSerialization = (typeof accountStalenessIn !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(accountStalenessIn !== undefined ? accountStalenessIn : {}) : (accountStalenessIn || "");

return {
url: globalImportUrl.format(localVarUrlObj),
Expand Down Expand Up @@ -2786,11 +2845,12 @@ export const AccountsStalenessApiFp = function(configuration?: Configuration) {
/**
* Create account staleness record. Required permissions: inventory:TODO:write
* @summary Create account staleness record
* @param {AccountStalenessIn} accountStalenessIn Data required to create a record for a account staleness.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiAccountStalenessCreateStaleness(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountStalenessOutput>> {
const localVarAxiosArgs = await AccountsStalenessApiAxiosParamCreator(configuration).apiAccountStalenessCreateStaleness(options);
async apiAccountStalenessCreateStaleness(accountStalenessIn: AccountStalenessIn, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountStalenessOutput>> {
const localVarAxiosArgs = await AccountsStalenessApiAxiosParamCreator(configuration).apiAccountStalenessCreateStaleness(accountStalenessIn, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
Expand Down Expand Up @@ -2847,11 +2907,12 @@ export const AccountsStalenessApiFactory = function (configuration?: Configurati
/**
* Create account staleness record. Required permissions: inventory:TODO:write
* @summary Create account staleness record
* @param {AccountStalenessIn} accountStalenessIn Data required to create a record for a account staleness.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiAccountStalenessCreateStaleness(options?: any): AxiosPromise<AccountStalenessOutput> {
return AccountsStalenessApiFp(configuration).apiAccountStalenessCreateStaleness(options).then((request) => request(axios, basePath));
apiAccountStalenessCreateStaleness(accountStalenessIn: AccountStalenessIn, options?: any): AxiosPromise<AccountStalenessOutput> {
return AccountsStalenessApiFp(configuration).apiAccountStalenessCreateStaleness(accountStalenessIn, options).then((request) => request(axios, basePath));
},
/**
* Read the entire list of all accounts staleness available. Required permissions: inventory:TODO:read
Expand Down Expand Up @@ -2893,12 +2954,13 @@ export class AccountsStalenessApi extends BaseAPI {
/**
* Create account staleness record. Required permissions: inventory:TODO:write
* @summary Create account staleness record
* @param {AccountStalenessIn} accountStalenessIn Data required to create a record for a account staleness.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AccountsStalenessApi
*/
public apiAccountStalenessCreateStaleness(options?: any) {
return AccountsStalenessApiFp(this.configuration).apiAccountStalenessCreateStaleness(options).then((request) => request(this.axios, this.basePath));
public apiAccountStalenessCreateStaleness(accountStalenessIn: AccountStalenessIn, options?: any) {
return AccountsStalenessApiFp(this.configuration).apiAccountStalenessCreateStaleness(accountStalenessIn, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand Down
11 changes: 6 additions & 5 deletions packages/host-inventory/doc/classes/AccountsStalenessApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ BaseAPI.configuration

### apiAccountStalenessCreateStaleness

**apiAccountStalenessCreateStaleness**(`options?`): `Promise`<`AxiosResponse`<[`AccountStalenessOutput`](../interfaces/AccountStalenessOutput.md)\>\>
**apiAccountStalenessCreateStaleness**(`accountStalenessIn`, `options?`): `Promise`<`AxiosResponse`<[`AccountStalenessOutput`](../interfaces/AccountStalenessOutput.md)\>\>

Create account staleness record. Required permissions: inventory:TODO:write

Expand All @@ -117,6 +117,7 @@ AccountsStalenessApi

| Name | Type | Description |
| :------ | :------ | :------ |
| `accountStalenessIn` | [`AccountStalenessIn`](../interfaces/AccountStalenessIn.md) | Data required to create a record for a account staleness. |
| `options?` | `any` | Override http request option. |

#### Returns
Expand All @@ -125,7 +126,7 @@ AccountsStalenessApi

#### Defined in

[api.ts:2900](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2900)
[api.ts:2962](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2962)

___

Expand Down Expand Up @@ -157,7 +158,7 @@ AccountsStalenessApi

#### Defined in

[api.ts:2911](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2911)
[api.ts:2973](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2973)

___

Expand Down Expand Up @@ -189,7 +190,7 @@ AccountsStalenessApi

#### Defined in

[api.ts:2922](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2922)
[api.ts:2984](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2984)

___

Expand Down Expand Up @@ -221,4 +222,4 @@ AccountsStalenessApi

#### Defined in

[api.ts:2933](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2933)
[api.ts:2995](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L2995)
20 changes: 10 additions & 10 deletions packages/host-inventory/doc/classes/GroupsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ GroupsApi

#### Defined in

[api.ts:3826](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3826)
[api.ts:3888](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3888)

___

Expand Down Expand Up @@ -169,7 +169,7 @@ GroupsApi

#### Defined in

[api.ts:3842](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3842)
[api.ts:3904](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3904)

___

Expand Down Expand Up @@ -206,7 +206,7 @@ GroupsApi

#### Defined in

[api.ts:3858](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3858)
[api.ts:3920](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3920)

___

Expand Down Expand Up @@ -239,7 +239,7 @@ GroupsApi

#### Defined in

[api.ts:3870](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3870)
[api.ts:3932](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3932)

___

Expand Down Expand Up @@ -272,7 +272,7 @@ GroupsApi

#### Defined in

[api.ts:3882](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3882)
[api.ts:3944](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3944)

___

Expand Down Expand Up @@ -309,7 +309,7 @@ GroupsApi

#### Defined in

[api.ts:3898](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3898)
[api.ts:3960](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3960)

___

Expand Down Expand Up @@ -346,7 +346,7 @@ GroupsApi

#### Defined in

[api.ts:3914](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3914)
[api.ts:3976](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3976)

___

Expand Down Expand Up @@ -380,7 +380,7 @@ GroupsApi

#### Defined in

[api.ts:3927](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3927)
[api.ts:3989](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3989)

___

Expand Down Expand Up @@ -414,7 +414,7 @@ GroupsApi

#### Defined in

[api.ts:3940](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3940)
[api.ts:4002](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L4002)

___

Expand Down Expand Up @@ -448,4 +448,4 @@ GroupsApi

#### Defined in

[api.ts:3953](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L3953)
[api.ts:4015](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L4015)
24 changes: 12 additions & 12 deletions packages/host-inventory/doc/classes/HostsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ HostsApi

#### Defined in

[api.ts:5269](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5269)
[api.ts:5331](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5331)

___

Expand Down Expand Up @@ -168,7 +168,7 @@ HostsApi

#### Defined in

[api.ts:5282](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5282)
[api.ts:5344](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5344)

___

Expand Down Expand Up @@ -213,7 +213,7 @@ HostsApi

#### Defined in

[api.ts:5306](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5306)
[api.ts:5368](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5368)

___

Expand Down Expand Up @@ -252,7 +252,7 @@ HostsApi

#### Defined in

[api.ts:5324](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5324)
[api.ts:5386](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5386)

___

Expand Down Expand Up @@ -303,7 +303,7 @@ HostsApi

#### Defined in

[api.ts:5354](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5354)
[api.ts:5416](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5416)

___

Expand Down Expand Up @@ -342,7 +342,7 @@ HostsApi

#### Defined in

[api.ts:5372](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5372)
[api.ts:5434](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5434)

___

Expand Down Expand Up @@ -379,7 +379,7 @@ HostsApi

#### Defined in

[api.ts:5388](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5388)
[api.ts:5450](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5450)

___

Expand Down Expand Up @@ -417,7 +417,7 @@ HostsApi

#### Defined in

[api.ts:5405](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5405)
[api.ts:5467](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5467)

___

Expand Down Expand Up @@ -450,7 +450,7 @@ HostsApi

#### Defined in

[api.ts:5417](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5417)
[api.ts:5479](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5479)

___

Expand Down Expand Up @@ -486,7 +486,7 @@ HostsApi

#### Defined in

[api.ts:5432](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5432)
[api.ts:5494](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5494)

___

Expand Down Expand Up @@ -521,7 +521,7 @@ HostsApi

#### Defined in

[api.ts:5446](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5446)
[api.ts:5508](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5508)

___

Expand Down Expand Up @@ -557,4 +557,4 @@ HostsApi

#### Defined in

[api.ts:5461](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5461)
[api.ts:5523](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5523)
4 changes: 2 additions & 2 deletions packages/host-inventory/doc/classes/ResourceTypesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ResourceTypesApi

#### Defined in

[api.ts:5667](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5667)
[api.ts:5729](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5729)

___

Expand Down Expand Up @@ -160,4 +160,4 @@ ResourceTypesApi

#### Defined in

[api.ts:5680](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5680)
[api.ts:5742](https://github.com/RedHatInsights/javascript-clients/blob/master/packages/host-inventory/api.ts#L5742)
Loading

0 comments on commit 44f414c

Please sign in to comment.