node-opcua-types 2.70.3 → 2.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_generated_opcua_types.d.ts +495 -24
- package/dist/_generated_opcua_types.js +1902 -230
- package/dist/_generated_opcua_types.js.map +1 -1
- package/package.json +20 -20
- package/source/_generated_opcua_types.ts +2197 -204
- package/xmlschemas/Opc.Ua.Types.bsd +298 -5
- package/xmlschemas/Opc.Ua.Types.xsd +605 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// --------- This code has been automatically generated !!! 2022-
|
|
1
|
+
// --------- This code has been automatically generated !!! 2022-07-12T11:52:31.681Z
|
|
2
2
|
/**
|
|
3
3
|
* @module node-opcua-types
|
|
4
4
|
*/
|
|
@@ -83,13 +83,6 @@ import {
|
|
|
83
83
|
VariantOptions
|
|
84
84
|
} from "node-opcua-variant";
|
|
85
85
|
|
|
86
|
-
export class DataTypeDefinition extends BaseUAObject {
|
|
87
|
-
constructor(options: any) {
|
|
88
|
-
options = options; // do not remove
|
|
89
|
-
super();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
86
|
// --------------------------------------------------------------------------------------------
|
|
94
87
|
const schemaEUInformation = buildStructuredType({
|
|
95
88
|
name: "EUInformation",
|
|
@@ -8423,19 +8416,69 @@ DataTypeDescription.schema.encodingDefaultBinary = DataTypeDescription.encodingD
|
|
|
8423
8416
|
DataTypeDescription.schema.encodingDefaultXml = DataTypeDescription.encodingDefaultXml;
|
|
8424
8417
|
DataTypeDescription.schema.encodingDefaultJson = DataTypeDescription.encodingDefaultJson;
|
|
8425
8418
|
registerClassDefinition( DataTypeDescription.dataTypeNodeId, "DataTypeDescription", DataTypeDescription);
|
|
8419
|
+
// --------------------------------------------------------------------------------------------
|
|
8420
|
+
const schemaDataTypeDefinition = buildStructuredType({
|
|
8421
|
+
name: "DataTypeDefinition",
|
|
8422
|
+
|
|
8423
|
+
baseType: "ExtensionObject",
|
|
8424
|
+
fields: [
|
|
8425
|
+
]
|
|
8426
|
+
});
|
|
8427
|
+
export interface DataTypeDefinitionOptions {
|
|
8428
|
+
}
|
|
8429
|
+
export class DataTypeDefinition extends ExtensionObject {
|
|
8430
|
+
public static get schema(): StructuredTypeSchema { return schemaDataTypeDefinition; }
|
|
8431
|
+
public static possibleFields: string[] = [
|
|
8432
|
+
|
|
8433
|
+
];
|
|
8434
|
+
public static dataTypeNodeId = makeExpandedNodeId(97, 0);
|
|
8435
|
+
public static encodingDefaultBinary = makeExpandedNodeId(121, 0);
|
|
8436
|
+
public static encodingDefaultXml = makeExpandedNodeId(14797, 0);
|
|
8437
|
+
public static encodingDefaultJson = makeExpandedNodeId(15063, 0);
|
|
8438
|
+
|
|
8439
|
+
constructor(options?: DataTypeDefinitionOptions | null) {
|
|
8440
|
+
|
|
8441
|
+
super(options);
|
|
8442
|
+
|
|
8443
|
+
if (options === null) {
|
|
8444
|
+
return;
|
|
8445
|
+
}
|
|
8446
|
+
const schema = DataTypeDefinition.schema;
|
|
8447
|
+
options = (schema.constructHook ? schema.constructHook(options) as DataTypeDefinitionOptions: options ) || {};
|
|
8448
|
+
/* istanbul ignore next */
|
|
8449
|
+
if (parameters.debugSchemaHelper) {
|
|
8450
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
8451
|
+
}
|
|
8452
|
+
}
|
|
8453
|
+
public encode(stream: OutputBinaryStream): void {
|
|
8454
|
+
/* NEEDED */ super.encode(stream);
|
|
8455
|
+
}
|
|
8456
|
+
public decode(stream: BinaryStream): void {
|
|
8457
|
+
// call base class implementation first
|
|
8458
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
8459
|
+
}
|
|
8460
|
+
public get schema(): StructuredTypeSchema { return schemaDataTypeDefinition; }
|
|
8461
|
+
}
|
|
8462
|
+
DataTypeDefinition.schema.dataTypeNodeId = DataTypeDefinition.dataTypeNodeId;
|
|
8463
|
+
DataTypeDefinition.schema.encodingDefaultBinary = DataTypeDefinition.encodingDefaultBinary;
|
|
8464
|
+
DataTypeDefinition.schema.encodingDefaultXml = DataTypeDefinition.encodingDefaultXml;
|
|
8465
|
+
DataTypeDefinition.schema.encodingDefaultJson = DataTypeDefinition.encodingDefaultJson;
|
|
8466
|
+
registerClassDefinition( DataTypeDefinition.dataTypeNodeId, "DataTypeDefinition", DataTypeDefinition);
|
|
8426
8467
|
|
|
8427
8468
|
// --------------------------------------------------------------------------------------------
|
|
8428
8469
|
export enum StructureType {
|
|
8429
8470
|
Structure = 0,
|
|
8430
8471
|
StructureWithOptionalFields = 1,
|
|
8431
8472
|
Union = 2,
|
|
8473
|
+
StructureWithSubtypedValues = 3,
|
|
8474
|
+
UnionWithSubtypedValues = 4,
|
|
8432
8475
|
Invalid = 4294967295
|
|
8433
8476
|
}
|
|
8434
8477
|
const schemaStructureType = {
|
|
8435
8478
|
enumValues: StructureType,
|
|
8436
8479
|
flaggable: false,
|
|
8437
8480
|
minValue: 0,
|
|
8438
|
-
maxValue:
|
|
8481
|
+
maxValue: 4,
|
|
8439
8482
|
name: "StructureType"
|
|
8440
8483
|
};
|
|
8441
8484
|
function decodeStructureType(stream: BinaryStream, _value?: StructureType): StructureType {
|
|
@@ -10966,6 +11009,198 @@ DatagramConnectionTransportDataType.schema.encodingDefaultXml = DatagramConnecti
|
|
|
10966
11009
|
DatagramConnectionTransportDataType.schema.encodingDefaultJson = DatagramConnectionTransportDataType.encodingDefaultJson;
|
|
10967
11010
|
registerClassDefinition( DatagramConnectionTransportDataType.dataTypeNodeId, "DatagramConnectionTransportDataType", DatagramConnectionTransportDataType);
|
|
10968
11011
|
// --------------------------------------------------------------------------------------------
|
|
11012
|
+
const schemaDatagramConnectionTransport2DataType = buildStructuredType({
|
|
11013
|
+
name: "DatagramConnectionTransport2DataType",
|
|
11014
|
+
|
|
11015
|
+
baseType: "DatagramConnectionTransportDataType",
|
|
11016
|
+
fields: [
|
|
11017
|
+
{
|
|
11018
|
+
name: "discoveryAnnounceRate",
|
|
11019
|
+
|
|
11020
|
+
fieldType: "UInt32",
|
|
11021
|
+
},
|
|
11022
|
+
{
|
|
11023
|
+
name: "discoveryMaxMessageSize",
|
|
11024
|
+
|
|
11025
|
+
fieldType: "UInt32",
|
|
11026
|
+
},
|
|
11027
|
+
{
|
|
11028
|
+
name: "qosCategory",
|
|
11029
|
+
|
|
11030
|
+
fieldType: "UAString",
|
|
11031
|
+
},
|
|
11032
|
+
{
|
|
11033
|
+
name: "datagramQos",
|
|
11034
|
+
|
|
11035
|
+
fieldType: "ExtensionObject",
|
|
11036
|
+
isArray: true
|
|
11037
|
+
},
|
|
11038
|
+
]
|
|
11039
|
+
});
|
|
11040
|
+
export interface DatagramConnectionTransport2DataTypeOptions extends DatagramConnectionTransportDataTypeOptions {
|
|
11041
|
+
discoveryAnnounceRate?: UInt32 ;
|
|
11042
|
+
discoveryMaxMessageSize?: UInt32 ;
|
|
11043
|
+
qosCategory?: UAString ;
|
|
11044
|
+
datagramQos?: (ExtensionObject | null)[] | null;
|
|
11045
|
+
}
|
|
11046
|
+
export class DatagramConnectionTransport2DataType extends DatagramConnectionTransportDataType {
|
|
11047
|
+
public static get schema(): StructuredTypeSchema { return schemaDatagramConnectionTransport2DataType; }
|
|
11048
|
+
public static possibleFields: string[] = [
|
|
11049
|
+
"discoveryAnnounceRate",
|
|
11050
|
+
"discoveryMaxMessageSize",
|
|
11051
|
+
"qosCategory",
|
|
11052
|
+
"datagramQos"
|
|
11053
|
+
];
|
|
11054
|
+
public static dataTypeNodeId = makeExpandedNodeId(23612, 0);
|
|
11055
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23864, 0);
|
|
11056
|
+
public static encodingDefaultXml = makeExpandedNodeId(23932, 0);
|
|
11057
|
+
public static encodingDefaultJson = makeExpandedNodeId(24000, 0);
|
|
11058
|
+
public discoveryAnnounceRate: UInt32;
|
|
11059
|
+
public discoveryMaxMessageSize: UInt32;
|
|
11060
|
+
public qosCategory: UAString;
|
|
11061
|
+
public datagramQos: (ExtensionObject | null)[] | null;
|
|
11062
|
+
|
|
11063
|
+
constructor(options?: DatagramConnectionTransport2DataTypeOptions | null) {
|
|
11064
|
+
|
|
11065
|
+
super(options);
|
|
11066
|
+
|
|
11067
|
+
if (options === null) {
|
|
11068
|
+
this.discoveryAnnounceRate = 0;
|
|
11069
|
+
this.discoveryMaxMessageSize = 0;
|
|
11070
|
+
this.qosCategory = null;
|
|
11071
|
+
this.datagramQos = []
|
|
11072
|
+
return;
|
|
11073
|
+
}
|
|
11074
|
+
const schema = DatagramConnectionTransport2DataType.schema;
|
|
11075
|
+
options = (schema.constructHook ? schema.constructHook(options) as DatagramConnectionTransport2DataTypeOptions: options ) || {};
|
|
11076
|
+
/* istanbul ignore next */
|
|
11077
|
+
if (parameters.debugSchemaHelper) {
|
|
11078
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
11079
|
+
}
|
|
11080
|
+
this.discoveryAnnounceRate = initialize_field(schema.fields[0], options?.discoveryAnnounceRate);
|
|
11081
|
+
this.discoveryMaxMessageSize = initialize_field(schema.fields[1], options?.discoveryMaxMessageSize);
|
|
11082
|
+
this.qosCategory = initialize_field(schema.fields[2], options?.qosCategory);
|
|
11083
|
+
this.datagramQos = initialize_field_array(schema.fields[3], options?.datagramQos);
|
|
11084
|
+
}
|
|
11085
|
+
public encode(stream: OutputBinaryStream): void {
|
|
11086
|
+
/* NEEDED */ super.encode(stream);
|
|
11087
|
+
encodeUInt32(this.discoveryAnnounceRate, stream);
|
|
11088
|
+
encodeUInt32(this.discoveryMaxMessageSize, stream);
|
|
11089
|
+
encodeUAString(this.qosCategory, stream);
|
|
11090
|
+
encodeArray(this.datagramQos, stream, encodeExtensionObject);
|
|
11091
|
+
}
|
|
11092
|
+
public decode(stream: BinaryStream): void {
|
|
11093
|
+
// call base class implementation first
|
|
11094
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
11095
|
+
this.discoveryAnnounceRate = decodeUInt32(stream, this.discoveryAnnounceRate);
|
|
11096
|
+
this.discoveryMaxMessageSize = decodeUInt32(stream, this.discoveryMaxMessageSize);
|
|
11097
|
+
this.qosCategory = decodeUAString(stream, this.qosCategory);
|
|
11098
|
+
this.datagramQos = decodeArray(stream, decodeExtensionObject);
|
|
11099
|
+
}
|
|
11100
|
+
public get schema(): StructuredTypeSchema { return schemaDatagramConnectionTransport2DataType; }
|
|
11101
|
+
}
|
|
11102
|
+
DatagramConnectionTransport2DataType.schema.dataTypeNodeId = DatagramConnectionTransport2DataType.dataTypeNodeId;
|
|
11103
|
+
DatagramConnectionTransport2DataType.schema.encodingDefaultBinary = DatagramConnectionTransport2DataType.encodingDefaultBinary;
|
|
11104
|
+
DatagramConnectionTransport2DataType.schema.encodingDefaultXml = DatagramConnectionTransport2DataType.encodingDefaultXml;
|
|
11105
|
+
DatagramConnectionTransport2DataType.schema.encodingDefaultJson = DatagramConnectionTransport2DataType.encodingDefaultJson;
|
|
11106
|
+
registerClassDefinition( DatagramConnectionTransport2DataType.dataTypeNodeId, "DatagramConnectionTransport2DataType", DatagramConnectionTransport2DataType);
|
|
11107
|
+
// --------------------------------------------------------------------------------------------
|
|
11108
|
+
const schemaDatagramDataSetReaderTransportDataType = buildStructuredType({
|
|
11109
|
+
name: "DatagramDataSetReaderTransportDataType",
|
|
11110
|
+
|
|
11111
|
+
baseType: "DataSetReaderTransportDataType",
|
|
11112
|
+
fields: [
|
|
11113
|
+
{
|
|
11114
|
+
name: "address",
|
|
11115
|
+
|
|
11116
|
+
fieldType: "ExtensionObject",
|
|
11117
|
+
},
|
|
11118
|
+
{
|
|
11119
|
+
name: "qosCategory",
|
|
11120
|
+
|
|
11121
|
+
fieldType: "UAString",
|
|
11122
|
+
},
|
|
11123
|
+
{
|
|
11124
|
+
name: "datagramQos",
|
|
11125
|
+
|
|
11126
|
+
fieldType: "ExtensionObject",
|
|
11127
|
+
isArray: true
|
|
11128
|
+
},
|
|
11129
|
+
{
|
|
11130
|
+
name: "topic",
|
|
11131
|
+
|
|
11132
|
+
fieldType: "UAString",
|
|
11133
|
+
},
|
|
11134
|
+
]
|
|
11135
|
+
});
|
|
11136
|
+
export interface DatagramDataSetReaderTransportDataTypeOptions extends DataSetReaderTransportDataTypeOptions {
|
|
11137
|
+
address?: (ExtensionObject | null);
|
|
11138
|
+
qosCategory?: UAString ;
|
|
11139
|
+
datagramQos?: (ExtensionObject | null)[] | null;
|
|
11140
|
+
topic?: UAString ;
|
|
11141
|
+
}
|
|
11142
|
+
export class DatagramDataSetReaderTransportDataType extends DataSetReaderTransportDataType {
|
|
11143
|
+
public static get schema(): StructuredTypeSchema { return schemaDatagramDataSetReaderTransportDataType; }
|
|
11144
|
+
public static possibleFields: string[] = [
|
|
11145
|
+
"address",
|
|
11146
|
+
"qosCategory",
|
|
11147
|
+
"datagramQos",
|
|
11148
|
+
"topic"
|
|
11149
|
+
];
|
|
11150
|
+
public static dataTypeNodeId = makeExpandedNodeId(23614, 0);
|
|
11151
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23866, 0);
|
|
11152
|
+
public static encodingDefaultXml = makeExpandedNodeId(23934, 0);
|
|
11153
|
+
public static encodingDefaultJson = makeExpandedNodeId(24002, 0);
|
|
11154
|
+
public address: (ExtensionObject | null);
|
|
11155
|
+
public qosCategory: UAString;
|
|
11156
|
+
public datagramQos: (ExtensionObject | null)[] | null;
|
|
11157
|
+
public topic: UAString;
|
|
11158
|
+
|
|
11159
|
+
constructor(options?: DatagramDataSetReaderTransportDataTypeOptions | null) {
|
|
11160
|
+
|
|
11161
|
+
super(options);
|
|
11162
|
+
|
|
11163
|
+
if (options === null) {
|
|
11164
|
+
this.address = null;
|
|
11165
|
+
this.qosCategory = null;
|
|
11166
|
+
this.datagramQos = []
|
|
11167
|
+
this.topic = null;
|
|
11168
|
+
return;
|
|
11169
|
+
}
|
|
11170
|
+
const schema = DatagramDataSetReaderTransportDataType.schema;
|
|
11171
|
+
options = (schema.constructHook ? schema.constructHook(options) as DatagramDataSetReaderTransportDataTypeOptions: options ) || {};
|
|
11172
|
+
/* istanbul ignore next */
|
|
11173
|
+
if (parameters.debugSchemaHelper) {
|
|
11174
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
11175
|
+
}
|
|
11176
|
+
this.address = initialize_field(schema.fields[0], options?.address);
|
|
11177
|
+
this.qosCategory = initialize_field(schema.fields[1], options?.qosCategory);
|
|
11178
|
+
this.datagramQos = initialize_field_array(schema.fields[2], options?.datagramQos);
|
|
11179
|
+
this.topic = initialize_field(schema.fields[3], options?.topic);
|
|
11180
|
+
}
|
|
11181
|
+
public encode(stream: OutputBinaryStream): void {
|
|
11182
|
+
/* NEEDED */ super.encode(stream);
|
|
11183
|
+
encodeExtensionObject(this.address, stream);
|
|
11184
|
+
encodeUAString(this.qosCategory, stream);
|
|
11185
|
+
encodeArray(this.datagramQos, stream, encodeExtensionObject);
|
|
11186
|
+
encodeUAString(this.topic, stream);
|
|
11187
|
+
}
|
|
11188
|
+
public decode(stream: BinaryStream): void {
|
|
11189
|
+
// call base class implementation first
|
|
11190
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
11191
|
+
this.address = decodeExtensionObject(stream, this.address);
|
|
11192
|
+
this.qosCategory = decodeUAString(stream, this.qosCategory);
|
|
11193
|
+
this.datagramQos = decodeArray(stream, decodeExtensionObject);
|
|
11194
|
+
this.topic = decodeUAString(stream, this.topic);
|
|
11195
|
+
}
|
|
11196
|
+
public get schema(): StructuredTypeSchema { return schemaDatagramDataSetReaderTransportDataType; }
|
|
11197
|
+
}
|
|
11198
|
+
DatagramDataSetReaderTransportDataType.schema.dataTypeNodeId = DatagramDataSetReaderTransportDataType.dataTypeNodeId;
|
|
11199
|
+
DatagramDataSetReaderTransportDataType.schema.encodingDefaultBinary = DatagramDataSetReaderTransportDataType.encodingDefaultBinary;
|
|
11200
|
+
DatagramDataSetReaderTransportDataType.schema.encodingDefaultXml = DatagramDataSetReaderTransportDataType.encodingDefaultXml;
|
|
11201
|
+
DatagramDataSetReaderTransportDataType.schema.encodingDefaultJson = DatagramDataSetReaderTransportDataType.encodingDefaultJson;
|
|
11202
|
+
registerClassDefinition( DatagramDataSetReaderTransportDataType.dataTypeNodeId, "DatagramDataSetReaderTransportDataType", DatagramDataSetReaderTransportDataType);
|
|
11203
|
+
// --------------------------------------------------------------------------------------------
|
|
10969
11204
|
const schemaDatagramWriterGroupTransportDataType = buildStructuredType({
|
|
10970
11205
|
name: "DatagramWriterGroupTransportDataType",
|
|
10971
11206
|
|
|
@@ -11037,6 +11272,114 @@ DatagramWriterGroupTransportDataType.schema.encodingDefaultXml = DatagramWriterG
|
|
|
11037
11272
|
DatagramWriterGroupTransportDataType.schema.encodingDefaultJson = DatagramWriterGroupTransportDataType.encodingDefaultJson;
|
|
11038
11273
|
registerClassDefinition( DatagramWriterGroupTransportDataType.dataTypeNodeId, "DatagramWriterGroupTransportDataType", DatagramWriterGroupTransportDataType);
|
|
11039
11274
|
// --------------------------------------------------------------------------------------------
|
|
11275
|
+
const schemaDatagramWriterGroupTransport2DataType = buildStructuredType({
|
|
11276
|
+
name: "DatagramWriterGroupTransport2DataType",
|
|
11277
|
+
|
|
11278
|
+
baseType: "DatagramWriterGroupTransportDataType",
|
|
11279
|
+
fields: [
|
|
11280
|
+
{
|
|
11281
|
+
name: "address",
|
|
11282
|
+
|
|
11283
|
+
fieldType: "ExtensionObject",
|
|
11284
|
+
},
|
|
11285
|
+
{
|
|
11286
|
+
name: "qosCategory",
|
|
11287
|
+
|
|
11288
|
+
fieldType: "UAString",
|
|
11289
|
+
},
|
|
11290
|
+
{
|
|
11291
|
+
name: "datagramQos",
|
|
11292
|
+
|
|
11293
|
+
fieldType: "ExtensionObject",
|
|
11294
|
+
isArray: true
|
|
11295
|
+
},
|
|
11296
|
+
{
|
|
11297
|
+
name: "discoveryAnnounceRate",
|
|
11298
|
+
|
|
11299
|
+
fieldType: "UInt32",
|
|
11300
|
+
},
|
|
11301
|
+
{
|
|
11302
|
+
name: "topic",
|
|
11303
|
+
|
|
11304
|
+
fieldType: "UAString",
|
|
11305
|
+
},
|
|
11306
|
+
]
|
|
11307
|
+
});
|
|
11308
|
+
export interface DatagramWriterGroupTransport2DataTypeOptions extends DatagramWriterGroupTransportDataTypeOptions {
|
|
11309
|
+
address?: (ExtensionObject | null);
|
|
11310
|
+
qosCategory?: UAString ;
|
|
11311
|
+
datagramQos?: (ExtensionObject | null)[] | null;
|
|
11312
|
+
discoveryAnnounceRate?: UInt32 ;
|
|
11313
|
+
topic?: UAString ;
|
|
11314
|
+
}
|
|
11315
|
+
export class DatagramWriterGroupTransport2DataType extends DatagramWriterGroupTransportDataType {
|
|
11316
|
+
public static get schema(): StructuredTypeSchema { return schemaDatagramWriterGroupTransport2DataType; }
|
|
11317
|
+
public static possibleFields: string[] = [
|
|
11318
|
+
"address",
|
|
11319
|
+
"qosCategory",
|
|
11320
|
+
"datagramQos",
|
|
11321
|
+
"discoveryAnnounceRate",
|
|
11322
|
+
"topic"
|
|
11323
|
+
];
|
|
11324
|
+
public static dataTypeNodeId = makeExpandedNodeId(23613, 0);
|
|
11325
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23865, 0);
|
|
11326
|
+
public static encodingDefaultXml = makeExpandedNodeId(23933, 0);
|
|
11327
|
+
public static encodingDefaultJson = makeExpandedNodeId(24001, 0);
|
|
11328
|
+
public address: (ExtensionObject | null);
|
|
11329
|
+
public qosCategory: UAString;
|
|
11330
|
+
public datagramQos: (ExtensionObject | null)[] | null;
|
|
11331
|
+
public discoveryAnnounceRate: UInt32;
|
|
11332
|
+
public topic: UAString;
|
|
11333
|
+
|
|
11334
|
+
constructor(options?: DatagramWriterGroupTransport2DataTypeOptions | null) {
|
|
11335
|
+
|
|
11336
|
+
super(options);
|
|
11337
|
+
|
|
11338
|
+
if (options === null) {
|
|
11339
|
+
this.address = null;
|
|
11340
|
+
this.qosCategory = null;
|
|
11341
|
+
this.datagramQos = []
|
|
11342
|
+
this.discoveryAnnounceRate = 0;
|
|
11343
|
+
this.topic = null;
|
|
11344
|
+
return;
|
|
11345
|
+
}
|
|
11346
|
+
const schema = DatagramWriterGroupTransport2DataType.schema;
|
|
11347
|
+
options = (schema.constructHook ? schema.constructHook(options) as DatagramWriterGroupTransport2DataTypeOptions: options ) || {};
|
|
11348
|
+
/* istanbul ignore next */
|
|
11349
|
+
if (parameters.debugSchemaHelper) {
|
|
11350
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
11351
|
+
}
|
|
11352
|
+
this.address = initialize_field(schema.fields[0], options?.address);
|
|
11353
|
+
this.qosCategory = initialize_field(schema.fields[1], options?.qosCategory);
|
|
11354
|
+
this.datagramQos = initialize_field_array(schema.fields[2], options?.datagramQos);
|
|
11355
|
+
this.discoveryAnnounceRate = initialize_field(schema.fields[3], options?.discoveryAnnounceRate);
|
|
11356
|
+
this.topic = initialize_field(schema.fields[4], options?.topic);
|
|
11357
|
+
}
|
|
11358
|
+
public encode(stream: OutputBinaryStream): void {
|
|
11359
|
+
/* NEEDED */ super.encode(stream);
|
|
11360
|
+
encodeExtensionObject(this.address, stream);
|
|
11361
|
+
encodeUAString(this.qosCategory, stream);
|
|
11362
|
+
encodeArray(this.datagramQos, stream, encodeExtensionObject);
|
|
11363
|
+
encodeUInt32(this.discoveryAnnounceRate, stream);
|
|
11364
|
+
encodeUAString(this.topic, stream);
|
|
11365
|
+
}
|
|
11366
|
+
public decode(stream: BinaryStream): void {
|
|
11367
|
+
// call base class implementation first
|
|
11368
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
11369
|
+
this.address = decodeExtensionObject(stream, this.address);
|
|
11370
|
+
this.qosCategory = decodeUAString(stream, this.qosCategory);
|
|
11371
|
+
this.datagramQos = decodeArray(stream, decodeExtensionObject);
|
|
11372
|
+
this.discoveryAnnounceRate = decodeUInt32(stream, this.discoveryAnnounceRate);
|
|
11373
|
+
this.topic = decodeUAString(stream, this.topic);
|
|
11374
|
+
}
|
|
11375
|
+
public get schema(): StructuredTypeSchema { return schemaDatagramWriterGroupTransport2DataType; }
|
|
11376
|
+
}
|
|
11377
|
+
DatagramWriterGroupTransport2DataType.schema.dataTypeNodeId = DatagramWriterGroupTransport2DataType.dataTypeNodeId;
|
|
11378
|
+
DatagramWriterGroupTransport2DataType.schema.encodingDefaultBinary = DatagramWriterGroupTransport2DataType.encodingDefaultBinary;
|
|
11379
|
+
DatagramWriterGroupTransport2DataType.schema.encodingDefaultXml = DatagramWriterGroupTransport2DataType.encodingDefaultXml;
|
|
11380
|
+
DatagramWriterGroupTransport2DataType.schema.encodingDefaultJson = DatagramWriterGroupTransport2DataType.encodingDefaultJson;
|
|
11381
|
+
registerClassDefinition( DatagramWriterGroupTransport2DataType.dataTypeNodeId, "DatagramWriterGroupTransport2DataType", DatagramWriterGroupTransport2DataType);
|
|
11382
|
+
// --------------------------------------------------------------------------------------------
|
|
11040
11383
|
const schemaDecimalDataType = buildStructuredType({
|
|
11041
11384
|
name: "DecimalDataType",
|
|
11042
11385
|
|
|
@@ -15151,13 +15494,15 @@ export enum IdentityCriteriaType {
|
|
|
15151
15494
|
GroupId = 4,
|
|
15152
15495
|
Anonymous = 5,
|
|
15153
15496
|
AuthenticatedUser = 6,
|
|
15497
|
+
Application = 7,
|
|
15498
|
+
X509Subject = 8,
|
|
15154
15499
|
Invalid = 4294967295
|
|
15155
15500
|
}
|
|
15156
15501
|
const schemaIdentityCriteriaType = {
|
|
15157
15502
|
enumValues: IdentityCriteriaType,
|
|
15158
15503
|
flaggable: false,
|
|
15159
|
-
minValue:
|
|
15160
|
-
maxValue:
|
|
15504
|
+
minValue: NaN,
|
|
15505
|
+
maxValue: NaN,
|
|
15161
15506
|
name: "IdentityCriteriaType"
|
|
15162
15507
|
};
|
|
15163
15508
|
function decodeIdentityCriteriaType(stream: BinaryStream, _value?: IdentityCriteriaType): IdentityCriteriaType {
|
|
@@ -15403,7 +15748,10 @@ export enum JsonDataSetMessageContentMask {
|
|
|
15403
15748
|
MetaDataVersion = 2,
|
|
15404
15749
|
SequenceNumber = 4,
|
|
15405
15750
|
Timestamp = 8,
|
|
15406
|
-
Status = 16
|
|
15751
|
+
Status = 16,
|
|
15752
|
+
MessageType = 32,
|
|
15753
|
+
DataSetWriterName = 64,
|
|
15754
|
+
ReversibleFieldEncoding = 128
|
|
15407
15755
|
}
|
|
15408
15756
|
const schemaJsonDataSetMessageContentMask = {
|
|
15409
15757
|
enumValues: JsonDataSetMessageContentMask,
|
|
@@ -18094,103 +18442,269 @@ ParsingResult.schema.encodingDefaultXml = ParsingResult.encodingDefaultXml;
|
|
|
18094
18442
|
ParsingResult.schema.encodingDefaultJson = ParsingResult.encodingDefaultJson;
|
|
18095
18443
|
registerClassDefinition( ParsingResult.dataTypeNodeId, "ParsingResult", ParsingResult);
|
|
18096
18444
|
// --------------------------------------------------------------------------------------------
|
|
18097
|
-
const
|
|
18098
|
-
name: "
|
|
18445
|
+
const schemaPortableNodeId = buildStructuredType({
|
|
18446
|
+
name: "PortableNodeId",
|
|
18099
18447
|
|
|
18100
18448
|
baseType: "ExtensionObject",
|
|
18101
18449
|
fields: [
|
|
18102
18450
|
{
|
|
18103
|
-
name: "
|
|
18451
|
+
name: "namespaceUri",
|
|
18104
18452
|
|
|
18105
|
-
fieldType: "
|
|
18453
|
+
fieldType: "UAString",
|
|
18106
18454
|
},
|
|
18107
18455
|
{
|
|
18108
|
-
name: "
|
|
18456
|
+
name: "identifier",
|
|
18109
18457
|
|
|
18110
|
-
fieldType: "
|
|
18458
|
+
fieldType: "NodeId",
|
|
18111
18459
|
},
|
|
18112
18460
|
]
|
|
18113
18461
|
});
|
|
18114
|
-
export interface
|
|
18115
|
-
|
|
18116
|
-
|
|
18462
|
+
export interface PortableNodeIdOptions {
|
|
18463
|
+
namespaceUri?: UAString ;
|
|
18464
|
+
identifier?: (NodeIdLike | null);
|
|
18117
18465
|
}
|
|
18118
|
-
export class
|
|
18119
|
-
public static get schema(): StructuredTypeSchema { return
|
|
18466
|
+
export class PortableNodeId extends ExtensionObject {
|
|
18467
|
+
public static get schema(): StructuredTypeSchema { return schemaPortableNodeId; }
|
|
18120
18468
|
public static possibleFields: string[] = [
|
|
18121
|
-
"
|
|
18122
|
-
"
|
|
18469
|
+
"namespaceUri",
|
|
18470
|
+
"identifier"
|
|
18123
18471
|
];
|
|
18124
|
-
public static dataTypeNodeId = makeExpandedNodeId(
|
|
18125
|
-
public static encodingDefaultBinary = makeExpandedNodeId(
|
|
18126
|
-
public static encodingDefaultXml = makeExpandedNodeId(
|
|
18127
|
-
public static encodingDefaultJson = makeExpandedNodeId(
|
|
18128
|
-
public
|
|
18129
|
-
public
|
|
18472
|
+
public static dataTypeNodeId = makeExpandedNodeId(24106, 0);
|
|
18473
|
+
public static encodingDefaultBinary = makeExpandedNodeId(24109, 0);
|
|
18474
|
+
public static encodingDefaultXml = makeExpandedNodeId(24121, 0);
|
|
18475
|
+
public static encodingDefaultJson = makeExpandedNodeId(24133, 0);
|
|
18476
|
+
public namespaceUri: UAString;
|
|
18477
|
+
public identifier: NodeId;
|
|
18130
18478
|
|
|
18131
|
-
constructor(options?:
|
|
18479
|
+
constructor(options?: PortableNodeIdOptions | null) {
|
|
18132
18480
|
|
|
18133
18481
|
super(options);
|
|
18134
18482
|
|
|
18135
18483
|
if (options === null) {
|
|
18136
|
-
this.
|
|
18137
|
-
this.
|
|
18484
|
+
this.namespaceUri = null;
|
|
18485
|
+
this.identifier = new NodeId(null);
|
|
18138
18486
|
return;
|
|
18139
18487
|
}
|
|
18140
|
-
const schema =
|
|
18141
|
-
options = (schema.constructHook ? schema.constructHook(options) as
|
|
18488
|
+
const schema = PortableNodeId.schema;
|
|
18489
|
+
options = (schema.constructHook ? schema.constructHook(options) as PortableNodeIdOptions: options ) || {};
|
|
18142
18490
|
/* istanbul ignore next */
|
|
18143
18491
|
if (parameters.debugSchemaHelper) {
|
|
18144
18492
|
check_options_correctness_against_schema(this, schema, options);
|
|
18145
18493
|
}
|
|
18146
|
-
this.
|
|
18147
|
-
this.
|
|
18494
|
+
this.namespaceUri = initialize_field(schema.fields[0], options?.namespaceUri);
|
|
18495
|
+
this.identifier = initialize_field(schema.fields[1], options?.identifier);
|
|
18148
18496
|
}
|
|
18149
18497
|
public encode(stream: OutputBinaryStream): void {
|
|
18150
18498
|
/* NEEDED */ super.encode(stream);
|
|
18151
|
-
|
|
18152
|
-
|
|
18499
|
+
encodeUAString(this.namespaceUri, stream);
|
|
18500
|
+
encodeNodeId(this.identifier, stream);
|
|
18153
18501
|
}
|
|
18154
18502
|
public decode(stream: BinaryStream): void {
|
|
18155
18503
|
// call base class implementation first
|
|
18156
18504
|
/* NEEDED !!! */ super.decode(stream);
|
|
18157
|
-
this.
|
|
18158
|
-
this.
|
|
18505
|
+
this.namespaceUri = decodeUAString(stream, this.namespaceUri);
|
|
18506
|
+
this.identifier = decodeNodeId(stream, this.identifier);
|
|
18159
18507
|
}
|
|
18160
|
-
public get schema(): StructuredTypeSchema { return
|
|
18508
|
+
public get schema(): StructuredTypeSchema { return schemaPortableNodeId; }
|
|
18161
18509
|
}
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
registerClassDefinition(
|
|
18510
|
+
PortableNodeId.schema.dataTypeNodeId = PortableNodeId.dataTypeNodeId;
|
|
18511
|
+
PortableNodeId.schema.encodingDefaultBinary = PortableNodeId.encodingDefaultBinary;
|
|
18512
|
+
PortableNodeId.schema.encodingDefaultXml = PortableNodeId.encodingDefaultXml;
|
|
18513
|
+
PortableNodeId.schema.encodingDefaultJson = PortableNodeId.encodingDefaultJson;
|
|
18514
|
+
registerClassDefinition( PortableNodeId.dataTypeNodeId, "PortableNodeId", PortableNodeId);
|
|
18167
18515
|
// --------------------------------------------------------------------------------------------
|
|
18168
|
-
const
|
|
18169
|
-
name: "
|
|
18516
|
+
const schemaPortableQualifiedName = buildStructuredType({
|
|
18517
|
+
name: "PortableQualifiedName",
|
|
18170
18518
|
|
|
18171
18519
|
baseType: "ExtensionObject",
|
|
18172
18520
|
fields: [
|
|
18173
18521
|
{
|
|
18174
|
-
name: "
|
|
18522
|
+
name: "namespaceUri",
|
|
18175
18523
|
|
|
18176
|
-
fieldType: "
|
|
18524
|
+
fieldType: "UAString",
|
|
18177
18525
|
},
|
|
18178
18526
|
{
|
|
18179
|
-
name: "
|
|
18527
|
+
name: "name",
|
|
18180
18528
|
|
|
18181
18529
|
fieldType: "UAString",
|
|
18182
18530
|
},
|
|
18183
|
-
|
|
18184
|
-
|
|
18531
|
+
]
|
|
18532
|
+
});
|
|
18533
|
+
export interface PortableQualifiedNameOptions {
|
|
18534
|
+
namespaceUri?: UAString ;
|
|
18535
|
+
name?: UAString ;
|
|
18536
|
+
}
|
|
18537
|
+
export class PortableQualifiedName extends ExtensionObject {
|
|
18538
|
+
public static get schema(): StructuredTypeSchema { return schemaPortableQualifiedName; }
|
|
18539
|
+
public static possibleFields: string[] = [
|
|
18540
|
+
"namespaceUri",
|
|
18541
|
+
"name"
|
|
18542
|
+
];
|
|
18543
|
+
public static dataTypeNodeId = makeExpandedNodeId(24105, 0);
|
|
18544
|
+
public static encodingDefaultBinary = makeExpandedNodeId(24108, 0);
|
|
18545
|
+
public static encodingDefaultXml = makeExpandedNodeId(24120, 0);
|
|
18546
|
+
public static encodingDefaultJson = makeExpandedNodeId(24132, 0);
|
|
18547
|
+
public namespaceUri: UAString;
|
|
18548
|
+
public name: UAString;
|
|
18185
18549
|
|
|
18186
|
-
|
|
18187
|
-
},
|
|
18188
|
-
{
|
|
18189
|
-
name: "lastTransitionTime",
|
|
18550
|
+
constructor(options?: PortableQualifiedNameOptions | null) {
|
|
18190
18551
|
|
|
18191
|
-
|
|
18192
|
-
|
|
18193
|
-
{
|
|
18552
|
+
super(options);
|
|
18553
|
+
|
|
18554
|
+
if (options === null) {
|
|
18555
|
+
this.namespaceUri = null;
|
|
18556
|
+
this.name = null;
|
|
18557
|
+
return;
|
|
18558
|
+
}
|
|
18559
|
+
const schema = PortableQualifiedName.schema;
|
|
18560
|
+
options = (schema.constructHook ? schema.constructHook(options) as PortableQualifiedNameOptions: options ) || {};
|
|
18561
|
+
/* istanbul ignore next */
|
|
18562
|
+
if (parameters.debugSchemaHelper) {
|
|
18563
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
18564
|
+
}
|
|
18565
|
+
this.namespaceUri = initialize_field(schema.fields[0], options?.namespaceUri);
|
|
18566
|
+
this.name = initialize_field(schema.fields[1], options?.name);
|
|
18567
|
+
}
|
|
18568
|
+
public encode(stream: OutputBinaryStream): void {
|
|
18569
|
+
/* NEEDED */ super.encode(stream);
|
|
18570
|
+
encodeUAString(this.namespaceUri, stream);
|
|
18571
|
+
encodeUAString(this.name, stream);
|
|
18572
|
+
}
|
|
18573
|
+
public decode(stream: BinaryStream): void {
|
|
18574
|
+
// call base class implementation first
|
|
18575
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
18576
|
+
this.namespaceUri = decodeUAString(stream, this.namespaceUri);
|
|
18577
|
+
this.name = decodeUAString(stream, this.name);
|
|
18578
|
+
}
|
|
18579
|
+
public get schema(): StructuredTypeSchema { return schemaPortableQualifiedName; }
|
|
18580
|
+
}
|
|
18581
|
+
PortableQualifiedName.schema.dataTypeNodeId = PortableQualifiedName.dataTypeNodeId;
|
|
18582
|
+
PortableQualifiedName.schema.encodingDefaultBinary = PortableQualifiedName.encodingDefaultBinary;
|
|
18583
|
+
PortableQualifiedName.schema.encodingDefaultXml = PortableQualifiedName.encodingDefaultXml;
|
|
18584
|
+
PortableQualifiedName.schema.encodingDefaultJson = PortableQualifiedName.encodingDefaultJson;
|
|
18585
|
+
registerClassDefinition( PortableQualifiedName.dataTypeNodeId, "PortableQualifiedName", PortableQualifiedName);
|
|
18586
|
+
// --------------------------------------------------------------------------------------------
|
|
18587
|
+
const schemaPriorityMappingEntryType = buildStructuredType({
|
|
18588
|
+
name: "PriorityMappingEntryType",
|
|
18589
|
+
|
|
18590
|
+
baseType: "ExtensionObject",
|
|
18591
|
+
fields: [
|
|
18592
|
+
{
|
|
18593
|
+
name: "mappingUri",
|
|
18594
|
+
|
|
18595
|
+
fieldType: "UAString",
|
|
18596
|
+
},
|
|
18597
|
+
{
|
|
18598
|
+
name: "priorityLabel",
|
|
18599
|
+
|
|
18600
|
+
fieldType: "UAString",
|
|
18601
|
+
},
|
|
18602
|
+
{
|
|
18603
|
+
name: "priorityValue_PCP",
|
|
18604
|
+
|
|
18605
|
+
fieldType: "Byte",
|
|
18606
|
+
},
|
|
18607
|
+
{
|
|
18608
|
+
name: "priorityValue_DSCP",
|
|
18609
|
+
|
|
18610
|
+
fieldType: "UInt32",
|
|
18611
|
+
},
|
|
18612
|
+
]
|
|
18613
|
+
});
|
|
18614
|
+
export interface PriorityMappingEntryTypeOptions {
|
|
18615
|
+
mappingUri?: UAString ;
|
|
18616
|
+
priorityLabel?: UAString ;
|
|
18617
|
+
priorityValue_PCP?: Byte ;
|
|
18618
|
+
priorityValue_DSCP?: UInt32 ;
|
|
18619
|
+
}
|
|
18620
|
+
export class PriorityMappingEntryType extends ExtensionObject {
|
|
18621
|
+
public static get schema(): StructuredTypeSchema { return schemaPriorityMappingEntryType; }
|
|
18622
|
+
public static possibleFields: string[] = [
|
|
18623
|
+
"mappingUri",
|
|
18624
|
+
"priorityLabel",
|
|
18625
|
+
"priorityValue_PCP",
|
|
18626
|
+
"priorityValue_DSCP"
|
|
18627
|
+
];
|
|
18628
|
+
public static dataTypeNodeId = makeExpandedNodeId(25220, 0);
|
|
18629
|
+
public static encodingDefaultBinary = makeExpandedNodeId(25239, 0);
|
|
18630
|
+
public static encodingDefaultXml = makeExpandedNodeId(25243, 0);
|
|
18631
|
+
public static encodingDefaultJson = makeExpandedNodeId(25247, 0);
|
|
18632
|
+
public mappingUri: UAString;
|
|
18633
|
+
public priorityLabel: UAString;
|
|
18634
|
+
public priorityValue_PCP: Byte;
|
|
18635
|
+
public priorityValue_DSCP: UInt32;
|
|
18636
|
+
|
|
18637
|
+
constructor(options?: PriorityMappingEntryTypeOptions | null) {
|
|
18638
|
+
|
|
18639
|
+
super(options);
|
|
18640
|
+
|
|
18641
|
+
if (options === null) {
|
|
18642
|
+
this.mappingUri = null;
|
|
18643
|
+
this.priorityLabel = null;
|
|
18644
|
+
this.priorityValue_PCP = 0;
|
|
18645
|
+
this.priorityValue_DSCP = 0;
|
|
18646
|
+
return;
|
|
18647
|
+
}
|
|
18648
|
+
const schema = PriorityMappingEntryType.schema;
|
|
18649
|
+
options = (schema.constructHook ? schema.constructHook(options) as PriorityMappingEntryTypeOptions: options ) || {};
|
|
18650
|
+
/* istanbul ignore next */
|
|
18651
|
+
if (parameters.debugSchemaHelper) {
|
|
18652
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
18653
|
+
}
|
|
18654
|
+
this.mappingUri = initialize_field(schema.fields[0], options?.mappingUri);
|
|
18655
|
+
this.priorityLabel = initialize_field(schema.fields[1], options?.priorityLabel);
|
|
18656
|
+
this.priorityValue_PCP = initialize_field(schema.fields[2], options?.priorityValue_PCP);
|
|
18657
|
+
this.priorityValue_DSCP = initialize_field(schema.fields[3], options?.priorityValue_DSCP);
|
|
18658
|
+
}
|
|
18659
|
+
public encode(stream: OutputBinaryStream): void {
|
|
18660
|
+
/* NEEDED */ super.encode(stream);
|
|
18661
|
+
encodeUAString(this.mappingUri, stream);
|
|
18662
|
+
encodeUAString(this.priorityLabel, stream);
|
|
18663
|
+
encodeByte(this.priorityValue_PCP, stream);
|
|
18664
|
+
encodeUInt32(this.priorityValue_DSCP, stream);
|
|
18665
|
+
}
|
|
18666
|
+
public decode(stream: BinaryStream): void {
|
|
18667
|
+
// call base class implementation first
|
|
18668
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
18669
|
+
this.mappingUri = decodeUAString(stream, this.mappingUri);
|
|
18670
|
+
this.priorityLabel = decodeUAString(stream, this.priorityLabel);
|
|
18671
|
+
this.priorityValue_PCP = decodeByte(stream, this.priorityValue_PCP);
|
|
18672
|
+
this.priorityValue_DSCP = decodeUInt32(stream, this.priorityValue_DSCP);
|
|
18673
|
+
}
|
|
18674
|
+
public get schema(): StructuredTypeSchema { return schemaPriorityMappingEntryType; }
|
|
18675
|
+
}
|
|
18676
|
+
PriorityMappingEntryType.schema.dataTypeNodeId = PriorityMappingEntryType.dataTypeNodeId;
|
|
18677
|
+
PriorityMappingEntryType.schema.encodingDefaultBinary = PriorityMappingEntryType.encodingDefaultBinary;
|
|
18678
|
+
PriorityMappingEntryType.schema.encodingDefaultXml = PriorityMappingEntryType.encodingDefaultXml;
|
|
18679
|
+
PriorityMappingEntryType.schema.encodingDefaultJson = PriorityMappingEntryType.encodingDefaultJson;
|
|
18680
|
+
registerClassDefinition( PriorityMappingEntryType.dataTypeNodeId, "PriorityMappingEntryType", PriorityMappingEntryType);
|
|
18681
|
+
// --------------------------------------------------------------------------------------------
|
|
18682
|
+
const schemaProgramDiagnostic2DataType = buildStructuredType({
|
|
18683
|
+
name: "ProgramDiagnostic2DataType",
|
|
18684
|
+
|
|
18685
|
+
baseType: "ExtensionObject",
|
|
18686
|
+
fields: [
|
|
18687
|
+
{
|
|
18688
|
+
name: "createSessionId",
|
|
18689
|
+
|
|
18690
|
+
fieldType: "NodeId",
|
|
18691
|
+
},
|
|
18692
|
+
{
|
|
18693
|
+
name: "createClientName",
|
|
18694
|
+
|
|
18695
|
+
fieldType: "UAString",
|
|
18696
|
+
},
|
|
18697
|
+
{
|
|
18698
|
+
name: "invocationCreationTime",
|
|
18699
|
+
|
|
18700
|
+
fieldType: "DateTime",
|
|
18701
|
+
},
|
|
18702
|
+
{
|
|
18703
|
+
name: "lastTransitionTime",
|
|
18704
|
+
|
|
18705
|
+
fieldType: "DateTime",
|
|
18706
|
+
},
|
|
18707
|
+
{
|
|
18194
18708
|
name: "lastMethodCall",
|
|
18195
18709
|
|
|
18196
18710
|
fieldType: "UAString",
|
|
@@ -18232,7 +18746,7 @@ const schemaProgramDiagnostic2DataType = buildStructuredType({
|
|
|
18232
18746
|
{
|
|
18233
18747
|
name: "lastMethodReturnStatus",
|
|
18234
18748
|
|
|
18235
|
-
fieldType: "
|
|
18749
|
+
fieldType: "StatusCode",
|
|
18236
18750
|
},
|
|
18237
18751
|
]
|
|
18238
18752
|
});
|
|
@@ -18248,7 +18762,7 @@ export interface ProgramDiagnostic2DataTypeOptions {
|
|
|
18248
18762
|
lastMethodInputValues?: (VariantLike | null)[] | null;
|
|
18249
18763
|
lastMethodOutputValues?: (VariantLike | null)[] | null;
|
|
18250
18764
|
lastMethodCallTime?: DateTime ;
|
|
18251
|
-
lastMethodReturnStatus?:
|
|
18765
|
+
lastMethodReturnStatus?: StatusCode ;
|
|
18252
18766
|
}
|
|
18253
18767
|
export class ProgramDiagnostic2DataType extends ExtensionObject {
|
|
18254
18768
|
public static get schema(): StructuredTypeSchema { return schemaProgramDiagnostic2DataType; }
|
|
@@ -18281,7 +18795,7 @@ export class ProgramDiagnostic2DataType extends ExtensionObject {
|
|
|
18281
18795
|
public lastMethodInputValues: Variant[] | null;
|
|
18282
18796
|
public lastMethodOutputValues: Variant[] | null;
|
|
18283
18797
|
public lastMethodCallTime: DateTime;
|
|
18284
|
-
public lastMethodReturnStatus:
|
|
18798
|
+
public lastMethodReturnStatus: StatusCode;
|
|
18285
18799
|
|
|
18286
18800
|
constructor(options?: ProgramDiagnostic2DataTypeOptions | null) {
|
|
18287
18801
|
|
|
@@ -18299,7 +18813,7 @@ export class ProgramDiagnostic2DataType extends ExtensionObject {
|
|
|
18299
18813
|
this.lastMethodInputValues = []
|
|
18300
18814
|
this.lastMethodOutputValues = []
|
|
18301
18815
|
this.lastMethodCallTime = new Date();
|
|
18302
|
-
|
|
18816
|
+
this.lastMethodReturnStatus = StatusCodes.Good;
|
|
18303
18817
|
return;
|
|
18304
18818
|
}
|
|
18305
18819
|
const schema = ProgramDiagnostic2DataType.schema;
|
|
@@ -18327,7 +18841,7 @@ export class ProgramDiagnostic2DataType extends ExtensionObject {
|
|
|
18327
18841
|
this.lastMethodInputValues = initialize_field_array(schema.fields[8], options?.lastMethodInputValues);
|
|
18328
18842
|
this.lastMethodOutputValues = initialize_field_array(schema.fields[9], options?.lastMethodOutputValues);
|
|
18329
18843
|
this.lastMethodCallTime = initialize_field(schema.fields[10], options?.lastMethodCallTime);
|
|
18330
|
-
this.lastMethodReturnStatus
|
|
18844
|
+
this.lastMethodReturnStatus = initialize_field(schema.fields[11], options?.lastMethodReturnStatus);
|
|
18331
18845
|
}
|
|
18332
18846
|
public encode(stream: OutputBinaryStream): void {
|
|
18333
18847
|
/* NEEDED */ super.encode(stream);
|
|
@@ -18342,7 +18856,7 @@ export class ProgramDiagnostic2DataType extends ExtensionObject {
|
|
|
18342
18856
|
encodeArray(this.lastMethodInputValues, stream, encodeVariant);
|
|
18343
18857
|
encodeArray(this.lastMethodOutputValues, stream, encodeVariant);
|
|
18344
18858
|
encodeDateTime(this.lastMethodCallTime, stream);
|
|
18345
|
-
this.lastMethodReturnStatus
|
|
18859
|
+
encodeStatusCode(this.lastMethodReturnStatus, stream);
|
|
18346
18860
|
}
|
|
18347
18861
|
public decode(stream: BinaryStream): void {
|
|
18348
18862
|
// call base class implementation first
|
|
@@ -18366,7 +18880,7 @@ export class ProgramDiagnostic2DataType extends ExtensionObject {
|
|
|
18366
18880
|
this.lastMethodInputValues = decodeArray(stream, decodeVariant);
|
|
18367
18881
|
this.lastMethodOutputValues = decodeArray(stream, decodeVariant);
|
|
18368
18882
|
this.lastMethodCallTime = decodeDateTime(stream, this.lastMethodCallTime);
|
|
18369
|
-
this.lastMethodReturnStatus
|
|
18883
|
+
this.lastMethodReturnStatus = decodeStatusCode(stream, this.lastMethodReturnStatus);
|
|
18370
18884
|
}
|
|
18371
18885
|
public get schema(): StructuredTypeSchema { return schemaProgramDiagnostic2DataType; }
|
|
18372
18886
|
}
|
|
@@ -18376,6 +18890,77 @@ ProgramDiagnostic2DataType.schema.encodingDefaultXml = ProgramDiagnostic2DataTyp
|
|
|
18376
18890
|
ProgramDiagnostic2DataType.schema.encodingDefaultJson = ProgramDiagnostic2DataType.encodingDefaultJson;
|
|
18377
18891
|
registerClassDefinition( ProgramDiagnostic2DataType.dataTypeNodeId, "ProgramDiagnostic2DataType", ProgramDiagnostic2DataType);
|
|
18378
18892
|
// --------------------------------------------------------------------------------------------
|
|
18893
|
+
const schemaStatusResult = buildStructuredType({
|
|
18894
|
+
name: "StatusResult",
|
|
18895
|
+
|
|
18896
|
+
baseType: "ExtensionObject",
|
|
18897
|
+
fields: [
|
|
18898
|
+
{
|
|
18899
|
+
name: "statusCode",
|
|
18900
|
+
|
|
18901
|
+
fieldType: "StatusCode",
|
|
18902
|
+
},
|
|
18903
|
+
{
|
|
18904
|
+
name: "diagnosticInfo",
|
|
18905
|
+
|
|
18906
|
+
fieldType: "DiagnosticInfo",
|
|
18907
|
+
},
|
|
18908
|
+
]
|
|
18909
|
+
});
|
|
18910
|
+
export interface StatusResultOptions {
|
|
18911
|
+
statusCode?: StatusCode ;
|
|
18912
|
+
diagnosticInfo?: (DiagnosticInfo | null);
|
|
18913
|
+
}
|
|
18914
|
+
export class StatusResult extends ExtensionObject {
|
|
18915
|
+
public static get schema(): StructuredTypeSchema { return schemaStatusResult; }
|
|
18916
|
+
public static possibleFields: string[] = [
|
|
18917
|
+
"statusCode",
|
|
18918
|
+
"diagnosticInfo"
|
|
18919
|
+
];
|
|
18920
|
+
public static dataTypeNodeId = makeExpandedNodeId(299, 0);
|
|
18921
|
+
public static encodingDefaultBinary = makeExpandedNodeId(301, 0);
|
|
18922
|
+
public static encodingDefaultXml = makeExpandedNodeId(300, 0);
|
|
18923
|
+
public static encodingDefaultJson = makeExpandedNodeId(15371, 0);
|
|
18924
|
+
public statusCode: StatusCode;
|
|
18925
|
+
public diagnosticInfo: (DiagnosticInfo | null);
|
|
18926
|
+
|
|
18927
|
+
constructor(options?: StatusResultOptions | null) {
|
|
18928
|
+
|
|
18929
|
+
super(options);
|
|
18930
|
+
|
|
18931
|
+
if (options === null) {
|
|
18932
|
+
this.statusCode = StatusCodes.Good;
|
|
18933
|
+
this.diagnosticInfo = null;
|
|
18934
|
+
return;
|
|
18935
|
+
}
|
|
18936
|
+
const schema = StatusResult.schema;
|
|
18937
|
+
options = (schema.constructHook ? schema.constructHook(options) as StatusResultOptions: options ) || {};
|
|
18938
|
+
/* istanbul ignore next */
|
|
18939
|
+
if (parameters.debugSchemaHelper) {
|
|
18940
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
18941
|
+
}
|
|
18942
|
+
this.statusCode = initialize_field(schema.fields[0], options?.statusCode);
|
|
18943
|
+
this.diagnosticInfo = initialize_field(schema.fields[1], options?.diagnosticInfo);
|
|
18944
|
+
}
|
|
18945
|
+
public encode(stream: OutputBinaryStream): void {
|
|
18946
|
+
/* NEEDED */ super.encode(stream);
|
|
18947
|
+
encodeStatusCode(this.statusCode, stream);
|
|
18948
|
+
encodeDiagnosticInfo(this.diagnosticInfo, stream);
|
|
18949
|
+
}
|
|
18950
|
+
public decode(stream: BinaryStream): void {
|
|
18951
|
+
// call base class implementation first
|
|
18952
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
18953
|
+
this.statusCode = decodeStatusCode(stream, this.statusCode);
|
|
18954
|
+
this.diagnosticInfo = decodeDiagnosticInfo(stream, this.diagnosticInfo);
|
|
18955
|
+
}
|
|
18956
|
+
public get schema(): StructuredTypeSchema { return schemaStatusResult; }
|
|
18957
|
+
}
|
|
18958
|
+
StatusResult.schema.dataTypeNodeId = StatusResult.dataTypeNodeId;
|
|
18959
|
+
StatusResult.schema.encodingDefaultBinary = StatusResult.encodingDefaultBinary;
|
|
18960
|
+
StatusResult.schema.encodingDefaultXml = StatusResult.encodingDefaultXml;
|
|
18961
|
+
StatusResult.schema.encodingDefaultJson = StatusResult.encodingDefaultJson;
|
|
18962
|
+
registerClassDefinition( StatusResult.dataTypeNodeId, "StatusResult", StatusResult);
|
|
18963
|
+
// --------------------------------------------------------------------------------------------
|
|
18379
18964
|
const schemaProgramDiagnosticDataType = buildStructuredType({
|
|
18380
18965
|
name: "ProgramDiagnosticDataType",
|
|
18381
18966
|
|
|
@@ -19289,94 +19874,983 @@ const schemaPubSubConfigurationDataType = buildStructuredType({
|
|
|
19289
19874
|
isArray: true
|
|
19290
19875
|
},
|
|
19291
19876
|
{
|
|
19292
|
-
name: "connections",
|
|
19877
|
+
name: "connections",
|
|
19878
|
+
|
|
19879
|
+
fieldType: "PubSubConnectionDataType",
|
|
19880
|
+
isArray: true
|
|
19881
|
+
},
|
|
19882
|
+
{
|
|
19883
|
+
name: "enabled",
|
|
19884
|
+
|
|
19885
|
+
fieldType: "UABoolean",
|
|
19886
|
+
},
|
|
19887
|
+
]
|
|
19888
|
+
});
|
|
19889
|
+
export interface PubSubConfigurationDataTypeOptions {
|
|
19890
|
+
publishedDataSets?: PublishedDataSetDataTypeOptions [] | null;
|
|
19891
|
+
connections?: PubSubConnectionDataTypeOptions [] | null;
|
|
19892
|
+
enabled?: UABoolean ;
|
|
19893
|
+
}
|
|
19894
|
+
export class PubSubConfigurationDataType extends ExtensionObject {
|
|
19895
|
+
public static get schema(): StructuredTypeSchema { return schemaPubSubConfigurationDataType; }
|
|
19896
|
+
public static possibleFields: string[] = [
|
|
19897
|
+
"publishedDataSets",
|
|
19898
|
+
"connections",
|
|
19899
|
+
"enabled"
|
|
19900
|
+
];
|
|
19901
|
+
public static dataTypeNodeId = makeExpandedNodeId(15530, 0);
|
|
19902
|
+
public static encodingDefaultBinary = makeExpandedNodeId(21154, 0);
|
|
19903
|
+
public static encodingDefaultXml = makeExpandedNodeId(21178, 0);
|
|
19904
|
+
public static encodingDefaultJson = makeExpandedNodeId(21202, 0);
|
|
19905
|
+
public publishedDataSets: PublishedDataSetDataType[] | null;
|
|
19906
|
+
public connections: PubSubConnectionDataType[] | null;
|
|
19907
|
+
public enabled: UABoolean;
|
|
19908
|
+
|
|
19909
|
+
constructor(options?: PubSubConfigurationDataTypeOptions | null) {
|
|
19910
|
+
|
|
19911
|
+
super(options);
|
|
19912
|
+
|
|
19913
|
+
if (options === null) {
|
|
19914
|
+
this.publishedDataSets = null; /* null array */
|
|
19915
|
+
this.connections = null; /* null array */
|
|
19916
|
+
this.enabled = false;
|
|
19917
|
+
return;
|
|
19918
|
+
}
|
|
19919
|
+
const schema = PubSubConfigurationDataType.schema;
|
|
19920
|
+
options = (schema.constructHook ? schema.constructHook(options) as PubSubConfigurationDataTypeOptions: options ) || {};
|
|
19921
|
+
/* istanbul ignore next */
|
|
19922
|
+
if (parameters.debugSchemaHelper) {
|
|
19923
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
19924
|
+
}
|
|
19925
|
+
this.publishedDataSets = []; // should default
|
|
19926
|
+
if (options.publishedDataSets) {
|
|
19927
|
+
assert(Array.isArray(options.publishedDataSets));
|
|
19928
|
+
this.publishedDataSets = options.publishedDataSets.map((e: any) => new PublishedDataSetDataType(e));
|
|
19929
|
+
}
|
|
19930
|
+
this.connections = []; // should default
|
|
19931
|
+
if (options.connections) {
|
|
19932
|
+
assert(Array.isArray(options.connections));
|
|
19933
|
+
this.connections = options.connections.map((e: any) => new PubSubConnectionDataType(e));
|
|
19934
|
+
}
|
|
19935
|
+
this.enabled = initialize_field(schema.fields[2], options?.enabled);
|
|
19936
|
+
}
|
|
19937
|
+
public encode(stream: OutputBinaryStream): void {
|
|
19938
|
+
/* NEEDED */ super.encode(stream);
|
|
19939
|
+
encodeArray(this.publishedDataSets, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
19940
|
+
encodeArray(this.connections, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
19941
|
+
encodeUABoolean(this.enabled, stream);
|
|
19942
|
+
}
|
|
19943
|
+
public decode(stream: BinaryStream): void {
|
|
19944
|
+
// call base class implementation first
|
|
19945
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
19946
|
+
this.publishedDataSets = decodeArray(stream, (stream1: BinaryStream) => {
|
|
19947
|
+
const obj = new PublishedDataSetDataType(null);
|
|
19948
|
+
obj.decode(stream1);
|
|
19949
|
+
return obj;
|
|
19950
|
+
});
|
|
19951
|
+
this.connections = decodeArray(stream, (stream1: BinaryStream) => {
|
|
19952
|
+
const obj = new PubSubConnectionDataType(null);
|
|
19953
|
+
obj.decode(stream1);
|
|
19954
|
+
return obj;
|
|
19955
|
+
});
|
|
19956
|
+
this.enabled = decodeUABoolean(stream, this.enabled);
|
|
19957
|
+
}
|
|
19958
|
+
public get schema(): StructuredTypeSchema { return schemaPubSubConfigurationDataType; }
|
|
19959
|
+
}
|
|
19960
|
+
PubSubConfigurationDataType.schema.dataTypeNodeId = PubSubConfigurationDataType.dataTypeNodeId;
|
|
19961
|
+
PubSubConfigurationDataType.schema.encodingDefaultBinary = PubSubConfigurationDataType.encodingDefaultBinary;
|
|
19962
|
+
PubSubConfigurationDataType.schema.encodingDefaultXml = PubSubConfigurationDataType.encodingDefaultXml;
|
|
19963
|
+
PubSubConfigurationDataType.schema.encodingDefaultJson = PubSubConfigurationDataType.encodingDefaultJson;
|
|
19964
|
+
registerClassDefinition( PubSubConfigurationDataType.dataTypeNodeId, "PubSubConfigurationDataType", PubSubConfigurationDataType);
|
|
19965
|
+
// --------------------------------------------------------------------------------------------
|
|
19966
|
+
const schemaSubscribedDataSetDataType = buildStructuredType({
|
|
19967
|
+
name: "SubscribedDataSetDataType",
|
|
19968
|
+
|
|
19969
|
+
baseType: "ExtensionObject",
|
|
19970
|
+
fields: [
|
|
19971
|
+
]
|
|
19972
|
+
});
|
|
19973
|
+
export interface SubscribedDataSetDataTypeOptions {
|
|
19974
|
+
}
|
|
19975
|
+
export class SubscribedDataSetDataType extends ExtensionObject {
|
|
19976
|
+
public static get schema(): StructuredTypeSchema { return schemaSubscribedDataSetDataType; }
|
|
19977
|
+
public static possibleFields: string[] = [
|
|
19978
|
+
|
|
19979
|
+
];
|
|
19980
|
+
public static dataTypeNodeId = makeExpandedNodeId(15630, 0);
|
|
19981
|
+
public static encodingDefaultBinary = makeExpandedNodeId(15707, 0);
|
|
19982
|
+
public static encodingDefaultXml = makeExpandedNodeId(16010, 0);
|
|
19983
|
+
public static encodingDefaultJson = makeExpandedNodeId(16308, 0);
|
|
19984
|
+
|
|
19985
|
+
constructor(options?: SubscribedDataSetDataTypeOptions | null) {
|
|
19986
|
+
|
|
19987
|
+
super(options);
|
|
19988
|
+
|
|
19989
|
+
if (options === null) {
|
|
19990
|
+
return;
|
|
19991
|
+
}
|
|
19992
|
+
const schema = SubscribedDataSetDataType.schema;
|
|
19993
|
+
options = (schema.constructHook ? schema.constructHook(options) as SubscribedDataSetDataTypeOptions: options ) || {};
|
|
19994
|
+
/* istanbul ignore next */
|
|
19995
|
+
if (parameters.debugSchemaHelper) {
|
|
19996
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
19997
|
+
}
|
|
19998
|
+
}
|
|
19999
|
+
public encode(stream: OutputBinaryStream): void {
|
|
20000
|
+
/* NEEDED */ super.encode(stream);
|
|
20001
|
+
}
|
|
20002
|
+
public decode(stream: BinaryStream): void {
|
|
20003
|
+
// call base class implementation first
|
|
20004
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
20005
|
+
}
|
|
20006
|
+
public get schema(): StructuredTypeSchema { return schemaSubscribedDataSetDataType; }
|
|
20007
|
+
}
|
|
20008
|
+
SubscribedDataSetDataType.schema.dataTypeNodeId = SubscribedDataSetDataType.dataTypeNodeId;
|
|
20009
|
+
SubscribedDataSetDataType.schema.encodingDefaultBinary = SubscribedDataSetDataType.encodingDefaultBinary;
|
|
20010
|
+
SubscribedDataSetDataType.schema.encodingDefaultXml = SubscribedDataSetDataType.encodingDefaultXml;
|
|
20011
|
+
SubscribedDataSetDataType.schema.encodingDefaultJson = SubscribedDataSetDataType.encodingDefaultJson;
|
|
20012
|
+
registerClassDefinition( SubscribedDataSetDataType.dataTypeNodeId, "SubscribedDataSetDataType", SubscribedDataSetDataType);
|
|
20013
|
+
// --------------------------------------------------------------------------------------------
|
|
20014
|
+
const schemaStandaloneSubscribedDataSetDataType = buildStructuredType({
|
|
20015
|
+
name: "StandaloneSubscribedDataSetDataType",
|
|
20016
|
+
|
|
20017
|
+
baseType: "SubscribedDataSetDataType",
|
|
20018
|
+
fields: [
|
|
20019
|
+
{
|
|
20020
|
+
name: "name",
|
|
20021
|
+
|
|
20022
|
+
fieldType: "UAString",
|
|
20023
|
+
},
|
|
20024
|
+
{
|
|
20025
|
+
name: "dataSetFolder",
|
|
20026
|
+
|
|
20027
|
+
fieldType: "UAString",
|
|
20028
|
+
isArray: true
|
|
20029
|
+
},
|
|
20030
|
+
{
|
|
20031
|
+
name: "dataSetMetaData",
|
|
20032
|
+
|
|
20033
|
+
fieldType: "DataSetMetaDataType",
|
|
20034
|
+
},
|
|
20035
|
+
{
|
|
20036
|
+
name: "subscribedDataSet",
|
|
20037
|
+
|
|
20038
|
+
fieldType: "ExtensionObject",
|
|
20039
|
+
},
|
|
20040
|
+
]
|
|
20041
|
+
});
|
|
20042
|
+
export interface StandaloneSubscribedDataSetDataTypeOptions extends SubscribedDataSetDataTypeOptions {
|
|
20043
|
+
name?: UAString ;
|
|
20044
|
+
dataSetFolder?: UAString [] | null;
|
|
20045
|
+
dataSetMetaData?: DataSetMetaDataTypeOptions ;
|
|
20046
|
+
subscribedDataSet?: (ExtensionObject | null);
|
|
20047
|
+
}
|
|
20048
|
+
export class StandaloneSubscribedDataSetDataType extends SubscribedDataSetDataType {
|
|
20049
|
+
public static get schema(): StructuredTypeSchema { return schemaStandaloneSubscribedDataSetDataType; }
|
|
20050
|
+
public static possibleFields: string[] = [
|
|
20051
|
+
"name",
|
|
20052
|
+
"dataSetFolder",
|
|
20053
|
+
"dataSetMetaData",
|
|
20054
|
+
"subscribedDataSet"
|
|
20055
|
+
];
|
|
20056
|
+
public static dataTypeNodeId = makeExpandedNodeId(23600, 0);
|
|
20057
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23852, 0);
|
|
20058
|
+
public static encodingDefaultXml = makeExpandedNodeId(23920, 0);
|
|
20059
|
+
public static encodingDefaultJson = makeExpandedNodeId(23988, 0);
|
|
20060
|
+
public name: UAString;
|
|
20061
|
+
public dataSetFolder: UAString[] | null;
|
|
20062
|
+
public dataSetMetaData: DataSetMetaDataType;
|
|
20063
|
+
public subscribedDataSet: (ExtensionObject | null);
|
|
20064
|
+
|
|
20065
|
+
constructor(options?: StandaloneSubscribedDataSetDataTypeOptions | null) {
|
|
20066
|
+
|
|
20067
|
+
super(options);
|
|
20068
|
+
|
|
20069
|
+
if (options === null) {
|
|
20070
|
+
this.name = null;
|
|
20071
|
+
this.dataSetFolder = []
|
|
20072
|
+
this.dataSetMetaData = new DataSetMetaDataType(null);
|
|
20073
|
+
this.subscribedDataSet = null;
|
|
20074
|
+
return;
|
|
20075
|
+
}
|
|
20076
|
+
const schema = StandaloneSubscribedDataSetDataType.schema;
|
|
20077
|
+
options = (schema.constructHook ? schema.constructHook(options) as StandaloneSubscribedDataSetDataTypeOptions: options ) || {};
|
|
20078
|
+
/* istanbul ignore next */
|
|
20079
|
+
if (parameters.debugSchemaHelper) {
|
|
20080
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
20081
|
+
}
|
|
20082
|
+
this.name = initialize_field(schema.fields[0], options?.name);
|
|
20083
|
+
this.dataSetFolder = initialize_field_array(schema.fields[1], options?.dataSetFolder);
|
|
20084
|
+
this.dataSetMetaData = new DataSetMetaDataType(options.dataSetMetaData);
|
|
20085
|
+
this.subscribedDataSet = initialize_field(schema.fields[3], options?.subscribedDataSet);
|
|
20086
|
+
}
|
|
20087
|
+
public encode(stream: OutputBinaryStream): void {
|
|
20088
|
+
/* NEEDED */ super.encode(stream);
|
|
20089
|
+
encodeUAString(this.name, stream);
|
|
20090
|
+
encodeArray(this.dataSetFolder, stream, encodeUAString);
|
|
20091
|
+
this.dataSetMetaData.encode(stream);
|
|
20092
|
+
encodeExtensionObject(this.subscribedDataSet, stream);
|
|
20093
|
+
}
|
|
20094
|
+
public decode(stream: BinaryStream): void {
|
|
20095
|
+
// call base class implementation first
|
|
20096
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
20097
|
+
this.name = decodeUAString(stream, this.name);
|
|
20098
|
+
this.dataSetFolder = decodeArray(stream, decodeUAString);
|
|
20099
|
+
this.dataSetMetaData.decode(stream);
|
|
20100
|
+
this.subscribedDataSet = decodeExtensionObject(stream, this.subscribedDataSet);
|
|
20101
|
+
}
|
|
20102
|
+
public get schema(): StructuredTypeSchema { return schemaStandaloneSubscribedDataSetDataType; }
|
|
20103
|
+
}
|
|
20104
|
+
StandaloneSubscribedDataSetDataType.schema.dataTypeNodeId = StandaloneSubscribedDataSetDataType.dataTypeNodeId;
|
|
20105
|
+
StandaloneSubscribedDataSetDataType.schema.encodingDefaultBinary = StandaloneSubscribedDataSetDataType.encodingDefaultBinary;
|
|
20106
|
+
StandaloneSubscribedDataSetDataType.schema.encodingDefaultXml = StandaloneSubscribedDataSetDataType.encodingDefaultXml;
|
|
20107
|
+
StandaloneSubscribedDataSetDataType.schema.encodingDefaultJson = StandaloneSubscribedDataSetDataType.encodingDefaultJson;
|
|
20108
|
+
registerClassDefinition( StandaloneSubscribedDataSetDataType.dataTypeNodeId, "StandaloneSubscribedDataSetDataType", StandaloneSubscribedDataSetDataType);
|
|
20109
|
+
// --------------------------------------------------------------------------------------------
|
|
20110
|
+
const schemaSecurityGroupDataType = buildStructuredType({
|
|
20111
|
+
name: "SecurityGroupDataType",
|
|
20112
|
+
|
|
20113
|
+
baseType: "ExtensionObject",
|
|
20114
|
+
fields: [
|
|
20115
|
+
{
|
|
20116
|
+
name: "name",
|
|
20117
|
+
|
|
20118
|
+
fieldType: "UAString",
|
|
20119
|
+
},
|
|
20120
|
+
{
|
|
20121
|
+
name: "securityGroupFolder",
|
|
20122
|
+
|
|
20123
|
+
fieldType: "UAString",
|
|
20124
|
+
isArray: true
|
|
20125
|
+
},
|
|
20126
|
+
{
|
|
20127
|
+
name: "keyLifetime",
|
|
20128
|
+
|
|
20129
|
+
fieldType: "Double",
|
|
20130
|
+
},
|
|
20131
|
+
{
|
|
20132
|
+
name: "securityPolicyUri",
|
|
20133
|
+
|
|
20134
|
+
fieldType: "UAString",
|
|
20135
|
+
},
|
|
20136
|
+
{
|
|
20137
|
+
name: "maxFutureKeyCount",
|
|
20138
|
+
|
|
20139
|
+
fieldType: "UInt32",
|
|
20140
|
+
},
|
|
20141
|
+
{
|
|
20142
|
+
name: "maxPastKeyCount",
|
|
20143
|
+
|
|
20144
|
+
fieldType: "UInt32",
|
|
20145
|
+
},
|
|
20146
|
+
{
|
|
20147
|
+
name: "securityGroupId",
|
|
20148
|
+
|
|
20149
|
+
fieldType: "UAString",
|
|
20150
|
+
},
|
|
20151
|
+
{
|
|
20152
|
+
name: "rolePermissions",
|
|
20153
|
+
|
|
20154
|
+
fieldType: "RolePermissionType",
|
|
20155
|
+
isArray: true
|
|
20156
|
+
},
|
|
20157
|
+
{
|
|
20158
|
+
name: "groupProperties",
|
|
20159
|
+
|
|
20160
|
+
fieldType: "KeyValuePair",
|
|
20161
|
+
isArray: true
|
|
20162
|
+
},
|
|
20163
|
+
]
|
|
20164
|
+
});
|
|
20165
|
+
export interface SecurityGroupDataTypeOptions {
|
|
20166
|
+
name?: UAString ;
|
|
20167
|
+
securityGroupFolder?: UAString [] | null;
|
|
20168
|
+
keyLifetime?: Double ;
|
|
20169
|
+
securityPolicyUri?: UAString ;
|
|
20170
|
+
maxFutureKeyCount?: UInt32 ;
|
|
20171
|
+
maxPastKeyCount?: UInt32 ;
|
|
20172
|
+
securityGroupId?: UAString ;
|
|
20173
|
+
rolePermissions?: RolePermissionTypeOptions [] | null;
|
|
20174
|
+
groupProperties?: KeyValuePairOptions [] | null;
|
|
20175
|
+
}
|
|
20176
|
+
export class SecurityGroupDataType extends ExtensionObject {
|
|
20177
|
+
public static get schema(): StructuredTypeSchema { return schemaSecurityGroupDataType; }
|
|
20178
|
+
public static possibleFields: string[] = [
|
|
20179
|
+
"name",
|
|
20180
|
+
"securityGroupFolder",
|
|
20181
|
+
"keyLifetime",
|
|
20182
|
+
"securityPolicyUri",
|
|
20183
|
+
"maxFutureKeyCount",
|
|
20184
|
+
"maxPastKeyCount",
|
|
20185
|
+
"securityGroupId",
|
|
20186
|
+
"rolePermissions",
|
|
20187
|
+
"groupProperties"
|
|
20188
|
+
];
|
|
20189
|
+
public static dataTypeNodeId = makeExpandedNodeId(23601, 0);
|
|
20190
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23853, 0);
|
|
20191
|
+
public static encodingDefaultXml = makeExpandedNodeId(23921, 0);
|
|
20192
|
+
public static encodingDefaultJson = makeExpandedNodeId(23989, 0);
|
|
20193
|
+
public name: UAString;
|
|
20194
|
+
public securityGroupFolder: UAString[] | null;
|
|
20195
|
+
public keyLifetime: Double;
|
|
20196
|
+
public securityPolicyUri: UAString;
|
|
20197
|
+
public maxFutureKeyCount: UInt32;
|
|
20198
|
+
public maxPastKeyCount: UInt32;
|
|
20199
|
+
public securityGroupId: UAString;
|
|
20200
|
+
public rolePermissions: RolePermissionType[] | null;
|
|
20201
|
+
public groupProperties: KeyValuePair[] | null;
|
|
20202
|
+
|
|
20203
|
+
constructor(options?: SecurityGroupDataTypeOptions | null) {
|
|
20204
|
+
|
|
20205
|
+
super(options);
|
|
20206
|
+
|
|
20207
|
+
if (options === null) {
|
|
20208
|
+
this.name = null;
|
|
20209
|
+
this.securityGroupFolder = []
|
|
20210
|
+
this.keyLifetime = 0;
|
|
20211
|
+
this.securityPolicyUri = null;
|
|
20212
|
+
this.maxFutureKeyCount = 0;
|
|
20213
|
+
this.maxPastKeyCount = 0;
|
|
20214
|
+
this.securityGroupId = null;
|
|
20215
|
+
this.rolePermissions = null; /* null array */
|
|
20216
|
+
this.groupProperties = null; /* null array */
|
|
20217
|
+
return;
|
|
20218
|
+
}
|
|
20219
|
+
const schema = SecurityGroupDataType.schema;
|
|
20220
|
+
options = (schema.constructHook ? schema.constructHook(options) as SecurityGroupDataTypeOptions: options ) || {};
|
|
20221
|
+
/* istanbul ignore next */
|
|
20222
|
+
if (parameters.debugSchemaHelper) {
|
|
20223
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
20224
|
+
}
|
|
20225
|
+
this.name = initialize_field(schema.fields[0], options?.name);
|
|
20226
|
+
this.securityGroupFolder = initialize_field_array(schema.fields[1], options?.securityGroupFolder);
|
|
20227
|
+
this.keyLifetime = initialize_field(schema.fields[2], options?.keyLifetime);
|
|
20228
|
+
this.securityPolicyUri = initialize_field(schema.fields[3], options?.securityPolicyUri);
|
|
20229
|
+
this.maxFutureKeyCount = initialize_field(schema.fields[4], options?.maxFutureKeyCount);
|
|
20230
|
+
this.maxPastKeyCount = initialize_field(schema.fields[5], options?.maxPastKeyCount);
|
|
20231
|
+
this.securityGroupId = initialize_field(schema.fields[6], options?.securityGroupId);
|
|
20232
|
+
this.rolePermissions = []; // should default
|
|
20233
|
+
if (options.rolePermissions) {
|
|
20234
|
+
assert(Array.isArray(options.rolePermissions));
|
|
20235
|
+
this.rolePermissions = options.rolePermissions.map((e: any) => new RolePermissionType(e));
|
|
20236
|
+
}
|
|
20237
|
+
this.groupProperties = []; // should default
|
|
20238
|
+
if (options.groupProperties) {
|
|
20239
|
+
assert(Array.isArray(options.groupProperties));
|
|
20240
|
+
this.groupProperties = options.groupProperties.map((e: any) => new KeyValuePair(e));
|
|
20241
|
+
}
|
|
20242
|
+
}
|
|
20243
|
+
public encode(stream: OutputBinaryStream): void {
|
|
20244
|
+
/* NEEDED */ super.encode(stream);
|
|
20245
|
+
encodeUAString(this.name, stream);
|
|
20246
|
+
encodeArray(this.securityGroupFolder, stream, encodeUAString);
|
|
20247
|
+
encodeDouble(this.keyLifetime, stream);
|
|
20248
|
+
encodeUAString(this.securityPolicyUri, stream);
|
|
20249
|
+
encodeUInt32(this.maxFutureKeyCount, stream);
|
|
20250
|
+
encodeUInt32(this.maxPastKeyCount, stream);
|
|
20251
|
+
encodeUAString(this.securityGroupId, stream);
|
|
20252
|
+
encodeArray(this.rolePermissions, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20253
|
+
encodeArray(this.groupProperties, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20254
|
+
}
|
|
20255
|
+
public decode(stream: BinaryStream): void {
|
|
20256
|
+
// call base class implementation first
|
|
20257
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
20258
|
+
this.name = decodeUAString(stream, this.name);
|
|
20259
|
+
this.securityGroupFolder = decodeArray(stream, decodeUAString);
|
|
20260
|
+
this.keyLifetime = decodeDouble(stream, this.keyLifetime);
|
|
20261
|
+
this.securityPolicyUri = decodeUAString(stream, this.securityPolicyUri);
|
|
20262
|
+
this.maxFutureKeyCount = decodeUInt32(stream, this.maxFutureKeyCount);
|
|
20263
|
+
this.maxPastKeyCount = decodeUInt32(stream, this.maxPastKeyCount);
|
|
20264
|
+
this.securityGroupId = decodeUAString(stream, this.securityGroupId);
|
|
20265
|
+
this.rolePermissions = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20266
|
+
const obj = new RolePermissionType(null);
|
|
20267
|
+
obj.decode(stream1);
|
|
20268
|
+
return obj;
|
|
20269
|
+
});
|
|
20270
|
+
this.groupProperties = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20271
|
+
const obj = new KeyValuePair(null);
|
|
20272
|
+
obj.decode(stream1);
|
|
20273
|
+
return obj;
|
|
20274
|
+
});
|
|
20275
|
+
}
|
|
20276
|
+
public get schema(): StructuredTypeSchema { return schemaSecurityGroupDataType; }
|
|
20277
|
+
}
|
|
20278
|
+
SecurityGroupDataType.schema.dataTypeNodeId = SecurityGroupDataType.dataTypeNodeId;
|
|
20279
|
+
SecurityGroupDataType.schema.encodingDefaultBinary = SecurityGroupDataType.encodingDefaultBinary;
|
|
20280
|
+
SecurityGroupDataType.schema.encodingDefaultXml = SecurityGroupDataType.encodingDefaultXml;
|
|
20281
|
+
SecurityGroupDataType.schema.encodingDefaultJson = SecurityGroupDataType.encodingDefaultJson;
|
|
20282
|
+
registerClassDefinition( SecurityGroupDataType.dataTypeNodeId, "SecurityGroupDataType", SecurityGroupDataType);
|
|
20283
|
+
// --------------------------------------------------------------------------------------------
|
|
20284
|
+
const schemaPubSubKeyPushTargetDataType = buildStructuredType({
|
|
20285
|
+
name: "PubSubKeyPushTargetDataType",
|
|
20286
|
+
|
|
20287
|
+
baseType: "ExtensionObject",
|
|
20288
|
+
fields: [
|
|
20289
|
+
{
|
|
20290
|
+
name: "applicationUri",
|
|
20291
|
+
|
|
20292
|
+
fieldType: "UAString",
|
|
20293
|
+
},
|
|
20294
|
+
{
|
|
20295
|
+
name: "pushTargetFolder",
|
|
20296
|
+
|
|
20297
|
+
fieldType: "UAString",
|
|
20298
|
+
isArray: true
|
|
20299
|
+
},
|
|
20300
|
+
{
|
|
20301
|
+
name: "endpointUrl",
|
|
20302
|
+
|
|
20303
|
+
fieldType: "UAString",
|
|
20304
|
+
},
|
|
20305
|
+
{
|
|
20306
|
+
name: "securityPolicyUri",
|
|
20307
|
+
|
|
20308
|
+
fieldType: "UAString",
|
|
20309
|
+
},
|
|
20310
|
+
{
|
|
20311
|
+
name: "userTokenType",
|
|
20312
|
+
|
|
20313
|
+
fieldType: "UserTokenPolicy",
|
|
20314
|
+
},
|
|
20315
|
+
{
|
|
20316
|
+
name: "requestedKeyCount",
|
|
20317
|
+
|
|
20318
|
+
fieldType: "UInt16",
|
|
20319
|
+
},
|
|
20320
|
+
{
|
|
20321
|
+
name: "retryInterval",
|
|
20322
|
+
|
|
20323
|
+
fieldType: "Double",
|
|
20324
|
+
},
|
|
20325
|
+
{
|
|
20326
|
+
name: "pushTargetProperties",
|
|
20327
|
+
|
|
20328
|
+
fieldType: "KeyValuePair",
|
|
20329
|
+
isArray: true
|
|
20330
|
+
},
|
|
20331
|
+
{
|
|
20332
|
+
name: "securityGroups",
|
|
20333
|
+
|
|
20334
|
+
fieldType: "UAString",
|
|
20335
|
+
isArray: true
|
|
20336
|
+
},
|
|
20337
|
+
]
|
|
20338
|
+
});
|
|
20339
|
+
export interface PubSubKeyPushTargetDataTypeOptions {
|
|
20340
|
+
applicationUri?: UAString ;
|
|
20341
|
+
pushTargetFolder?: UAString [] | null;
|
|
20342
|
+
endpointUrl?: UAString ;
|
|
20343
|
+
securityPolicyUri?: UAString ;
|
|
20344
|
+
userTokenType?: UserTokenPolicyOptions ;
|
|
20345
|
+
requestedKeyCount?: UInt16 ;
|
|
20346
|
+
retryInterval?: Double ;
|
|
20347
|
+
pushTargetProperties?: KeyValuePairOptions [] | null;
|
|
20348
|
+
securityGroups?: UAString [] | null;
|
|
20349
|
+
}
|
|
20350
|
+
export class PubSubKeyPushTargetDataType extends ExtensionObject {
|
|
20351
|
+
public static get schema(): StructuredTypeSchema { return schemaPubSubKeyPushTargetDataType; }
|
|
20352
|
+
public static possibleFields: string[] = [
|
|
20353
|
+
"applicationUri",
|
|
20354
|
+
"pushTargetFolder",
|
|
20355
|
+
"endpointUrl",
|
|
20356
|
+
"securityPolicyUri",
|
|
20357
|
+
"userTokenType",
|
|
20358
|
+
"requestedKeyCount",
|
|
20359
|
+
"retryInterval",
|
|
20360
|
+
"pushTargetProperties",
|
|
20361
|
+
"securityGroups"
|
|
20362
|
+
];
|
|
20363
|
+
public static dataTypeNodeId = makeExpandedNodeId(25270, 0);
|
|
20364
|
+
public static encodingDefaultBinary = makeExpandedNodeId(25530, 0);
|
|
20365
|
+
public static encodingDefaultXml = makeExpandedNodeId(25546, 0);
|
|
20366
|
+
public static encodingDefaultJson = makeExpandedNodeId(25562, 0);
|
|
20367
|
+
public applicationUri: UAString;
|
|
20368
|
+
public pushTargetFolder: UAString[] | null;
|
|
20369
|
+
public endpointUrl: UAString;
|
|
20370
|
+
public securityPolicyUri: UAString;
|
|
20371
|
+
public userTokenType: UserTokenPolicy;
|
|
20372
|
+
public requestedKeyCount: UInt16;
|
|
20373
|
+
public retryInterval: Double;
|
|
20374
|
+
public pushTargetProperties: KeyValuePair[] | null;
|
|
20375
|
+
public securityGroups: UAString[] | null;
|
|
20376
|
+
|
|
20377
|
+
constructor(options?: PubSubKeyPushTargetDataTypeOptions | null) {
|
|
20378
|
+
|
|
20379
|
+
super(options);
|
|
20380
|
+
|
|
20381
|
+
if (options === null) {
|
|
20382
|
+
this.applicationUri = null;
|
|
20383
|
+
this.pushTargetFolder = []
|
|
20384
|
+
this.endpointUrl = null;
|
|
20385
|
+
this.securityPolicyUri = null;
|
|
20386
|
+
this.userTokenType = new UserTokenPolicy(null);
|
|
20387
|
+
this.requestedKeyCount = 0;
|
|
20388
|
+
this.retryInterval = 0;
|
|
20389
|
+
this.pushTargetProperties = null; /* null array */
|
|
20390
|
+
this.securityGroups = []
|
|
20391
|
+
return;
|
|
20392
|
+
}
|
|
20393
|
+
const schema = PubSubKeyPushTargetDataType.schema;
|
|
20394
|
+
options = (schema.constructHook ? schema.constructHook(options) as PubSubKeyPushTargetDataTypeOptions: options ) || {};
|
|
20395
|
+
/* istanbul ignore next */
|
|
20396
|
+
if (parameters.debugSchemaHelper) {
|
|
20397
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
20398
|
+
}
|
|
20399
|
+
this.applicationUri = initialize_field(schema.fields[0], options?.applicationUri);
|
|
20400
|
+
this.pushTargetFolder = initialize_field_array(schema.fields[1], options?.pushTargetFolder);
|
|
20401
|
+
this.endpointUrl = initialize_field(schema.fields[2], options?.endpointUrl);
|
|
20402
|
+
this.securityPolicyUri = initialize_field(schema.fields[3], options?.securityPolicyUri);
|
|
20403
|
+
this.userTokenType = new UserTokenPolicy(options.userTokenType);
|
|
20404
|
+
this.requestedKeyCount = initialize_field(schema.fields[5], options?.requestedKeyCount);
|
|
20405
|
+
this.retryInterval = initialize_field(schema.fields[6], options?.retryInterval);
|
|
20406
|
+
this.pushTargetProperties = []; // should default
|
|
20407
|
+
if (options.pushTargetProperties) {
|
|
20408
|
+
assert(Array.isArray(options.pushTargetProperties));
|
|
20409
|
+
this.pushTargetProperties = options.pushTargetProperties.map((e: any) => new KeyValuePair(e));
|
|
20410
|
+
}
|
|
20411
|
+
this.securityGroups = initialize_field_array(schema.fields[8], options?.securityGroups);
|
|
20412
|
+
}
|
|
20413
|
+
public encode(stream: OutputBinaryStream): void {
|
|
20414
|
+
/* NEEDED */ super.encode(stream);
|
|
20415
|
+
encodeUAString(this.applicationUri, stream);
|
|
20416
|
+
encodeArray(this.pushTargetFolder, stream, encodeUAString);
|
|
20417
|
+
encodeUAString(this.endpointUrl, stream);
|
|
20418
|
+
encodeUAString(this.securityPolicyUri, stream);
|
|
20419
|
+
this.userTokenType.encode(stream);
|
|
20420
|
+
encodeUInt16(this.requestedKeyCount, stream);
|
|
20421
|
+
encodeDouble(this.retryInterval, stream);
|
|
20422
|
+
encodeArray(this.pushTargetProperties, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20423
|
+
encodeArray(this.securityGroups, stream, encodeUAString);
|
|
20424
|
+
}
|
|
20425
|
+
public decode(stream: BinaryStream): void {
|
|
20426
|
+
// call base class implementation first
|
|
20427
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
20428
|
+
this.applicationUri = decodeUAString(stream, this.applicationUri);
|
|
20429
|
+
this.pushTargetFolder = decodeArray(stream, decodeUAString);
|
|
20430
|
+
this.endpointUrl = decodeUAString(stream, this.endpointUrl);
|
|
20431
|
+
this.securityPolicyUri = decodeUAString(stream, this.securityPolicyUri);
|
|
20432
|
+
this.userTokenType.decode(stream);
|
|
20433
|
+
this.requestedKeyCount = decodeUInt16(stream, this.requestedKeyCount);
|
|
20434
|
+
this.retryInterval = decodeDouble(stream, this.retryInterval);
|
|
20435
|
+
this.pushTargetProperties = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20436
|
+
const obj = new KeyValuePair(null);
|
|
20437
|
+
obj.decode(stream1);
|
|
20438
|
+
return obj;
|
|
20439
|
+
});
|
|
20440
|
+
this.securityGroups = decodeArray(stream, decodeUAString);
|
|
20441
|
+
}
|
|
20442
|
+
public get schema(): StructuredTypeSchema { return schemaPubSubKeyPushTargetDataType; }
|
|
20443
|
+
}
|
|
20444
|
+
PubSubKeyPushTargetDataType.schema.dataTypeNodeId = PubSubKeyPushTargetDataType.dataTypeNodeId;
|
|
20445
|
+
PubSubKeyPushTargetDataType.schema.encodingDefaultBinary = PubSubKeyPushTargetDataType.encodingDefaultBinary;
|
|
20446
|
+
PubSubKeyPushTargetDataType.schema.encodingDefaultXml = PubSubKeyPushTargetDataType.encodingDefaultXml;
|
|
20447
|
+
PubSubKeyPushTargetDataType.schema.encodingDefaultJson = PubSubKeyPushTargetDataType.encodingDefaultJson;
|
|
20448
|
+
registerClassDefinition( PubSubKeyPushTargetDataType.dataTypeNodeId, "PubSubKeyPushTargetDataType", PubSubKeyPushTargetDataType);
|
|
20449
|
+
// --------------------------------------------------------------------------------------------
|
|
20450
|
+
const schemaPubSubConfiguration2DataType = buildStructuredType({
|
|
20451
|
+
name: "PubSubConfiguration2DataType",
|
|
20452
|
+
|
|
20453
|
+
baseType: "PubSubConfigurationDataType",
|
|
20454
|
+
fields: [
|
|
20455
|
+
{
|
|
20456
|
+
name: "subscribedDataSets",
|
|
20457
|
+
|
|
20458
|
+
fieldType: "StandaloneSubscribedDataSetDataType",
|
|
20459
|
+
isArray: true
|
|
20460
|
+
},
|
|
20461
|
+
{
|
|
20462
|
+
name: "dataSetClasses",
|
|
20463
|
+
|
|
20464
|
+
fieldType: "DataSetMetaDataType",
|
|
20465
|
+
isArray: true
|
|
20466
|
+
},
|
|
20467
|
+
{
|
|
20468
|
+
name: "defaultSecurityKeyServices",
|
|
20469
|
+
|
|
20470
|
+
fieldType: "EndpointDescription",
|
|
20471
|
+
isArray: true
|
|
20472
|
+
},
|
|
20473
|
+
{
|
|
20474
|
+
name: "securityGroups",
|
|
20475
|
+
|
|
20476
|
+
fieldType: "SecurityGroupDataType",
|
|
20477
|
+
isArray: true
|
|
20478
|
+
},
|
|
20479
|
+
{
|
|
20480
|
+
name: "pubSubKeyPushTargets",
|
|
20481
|
+
|
|
20482
|
+
fieldType: "PubSubKeyPushTargetDataType",
|
|
20483
|
+
isArray: true
|
|
20484
|
+
},
|
|
20485
|
+
{
|
|
20486
|
+
name: "configurationVersion",
|
|
20487
|
+
|
|
20488
|
+
fieldType: "UInt32",
|
|
20489
|
+
},
|
|
20490
|
+
{
|
|
20491
|
+
name: "configurationProperties",
|
|
20492
|
+
|
|
20493
|
+
fieldType: "KeyValuePair",
|
|
20494
|
+
isArray: true
|
|
20495
|
+
},
|
|
20496
|
+
]
|
|
20497
|
+
});
|
|
20498
|
+
export interface PubSubConfiguration2DataTypeOptions extends PubSubConfigurationDataTypeOptions {
|
|
20499
|
+
subscribedDataSets?: StandaloneSubscribedDataSetDataTypeOptions [] | null;
|
|
20500
|
+
dataSetClasses?: DataSetMetaDataTypeOptions [] | null;
|
|
20501
|
+
defaultSecurityKeyServices?: EndpointDescriptionOptions [] | null;
|
|
20502
|
+
securityGroups?: SecurityGroupDataTypeOptions [] | null;
|
|
20503
|
+
pubSubKeyPushTargets?: PubSubKeyPushTargetDataTypeOptions [] | null;
|
|
20504
|
+
configurationVersion?: UInt32 ;
|
|
20505
|
+
configurationProperties?: KeyValuePairOptions [] | null;
|
|
20506
|
+
}
|
|
20507
|
+
export class PubSubConfiguration2DataType extends PubSubConfigurationDataType {
|
|
20508
|
+
public static get schema(): StructuredTypeSchema { return schemaPubSubConfiguration2DataType; }
|
|
20509
|
+
public static possibleFields: string[] = [
|
|
20510
|
+
"subscribedDataSets",
|
|
20511
|
+
"dataSetClasses",
|
|
20512
|
+
"defaultSecurityKeyServices",
|
|
20513
|
+
"securityGroups",
|
|
20514
|
+
"pubSubKeyPushTargets",
|
|
20515
|
+
"configurationVersion",
|
|
20516
|
+
"configurationProperties"
|
|
20517
|
+
];
|
|
20518
|
+
public static dataTypeNodeId = makeExpandedNodeId(23602, 0);
|
|
20519
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23854, 0);
|
|
20520
|
+
public static encodingDefaultXml = makeExpandedNodeId(23922, 0);
|
|
20521
|
+
public static encodingDefaultJson = makeExpandedNodeId(23990, 0);
|
|
20522
|
+
public subscribedDataSets: StandaloneSubscribedDataSetDataType[] | null;
|
|
20523
|
+
public dataSetClasses: DataSetMetaDataType[] | null;
|
|
20524
|
+
public defaultSecurityKeyServices: EndpointDescription[] | null;
|
|
20525
|
+
public securityGroups: SecurityGroupDataType[] | null;
|
|
20526
|
+
public pubSubKeyPushTargets: PubSubKeyPushTargetDataType[] | null;
|
|
20527
|
+
public configurationVersion: UInt32;
|
|
20528
|
+
public configurationProperties: KeyValuePair[] | null;
|
|
20529
|
+
|
|
20530
|
+
constructor(options?: PubSubConfiguration2DataTypeOptions | null) {
|
|
20531
|
+
|
|
20532
|
+
super(options);
|
|
20533
|
+
|
|
20534
|
+
if (options === null) {
|
|
20535
|
+
this.subscribedDataSets = null; /* null array */
|
|
20536
|
+
this.dataSetClasses = null; /* null array */
|
|
20537
|
+
this.defaultSecurityKeyServices = null; /* null array */
|
|
20538
|
+
this.securityGroups = null; /* null array */
|
|
20539
|
+
this.pubSubKeyPushTargets = null; /* null array */
|
|
20540
|
+
this.configurationVersion = 0;
|
|
20541
|
+
this.configurationProperties = null; /* null array */
|
|
20542
|
+
return;
|
|
20543
|
+
}
|
|
20544
|
+
const schema = PubSubConfiguration2DataType.schema;
|
|
20545
|
+
options = (schema.constructHook ? schema.constructHook(options) as PubSubConfiguration2DataTypeOptions: options ) || {};
|
|
20546
|
+
/* istanbul ignore next */
|
|
20547
|
+
if (parameters.debugSchemaHelper) {
|
|
20548
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
20549
|
+
}
|
|
20550
|
+
this.subscribedDataSets = []; // should default
|
|
20551
|
+
if (options.subscribedDataSets) {
|
|
20552
|
+
assert(Array.isArray(options.subscribedDataSets));
|
|
20553
|
+
this.subscribedDataSets = options.subscribedDataSets.map((e: any) => new StandaloneSubscribedDataSetDataType(e));
|
|
20554
|
+
}
|
|
20555
|
+
this.dataSetClasses = []; // should default
|
|
20556
|
+
if (options.dataSetClasses) {
|
|
20557
|
+
assert(Array.isArray(options.dataSetClasses));
|
|
20558
|
+
this.dataSetClasses = options.dataSetClasses.map((e: any) => new DataSetMetaDataType(e));
|
|
20559
|
+
}
|
|
20560
|
+
this.defaultSecurityKeyServices = []; // should default
|
|
20561
|
+
if (options.defaultSecurityKeyServices) {
|
|
20562
|
+
assert(Array.isArray(options.defaultSecurityKeyServices));
|
|
20563
|
+
this.defaultSecurityKeyServices = options.defaultSecurityKeyServices.map((e: any) => new EndpointDescription(e));
|
|
20564
|
+
}
|
|
20565
|
+
this.securityGroups = []; // should default
|
|
20566
|
+
if (options.securityGroups) {
|
|
20567
|
+
assert(Array.isArray(options.securityGroups));
|
|
20568
|
+
this.securityGroups = options.securityGroups.map((e: any) => new SecurityGroupDataType(e));
|
|
20569
|
+
}
|
|
20570
|
+
this.pubSubKeyPushTargets = []; // should default
|
|
20571
|
+
if (options.pubSubKeyPushTargets) {
|
|
20572
|
+
assert(Array.isArray(options.pubSubKeyPushTargets));
|
|
20573
|
+
this.pubSubKeyPushTargets = options.pubSubKeyPushTargets.map((e: any) => new PubSubKeyPushTargetDataType(e));
|
|
20574
|
+
}
|
|
20575
|
+
this.configurationVersion = initialize_field(schema.fields[5], options?.configurationVersion);
|
|
20576
|
+
this.configurationProperties = []; // should default
|
|
20577
|
+
if (options.configurationProperties) {
|
|
20578
|
+
assert(Array.isArray(options.configurationProperties));
|
|
20579
|
+
this.configurationProperties = options.configurationProperties.map((e: any) => new KeyValuePair(e));
|
|
20580
|
+
}
|
|
20581
|
+
}
|
|
20582
|
+
public encode(stream: OutputBinaryStream): void {
|
|
20583
|
+
/* NEEDED */ super.encode(stream);
|
|
20584
|
+
encodeArray(this.subscribedDataSets, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20585
|
+
encodeArray(this.dataSetClasses, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20586
|
+
encodeArray(this.defaultSecurityKeyServices, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20587
|
+
encodeArray(this.securityGroups, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20588
|
+
encodeArray(this.pubSubKeyPushTargets, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20589
|
+
encodeUInt32(this.configurationVersion, stream);
|
|
20590
|
+
encodeArray(this.configurationProperties, stream, (obj, stream1) => { obj.encode(stream1); });
|
|
20591
|
+
}
|
|
20592
|
+
public decode(stream: BinaryStream): void {
|
|
20593
|
+
// call base class implementation first
|
|
20594
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
20595
|
+
this.subscribedDataSets = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20596
|
+
const obj = new StandaloneSubscribedDataSetDataType(null);
|
|
20597
|
+
obj.decode(stream1);
|
|
20598
|
+
return obj;
|
|
20599
|
+
});
|
|
20600
|
+
this.dataSetClasses = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20601
|
+
const obj = new DataSetMetaDataType(null);
|
|
20602
|
+
obj.decode(stream1);
|
|
20603
|
+
return obj;
|
|
20604
|
+
});
|
|
20605
|
+
this.defaultSecurityKeyServices = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20606
|
+
const obj = new EndpointDescription(null);
|
|
20607
|
+
obj.decode(stream1);
|
|
20608
|
+
return obj;
|
|
20609
|
+
});
|
|
20610
|
+
this.securityGroups = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20611
|
+
const obj = new SecurityGroupDataType(null);
|
|
20612
|
+
obj.decode(stream1);
|
|
20613
|
+
return obj;
|
|
20614
|
+
});
|
|
20615
|
+
this.pubSubKeyPushTargets = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20616
|
+
const obj = new PubSubKeyPushTargetDataType(null);
|
|
20617
|
+
obj.decode(stream1);
|
|
20618
|
+
return obj;
|
|
20619
|
+
});
|
|
20620
|
+
this.configurationVersion = decodeUInt32(stream, this.configurationVersion);
|
|
20621
|
+
this.configurationProperties = decodeArray(stream, (stream1: BinaryStream) => {
|
|
20622
|
+
const obj = new KeyValuePair(null);
|
|
20623
|
+
obj.decode(stream1);
|
|
20624
|
+
return obj;
|
|
20625
|
+
});
|
|
20626
|
+
}
|
|
20627
|
+
public get schema(): StructuredTypeSchema { return schemaPubSubConfiguration2DataType; }
|
|
20628
|
+
}
|
|
20629
|
+
PubSubConfiguration2DataType.schema.dataTypeNodeId = PubSubConfiguration2DataType.dataTypeNodeId;
|
|
20630
|
+
PubSubConfiguration2DataType.schema.encodingDefaultBinary = PubSubConfiguration2DataType.encodingDefaultBinary;
|
|
20631
|
+
PubSubConfiguration2DataType.schema.encodingDefaultXml = PubSubConfiguration2DataType.encodingDefaultXml;
|
|
20632
|
+
PubSubConfiguration2DataType.schema.encodingDefaultJson = PubSubConfiguration2DataType.encodingDefaultJson;
|
|
20633
|
+
registerClassDefinition( PubSubConfiguration2DataType.dataTypeNodeId, "PubSubConfiguration2DataType", PubSubConfiguration2DataType);
|
|
20634
|
+
|
|
20635
|
+
// --------------------------------------------------------------------------------------------
|
|
20636
|
+
export enum PubSubConfigurationRefMask {
|
|
20637
|
+
None = 0,
|
|
20638
|
+
ElementAdd = 1,
|
|
20639
|
+
ElementMatch = 2,
|
|
20640
|
+
ElementModify = 4,
|
|
20641
|
+
ElementRemove = 8,
|
|
20642
|
+
ReferenceWriter = 16,
|
|
20643
|
+
ReferenceReader = 32,
|
|
20644
|
+
ReferenceWriterGroup = 64,
|
|
20645
|
+
ReferenceReaderGroup = 128,
|
|
20646
|
+
ReferenceConnection = 256,
|
|
20647
|
+
ReferencePubDataset = 512,
|
|
20648
|
+
ReferenceSubDataset = 1024,
|
|
20649
|
+
ReferenceSecurityGroup = 2048,
|
|
20650
|
+
ReferencePushTarget = 4096
|
|
20651
|
+
}
|
|
20652
|
+
const schemaPubSubConfigurationRefMask = {
|
|
20653
|
+
enumValues: PubSubConfigurationRefMask,
|
|
20654
|
+
flaggable: true,
|
|
20655
|
+
name: "PubSubConfigurationRefMask"
|
|
20656
|
+
};
|
|
20657
|
+
function decodePubSubConfigurationRefMask(stream: BinaryStream, _value?: PubSubConfigurationRefMask): PubSubConfigurationRefMask {
|
|
20658
|
+
return stream.readUInt32() as PubSubConfigurationRefMask;
|
|
20659
|
+
}
|
|
20660
|
+
function encodePubSubConfigurationRefMask(value: PubSubConfigurationRefMask, stream: OutputBinaryStream): void {
|
|
20661
|
+
stream.writeUInt32(value);
|
|
20662
|
+
}
|
|
20663
|
+
export const _enumerationPubSubConfigurationRefMask = registerEnumeration(schemaPubSubConfigurationRefMask);
|
|
20664
|
+
assert(_enumerationPubSubConfigurationRefMask.isFlaggable === true);
|
|
20665
|
+
// --------------------------------------------------------------------------------------------
|
|
20666
|
+
const schemaPubSubConfigurationRefDataType = buildStructuredType({
|
|
20667
|
+
name: "PubSubConfigurationRefDataType",
|
|
20668
|
+
|
|
20669
|
+
baseType: "ExtensionObject",
|
|
20670
|
+
fields: [
|
|
20671
|
+
{
|
|
20672
|
+
name: "configurationMask",
|
|
20673
|
+
|
|
20674
|
+
fieldType: "PubSubConfigurationRefMask",
|
|
20675
|
+
},
|
|
20676
|
+
{
|
|
20677
|
+
name: "elementIndex",
|
|
20678
|
+
|
|
20679
|
+
fieldType: "UInt16",
|
|
20680
|
+
},
|
|
20681
|
+
{
|
|
20682
|
+
name: "connectionIndex",
|
|
20683
|
+
|
|
20684
|
+
fieldType: "UInt16",
|
|
20685
|
+
},
|
|
20686
|
+
{
|
|
20687
|
+
name: "groupIndex",
|
|
20688
|
+
|
|
20689
|
+
fieldType: "UInt16",
|
|
20690
|
+
},
|
|
20691
|
+
]
|
|
20692
|
+
});
|
|
20693
|
+
export interface PubSubConfigurationRefDataTypeOptions {
|
|
20694
|
+
configurationMask?: PubSubConfigurationRefMask;
|
|
20695
|
+
elementIndex?: UInt16 ;
|
|
20696
|
+
connectionIndex?: UInt16 ;
|
|
20697
|
+
groupIndex?: UInt16 ;
|
|
20698
|
+
}
|
|
20699
|
+
export class PubSubConfigurationRefDataType extends ExtensionObject {
|
|
20700
|
+
public static get schema(): StructuredTypeSchema { return schemaPubSubConfigurationRefDataType; }
|
|
20701
|
+
public static possibleFields: string[] = [
|
|
20702
|
+
"configurationMask",
|
|
20703
|
+
"elementIndex",
|
|
20704
|
+
"connectionIndex",
|
|
20705
|
+
"groupIndex"
|
|
20706
|
+
];
|
|
20707
|
+
public static dataTypeNodeId = makeExpandedNodeId(25519, 0);
|
|
20708
|
+
public static encodingDefaultBinary = makeExpandedNodeId(25531, 0);
|
|
20709
|
+
public static encodingDefaultXml = makeExpandedNodeId(25547, 0);
|
|
20710
|
+
public static encodingDefaultJson = makeExpandedNodeId(25563, 0);
|
|
20711
|
+
public configurationMask: PubSubConfigurationRefMask;
|
|
20712
|
+
public elementIndex: UInt16;
|
|
20713
|
+
public connectionIndex: UInt16;
|
|
20714
|
+
public groupIndex: UInt16;
|
|
20715
|
+
|
|
20716
|
+
constructor(options?: PubSubConfigurationRefDataTypeOptions | null) {
|
|
20717
|
+
|
|
20718
|
+
super(options);
|
|
20719
|
+
|
|
20720
|
+
if (options === null) {
|
|
20721
|
+
this.configurationMask = 0 as PubSubConfigurationRefMask;
|
|
20722
|
+
this.elementIndex = 0;
|
|
20723
|
+
this.connectionIndex = 0;
|
|
20724
|
+
this.groupIndex = 0;
|
|
20725
|
+
return;
|
|
20726
|
+
}
|
|
20727
|
+
const schema = PubSubConfigurationRefDataType.schema;
|
|
20728
|
+
options = (schema.constructHook ? schema.constructHook(options) as PubSubConfigurationRefDataTypeOptions: options ) || {};
|
|
20729
|
+
/* istanbul ignore next */
|
|
20730
|
+
if (parameters.debugSchemaHelper) {
|
|
20731
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
20732
|
+
}
|
|
20733
|
+
this.configurationMask = this.setConfigurationMask(initialize_field(schema.fields[0], options?.configurationMask));
|
|
20734
|
+
this.elementIndex = initialize_field(schema.fields[1], options?.elementIndex);
|
|
20735
|
+
this.connectionIndex = initialize_field(schema.fields[2], options?.connectionIndex);
|
|
20736
|
+
this.groupIndex = initialize_field(schema.fields[3], options?.groupIndex);
|
|
20737
|
+
}
|
|
20738
|
+
public encode(stream: OutputBinaryStream): void {
|
|
20739
|
+
/* NEEDED */ super.encode(stream);
|
|
20740
|
+
encodePubSubConfigurationRefMask(this.configurationMask, stream);
|
|
20741
|
+
encodeUInt16(this.elementIndex, stream);
|
|
20742
|
+
encodeUInt16(this.connectionIndex, stream);
|
|
20743
|
+
encodeUInt16(this.groupIndex, stream);
|
|
20744
|
+
}
|
|
20745
|
+
public decode(stream: BinaryStream): void {
|
|
20746
|
+
// call base class implementation first
|
|
20747
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
20748
|
+
this.configurationMask = decodePubSubConfigurationRefMask(stream, this.configurationMask);
|
|
20749
|
+
this.elementIndex = decodeUInt16(stream, this.elementIndex);
|
|
20750
|
+
this.connectionIndex = decodeUInt16(stream, this.connectionIndex);
|
|
20751
|
+
this.groupIndex = decodeUInt16(stream, this.groupIndex);
|
|
20752
|
+
}
|
|
20753
|
+
|
|
20754
|
+
// Define Enumeration setters
|
|
20755
|
+
public setConfigurationMask(value: any): PubSubConfigurationRefMask {
|
|
20756
|
+
const coercedValue = _enumerationPubSubConfigurationRefMask.get(value);
|
|
20757
|
+
/* istanbul ignore next */
|
|
20758
|
+
if (coercedValue === undefined || coercedValue === null) {
|
|
20759
|
+
throw new Error("value cannot be coerced to PubSubConfigurationRefMask :" + value);
|
|
20760
|
+
}
|
|
20761
|
+
this.configurationMask = coercedValue.value as PubSubConfigurationRefMask;
|
|
20762
|
+
return this.configurationMask;
|
|
20763
|
+
}
|
|
20764
|
+
public get schema(): StructuredTypeSchema { return schemaPubSubConfigurationRefDataType; }
|
|
20765
|
+
}
|
|
20766
|
+
PubSubConfigurationRefDataType.schema.dataTypeNodeId = PubSubConfigurationRefDataType.dataTypeNodeId;
|
|
20767
|
+
PubSubConfigurationRefDataType.schema.encodingDefaultBinary = PubSubConfigurationRefDataType.encodingDefaultBinary;
|
|
20768
|
+
PubSubConfigurationRefDataType.schema.encodingDefaultXml = PubSubConfigurationRefDataType.encodingDefaultXml;
|
|
20769
|
+
PubSubConfigurationRefDataType.schema.encodingDefaultJson = PubSubConfigurationRefDataType.encodingDefaultJson;
|
|
20770
|
+
registerClassDefinition( PubSubConfigurationRefDataType.dataTypeNodeId, "PubSubConfigurationRefDataType", PubSubConfigurationRefDataType);
|
|
20771
|
+
// --------------------------------------------------------------------------------------------
|
|
20772
|
+
const schemaPubSubConfigurationValueDataType = buildStructuredType({
|
|
20773
|
+
name: "PubSubConfigurationValueDataType",
|
|
20774
|
+
|
|
20775
|
+
baseType: "ExtensionObject",
|
|
20776
|
+
fields: [
|
|
20777
|
+
{
|
|
20778
|
+
name: "configurationElement",
|
|
20779
|
+
|
|
20780
|
+
fieldType: "PubSubConfigurationRefDataType",
|
|
20781
|
+
},
|
|
20782
|
+
{
|
|
20783
|
+
name: "name",
|
|
19293
20784
|
|
|
19294
|
-
fieldType: "
|
|
19295
|
-
isArray: true
|
|
20785
|
+
fieldType: "UAString",
|
|
19296
20786
|
},
|
|
19297
20787
|
{
|
|
19298
|
-
name: "
|
|
20788
|
+
name: "identifier",
|
|
19299
20789
|
|
|
19300
|
-
fieldType: "
|
|
20790
|
+
fieldType: "Variant",
|
|
19301
20791
|
},
|
|
19302
20792
|
]
|
|
19303
20793
|
});
|
|
19304
|
-
export interface
|
|
19305
|
-
|
|
19306
|
-
|
|
19307
|
-
|
|
20794
|
+
export interface PubSubConfigurationValueDataTypeOptions {
|
|
20795
|
+
configurationElement?: PubSubConfigurationRefDataTypeOptions ;
|
|
20796
|
+
name?: UAString ;
|
|
20797
|
+
identifier?: (VariantLike | null);
|
|
19308
20798
|
}
|
|
19309
|
-
export class
|
|
19310
|
-
public static get schema(): StructuredTypeSchema { return
|
|
20799
|
+
export class PubSubConfigurationValueDataType extends ExtensionObject {
|
|
20800
|
+
public static get schema(): StructuredTypeSchema { return schemaPubSubConfigurationValueDataType; }
|
|
19311
20801
|
public static possibleFields: string[] = [
|
|
19312
|
-
"
|
|
19313
|
-
"
|
|
19314
|
-
"
|
|
20802
|
+
"configurationElement",
|
|
20803
|
+
"name",
|
|
20804
|
+
"identifier"
|
|
19315
20805
|
];
|
|
19316
|
-
public static dataTypeNodeId = makeExpandedNodeId(
|
|
19317
|
-
public static encodingDefaultBinary = makeExpandedNodeId(
|
|
19318
|
-
public static encodingDefaultXml = makeExpandedNodeId(
|
|
19319
|
-
public static encodingDefaultJson = makeExpandedNodeId(
|
|
19320
|
-
public
|
|
19321
|
-
public
|
|
19322
|
-
public
|
|
20806
|
+
public static dataTypeNodeId = makeExpandedNodeId(25520, 0);
|
|
20807
|
+
public static encodingDefaultBinary = makeExpandedNodeId(25532, 0);
|
|
20808
|
+
public static encodingDefaultXml = makeExpandedNodeId(25548, 0);
|
|
20809
|
+
public static encodingDefaultJson = makeExpandedNodeId(25564, 0);
|
|
20810
|
+
public configurationElement: PubSubConfigurationRefDataType;
|
|
20811
|
+
public name: UAString;
|
|
20812
|
+
public identifier: Variant;
|
|
19323
20813
|
|
|
19324
|
-
constructor(options?:
|
|
20814
|
+
constructor(options?: PubSubConfigurationValueDataTypeOptions | null) {
|
|
19325
20815
|
|
|
19326
20816
|
super(options);
|
|
19327
20817
|
|
|
19328
20818
|
if (options === null) {
|
|
19329
|
-
this.
|
|
19330
|
-
|
|
19331
|
-
this.
|
|
20819
|
+
this.configurationElement = new PubSubConfigurationRefDataType(null);
|
|
20820
|
+
this.name = null;
|
|
20821
|
+
this.identifier = new Variant(null);
|
|
19332
20822
|
return;
|
|
19333
20823
|
}
|
|
19334
|
-
const schema =
|
|
19335
|
-
options = (schema.constructHook ? schema.constructHook(options) as
|
|
20824
|
+
const schema = PubSubConfigurationValueDataType.schema;
|
|
20825
|
+
options = (schema.constructHook ? schema.constructHook(options) as PubSubConfigurationValueDataTypeOptions: options ) || {};
|
|
19336
20826
|
/* istanbul ignore next */
|
|
19337
20827
|
if (parameters.debugSchemaHelper) {
|
|
19338
20828
|
check_options_correctness_against_schema(this, schema, options);
|
|
19339
20829
|
}
|
|
19340
|
-
this.
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
this.publishedDataSets = options.publishedDataSets.map((e: any) => new PublishedDataSetDataType(e));
|
|
19344
|
-
}
|
|
19345
|
-
this.connections = []; // should default
|
|
19346
|
-
if (options.connections) {
|
|
19347
|
-
assert(Array.isArray(options.connections));
|
|
19348
|
-
this.connections = options.connections.map((e: any) => new PubSubConnectionDataType(e));
|
|
19349
|
-
}
|
|
19350
|
-
this.enabled = initialize_field(schema.fields[2], options?.enabled);
|
|
20830
|
+
this.configurationElement = new PubSubConfigurationRefDataType(options.configurationElement);
|
|
20831
|
+
this.name = initialize_field(schema.fields[1], options?.name);
|
|
20832
|
+
this.identifier = initialize_field(schema.fields[2], options?.identifier);
|
|
19351
20833
|
}
|
|
19352
20834
|
public encode(stream: OutputBinaryStream): void {
|
|
19353
20835
|
/* NEEDED */ super.encode(stream);
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
|
|
20836
|
+
this.configurationElement.encode(stream);
|
|
20837
|
+
encodeUAString(this.name, stream);
|
|
20838
|
+
encodeVariant(this.identifier, stream);
|
|
19357
20839
|
}
|
|
19358
20840
|
public decode(stream: BinaryStream): void {
|
|
19359
20841
|
// call base class implementation first
|
|
19360
20842
|
/* NEEDED !!! */ super.decode(stream);
|
|
19361
|
-
this.
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
return obj;
|
|
19365
|
-
});
|
|
19366
|
-
this.connections = decodeArray(stream, (stream1: BinaryStream) => {
|
|
19367
|
-
const obj = new PubSubConnectionDataType(null);
|
|
19368
|
-
obj.decode(stream1);
|
|
19369
|
-
return obj;
|
|
19370
|
-
});
|
|
19371
|
-
this.enabled = decodeUABoolean(stream, this.enabled);
|
|
20843
|
+
this.configurationElement.decode(stream);
|
|
20844
|
+
this.name = decodeUAString(stream, this.name);
|
|
20845
|
+
this.identifier = decodeVariant(stream, this.identifier);
|
|
19372
20846
|
}
|
|
19373
|
-
public get schema(): StructuredTypeSchema { return
|
|
20847
|
+
public get schema(): StructuredTypeSchema { return schemaPubSubConfigurationValueDataType; }
|
|
19374
20848
|
}
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
registerClassDefinition(
|
|
20849
|
+
PubSubConfigurationValueDataType.schema.dataTypeNodeId = PubSubConfigurationValueDataType.dataTypeNodeId;
|
|
20850
|
+
PubSubConfigurationValueDataType.schema.encodingDefaultBinary = PubSubConfigurationValueDataType.encodingDefaultBinary;
|
|
20851
|
+
PubSubConfigurationValueDataType.schema.encodingDefaultXml = PubSubConfigurationValueDataType.encodingDefaultXml;
|
|
20852
|
+
PubSubConfigurationValueDataType.schema.encodingDefaultJson = PubSubConfigurationValueDataType.encodingDefaultJson;
|
|
20853
|
+
registerClassDefinition( PubSubConfigurationValueDataType.dataTypeNodeId, "PubSubConfigurationValueDataType", PubSubConfigurationValueDataType);
|
|
19380
20854
|
// --------------------------------------------------------------------------------------------
|
|
19381
20855
|
const schemaSubscriptionAcknowledgement = buildStructuredType({
|
|
19382
20856
|
name: "SubscriptionAcknowledgement",
|
|
@@ -19923,6 +21397,65 @@ PublishedDataItemsDataType.schema.encodingDefaultXml = PublishedDataItemsDataTyp
|
|
|
19923
21397
|
PublishedDataItemsDataType.schema.encodingDefaultJson = PublishedDataItemsDataType.encodingDefaultJson;
|
|
19924
21398
|
registerClassDefinition( PublishedDataItemsDataType.dataTypeNodeId, "PublishedDataItemsDataType", PublishedDataItemsDataType);
|
|
19925
21399
|
// --------------------------------------------------------------------------------------------
|
|
21400
|
+
const schemaPublishedDataSetCustomSourceDataType = buildStructuredType({
|
|
21401
|
+
name: "PublishedDataSetCustomSourceDataType",
|
|
21402
|
+
|
|
21403
|
+
baseType: "PublishedDataSetSourceDataType",
|
|
21404
|
+
fields: [
|
|
21405
|
+
{
|
|
21406
|
+
name: "cyclicDataSet",
|
|
21407
|
+
|
|
21408
|
+
fieldType: "UABoolean",
|
|
21409
|
+
},
|
|
21410
|
+
]
|
|
21411
|
+
});
|
|
21412
|
+
export interface PublishedDataSetCustomSourceDataTypeOptions extends PublishedDataSetSourceDataTypeOptions {
|
|
21413
|
+
cyclicDataSet?: UABoolean ;
|
|
21414
|
+
}
|
|
21415
|
+
export class PublishedDataSetCustomSourceDataType extends PublishedDataSetSourceDataType {
|
|
21416
|
+
public static get schema(): StructuredTypeSchema { return schemaPublishedDataSetCustomSourceDataType; }
|
|
21417
|
+
public static possibleFields: string[] = [
|
|
21418
|
+
"cyclicDataSet"
|
|
21419
|
+
];
|
|
21420
|
+
public static dataTypeNodeId = makeExpandedNodeId(25269, 0);
|
|
21421
|
+
public static encodingDefaultBinary = makeExpandedNodeId(25529, 0);
|
|
21422
|
+
public static encodingDefaultXml = makeExpandedNodeId(25545, 0);
|
|
21423
|
+
public static encodingDefaultJson = makeExpandedNodeId(25561, 0);
|
|
21424
|
+
public cyclicDataSet: UABoolean;
|
|
21425
|
+
|
|
21426
|
+
constructor(options?: PublishedDataSetCustomSourceDataTypeOptions | null) {
|
|
21427
|
+
|
|
21428
|
+
super(options);
|
|
21429
|
+
|
|
21430
|
+
if (options === null) {
|
|
21431
|
+
this.cyclicDataSet = false;
|
|
21432
|
+
return;
|
|
21433
|
+
}
|
|
21434
|
+
const schema = PublishedDataSetCustomSourceDataType.schema;
|
|
21435
|
+
options = (schema.constructHook ? schema.constructHook(options) as PublishedDataSetCustomSourceDataTypeOptions: options ) || {};
|
|
21436
|
+
/* istanbul ignore next */
|
|
21437
|
+
if (parameters.debugSchemaHelper) {
|
|
21438
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
21439
|
+
}
|
|
21440
|
+
this.cyclicDataSet = initialize_field(schema.fields[0], options?.cyclicDataSet);
|
|
21441
|
+
}
|
|
21442
|
+
public encode(stream: OutputBinaryStream): void {
|
|
21443
|
+
/* NEEDED */ super.encode(stream);
|
|
21444
|
+
encodeUABoolean(this.cyclicDataSet, stream);
|
|
21445
|
+
}
|
|
21446
|
+
public decode(stream: BinaryStream): void {
|
|
21447
|
+
// call base class implementation first
|
|
21448
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
21449
|
+
this.cyclicDataSet = decodeUABoolean(stream, this.cyclicDataSet);
|
|
21450
|
+
}
|
|
21451
|
+
public get schema(): StructuredTypeSchema { return schemaPublishedDataSetCustomSourceDataType; }
|
|
21452
|
+
}
|
|
21453
|
+
PublishedDataSetCustomSourceDataType.schema.dataTypeNodeId = PublishedDataSetCustomSourceDataType.dataTypeNodeId;
|
|
21454
|
+
PublishedDataSetCustomSourceDataType.schema.encodingDefaultBinary = PublishedDataSetCustomSourceDataType.encodingDefaultBinary;
|
|
21455
|
+
PublishedDataSetCustomSourceDataType.schema.encodingDefaultXml = PublishedDataSetCustomSourceDataType.encodingDefaultXml;
|
|
21456
|
+
PublishedDataSetCustomSourceDataType.schema.encodingDefaultJson = PublishedDataSetCustomSourceDataType.encodingDefaultJson;
|
|
21457
|
+
registerClassDefinition( PublishedDataSetCustomSourceDataType.dataTypeNodeId, "PublishedDataSetCustomSourceDataType", PublishedDataSetCustomSourceDataType);
|
|
21458
|
+
// --------------------------------------------------------------------------------------------
|
|
19926
21459
|
const schemaPublishedEventsDataType = buildStructuredType({
|
|
19927
21460
|
name: "PublishedEventsDataType",
|
|
19928
21461
|
|
|
@@ -20015,6 +21548,54 @@ PublishedEventsDataType.schema.encodingDefaultXml = PublishedEventsDataType.enco
|
|
|
20015
21548
|
PublishedEventsDataType.schema.encodingDefaultJson = PublishedEventsDataType.encodingDefaultJson;
|
|
20016
21549
|
registerClassDefinition( PublishedEventsDataType.dataTypeNodeId, "PublishedEventsDataType", PublishedEventsDataType);
|
|
20017
21550
|
// --------------------------------------------------------------------------------------------
|
|
21551
|
+
const schemaQosDataType = buildStructuredType({
|
|
21552
|
+
name: "QosDataType",
|
|
21553
|
+
|
|
21554
|
+
baseType: "ExtensionObject",
|
|
21555
|
+
fields: [
|
|
21556
|
+
]
|
|
21557
|
+
});
|
|
21558
|
+
export interface QosDataTypeOptions {
|
|
21559
|
+
}
|
|
21560
|
+
export class QosDataType extends ExtensionObject {
|
|
21561
|
+
public static get schema(): StructuredTypeSchema { return schemaQosDataType; }
|
|
21562
|
+
public static possibleFields: string[] = [
|
|
21563
|
+
|
|
21564
|
+
];
|
|
21565
|
+
public static dataTypeNodeId = makeExpandedNodeId(23603, 0);
|
|
21566
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23855, 0);
|
|
21567
|
+
public static encodingDefaultXml = makeExpandedNodeId(23923, 0);
|
|
21568
|
+
public static encodingDefaultJson = makeExpandedNodeId(23991, 0);
|
|
21569
|
+
|
|
21570
|
+
constructor(options?: QosDataTypeOptions | null) {
|
|
21571
|
+
|
|
21572
|
+
super(options);
|
|
21573
|
+
|
|
21574
|
+
if (options === null) {
|
|
21575
|
+
return;
|
|
21576
|
+
}
|
|
21577
|
+
const schema = QosDataType.schema;
|
|
21578
|
+
options = (schema.constructHook ? schema.constructHook(options) as QosDataTypeOptions: options ) || {};
|
|
21579
|
+
/* istanbul ignore next */
|
|
21580
|
+
if (parameters.debugSchemaHelper) {
|
|
21581
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
21582
|
+
}
|
|
21583
|
+
}
|
|
21584
|
+
public encode(stream: OutputBinaryStream): void {
|
|
21585
|
+
/* NEEDED */ super.encode(stream);
|
|
21586
|
+
}
|
|
21587
|
+
public decode(stream: BinaryStream): void {
|
|
21588
|
+
// call base class implementation first
|
|
21589
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
21590
|
+
}
|
|
21591
|
+
public get schema(): StructuredTypeSchema { return schemaQosDataType; }
|
|
21592
|
+
}
|
|
21593
|
+
QosDataType.schema.dataTypeNodeId = QosDataType.dataTypeNodeId;
|
|
21594
|
+
QosDataType.schema.encodingDefaultBinary = QosDataType.encodingDefaultBinary;
|
|
21595
|
+
QosDataType.schema.encodingDefaultXml = QosDataType.encodingDefaultXml;
|
|
21596
|
+
QosDataType.schema.encodingDefaultJson = QosDataType.encodingDefaultJson;
|
|
21597
|
+
registerClassDefinition( QosDataType.dataTypeNodeId, "QosDataType", QosDataType);
|
|
21598
|
+
// --------------------------------------------------------------------------------------------
|
|
20018
21599
|
const schemaQueryDataSet = buildStructuredType({
|
|
20019
21600
|
name: "QueryDataSet",
|
|
20020
21601
|
|
|
@@ -21348,6 +22929,113 @@ ReaderGroupTransportDataType.schema.encodingDefaultBinary = ReaderGroupTransport
|
|
|
21348
22929
|
ReaderGroupTransportDataType.schema.encodingDefaultXml = ReaderGroupTransportDataType.encodingDefaultXml;
|
|
21349
22930
|
ReaderGroupTransportDataType.schema.encodingDefaultJson = ReaderGroupTransportDataType.encodingDefaultJson;
|
|
21350
22931
|
registerClassDefinition( ReaderGroupTransportDataType.dataTypeNodeId, "ReaderGroupTransportDataType", ReaderGroupTransportDataType);
|
|
22932
|
+
// --------------------------------------------------------------------------------------------
|
|
22933
|
+
const schemaReceiveQosDataType = buildStructuredType({
|
|
22934
|
+
name: "ReceiveQosDataType",
|
|
22935
|
+
|
|
22936
|
+
baseType: "QosDataType",
|
|
22937
|
+
fields: [
|
|
22938
|
+
]
|
|
22939
|
+
});
|
|
22940
|
+
export interface ReceiveQosDataTypeOptions extends QosDataTypeOptions {
|
|
22941
|
+
}
|
|
22942
|
+
export class ReceiveQosDataType extends QosDataType {
|
|
22943
|
+
public static get schema(): StructuredTypeSchema { return schemaReceiveQosDataType; }
|
|
22944
|
+
public static possibleFields: string[] = [
|
|
22945
|
+
|
|
22946
|
+
];
|
|
22947
|
+
public static dataTypeNodeId = makeExpandedNodeId(23608, 0);
|
|
22948
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23860, 0);
|
|
22949
|
+
public static encodingDefaultXml = makeExpandedNodeId(23928, 0);
|
|
22950
|
+
public static encodingDefaultJson = makeExpandedNodeId(23996, 0);
|
|
22951
|
+
|
|
22952
|
+
constructor(options?: ReceiveQosDataTypeOptions | null) {
|
|
22953
|
+
|
|
22954
|
+
super(options);
|
|
22955
|
+
|
|
22956
|
+
if (options === null) {
|
|
22957
|
+
return;
|
|
22958
|
+
}
|
|
22959
|
+
const schema = ReceiveQosDataType.schema;
|
|
22960
|
+
options = (schema.constructHook ? schema.constructHook(options) as ReceiveQosDataTypeOptions: options ) || {};
|
|
22961
|
+
/* istanbul ignore next */
|
|
22962
|
+
if (parameters.debugSchemaHelper) {
|
|
22963
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
22964
|
+
}
|
|
22965
|
+
}
|
|
22966
|
+
public encode(stream: OutputBinaryStream): void {
|
|
22967
|
+
/* NEEDED */ super.encode(stream);
|
|
22968
|
+
}
|
|
22969
|
+
public decode(stream: BinaryStream): void {
|
|
22970
|
+
// call base class implementation first
|
|
22971
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
22972
|
+
}
|
|
22973
|
+
public get schema(): StructuredTypeSchema { return schemaReceiveQosDataType; }
|
|
22974
|
+
}
|
|
22975
|
+
ReceiveQosDataType.schema.dataTypeNodeId = ReceiveQosDataType.dataTypeNodeId;
|
|
22976
|
+
ReceiveQosDataType.schema.encodingDefaultBinary = ReceiveQosDataType.encodingDefaultBinary;
|
|
22977
|
+
ReceiveQosDataType.schema.encodingDefaultXml = ReceiveQosDataType.encodingDefaultXml;
|
|
22978
|
+
ReceiveQosDataType.schema.encodingDefaultJson = ReceiveQosDataType.encodingDefaultJson;
|
|
22979
|
+
registerClassDefinition( ReceiveQosDataType.dataTypeNodeId, "ReceiveQosDataType", ReceiveQosDataType);
|
|
22980
|
+
// --------------------------------------------------------------------------------------------
|
|
22981
|
+
const schemaReceiveQosPriorityDataType = buildStructuredType({
|
|
22982
|
+
name: "ReceiveQosPriorityDataType",
|
|
22983
|
+
|
|
22984
|
+
baseType: "ReceiveQosDataType",
|
|
22985
|
+
fields: [
|
|
22986
|
+
{
|
|
22987
|
+
name: "priorityLabel",
|
|
22988
|
+
|
|
22989
|
+
fieldType: "UAString",
|
|
22990
|
+
},
|
|
22991
|
+
]
|
|
22992
|
+
});
|
|
22993
|
+
export interface ReceiveQosPriorityDataTypeOptions extends ReceiveQosDataTypeOptions {
|
|
22994
|
+
priorityLabel?: UAString ;
|
|
22995
|
+
}
|
|
22996
|
+
export class ReceiveQosPriorityDataType extends ReceiveQosDataType {
|
|
22997
|
+
public static get schema(): StructuredTypeSchema { return schemaReceiveQosPriorityDataType; }
|
|
22998
|
+
public static possibleFields: string[] = [
|
|
22999
|
+
"priorityLabel"
|
|
23000
|
+
];
|
|
23001
|
+
public static dataTypeNodeId = makeExpandedNodeId(23609, 0);
|
|
23002
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23861, 0);
|
|
23003
|
+
public static encodingDefaultXml = makeExpandedNodeId(23929, 0);
|
|
23004
|
+
public static encodingDefaultJson = makeExpandedNodeId(23997, 0);
|
|
23005
|
+
public priorityLabel: UAString;
|
|
23006
|
+
|
|
23007
|
+
constructor(options?: ReceiveQosPriorityDataTypeOptions | null) {
|
|
23008
|
+
|
|
23009
|
+
super(options);
|
|
23010
|
+
|
|
23011
|
+
if (options === null) {
|
|
23012
|
+
this.priorityLabel = null;
|
|
23013
|
+
return;
|
|
23014
|
+
}
|
|
23015
|
+
const schema = ReceiveQosPriorityDataType.schema;
|
|
23016
|
+
options = (schema.constructHook ? schema.constructHook(options) as ReceiveQosPriorityDataTypeOptions: options ) || {};
|
|
23017
|
+
/* istanbul ignore next */
|
|
23018
|
+
if (parameters.debugSchemaHelper) {
|
|
23019
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
23020
|
+
}
|
|
23021
|
+
this.priorityLabel = initialize_field(schema.fields[0], options?.priorityLabel);
|
|
23022
|
+
}
|
|
23023
|
+
public encode(stream: OutputBinaryStream): void {
|
|
23024
|
+
/* NEEDED */ super.encode(stream);
|
|
23025
|
+
encodeUAString(this.priorityLabel, stream);
|
|
23026
|
+
}
|
|
23027
|
+
public decode(stream: BinaryStream): void {
|
|
23028
|
+
// call base class implementation first
|
|
23029
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
23030
|
+
this.priorityLabel = decodeUAString(stream, this.priorityLabel);
|
|
23031
|
+
}
|
|
23032
|
+
public get schema(): StructuredTypeSchema { return schemaReceiveQosPriorityDataType; }
|
|
23033
|
+
}
|
|
23034
|
+
ReceiveQosPriorityDataType.schema.dataTypeNodeId = ReceiveQosPriorityDataType.dataTypeNodeId;
|
|
23035
|
+
ReceiveQosPriorityDataType.schema.encodingDefaultBinary = ReceiveQosPriorityDataType.encodingDefaultBinary;
|
|
23036
|
+
ReceiveQosPriorityDataType.schema.encodingDefaultXml = ReceiveQosPriorityDataType.encodingDefaultXml;
|
|
23037
|
+
ReceiveQosPriorityDataType.schema.encodingDefaultJson = ReceiveQosPriorityDataType.encodingDefaultJson;
|
|
23038
|
+
registerClassDefinition( ReceiveQosPriorityDataType.dataTypeNodeId, "ReceiveQosPriorityDataType", ReceiveQosPriorityDataType);
|
|
21351
23039
|
|
|
21352
23040
|
// --------------------------------------------------------------------------------------------
|
|
21353
23041
|
export enum ServerState {
|
|
@@ -24530,54 +26218,113 @@ export class SetTriggeringResponse extends ExtensionObject {
|
|
|
24530
26218
|
public removeResults: StatusCode[] | null;
|
|
24531
26219
|
public removeDiagnosticInfos: (DiagnosticInfo | null)[] | null;
|
|
24532
26220
|
|
|
24533
|
-
constructor(options?: SetTriggeringResponseOptions | null) {
|
|
26221
|
+
constructor(options?: SetTriggeringResponseOptions | null) {
|
|
26222
|
+
|
|
26223
|
+
super(options);
|
|
26224
|
+
|
|
26225
|
+
if (options === null) {
|
|
26226
|
+
this.responseHeader = new ResponseHeader(null);
|
|
26227
|
+
this.addResults = []
|
|
26228
|
+
this.addDiagnosticInfos = []
|
|
26229
|
+
this.removeResults = []
|
|
26230
|
+
this.removeDiagnosticInfos = []
|
|
26231
|
+
return;
|
|
26232
|
+
}
|
|
26233
|
+
const schema = SetTriggeringResponse.schema;
|
|
26234
|
+
options = (schema.constructHook ? schema.constructHook(options) as SetTriggeringResponseOptions: options ) || {};
|
|
26235
|
+
/* istanbul ignore next */
|
|
26236
|
+
if (parameters.debugSchemaHelper) {
|
|
26237
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
26238
|
+
}
|
|
26239
|
+
this.responseHeader = new ResponseHeader(options.responseHeader);
|
|
26240
|
+
this.addResults = initialize_field_array(schema.fields[1], options?.addResults);
|
|
26241
|
+
this.addDiagnosticInfos = initialize_field_array(schema.fields[2], options?.addDiagnosticInfos);
|
|
26242
|
+
this.removeResults = initialize_field_array(schema.fields[3], options?.removeResults);
|
|
26243
|
+
this.removeDiagnosticInfos = initialize_field_array(schema.fields[4], options?.removeDiagnosticInfos);
|
|
26244
|
+
}
|
|
26245
|
+
public encode(stream: OutputBinaryStream): void {
|
|
26246
|
+
/* NEEDED */ super.encode(stream);
|
|
26247
|
+
this.responseHeader.encode(stream);
|
|
26248
|
+
encodeArray(this.addResults, stream, encodeStatusCode);
|
|
26249
|
+
encodeArray(this.addDiagnosticInfos, stream, encodeDiagnosticInfo);
|
|
26250
|
+
encodeArray(this.removeResults, stream, encodeStatusCode);
|
|
26251
|
+
encodeArray(this.removeDiagnosticInfos, stream, encodeDiagnosticInfo);
|
|
26252
|
+
}
|
|
26253
|
+
public decode(stream: BinaryStream): void {
|
|
26254
|
+
// call base class implementation first
|
|
26255
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
26256
|
+
this.responseHeader.decode(stream);
|
|
26257
|
+
this.addResults = decodeArray(stream, decodeStatusCode);
|
|
26258
|
+
this.addDiagnosticInfos = decodeArray(stream, decodeDiagnosticInfo);
|
|
26259
|
+
this.removeResults = decodeArray(stream, decodeStatusCode);
|
|
26260
|
+
this.removeDiagnosticInfos = decodeArray(stream, decodeDiagnosticInfo);
|
|
26261
|
+
}
|
|
26262
|
+
public get schema(): StructuredTypeSchema { return schemaSetTriggeringResponse; }
|
|
26263
|
+
}
|
|
26264
|
+
SetTriggeringResponse.schema.dataTypeNodeId = SetTriggeringResponse.dataTypeNodeId;
|
|
26265
|
+
SetTriggeringResponse.schema.encodingDefaultBinary = SetTriggeringResponse.encodingDefaultBinary;
|
|
26266
|
+
SetTriggeringResponse.schema.encodingDefaultXml = SetTriggeringResponse.encodingDefaultXml;
|
|
26267
|
+
SetTriggeringResponse.schema.encodingDefaultJson = SetTriggeringResponse.encodingDefaultJson;
|
|
26268
|
+
registerClassDefinition( SetTriggeringResponse.dataTypeNodeId, "SetTriggeringResponse", SetTriggeringResponse);
|
|
26269
|
+
// --------------------------------------------------------------------------------------------
|
|
26270
|
+
const schemaStandaloneSubscribedDataSetRefDataType = buildStructuredType({
|
|
26271
|
+
name: "StandaloneSubscribedDataSetRefDataType",
|
|
26272
|
+
|
|
26273
|
+
baseType: "SubscribedDataSetDataType",
|
|
26274
|
+
fields: [
|
|
26275
|
+
{
|
|
26276
|
+
name: "dataSetName",
|
|
26277
|
+
|
|
26278
|
+
fieldType: "UAString",
|
|
26279
|
+
},
|
|
26280
|
+
]
|
|
26281
|
+
});
|
|
26282
|
+
export interface StandaloneSubscribedDataSetRefDataTypeOptions extends SubscribedDataSetDataTypeOptions {
|
|
26283
|
+
dataSetName?: UAString ;
|
|
26284
|
+
}
|
|
26285
|
+
export class StandaloneSubscribedDataSetRefDataType extends SubscribedDataSetDataType {
|
|
26286
|
+
public static get schema(): StructuredTypeSchema { return schemaStandaloneSubscribedDataSetRefDataType; }
|
|
26287
|
+
public static possibleFields: string[] = [
|
|
26288
|
+
"dataSetName"
|
|
26289
|
+
];
|
|
26290
|
+
public static dataTypeNodeId = makeExpandedNodeId(23599, 0);
|
|
26291
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23851, 0);
|
|
26292
|
+
public static encodingDefaultXml = makeExpandedNodeId(23919, 0);
|
|
26293
|
+
public static encodingDefaultJson = makeExpandedNodeId(23987, 0);
|
|
26294
|
+
public dataSetName: UAString;
|
|
26295
|
+
|
|
26296
|
+
constructor(options?: StandaloneSubscribedDataSetRefDataTypeOptions | null) {
|
|
24534
26297
|
|
|
24535
26298
|
super(options);
|
|
24536
26299
|
|
|
24537
26300
|
if (options === null) {
|
|
24538
|
-
|
|
24539
|
-
this.addResults = []
|
|
24540
|
-
this.addDiagnosticInfos = []
|
|
24541
|
-
this.removeResults = []
|
|
24542
|
-
this.removeDiagnosticInfos = []
|
|
26301
|
+
this.dataSetName = null;
|
|
24543
26302
|
return;
|
|
24544
26303
|
}
|
|
24545
|
-
const schema =
|
|
24546
|
-
options = (schema.constructHook ? schema.constructHook(options) as
|
|
26304
|
+
const schema = StandaloneSubscribedDataSetRefDataType.schema;
|
|
26305
|
+
options = (schema.constructHook ? schema.constructHook(options) as StandaloneSubscribedDataSetRefDataTypeOptions: options ) || {};
|
|
24547
26306
|
/* istanbul ignore next */
|
|
24548
26307
|
if (parameters.debugSchemaHelper) {
|
|
24549
26308
|
check_options_correctness_against_schema(this, schema, options);
|
|
24550
26309
|
}
|
|
24551
|
-
this.
|
|
24552
|
-
this.addResults = initialize_field_array(schema.fields[1], options?.addResults);
|
|
24553
|
-
this.addDiagnosticInfos = initialize_field_array(schema.fields[2], options?.addDiagnosticInfos);
|
|
24554
|
-
this.removeResults = initialize_field_array(schema.fields[3], options?.removeResults);
|
|
24555
|
-
this.removeDiagnosticInfos = initialize_field_array(schema.fields[4], options?.removeDiagnosticInfos);
|
|
26310
|
+
this.dataSetName = initialize_field(schema.fields[0], options?.dataSetName);
|
|
24556
26311
|
}
|
|
24557
26312
|
public encode(stream: OutputBinaryStream): void {
|
|
24558
26313
|
/* NEEDED */ super.encode(stream);
|
|
24559
|
-
this.
|
|
24560
|
-
encodeArray(this.addResults, stream, encodeStatusCode);
|
|
24561
|
-
encodeArray(this.addDiagnosticInfos, stream, encodeDiagnosticInfo);
|
|
24562
|
-
encodeArray(this.removeResults, stream, encodeStatusCode);
|
|
24563
|
-
encodeArray(this.removeDiagnosticInfos, stream, encodeDiagnosticInfo);
|
|
26314
|
+
encodeUAString(this.dataSetName, stream);
|
|
24564
26315
|
}
|
|
24565
26316
|
public decode(stream: BinaryStream): void {
|
|
24566
26317
|
// call base class implementation first
|
|
24567
26318
|
/* NEEDED !!! */ super.decode(stream);
|
|
24568
|
-
this.
|
|
24569
|
-
this.addResults = decodeArray(stream, decodeStatusCode);
|
|
24570
|
-
this.addDiagnosticInfos = decodeArray(stream, decodeDiagnosticInfo);
|
|
24571
|
-
this.removeResults = decodeArray(stream, decodeStatusCode);
|
|
24572
|
-
this.removeDiagnosticInfos = decodeArray(stream, decodeDiagnosticInfo);
|
|
26319
|
+
this.dataSetName = decodeUAString(stream, this.dataSetName);
|
|
24573
26320
|
}
|
|
24574
|
-
public get schema(): StructuredTypeSchema { return
|
|
26321
|
+
public get schema(): StructuredTypeSchema { return schemaStandaloneSubscribedDataSetRefDataType; }
|
|
24575
26322
|
}
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
registerClassDefinition(
|
|
26323
|
+
StandaloneSubscribedDataSetRefDataType.schema.dataTypeNodeId = StandaloneSubscribedDataSetRefDataType.dataTypeNodeId;
|
|
26324
|
+
StandaloneSubscribedDataSetRefDataType.schema.encodingDefaultBinary = StandaloneSubscribedDataSetRefDataType.encodingDefaultBinary;
|
|
26325
|
+
StandaloneSubscribedDataSetRefDataType.schema.encodingDefaultXml = StandaloneSubscribedDataSetRefDataType.encodingDefaultXml;
|
|
26326
|
+
StandaloneSubscribedDataSetRefDataType.schema.encodingDefaultJson = StandaloneSubscribedDataSetRefDataType.encodingDefaultJson;
|
|
26327
|
+
registerClassDefinition( StandaloneSubscribedDataSetRefDataType.dataTypeNodeId, "StandaloneSubscribedDataSetRefDataType", StandaloneSubscribedDataSetRefDataType);
|
|
24581
26328
|
// --------------------------------------------------------------------------------------------
|
|
24582
26329
|
const schemaStatusChangeNotification = buildStructuredType({
|
|
24583
26330
|
name: "StatusChangeNotification",
|
|
@@ -24650,54 +26397,6 @@ StatusChangeNotification.schema.encodingDefaultXml = StatusChangeNotification.en
|
|
|
24650
26397
|
StatusChangeNotification.schema.encodingDefaultJson = StatusChangeNotification.encodingDefaultJson;
|
|
24651
26398
|
registerClassDefinition( StatusChangeNotification.dataTypeNodeId, "StatusChangeNotification", StatusChangeNotification);
|
|
24652
26399
|
// --------------------------------------------------------------------------------------------
|
|
24653
|
-
const schemaSubscribedDataSetDataType = buildStructuredType({
|
|
24654
|
-
name: "SubscribedDataSetDataType",
|
|
24655
|
-
|
|
24656
|
-
baseType: "ExtensionObject",
|
|
24657
|
-
fields: [
|
|
24658
|
-
]
|
|
24659
|
-
});
|
|
24660
|
-
export interface SubscribedDataSetDataTypeOptions {
|
|
24661
|
-
}
|
|
24662
|
-
export class SubscribedDataSetDataType extends ExtensionObject {
|
|
24663
|
-
public static get schema(): StructuredTypeSchema { return schemaSubscribedDataSetDataType; }
|
|
24664
|
-
public static possibleFields: string[] = [
|
|
24665
|
-
|
|
24666
|
-
];
|
|
24667
|
-
public static dataTypeNodeId = makeExpandedNodeId(15630, 0);
|
|
24668
|
-
public static encodingDefaultBinary = makeExpandedNodeId(15707, 0);
|
|
24669
|
-
public static encodingDefaultXml = makeExpandedNodeId(16010, 0);
|
|
24670
|
-
public static encodingDefaultJson = makeExpandedNodeId(16308, 0);
|
|
24671
|
-
|
|
24672
|
-
constructor(options?: SubscribedDataSetDataTypeOptions | null) {
|
|
24673
|
-
|
|
24674
|
-
super(options);
|
|
24675
|
-
|
|
24676
|
-
if (options === null) {
|
|
24677
|
-
return;
|
|
24678
|
-
}
|
|
24679
|
-
const schema = SubscribedDataSetDataType.schema;
|
|
24680
|
-
options = (schema.constructHook ? schema.constructHook(options) as SubscribedDataSetDataTypeOptions: options ) || {};
|
|
24681
|
-
/* istanbul ignore next */
|
|
24682
|
-
if (parameters.debugSchemaHelper) {
|
|
24683
|
-
check_options_correctness_against_schema(this, schema, options);
|
|
24684
|
-
}
|
|
24685
|
-
}
|
|
24686
|
-
public encode(stream: OutputBinaryStream): void {
|
|
24687
|
-
/* NEEDED */ super.encode(stream);
|
|
24688
|
-
}
|
|
24689
|
-
public decode(stream: BinaryStream): void {
|
|
24690
|
-
// call base class implementation first
|
|
24691
|
-
/* NEEDED !!! */ super.decode(stream);
|
|
24692
|
-
}
|
|
24693
|
-
public get schema(): StructuredTypeSchema { return schemaSubscribedDataSetDataType; }
|
|
24694
|
-
}
|
|
24695
|
-
SubscribedDataSetDataType.schema.dataTypeNodeId = SubscribedDataSetDataType.dataTypeNodeId;
|
|
24696
|
-
SubscribedDataSetDataType.schema.encodingDefaultBinary = SubscribedDataSetDataType.encodingDefaultBinary;
|
|
24697
|
-
SubscribedDataSetDataType.schema.encodingDefaultXml = SubscribedDataSetDataType.encodingDefaultXml;
|
|
24698
|
-
SubscribedDataSetDataType.schema.encodingDefaultJson = SubscribedDataSetDataType.encodingDefaultJson;
|
|
24699
|
-
registerClassDefinition( SubscribedDataSetDataType.dataTypeNodeId, "SubscribedDataSetDataType", SubscribedDataSetDataType);
|
|
24700
|
-
// --------------------------------------------------------------------------------------------
|
|
24701
26400
|
const schemaSubscribedDataSetMirrorDataType = buildStructuredType({
|
|
24702
26401
|
name: "SubscribedDataSetMirrorDataType",
|
|
24703
26402
|
|
|
@@ -26126,6 +27825,113 @@ TranslateBrowsePathsToNodeIdsResponse.schema.encodingDefaultXml = TranslateBrows
|
|
|
26126
27825
|
TranslateBrowsePathsToNodeIdsResponse.schema.encodingDefaultJson = TranslateBrowsePathsToNodeIdsResponse.encodingDefaultJson;
|
|
26127
27826
|
registerClassDefinition( TranslateBrowsePathsToNodeIdsResponse.dataTypeNodeId, "TranslateBrowsePathsToNodeIdsResponse", TranslateBrowsePathsToNodeIdsResponse);
|
|
26128
27827
|
// --------------------------------------------------------------------------------------------
|
|
27828
|
+
const schemaTransmitQosDataType = buildStructuredType({
|
|
27829
|
+
name: "TransmitQosDataType",
|
|
27830
|
+
|
|
27831
|
+
baseType: "QosDataType",
|
|
27832
|
+
fields: [
|
|
27833
|
+
]
|
|
27834
|
+
});
|
|
27835
|
+
export interface TransmitQosDataTypeOptions extends QosDataTypeOptions {
|
|
27836
|
+
}
|
|
27837
|
+
export class TransmitQosDataType extends QosDataType {
|
|
27838
|
+
public static get schema(): StructuredTypeSchema { return schemaTransmitQosDataType; }
|
|
27839
|
+
public static possibleFields: string[] = [
|
|
27840
|
+
|
|
27841
|
+
];
|
|
27842
|
+
public static dataTypeNodeId = makeExpandedNodeId(23604, 0);
|
|
27843
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23856, 0);
|
|
27844
|
+
public static encodingDefaultXml = makeExpandedNodeId(23924, 0);
|
|
27845
|
+
public static encodingDefaultJson = makeExpandedNodeId(23992, 0);
|
|
27846
|
+
|
|
27847
|
+
constructor(options?: TransmitQosDataTypeOptions | null) {
|
|
27848
|
+
|
|
27849
|
+
super(options);
|
|
27850
|
+
|
|
27851
|
+
if (options === null) {
|
|
27852
|
+
return;
|
|
27853
|
+
}
|
|
27854
|
+
const schema = TransmitQosDataType.schema;
|
|
27855
|
+
options = (schema.constructHook ? schema.constructHook(options) as TransmitQosDataTypeOptions: options ) || {};
|
|
27856
|
+
/* istanbul ignore next */
|
|
27857
|
+
if (parameters.debugSchemaHelper) {
|
|
27858
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
27859
|
+
}
|
|
27860
|
+
}
|
|
27861
|
+
public encode(stream: OutputBinaryStream): void {
|
|
27862
|
+
/* NEEDED */ super.encode(stream);
|
|
27863
|
+
}
|
|
27864
|
+
public decode(stream: BinaryStream): void {
|
|
27865
|
+
// call base class implementation first
|
|
27866
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
27867
|
+
}
|
|
27868
|
+
public get schema(): StructuredTypeSchema { return schemaTransmitQosDataType; }
|
|
27869
|
+
}
|
|
27870
|
+
TransmitQosDataType.schema.dataTypeNodeId = TransmitQosDataType.dataTypeNodeId;
|
|
27871
|
+
TransmitQosDataType.schema.encodingDefaultBinary = TransmitQosDataType.encodingDefaultBinary;
|
|
27872
|
+
TransmitQosDataType.schema.encodingDefaultXml = TransmitQosDataType.encodingDefaultXml;
|
|
27873
|
+
TransmitQosDataType.schema.encodingDefaultJson = TransmitQosDataType.encodingDefaultJson;
|
|
27874
|
+
registerClassDefinition( TransmitQosDataType.dataTypeNodeId, "TransmitQosDataType", TransmitQosDataType);
|
|
27875
|
+
// --------------------------------------------------------------------------------------------
|
|
27876
|
+
const schemaTransmitQosPriorityDataType = buildStructuredType({
|
|
27877
|
+
name: "TransmitQosPriorityDataType",
|
|
27878
|
+
|
|
27879
|
+
baseType: "TransmitQosDataType",
|
|
27880
|
+
fields: [
|
|
27881
|
+
{
|
|
27882
|
+
name: "priorityLabel",
|
|
27883
|
+
|
|
27884
|
+
fieldType: "UAString",
|
|
27885
|
+
},
|
|
27886
|
+
]
|
|
27887
|
+
});
|
|
27888
|
+
export interface TransmitQosPriorityDataTypeOptions extends TransmitQosDataTypeOptions {
|
|
27889
|
+
priorityLabel?: UAString ;
|
|
27890
|
+
}
|
|
27891
|
+
export class TransmitQosPriorityDataType extends TransmitQosDataType {
|
|
27892
|
+
public static get schema(): StructuredTypeSchema { return schemaTransmitQosPriorityDataType; }
|
|
27893
|
+
public static possibleFields: string[] = [
|
|
27894
|
+
"priorityLabel"
|
|
27895
|
+
];
|
|
27896
|
+
public static dataTypeNodeId = makeExpandedNodeId(23605, 0);
|
|
27897
|
+
public static encodingDefaultBinary = makeExpandedNodeId(23857, 0);
|
|
27898
|
+
public static encodingDefaultXml = makeExpandedNodeId(23925, 0);
|
|
27899
|
+
public static encodingDefaultJson = makeExpandedNodeId(23993, 0);
|
|
27900
|
+
public priorityLabel: UAString;
|
|
27901
|
+
|
|
27902
|
+
constructor(options?: TransmitQosPriorityDataTypeOptions | null) {
|
|
27903
|
+
|
|
27904
|
+
super(options);
|
|
27905
|
+
|
|
27906
|
+
if (options === null) {
|
|
27907
|
+
this.priorityLabel = null;
|
|
27908
|
+
return;
|
|
27909
|
+
}
|
|
27910
|
+
const schema = TransmitQosPriorityDataType.schema;
|
|
27911
|
+
options = (schema.constructHook ? schema.constructHook(options) as TransmitQosPriorityDataTypeOptions: options ) || {};
|
|
27912
|
+
/* istanbul ignore next */
|
|
27913
|
+
if (parameters.debugSchemaHelper) {
|
|
27914
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
27915
|
+
}
|
|
27916
|
+
this.priorityLabel = initialize_field(schema.fields[0], options?.priorityLabel);
|
|
27917
|
+
}
|
|
27918
|
+
public encode(stream: OutputBinaryStream): void {
|
|
27919
|
+
/* NEEDED */ super.encode(stream);
|
|
27920
|
+
encodeUAString(this.priorityLabel, stream);
|
|
27921
|
+
}
|
|
27922
|
+
public decode(stream: BinaryStream): void {
|
|
27923
|
+
// call base class implementation first
|
|
27924
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
27925
|
+
this.priorityLabel = decodeUAString(stream, this.priorityLabel);
|
|
27926
|
+
}
|
|
27927
|
+
public get schema(): StructuredTypeSchema { return schemaTransmitQosPriorityDataType; }
|
|
27928
|
+
}
|
|
27929
|
+
TransmitQosPriorityDataType.schema.dataTypeNodeId = TransmitQosPriorityDataType.dataTypeNodeId;
|
|
27930
|
+
TransmitQosPriorityDataType.schema.encodingDefaultBinary = TransmitQosPriorityDataType.encodingDefaultBinary;
|
|
27931
|
+
TransmitQosPriorityDataType.schema.encodingDefaultXml = TransmitQosPriorityDataType.encodingDefaultXml;
|
|
27932
|
+
TransmitQosPriorityDataType.schema.encodingDefaultJson = TransmitQosPriorityDataType.encodingDefaultJson;
|
|
27933
|
+
registerClassDefinition( TransmitQosPriorityDataType.dataTypeNodeId, "TransmitQosPriorityDataType", TransmitQosPriorityDataType);
|
|
27934
|
+
// --------------------------------------------------------------------------------------------
|
|
26129
27935
|
const schemaTrustListDataType = buildStructuredType({
|
|
26130
27936
|
name: "TrustListDataType",
|
|
26131
27937
|
|
|
@@ -26994,6 +28800,77 @@ UnregisterNodesResponse.schema.encodingDefaultBinary = UnregisterNodesResponse.e
|
|
|
26994
28800
|
UnregisterNodesResponse.schema.encodingDefaultXml = UnregisterNodesResponse.encodingDefaultXml;
|
|
26995
28801
|
UnregisterNodesResponse.schema.encodingDefaultJson = UnregisterNodesResponse.encodingDefaultJson;
|
|
26996
28802
|
registerClassDefinition( UnregisterNodesResponse.dataTypeNodeId, "UnregisterNodesResponse", UnregisterNodesResponse);
|
|
28803
|
+
// --------------------------------------------------------------------------------------------
|
|
28804
|
+
const schemaUnsignedRationalNumber = buildStructuredType({
|
|
28805
|
+
name: "UnsignedRationalNumber",
|
|
28806
|
+
|
|
28807
|
+
baseType: "ExtensionObject",
|
|
28808
|
+
fields: [
|
|
28809
|
+
{
|
|
28810
|
+
name: "numerator",
|
|
28811
|
+
|
|
28812
|
+
fieldType: "UInt32",
|
|
28813
|
+
},
|
|
28814
|
+
{
|
|
28815
|
+
name: "denominator",
|
|
28816
|
+
|
|
28817
|
+
fieldType: "UInt32",
|
|
28818
|
+
},
|
|
28819
|
+
]
|
|
28820
|
+
});
|
|
28821
|
+
export interface UnsignedRationalNumberOptions {
|
|
28822
|
+
numerator?: UInt32 ;
|
|
28823
|
+
denominator?: UInt32 ;
|
|
28824
|
+
}
|
|
28825
|
+
export class UnsignedRationalNumber extends ExtensionObject {
|
|
28826
|
+
public static get schema(): StructuredTypeSchema { return schemaUnsignedRationalNumber; }
|
|
28827
|
+
public static possibleFields: string[] = [
|
|
28828
|
+
"numerator",
|
|
28829
|
+
"denominator"
|
|
28830
|
+
];
|
|
28831
|
+
public static dataTypeNodeId = makeExpandedNodeId(24107, 0);
|
|
28832
|
+
public static encodingDefaultBinary = makeExpandedNodeId(24110, 0);
|
|
28833
|
+
public static encodingDefaultXml = makeExpandedNodeId(24122, 0);
|
|
28834
|
+
public static encodingDefaultJson = makeExpandedNodeId(24134, 0);
|
|
28835
|
+
public numerator: UInt32;
|
|
28836
|
+
public denominator: UInt32;
|
|
28837
|
+
|
|
28838
|
+
constructor(options?: UnsignedRationalNumberOptions | null) {
|
|
28839
|
+
|
|
28840
|
+
super(options);
|
|
28841
|
+
|
|
28842
|
+
if (options === null) {
|
|
28843
|
+
this.numerator = 0;
|
|
28844
|
+
this.denominator = 0;
|
|
28845
|
+
return;
|
|
28846
|
+
}
|
|
28847
|
+
const schema = UnsignedRationalNumber.schema;
|
|
28848
|
+
options = (schema.constructHook ? schema.constructHook(options) as UnsignedRationalNumberOptions: options ) || {};
|
|
28849
|
+
/* istanbul ignore next */
|
|
28850
|
+
if (parameters.debugSchemaHelper) {
|
|
28851
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
28852
|
+
}
|
|
28853
|
+
this.numerator = initialize_field(schema.fields[0], options?.numerator);
|
|
28854
|
+
this.denominator = initialize_field(schema.fields[1], options?.denominator);
|
|
28855
|
+
}
|
|
28856
|
+
public encode(stream: OutputBinaryStream): void {
|
|
28857
|
+
/* NEEDED */ super.encode(stream);
|
|
28858
|
+
encodeUInt32(this.numerator, stream);
|
|
28859
|
+
encodeUInt32(this.denominator, stream);
|
|
28860
|
+
}
|
|
28861
|
+
public decode(stream: BinaryStream): void {
|
|
28862
|
+
// call base class implementation first
|
|
28863
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
28864
|
+
this.numerator = decodeUInt32(stream, this.numerator);
|
|
28865
|
+
this.denominator = decodeUInt32(stream, this.denominator);
|
|
28866
|
+
}
|
|
28867
|
+
public get schema(): StructuredTypeSchema { return schemaUnsignedRationalNumber; }
|
|
28868
|
+
}
|
|
28869
|
+
UnsignedRationalNumber.schema.dataTypeNodeId = UnsignedRationalNumber.dataTypeNodeId;
|
|
28870
|
+
UnsignedRationalNumber.schema.encodingDefaultBinary = UnsignedRationalNumber.encodingDefaultBinary;
|
|
28871
|
+
UnsignedRationalNumber.schema.encodingDefaultXml = UnsignedRationalNumber.encodingDefaultXml;
|
|
28872
|
+
UnsignedRationalNumber.schema.encodingDefaultJson = UnsignedRationalNumber.encodingDefaultJson;
|
|
28873
|
+
registerClassDefinition( UnsignedRationalNumber.dataTypeNodeId, "UnsignedRationalNumber", UnsignedRationalNumber);
|
|
26997
28874
|
|
|
26998
28875
|
// --------------------------------------------------------------------------------------------
|
|
26999
28876
|
export enum PerformUpdateType {
|
|
@@ -27289,6 +29166,122 @@ UpdateStructureDataDetails.schema.encodingDefaultBinary = UpdateStructureDataDet
|
|
|
27289
29166
|
UpdateStructureDataDetails.schema.encodingDefaultXml = UpdateStructureDataDetails.encodingDefaultXml;
|
|
27290
29167
|
UpdateStructureDataDetails.schema.encodingDefaultJson = UpdateStructureDataDetails.encodingDefaultJson;
|
|
27291
29168
|
registerClassDefinition( UpdateStructureDataDetails.dataTypeNodeId, "UpdateStructureDataDetails", UpdateStructureDataDetails);
|
|
29169
|
+
|
|
29170
|
+
// --------------------------------------------------------------------------------------------
|
|
29171
|
+
export enum UserConfigurationMask {
|
|
29172
|
+
None = 0,
|
|
29173
|
+
NoDelete = 1,
|
|
29174
|
+
Disabled = 2,
|
|
29175
|
+
NoChangeByUser = 4,
|
|
29176
|
+
MustChangePassword = 8
|
|
29177
|
+
}
|
|
29178
|
+
const schemaUserConfigurationMask = {
|
|
29179
|
+
enumValues: UserConfigurationMask,
|
|
29180
|
+
flaggable: true,
|
|
29181
|
+
name: "UserConfigurationMask"
|
|
29182
|
+
};
|
|
29183
|
+
function decodeUserConfigurationMask(stream: BinaryStream, _value?: UserConfigurationMask): UserConfigurationMask {
|
|
29184
|
+
return stream.readUInt32() as UserConfigurationMask;
|
|
29185
|
+
}
|
|
29186
|
+
function encodeUserConfigurationMask(value: UserConfigurationMask, stream: OutputBinaryStream): void {
|
|
29187
|
+
stream.writeUInt32(value);
|
|
29188
|
+
}
|
|
29189
|
+
export const _enumerationUserConfigurationMask = registerEnumeration(schemaUserConfigurationMask);
|
|
29190
|
+
assert(_enumerationUserConfigurationMask.isFlaggable === true);
|
|
29191
|
+
// --------------------------------------------------------------------------------------------
|
|
29192
|
+
const schemaUserManagementDataType = buildStructuredType({
|
|
29193
|
+
name: "UserManagementDataType",
|
|
29194
|
+
|
|
29195
|
+
baseType: "ExtensionObject",
|
|
29196
|
+
fields: [
|
|
29197
|
+
{
|
|
29198
|
+
name: "userName",
|
|
29199
|
+
|
|
29200
|
+
fieldType: "UAString",
|
|
29201
|
+
},
|
|
29202
|
+
{
|
|
29203
|
+
name: "userConfiguration",
|
|
29204
|
+
|
|
29205
|
+
fieldType: "UserConfigurationMask",
|
|
29206
|
+
},
|
|
29207
|
+
{
|
|
29208
|
+
name: "description",
|
|
29209
|
+
|
|
29210
|
+
fieldType: "UAString",
|
|
29211
|
+
},
|
|
29212
|
+
]
|
|
29213
|
+
});
|
|
29214
|
+
export interface UserManagementDataTypeOptions {
|
|
29215
|
+
userName?: UAString ;
|
|
29216
|
+
userConfiguration?: UserConfigurationMask;
|
|
29217
|
+
description?: UAString ;
|
|
29218
|
+
}
|
|
29219
|
+
export class UserManagementDataType extends ExtensionObject {
|
|
29220
|
+
public static get schema(): StructuredTypeSchema { return schemaUserManagementDataType; }
|
|
29221
|
+
public static possibleFields: string[] = [
|
|
29222
|
+
"userName",
|
|
29223
|
+
"userConfiguration",
|
|
29224
|
+
"description"
|
|
29225
|
+
];
|
|
29226
|
+
public static dataTypeNodeId = makeExpandedNodeId(24281, 0);
|
|
29227
|
+
public static encodingDefaultBinary = makeExpandedNodeId(24292, 0);
|
|
29228
|
+
public static encodingDefaultXml = makeExpandedNodeId(24296, 0);
|
|
29229
|
+
public static encodingDefaultJson = makeExpandedNodeId(24300, 0);
|
|
29230
|
+
public userName: UAString;
|
|
29231
|
+
public userConfiguration: UserConfigurationMask;
|
|
29232
|
+
public description: UAString;
|
|
29233
|
+
|
|
29234
|
+
constructor(options?: UserManagementDataTypeOptions | null) {
|
|
29235
|
+
|
|
29236
|
+
super(options);
|
|
29237
|
+
|
|
29238
|
+
if (options === null) {
|
|
29239
|
+
this.userName = null;
|
|
29240
|
+
this.userConfiguration = 0 as UserConfigurationMask;
|
|
29241
|
+
this.description = null;
|
|
29242
|
+
return;
|
|
29243
|
+
}
|
|
29244
|
+
const schema = UserManagementDataType.schema;
|
|
29245
|
+
options = (schema.constructHook ? schema.constructHook(options) as UserManagementDataTypeOptions: options ) || {};
|
|
29246
|
+
/* istanbul ignore next */
|
|
29247
|
+
if (parameters.debugSchemaHelper) {
|
|
29248
|
+
check_options_correctness_against_schema(this, schema, options);
|
|
29249
|
+
}
|
|
29250
|
+
this.userName = initialize_field(schema.fields[0], options?.userName);
|
|
29251
|
+
this.userConfiguration = this.setUserConfiguration(initialize_field(schema.fields[1], options?.userConfiguration));
|
|
29252
|
+
this.description = initialize_field(schema.fields[2], options?.description);
|
|
29253
|
+
}
|
|
29254
|
+
public encode(stream: OutputBinaryStream): void {
|
|
29255
|
+
/* NEEDED */ super.encode(stream);
|
|
29256
|
+
encodeUAString(this.userName, stream);
|
|
29257
|
+
encodeUserConfigurationMask(this.userConfiguration, stream);
|
|
29258
|
+
encodeUAString(this.description, stream);
|
|
29259
|
+
}
|
|
29260
|
+
public decode(stream: BinaryStream): void {
|
|
29261
|
+
// call base class implementation first
|
|
29262
|
+
/* NEEDED !!! */ super.decode(stream);
|
|
29263
|
+
this.userName = decodeUAString(stream, this.userName);
|
|
29264
|
+
this.userConfiguration = decodeUserConfigurationMask(stream, this.userConfiguration);
|
|
29265
|
+
this.description = decodeUAString(stream, this.description);
|
|
29266
|
+
}
|
|
29267
|
+
|
|
29268
|
+
// Define Enumeration setters
|
|
29269
|
+
public setUserConfiguration(value: any): UserConfigurationMask {
|
|
29270
|
+
const coercedValue = _enumerationUserConfigurationMask.get(value);
|
|
29271
|
+
/* istanbul ignore next */
|
|
29272
|
+
if (coercedValue === undefined || coercedValue === null) {
|
|
29273
|
+
throw new Error("value cannot be coerced to UserConfigurationMask :" + value);
|
|
29274
|
+
}
|
|
29275
|
+
this.userConfiguration = coercedValue.value as UserConfigurationMask;
|
|
29276
|
+
return this.userConfiguration;
|
|
29277
|
+
}
|
|
29278
|
+
public get schema(): StructuredTypeSchema { return schemaUserManagementDataType; }
|
|
29279
|
+
}
|
|
29280
|
+
UserManagementDataType.schema.dataTypeNodeId = UserManagementDataType.dataTypeNodeId;
|
|
29281
|
+
UserManagementDataType.schema.encodingDefaultBinary = UserManagementDataType.encodingDefaultBinary;
|
|
29282
|
+
UserManagementDataType.schema.encodingDefaultXml = UserManagementDataType.encodingDefaultXml;
|
|
29283
|
+
UserManagementDataType.schema.encodingDefaultJson = UserManagementDataType.encodingDefaultJson;
|
|
29284
|
+
registerClassDefinition( UserManagementDataType.dataTypeNodeId, "UserManagementDataType", UserManagementDataType);
|
|
27292
29285
|
// --------------------------------------------------------------------------------------------
|
|
27293
29286
|
const schemaUserNameIdentityToken = buildStructuredType({
|
|
27294
29287
|
name: "UserNameIdentityToken",
|