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

Commit 826a344

Browse files
committed
PATCH: fix create-demo swagger
1 parent d16b03d commit 826a344

File tree

6 files changed

+14
-23
lines changed

6 files changed

+14
-23
lines changed

docs/CloudApi.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Name | Type | Description | Notes
113113

114114
<a name="createDemo"></a>
115115
# **createDemo**
116-
> Project createDemo(id, cloud)
116+
> Project createDemo(id)
117117
118118

119119

@@ -131,8 +131,7 @@ Bearer.apiKey = 'YOUR API KEY';
131131

132132
var apiInstance = new bimdata.CloudApi();
133133
var id = "id_example"; // String |
134-
var cloud = new bimdata.Cloud(); // Cloud |
135-
apiInstance.createDemo(id, cloud).then(function(data) {
134+
apiInstance.createDemo(id).then(function(data) {
136135
console.log('API called successfully. Returned data: ' + data);
137136
}, function(error) {
138137
console.error(error);
@@ -145,7 +144,6 @@ apiInstance.createDemo(id, cloud).then(function(data) {
145144
Name | Type | Description | Notes
146145
------------- | ------------- | ------------- | -------------
147146
**id** | **String**| |
148-
**cloud** | [**Cloud**](Cloud.md)| |
149147

150148
### Return type
151149

@@ -157,7 +155,7 @@ Name | Type | Description | Notes
157155

158156
### HTTP request headers
159157

160-
- **Content-Type**: application/json
158+
- **Content-Type**: Not defined
161159
- **Accept**: application/json
162160

163161
<a name="deleteCloudUser"></a>

docs/Space.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**name** | **String** | | [optional]
88
**longname** | **String** | | [optional]
99
**uuid** | **String** | |
10-
**zoneSet** | **[String]** | | [optional]
10+
**zoneSet** | **[Number]** | | [optional]
1111
**createdAt** | **Date** | | [optional]
1212
**updatedAt** | **Date** | | [optional]
1313

docs/ZoneSpace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**name** | **String** | | [optional]
88
**longname** | **String** | | [optional]
99
**uuid** | **String** | |
10-
**zoneSet** | **[String]** | | [optional]
10+
**zoneSet** | **[Number]** | | [optional]
1111
**createdAt** | **Date** | | [optional]
1212
**updatedAt** | **Date** | | [optional]
1313

src/api/CloudApi.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,22 +156,16 @@
156156
/**
157157
* Create a demo project with a pre-populated IFC and its data
158158
* @param {String} id
159-
* @param {module:model/Cloud} cloud
160159
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
161160
*/
162-
this.createDemoWithHttpInfo = function(id, cloud) {
163-
var postBody = cloud;
161+
this.createDemoWithHttpInfo = function(id) {
162+
var postBody = null;
164163

165164
// verify the required parameter 'id' is set
166165
if (id === undefined || id === null) {
167166
throw new Error("Missing the required parameter 'id' when calling createDemo");
168167
}
169168

170-
// verify the required parameter 'cloud' is set
171-
if (cloud === undefined || cloud === null) {
172-
throw new Error("Missing the required parameter 'cloud' when calling createDemo");
173-
}
174-
175169

176170
var pathParams = {
177171
'id': id
@@ -186,7 +180,7 @@
186180
};
187181

188182
var authNames = ['Bearer'];
189-
var contentTypes = ['application/json'];
183+
var contentTypes = [];
190184
var accepts = ['application/json'];
191185
var returnType = Project;
192186

@@ -200,11 +194,10 @@
200194
/**
201195
* Create a demo project with a pre-populated IFC and its data
202196
* @param {String} id
203-
* @param {module:model/Cloud} cloud
204197
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
205198
*/
206-
this.createDemo = function(id, cloud) {
207-
return this.createDemoWithHttpInfo(id, cloud)
199+
this.createDemo = function(id) {
200+
return this.createDemoWithHttpInfo(id)
208201
.then(function(response_and_data) {
209202
return response_and_data.data;
210203
});

src/model/Space.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
8383
}
8484
if (data.hasOwnProperty('zone_set')) {
85-
obj['zone_set'] = ApiClient.convertToType(data['zone_set'], ['String']);
85+
obj['zone_set'] = ApiClient.convertToType(data['zone_set'], ['Number']);
8686
}
8787
if (data.hasOwnProperty('created_at')) {
8888
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
@@ -111,7 +111,7 @@
111111
*/
112112
exports.prototype['uuid'] = undefined;
113113
/**
114-
* @member {Array.<String>} zone_set
114+
* @member {Array.<Number>} zone_set
115115
*/
116116
exports.prototype['zone_set'] = undefined;
117117
/**

src/model/ZoneSpace.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
8383
}
8484
if (data.hasOwnProperty('zone_set')) {
85-
obj['zone_set'] = ApiClient.convertToType(data['zone_set'], ['String']);
85+
obj['zone_set'] = ApiClient.convertToType(data['zone_set'], ['Number']);
8686
}
8787
if (data.hasOwnProperty('created_at')) {
8888
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
@@ -111,7 +111,7 @@
111111
*/
112112
exports.prototype['uuid'] = undefined;
113113
/**
114-
* @member {Array.<String>} zone_set
114+
* @member {Array.<Number>} zone_set
115115
*/
116116
exports.prototype['zone_set'] = undefined;
117117
/**

0 commit comments

Comments
 (0)