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 pathGroupFolder.js
More file actions
129 lines (105 loc) · 3.38 KB
/
Copy pathGroupFolder.js
File metadata and controls
129 lines (105 loc) · 3.38 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
/**
* 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';
import FolderWithoutChildren from './FolderWithoutChildren';
import Group from './Group';
/**
* The GroupFolder model module.
* @module model/GroupFolder
* @version 0.0.0
*/
class GroupFolder {
/**
* Constructs a new <code>GroupFolder</code>.
* @alias module:model/GroupFolder
* @param folder {module:model/FolderWithoutChildren}
* @param group {module:model/Group}
* @param permission {module:model/GroupFolder.PermissionEnum} * `1` - denied * `50` - read_only * `100` - read_write
*/
constructor(folder, group, permission) {
GroupFolder.initialize(this, folder, group, permission);
}
/**
* 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, folder, group, permission) {
obj['folder'] = folder;
obj['group'] = group;
obj['permission'] = permission;
}
/**
* Constructs a <code>GroupFolder</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/GroupFolder} obj Optional instance to populate.
* @return {module:model/GroupFolder} The populated <code>GroupFolder</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new GroupFolder();
if (data.hasOwnProperty('folder')) {
obj['folder'] = ApiClient.convertToType(data['folder'], FolderWithoutChildren);
}
if (data.hasOwnProperty('group')) {
obj['group'] = ApiClient.convertToType(data['group'], Group);
}
if (data.hasOwnProperty('permission')) {
obj['permission'] = ApiClient.convertToType(data['permission'], 'Number');
}
}
return obj;
}
}
/**
* @member {module:model/FolderWithoutChildren} folder
*/
GroupFolder.prototype['folder'] = undefined;
/**
* @member {module:model/Group} group
*/
GroupFolder.prototype['group'] = undefined;
/**
* * `1` - denied * `50` - read_only * `100` - read_write
* @member {module:model/GroupFolder.PermissionEnum} permission
*/
GroupFolder.prototype['permission'] = undefined;
/**
* Allowed values for the <code>permission</code> property.
* @enum {Number}
* @readonly
*/
GroupFolder['PermissionEnum'] = {
/**
* value: 1
* @const
*/
"1": 1,
/**
* value: 50
* @const
*/
"50": 50,
/**
* value: 100
* @const
*/
"100": 100,
/**
* value: null
* @const
*/
"null": null
};
export default GroupFolder;