Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit dd0778e

Browse files
committed
PATCH: add property_set_id to property serialization
1 parent bc19220 commit dd0778e

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

docs/Property.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
77
**id** | **Number** | | [optional] [readonly]
88
**definition** | [**PropertyDefinition**](PropertyDefinition.md) | |
99
**value** | [**Object**](.md) | | [optional]
10+
**propertySetId** | **String** | This field is useful when you update a property and the API is rebuilding a new property set to avoid an update on many elements. It gives you the new pset id | [optional] [readonly]
1011

1112

src/model/Property.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ class Property {
5959
if (data.hasOwnProperty('value')) {
6060
obj['value'] = ApiClient.convertToType(data['value'], Object);
6161
}
62+
if (data.hasOwnProperty('property_set_id')) {
63+
obj['property_set_id'] = ApiClient.convertToType(data['property_set_id'], 'String');
64+
}
6265
}
6366
return obj;
6467
}
@@ -81,6 +84,12 @@ Property.prototype['definition'] = undefined;
8184
*/
8285
Property.prototype['value'] = undefined;
8386

87+
/**
88+
* This field is useful when you update a property and the API is rebuilding a new property set to avoid an update on many elements. It gives you the new pset id
89+
* @member {String} property_set_id
90+
*/
91+
Property.prototype['property_set_id'] = undefined;
92+
8493

8594

8695

test/model/Property.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@
7272
//expect(instance).to.be();
7373
});
7474

75+
it('should have the property propertySetId (base name: "property_set_id")', function() {
76+
// uncomment below and update the code to test the property propertySetId
77+
//var instane = new bimdata.Property();
78+
//expect(instance).to.be();
79+
});
80+
7581
});
7682

7783
}));

0 commit comments

Comments
 (0)