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 pathCloudInvitation.js
More file actions
127 lines (104 loc) · 3.54 KB
/
Copy pathCloudInvitation.js
File metadata and controls
127 lines (104 loc) · 3.54 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
/**
* 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 CloudInvitation model module.
* @module model/CloudInvitation
* @version 0.0.0
*/
class CloudInvitation {
/**
* Constructs a new <code>CloudInvitation</code>.
* @alias module:model/CloudInvitation
* @param id {Number}
* @param email {String} email of the user to invite
* @param redirectUri {String} User will be redirected to this uri when they accept the invitation
* @param role {module:model/CloudInvitation.RoleEnum} * `100` - admin * `50` - user
*/
constructor(id, email, redirectUri, role) {
CloudInvitation.initialize(this, id, email, redirectUri, role);
}
/**
* 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, id, email, redirectUri, role) {
obj['id'] = id;
obj['email'] = email;
obj['redirect_uri'] = redirectUri;
obj['role'] = role;
}
/**
* Constructs a <code>CloudInvitation</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/CloudInvitation} obj Optional instance to populate.
* @return {module:model/CloudInvitation} The populated <code>CloudInvitation</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new CloudInvitation();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('email')) {
obj['email'] = ApiClient.convertToType(data['email'], 'String');
}
if (data.hasOwnProperty('redirect_uri')) {
obj['redirect_uri'] = ApiClient.convertToType(data['redirect_uri'], 'String');
}
if (data.hasOwnProperty('role')) {
obj['role'] = ApiClient.convertToType(data['role'], 'Number');
}
}
return obj;
}
}
/**
* @member {Number} id
*/
CloudInvitation.prototype['id'] = undefined;
/**
* email of the user to invite
* @member {String} email
*/
CloudInvitation.prototype['email'] = undefined;
/**
* User will be redirected to this uri when they accept the invitation
* @member {String} redirect_uri
*/
CloudInvitation.prototype['redirect_uri'] = undefined;
/**
* * `100` - admin * `50` - user
* @member {module:model/CloudInvitation.RoleEnum} role
*/
CloudInvitation.prototype['role'] = undefined;
/**
* Allowed values for the <code>role</code> property.
* @enum {Number}
* @readonly
*/
CloudInvitation['RoleEnum'] = {
/**
* value: 100
* @const
*/
"100": 100,
/**
* value: 50
* @const
*/
"50": 50
};
export default CloudInvitation;