onshape-clients
Version:
The meta package for creating the various Onshape clients
106 lines (99 loc) • 2.88 kB
text/typescript
/**
* Onshape REST API
* The Onshape REST API consumed by all clients.
*
* OpenAPI spec version: 1.93
* Contact: api-support@onshape.zendesk.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { BTMetadataEnumValueInfo } from './bTMetadataEnumValueInfo';
import { BTMetadataPropertyUiHintsInfo } from './bTMetadataPropertyUiHintsInfo';
import { BTMetadataPropertyValidatorInfo } from './bTMetadataPropertyValidatorInfo';
export class BTMetadataPropertyInfo {
'name'?: string;
'defaultValue'?: any;
'initialValue'?: any;
'dirty'?: boolean;
'validator'?: BTMetadataPropertyValidatorInfo;
'required'?: boolean;
'propertySource'?: number;
'propertyId'?: string;
'editable'?: boolean;
'schemaId'?: string;
'valueType'?: string;
'enumValues'?: Array<BTMetadataEnumValueInfo>;
'uiHints'?: BTMetadataPropertyUiHintsInfo;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "defaultValue",
"baseName": "defaultValue",
"type": "any"
},
{
"name": "initialValue",
"baseName": "initialValue",
"type": "any"
},
{
"name": "dirty",
"baseName": "dirty",
"type": "boolean"
},
{
"name": "validator",
"baseName": "validator",
"type": "BTMetadataPropertyValidatorInfo"
},
{
"name": "required",
"baseName": "required",
"type": "boolean"
},
{
"name": "propertySource",
"baseName": "propertySource",
"type": "number"
},
{
"name": "propertyId",
"baseName": "propertyId",
"type": "string"
},
{
"name": "editable",
"baseName": "editable",
"type": "boolean"
},
{
"name": "schemaId",
"baseName": "schemaId",
"type": "string"
},
{
"name": "valueType",
"baseName": "valueType",
"type": "string"
},
{
"name": "enumValues",
"baseName": "enumValues",
"type": "Array<BTMetadataEnumValueInfo>"
},
{
"name": "uiHints",
"baseName": "uiHints",
"type": "BTMetadataPropertyUiHintsInfo"
} ];
static getAttributeTypeMap() {
return BTMetadataPropertyInfo.attributeTypeMap;
}
}