Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ models/ApiUpload.ts
models/ApiUploadResponse.ts
models/ApiUrlValidationResponse.ts
models/ConfigDistributionArch.ts
models/ConfigDistributionMinorVersion.ts
models/ConfigDistributionVersion.ts
models/ConfigExtendedReleaseFeature.ts
models/ErrorsErrorResponse.ts
models/ErrorsHandlerError.ts
models/index.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,27 @@ import {
ConfigDistributionVersionToJSON,
ConfigDistributionVersionToJSONTyped,
} from './ConfigDistributionVersion';
import type { ConfigDistributionMinorVersion } from './ConfigDistributionMinorVersion';
import {
ConfigDistributionMinorVersionFromJSON,
ConfigDistributionMinorVersionFromJSONTyped,
ConfigDistributionMinorVersionToJSON,
ConfigDistributionMinorVersionToJSONTyped,
} from './ConfigDistributionMinorVersion';
import type { ConfigDistributionArch } from './ConfigDistributionArch';
import {
ConfigDistributionArchFromJSON,
ConfigDistributionArchFromJSONTyped,
ConfigDistributionArchToJSON,
ConfigDistributionArchToJSONTyped,
} from './ConfigDistributionArch';
import type { ConfigExtendedReleaseFeature } from './ConfigExtendedReleaseFeature';
import {
ConfigExtendedReleaseFeatureFromJSON,
ConfigExtendedReleaseFeatureFromJSONTyped,
ConfigExtendedReleaseFeatureToJSON,
ConfigExtendedReleaseFeatureToJSONTyped,
} from './ConfigExtendedReleaseFeature';

/**
*
Expand All @@ -40,12 +54,24 @@ export interface ApiRepositoryParameterResponse {
* @memberof ApiRepositoryParameterResponse
*/
distributionArches?: Array<ConfigDistributionArch>;
/**
* Minor versions available for repository creation (filtered by subscriptions)
* @type {Array<ConfigDistributionMinorVersion>}
* @memberof ApiRepositoryParameterResponse
*/
distributionMinorVersions?: Array<ConfigDistributionMinorVersion>;
/**
* Versions available for repository creation
* @type {Array<ConfigDistributionVersion>}
* @memberof ApiRepositoryParameterResponse
*/
distributionVersions?: Array<ConfigDistributionVersion>;
/**
* Extended release features available (filtered by subscriptions)
* @type {Array<ConfigExtendedReleaseFeature>}
* @memberof ApiRepositoryParameterResponse
*/
extendedReleaseFeatures?: Array<ConfigExtendedReleaseFeature>;
}

