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

Commit 085c8d8

Browse files
committed
MINOR: add default_cloud and default_project to /user
1 parent 5e0e189 commit 085c8d8

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

docs/SelfFosUser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ Name | Type | Description | Notes
1414
**clouds** | [**[CloudRole]**](CloudRole.md) | | [optional]
1515
**projects** | [**[ProjectRole]**](ProjectRole.md) | | [optional]
1616
**lastLogin** | **Date** | | [optional]
17+
**defaultCloudId** | **String** | | [optional]
18+
**defaultProjectId** | **String** | | [optional]
1719

1820

src/model/SelfFosUser.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363

6464

6565

66+
67+
6668
};
6769

6870
/**
@@ -109,6 +111,12 @@
109111
if (data.hasOwnProperty('last_login')) {
110112
obj['last_login'] = ApiClient.convertToType(data['last_login'], 'Date');
111113
}
114+
if (data.hasOwnProperty('default_cloud_id')) {
115+
obj['default_cloud_id'] = ApiClient.convertToType(data['default_cloud_id'], 'String');
116+
}
117+
if (data.hasOwnProperty('default_project_id')) {
118+
obj['default_project_id'] = ApiClient.convertToType(data['default_project_id'], 'String');
119+
}
112120
}
113121
return obj;
114122
}
@@ -157,6 +165,14 @@
157165
* @member {Date} last_login
158166
*/
159167
exports.prototype['last_login'] = undefined;
168+
/**
169+
* @member {String} default_cloud_id
170+
*/
171+
exports.prototype['default_cloud_id'] = undefined;
172+
/**
173+
* @member {String} default_project_id
174+
*/
175+
exports.prototype['default_project_id'] = undefined;
160176

161177

162178

test/model/SelfFosUser.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@
123123
//expect(instance).to.be();
124124
});
125125

126+
it('should have the property defaultCloudId (base name: "default_cloud_id")', function() {
127+
// uncomment below and update the code to test the property defaultCloudId
128+
//var instance = new bimdata.SelfFosUser();
129+
//expect(instance).to.be();
130+
});
131+
132+
it('should have the property defaultProjectId (base name: "default_project_id")', function() {
133+
// uncomment below and update the code to test the property defaultProjectId
134+
//var instance = new bimdata.SelfFosUser();
135+
//expect(instance).to.be();
136+
});
137+
126138
});
127139

128140
}));

0 commit comments

Comments
 (0)