kubernetes-models
Version:
60 lines (59 loc) • 1.97 kB
TypeScript
import { ModelData, Model } from "@kubernetes-models/base";
/**
* DeviceAttribute must have exactly one field set.
*/
export interface IDeviceAttribute {
/**
* BoolValue is a true/false value.
*/
"bool"?: boolean;
/**
* BoolValues is a non-empty list of true/false values.
*/
"bools"?: Array<boolean>;
/**
* IntValue is a number.
*/
"int"?: number;
/**
* IntValues is a non-empty list of numbers.
*
* This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
*/
"ints"?: Array<number>;
/**
* StringValue is a string. Must not be longer than 64 characters.
*/
"string"?: string;
/**
* StringValues is a non-empty list of strings. Each string must not be longer than 64 characters.
*
* This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
*/
"strings"?: Array<string>;
/**
* VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
*/
"version"?: string;
/**
* VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters.
*
* This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
*/
"versions"?: Array<string>;
}
/**
* DeviceAttribute must have exactly one field set.
*/
export declare class DeviceAttribute extends Model<IDeviceAttribute> implements IDeviceAttribute {
"bool"?: boolean;
"bools"?: Array<boolean>;
"int"?: number;
"ints"?: Array<number>;
"string"?: string;
"strings"?: Array<string>;
"version"?: string;
"versions"?: Array<string>;
constructor(data?: ModelData<IDeviceAttribute>);
}
export type { IDeviceAttribute as IIoK8sApiResourceV1DeviceAttribute, DeviceAttribute as IoK8sApiResourceV1DeviceAttribute };