This repository was archived by the owner on Nov 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDocumentRequest.js
More file actions
224 lines (186 loc) · 5.49 KB
/
Copy pathDocumentRequest.js
File metadata and controls
224 lines (186 loc) · 5.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
/**
* BIMData API
* BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
*
* The version of the OpenAPI document: v1 (v1)
* Contact: support@bimdata.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The DocumentRequest model module.
* @module model/DocumentRequest
* @version 0.0.0
*/
class DocumentRequest {
/**
* Constructs a new <code>DocumentRequest</code>.
* @alias module:model/DocumentRequest
* @param name {String} Shown name of the file
* @param file {File}
*/
constructor(name, file) {
DocumentRequest.initialize(this, name, file);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, name, file) {
obj['name'] = name;
obj['file'] = file;
}
/**
* Constructs a <code>DocumentRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/DocumentRequest} obj Optional instance to populate.
* @return {module:model/DocumentRequest} The populated <code>DocumentRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DocumentRequest();
if (data.hasOwnProperty('parent_id')) {
obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('file_name')) {
obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('file')) {
obj['file'] = ApiClient.convertToType(data['file'], File);
}
if (data.hasOwnProperty('size')) {
obj['size'] = ApiClient.convertToType(data['size'], 'Number');
}
if (data.hasOwnProperty('model_source')) {
obj['model_source'] = ApiClient.convertToType(data['model_source'], 'String');
}
if (data.hasOwnProperty('ifc_source')) {
obj['ifc_source'] = ApiClient.convertToType(data['ifc_source'], 'String');
}
if (data.hasOwnProperty('successor_of')) {
obj['successor_of'] = ApiClient.convertToType(data['successor_of'], 'Number');
}
}
return obj;
}
}
/**
* @member {Number} parent_id
*/
DocumentRequest.prototype['parent_id'] = undefined;
/**
* Shown name of the file
* @member {String} name
*/
DocumentRequest.prototype['name'] = undefined;
/**
* Full name of the file
* @member {String} file_name
*/
DocumentRequest.prototype['file_name'] = undefined;
/**
* Description of the file
* @member {String} description
*/
DocumentRequest.prototype['description'] = undefined;
/**
* @member {File} file
*/
DocumentRequest.prototype['file'] = undefined;
/**
* Size of the file.
* @member {Number} size
*/
DocumentRequest.prototype['size'] = undefined;
/**
* Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
* @member {module:model/DocumentRequest.ModelSourceEnum} model_source
*/
DocumentRequest.prototype['model_source'] = undefined;
/**
* DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
* @member {module:model/DocumentRequest.IfcSourceEnum} ifc_source
*/
DocumentRequest.prototype['ifc_source'] = undefined;
/**
* Old document version to replace. Only for create
* @member {Number} successor_of
*/
DocumentRequest.prototype['successor_of'] = undefined;
/**
* Allowed values for the <code>model_source</code> property.
* @enum {String}
* @readonly
*/
DocumentRequest['ModelSourceEnum'] = {
/**
* value: "UPLOAD"
* @const
*/
"UPLOAD": "UPLOAD",
/**
* value: "SPLIT"
* @const
*/
"SPLIT": "SPLIT",
/**
* value: "MERGE"
* @const
*/
"MERGE": "MERGE",
/**
* value: "EXPORT"
* @const
*/
"EXPORT": "EXPORT",
/**
* value: "OPTIMIZED"
* @const
*/
"OPTIMIZED": "OPTIMIZED"
};
/**
* Allowed values for the <code>ifc_source</code> property.
* @enum {String}
* @readonly
*/
DocumentRequest['IfcSourceEnum'] = {
/**
* value: "UPLOAD"
* @const
*/
"UPLOAD": "UPLOAD",
/**
* value: "SPLIT"
* @const
*/
"SPLIT": "SPLIT",
/**
* value: "MERGE"
* @const
*/
"MERGE": "MERGE",
/**
* value: "EXPORT"
* @const
*/
"EXPORT": "EXPORT",
/**
* value: "OPTIMIZED"
* @const
*/
"OPTIMIZED": "OPTIMIZED"
};
export default DocumentRequest;