/**
Expand All @@ -66,7 +92,9 @@ export function ApiRepositoryParameterResponseFromJSONTyped(json: any, ignoreDis
return {

'distributionArches': json['distribution_arches'] == null ? undefined : ((json['distribution_arches'] as Array<any>).map(ConfigDistributionArchFromJSON)),
'distributionMinorVersions': json['distribution_minor_versions'] == null ? undefined : ((json['distribution_minor_versions'] as Array<any>).map(ConfigDistributionMinorVersionFromJSON)),
'distributionVersions': json['distribution_versions'] == null ? undefined : ((json['distribution_versions'] as Array<any>).map(ConfigDistributionVersionFromJSON)),
'extendedReleaseFeatures': json['extended_release_features'] == null ? undefined : ((json['extended_release_features'] as Array<any>).map(ConfigExtendedReleaseFeatureFromJSON)),
};
}

Expand All @@ -82,7 +110,9 @@ export function ApiRepositoryParameterResponseToJSONTyped(value?: ApiRepositoryP
return {

'distribution_arches': value['distributionArches'] == null ? undefined : ((value['distributionArches'] as Array<any>).map(ConfigDistributionArchToJSON)),
'distribution_minor_versions': value['distributionMinorVersions'] == null ? undefined : ((value['distributionMinorVersions'] as Array<any>).map(ConfigDistributionMinorVersionToJSON)),
'distribution_versions': value['distributionVersions'] == null ? undefined : ((value['distributionVersions'] as Array<any>).map(ConfigDistributionVersionToJSON)),
'extended_release_features': value['extendedReleaseFeatures'] == null ? undefined : ((value['extendedReleaseFeatures'] as Array<any>).map(ConfigExtendedReleaseFeatureToJSON)),
};
}

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ export interface ApiTemplateRequest {
* @memberof ApiTemplateRequest
*/
description?: string;
/**
* Extended release type (eus, e4s)
* @type {string}
* @memberof ApiTemplateRequest
*/
extendedRelease?: string;
/**
* Extended release version (9.4, 9.6, etc.)
* @type {string}
* @memberof ApiTemplateRequest
*/
extendedReleaseVersion?: string;
/**
* Name of the template
* @type {string}
Expand Down Expand Up @@ -87,6 +99,8 @@ export function ApiTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator:
'arch': json['arch'],
'date': json['date'] == null ? undefined : json['date'],
'description': json['description'] == null ? undefined : json['description'],
'extendedRelease': json['extended_release'] == null ? undefined : json['extended_release'],
'extendedReleaseVersion': json['extended_release_version'] == null ? undefined : json['extended_release_version'],
'name': json['name'],
'repositoryUuids': json['repository_uuids'],
'useLatest': json['use_latest'] == null ? undefined : json['use_latest'],
Expand All @@ -108,6 +122,8 @@ export function ApiTemplateRequestToJSONTyped(value?: ApiTemplateRequest | null,
'arch': value['arch'],
'date': value['date'],
'description': value['description'],
'extended_release': value['extendedRelease'],
'extended_release_version': value['extendedReleaseVersion'],
'name': value['name'],
'repository_uuids': value['repositoryUuids'],
'use_latest': value['useLatest'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ export interface ApiTemplateResponse {
* @memberof ApiTemplateResponse
*/
description?: string;
/**
* Extended release type (eus, e4s)
* @type {string}
* @memberof ApiTemplateResponse
*/
extendedRelease?: string;
/**
* Extended release version (9.4, 9.6, etc.)
* @type {string}
* @memberof ApiTemplateResponse
*/
extendedReleaseVersion?: string;
/**
* Error of last update_latest_snapshot task that updated the template
* @type {string}
Expand Down Expand Up @@ -178,6 +190,8 @@ export function ApiTemplateResponseFromJSONTyped(json: any, ignoreDiscriminator:
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
'date': json['date'] == null ? undefined : json['date'],
'description': json['description'] == null ? undefined : json['description'],
'extendedRelease': json['extended_release'] == null ? undefined : json['extended_release'],
'extendedReleaseVersion': json['extended_release_version'] == null ? undefined : json['extended_release_version'],
'lastUpdateSnapshotError': json['last_update_snapshot_error'] == null ? undefined : json['last_update_snapshot_error'],
'lastUpdateTask': json['last_update_task'] == null ? undefined : ApiTaskInfoResponseFromJSON(json['last_update_task']),
'lastUpdateTaskUuid': json['last_update_task_uuid'] == null ? undefined : json['last_update_task_uuid'],
Expand Down Expand Up @@ -212,6 +226,8 @@ export function ApiTemplateResponseToJSONTyped(value?: Omit<ApiTemplateResponse,
'created_by': value['createdBy'],
'date': value['date'],
'description': value['description'],
'extended_release': value['extendedRelease'],
'extended_release_version': value['extendedReleaseVersion'],
'last_update_snapshot_error': value['lastUpdateSnapshotError'],
'last_update_task': ApiTaskInfoResponseToJSON(value['lastUpdateTask']),
'last_update_task_uuid': value['lastUpdateTaskUuid'],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/* tslint:disable */
/* eslint-disable */
/**
* ContentSourcesBackend
* The API for the repositories of the content sources that you can use to create and manage repositories between third-party applications and the [Red Hat Hybrid Cloud Console](https://console.redhat.com). With these repositories, you can build and deploy images using Image Builder for Cloud, on-Premise, and Edge. You can handle tasks, search for required RPMs, fetch a GPGKey from the URL, and list the features within applications.
*
* The version of the OpenAPI document: v1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from '../runtime';
/**
*
* @export
* @interface ConfigDistributionMinorVersion
*/
export interface ConfigDistributionMinorVersion {
/**
*
* @type {Array<string>}
* @memberof ConfigDistributionMinorVersion
*/
featureNames?: Array<string>;
/**
*
* @type {string}
* @memberof ConfigDistributionMinorVersion
*/
label?: string;
/**
*
* @type {string}
* @memberof ConfigDistributionMinorVersion
*/
major?: string;
/**
*
* @type {string}
* @memberof ConfigDistributionMinorVersion
*/
name?: string;
}

