Skip to content

Commit a327784

Browse files
[Bot] push changes from Files.com
1 parent 99b2d11 commit a327784

7 files changed

Lines changed: 70 additions & 25 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.613
1+
1.2.614

docs/models/Group.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"sftp_permission": true,
1616
"dav_permission": true,
1717
"restapi_permission": true,
18+
"desktop_configuration_profile_id": 1,
1819
"site_id": 1,
1920
"workspace_id": 1
2021
}
@@ -31,6 +32,7 @@
3132
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
3233
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
3334
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
35+
* `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
3436
* `site_id` (int64): Site ID
3537
* `workspace_id` (int64): Workspace ID
3638

@@ -81,6 +83,7 @@ await Group.create({
8183
'sftp_permission': true,
8284
'dav_permission': true,
8385
'restapi_permission': true,
86+
'desktop_configuration_profile_id': 1,
8487
'allowed_ips': "10.0.0.0/8\n127.0.0.1",
8588
'name': "name",
8689
'workspace_id': 0,
@@ -97,6 +100,7 @@ await Group.create({
97100
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
98101
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
99102
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
103+
* `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
100104
* `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
101105
* `name` (string): Required - Group name.
102106
* `workspace_id` (int64): Workspace ID
@@ -116,6 +120,7 @@ await group.update({
116120
'sftp_permission': true,
117121
'dav_permission': true,
118122
'restapi_permission': true,
123+
'desktop_configuration_profile_id': 1,
119124
'allowed_ips': "10.0.0.0/8\n127.0.0.1",
120125
'name': "owners",
121126
})
@@ -131,6 +136,7 @@ await group.update({
131136
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
132137
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
133138
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
139+
* `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
134140
* `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
135141
* `name` (string): Group name.
136142

@@ -149,6 +155,7 @@ await group.update({
149155
"sftp_permission": true,
150156
"dav_permission": true,
151157
"restapi_permission": true,
158+
"desktop_configuration_profile_id": 1,
152159
"site_id": 1,
153160
"workspace_id": 1
154161
}

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.613';
15+
var version = '1.2.614';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/Group.js

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
109109
(0, _defineProperty2.default)(this, "setRestapiPermission", function (value) {
110110
_this.attributes.restapi_permission = value;
111111
});
112+
// int64 # Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
113+
(0, _defineProperty2.default)(this, "getDesktopConfigurationProfileId", function () {
114+
return _this.attributes.desktop_configuration_profile_id;
115+
});
116+
(0, _defineProperty2.default)(this, "setDesktopConfigurationProfileId", function (value) {
117+
_this.attributes.desktop_configuration_profile_id = value;
118+
});
112119
// int64 # Site ID
113120
(0, _defineProperty2.default)(this, "getSiteId", function () {
114121
return _this.attributes.site_id;
@@ -131,6 +138,7 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
131138
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
132139
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
133140
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
141+
// desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
134142
// allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
135143
// name - string - Group name.
136144
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -178,38 +186,44 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
178186
}
179187
throw new errors.InvalidParameterError("Bad parameter: admin_ids must be of type String, received ".concat((0, _utils.getType)(params.admin_ids)));
180188
case 6:
181-
if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
189+
if (!(params.desktop_configuration_profile_id && !(0, _utils.isInt)(params.desktop_configuration_profile_id))) {
182190
_context.next = 7;
183191
break;
184192
}
185-
throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
193+
throw new errors.InvalidParameterError("Bad parameter: desktop_configuration_profile_id must be of type Int, received ".concat((0, _utils.getType)(params.desktop_configuration_profile_id)));
186194
case 7:
187-
if (!(params.name && !(0, _utils.isString)(params.name))) {
195+
if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
188196
_context.next = 8;
189197
break;
190198
}
191-
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
199+
throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
192200
case 8:
201+
if (!(params.name && !(0, _utils.isString)(params.name))) {
202+
_context.next = 9;
203+
break;
204+
}
205+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
206+
case 9:
193207
if (params.id) {
194-
_context.next = 10;
208+
_context.next = 11;
195209
break;
196210
}
197211
if (!_this.attributes.id) {
198-
_context.next = 9;
212+
_context.next = 10;
199213
break;
200214
}
201215
params.id = _this.id;
202-
_context.next = 10;
216+
_context.next = 11;
203217
break;
204-
case 9:
205-
throw new errors.MissingParameterError('Parameter missing: id');
206218
case 10:
207-
_context.next = 11;
208-
return _Api.default.sendRequest("/groups/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
219+
throw new errors.MissingParameterError('Parameter missing: id');
209220
case 11:
221+
_context.next = 12;
222+
return _Api.default.sendRequest("/groups/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
223+
case 12:
210224
response = _context.sent;
211225
return _context.abrupt("return", new Group(response === null || response === void 0 ? void 0 : response.data, _this.options));
212-
case 12:
226+
case 13:
213227
case "end":
214228
return _context.stop();
215229
}
@@ -424,6 +438,7 @@ _Group = Group;
424438
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
425439
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
426440
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
441+
// desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
427442
// allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
428443
// name (required) - string - Group name.
429444
// workspace_id - int64 - Workspace ID
@@ -461,30 +476,36 @@ _Group = Group;
461476
}
462477
throw new errors.InvalidParameterError("Bad parameter: admin_ids must be of type String, received ".concat((0, _utils.getType)(params.admin_ids)));
463478
case 4:
464-
if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
479+
if (!(params.desktop_configuration_profile_id && !(0, _utils.isInt)(params.desktop_configuration_profile_id))) {
465480
_context6.next = 5;
466481
break;
467482
}
468-
throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
483+
throw new errors.InvalidParameterError("Bad parameter: desktop_configuration_profile_id must be of type Int, received ".concat((0, _utils.getType)(params.desktop_configuration_profile_id)));
469484
case 5:
470-
if (!(params.name && !(0, _utils.isString)(params.name))) {
485+
if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
471486
_context6.next = 6;
472487
break;
473488
}
474-
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
489+
throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
475490
case 6:
476-
if (!(params.workspace_id && !(0, _utils.isInt)(params.workspace_id))) {
491+
if (!(params.name && !(0, _utils.isString)(params.name))) {
477492
_context6.next = 7;
478493
break;
479494
}
480-
throw new errors.InvalidParameterError("Bad parameter: workspace_id must be of type Int, received ".concat((0, _utils.getType)(params.workspace_id)));
495+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
481496
case 7:
482-
_context6.next = 8;
483-
return _Api.default.sendRequest('/groups', 'POST', params, options);
497+
if (!(params.workspace_id && !(0, _utils.isInt)(params.workspace_id))) {
498+
_context6.next = 8;
499+
break;
500+
}
501+
throw new errors.InvalidParameterError("Bad parameter: workspace_id must be of type Int, received ".concat((0, _utils.getType)(params.workspace_id)));
484502
case 8:
503+
_context6.next = 9;
504+
return _Api.default.sendRequest('/groups', 'POST', params, options);
505+
case 9:
485506
response = _context6.sent;
486507
return _context6.abrupt("return", new _Group(response === null || response === void 0 ? void 0 : response.data, options));
487-
case 9:
508+
case 10:
488509
case "end":
489510
return _context6.stop();
490511
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.613",
3+
"version": "1.2.614",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.613'
9+
const version = '1.2.614'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/Group.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ class Group {
105105
this.attributes.restapi_permission = value
106106
}
107107

108+
// int64 # Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
109+
getDesktopConfigurationProfileId = () => this.attributes.desktop_configuration_profile_id
110+
111+
setDesktopConfigurationProfileId = value => {
112+
this.attributes.desktop_configuration_profile_id = value
113+
}
114+
108115
// int64 # Site ID
109116
getSiteId = () => this.attributes.site_id
110117

@@ -127,6 +134,7 @@ class Group {
127134
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
128135
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
129136
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
137+
// desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
130138
// allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
131139
// name - string - Group name.
132140
update = async (params = {}) => {
@@ -155,6 +163,10 @@ class Group {
155163
throw new errors.InvalidParameterError(`Bad parameter: admin_ids must be of type String, received ${getType(params.admin_ids)}`)
156164
}
157165

166+
if (params.desktop_configuration_profile_id && !isInt(params.desktop_configuration_profile_id)) {
167+
throw new errors.InvalidParameterError(`Bad parameter: desktop_configuration_profile_id must be of type Int, received ${getType(params.desktop_configuration_profile_id)}`)
168+
}
169+
158170
if (params.allowed_ips && !isString(params.allowed_ips)) {
159171
throw new errors.InvalidParameterError(`Bad parameter: allowed_ips must be of type String, received ${getType(params.allowed_ips)}`)
160172
}
@@ -278,6 +290,7 @@ class Group {
278290
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
279291
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
280292
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
293+
// desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned to this Group, if any. Users in the Group inherit it unless a direct per-user assignment overrides it.
281294
// allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
282295
// name (required) - string - Group name.
283296
// workspace_id - int64 - Workspace ID
@@ -298,6 +311,10 @@ class Group {
298311
throw new errors.InvalidParameterError(`Bad parameter: admin_ids must be of type String, received ${getType(params.admin_ids)}`)
299312
}
300313

314+
if (params.desktop_configuration_profile_id && !isInt(params.desktop_configuration_profile_id)) {
315+
throw new errors.InvalidParameterError(`Bad parameter: desktop_configuration_profile_id must be of type Int, received ${getType(params.desktop_configuration_profile_id)}`)
316+
}
317+
301318
if (params.allowed_ips && !isString(params.allowed_ips)) {
302319
throw new errors.InvalidParameterError(`Bad parameter: allowed_ips must be of type String, received ${getType(params.allowed_ips)}`)
303320
}

0 commit comments

Comments
 (0)