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