/**
* Check if a given object implements the ConfigDistributionMinorVersion interface.
*/
export function instanceOfConfigDistributionMinorVersion(value: object): value is ConfigDistributionMinorVersion {
return true;
}

export function ConfigDistributionMinorVersionFromJSON(json: any): ConfigDistributionMinorVersion {
return ConfigDistributionMinorVersionFromJSONTyped(json, false);
}

export function ConfigDistributionMinorVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigDistributionMinorVersion {
if (json == null) {
return json;
}
return {

'featureNames': json['feature_names'] == null ? undefined : json['feature_names'],
'label': json['label'] == null ? undefined : json['label'],
'major': json['major'] == null ? undefined : json['major'],
'name': json['name'] == null ? undefined : json['name'],
};
}

export function ConfigDistributionMinorVersionToJSON(json: any): ConfigDistributionMinorVersion {
return ConfigDistributionMinorVersionToJSONTyped(json, false);
}

export function ConfigDistributionMinorVersionToJSONTyped(value?: ConfigDistributionMinorVersion | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'feature_names': value['featureNames'],
'label': value['label'],
'major': value['major'],
'name': value['name'],
};
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/* tslint:disable */
/* eslint-disable */
/**
* ContentSourcesBackend
* The API for the repositories of the content sources that you can use to create and manage repositories between third-party applications and the [Red Hat Hybrid Cloud Console](https://console.redhat.com). With these repositories, you can build and deploy images using Image Builder for Cloud, on-Premise, and Edge. You can handle tasks, search for required RPMs, fetch a GPGKey from the URL, and list the features within applications.
*
* The version of the OpenAPI document: v1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from '../runtime';
/**
*
* @export
* @interface ConfigExtendedReleaseFeature
*/
export interface ConfigExtendedReleaseFeature {
/**
*
* @type {string}
* @memberof ConfigExtendedReleaseFeature
*/
label?: string;
/**
*
* @type {string}
* @memberof ConfigExtendedReleaseFeature
*/
name?: string;
}

/**
* Check if a given object implements the ConfigExtendedReleaseFeature interface.
*/
export function instanceOfConfigExtendedReleaseFeature(value: object): value is ConfigExtendedReleaseFeature {
return true;
}

export function ConfigExtendedReleaseFeatureFromJSON(json: any): ConfigExtendedReleaseFeature {
return ConfigExtendedReleaseFeatureFromJSONTyped(json, false);
}

export function ConfigExtendedReleaseFeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigExtendedReleaseFeature {
if (json == null) {
return json;
}
return {

'label': json['label'] == null ? undefined : json['label'],
'name': json['name'] == null ? undefined : json['name'],
};
}

export function ConfigExtendedReleaseFeatureToJSON(json: any): ConfigExtendedReleaseFeature {
return ConfigExtendedReleaseFeatureToJSONTyped(json, false);
}

export function ConfigExtendedReleaseFeatureToJSONTyped(value?: ConfigExtendedReleaseFeature | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'label': value['label'],
'name': value['name'],
};
}

2 changes: 2 additions & 0 deletions _playwright-tests/test-utils/src/client/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export * from './ApiUpload';
export * from './ApiUploadResponse';
export * from './ApiUrlValidationResponse';
export * from './ConfigDistributionArch';
export * from './ConfigDistributionMinorVersion';
export * from './ConfigDistributionVersion';
export * from './ConfigExtendedReleaseFeature';
export * from './ErrorsErrorResponse';
export * from './ErrorsHandlerError';
Loading