Skip to content

Commit 2cafaf6

Browse files
[Bot] push changes from Files.com
1 parent c298b15 commit 2cafaf6

7 files changed

Lines changed: 29 additions & 4 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.620
1+
1.2.621

docs/models/DesktopConfigurationProfile.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"name": "North America Desktop Profile",
99
"workspace_id": 1,
1010
"use_for_all_users": true,
11+
"disable_drive_mounting": true,
1112
"mount_mappings": {
1213
"key": "example value"
1314
}
@@ -18,6 +19,7 @@
1819
* `name` (string): Profile name
1920
* `workspace_id` (int64): Workspace ID
2021
* `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
22+
* `disable_drive_mounting` (boolean): Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
2123
* `mount_mappings` (object): Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
2224

2325
---
@@ -59,6 +61,7 @@ await DesktopConfigurationProfile.create({
5961
'mount_mappings': {"key":"example value"},
6062
'workspace_id': 1,
6163
'use_for_all_users': false,
64+
'disable_drive_mounting': false,
6265
})
6366
```
6467

@@ -69,6 +72,7 @@ await DesktopConfigurationProfile.create({
6972
* `mount_mappings` (object): Required - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
7073
* `workspace_id` (int64): Workspace ID
7174
* `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
75+
* `disable_drive_mounting` (boolean): Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
7276

7377
---
7478

@@ -82,6 +86,7 @@ await desktop_configuration_profile.update({
8286
'workspace_id': 1,
8387
'mount_mappings': {"key":"example value"},
8488
'use_for_all_users': false,
89+
'disable_drive_mounting': false,
8590
})
8691
```
8792

@@ -92,6 +97,7 @@ await desktop_configuration_profile.update({
9297
* `workspace_id` (int64): Workspace ID
9398
* `mount_mappings` (object): Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
9499
* `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
100+
* `disable_drive_mounting` (boolean): Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
95101

96102
### Example Response
97103

@@ -101,6 +107,7 @@ await desktop_configuration_profile.update({
101107
"name": "North America Desktop Profile",
102108
"workspace_id": 1,
103109
"use_for_all_users": true,
110+
"disable_drive_mounting": true,
104111
"mount_mappings": {
105112
"key": "example value"
106113
}

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.620';
15+
var version = '1.2.621';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/DesktopConfigurationProfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ var DesktopConfigurationProfile = /*#__PURE__*/(0, _createClass2.default)(functi
6060
(0, _defineProperty2.default)(this, "setUseForAllUsers", function (value) {
6161
_this.attributes.use_for_all_users = value;
6262
});
63+
// boolean # Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
64+
(0, _defineProperty2.default)(this, "getDisableDriveMounting", function () {
65+
return _this.attributes.disable_drive_mounting;
66+
});
67+
(0, _defineProperty2.default)(this, "setDisableDriveMounting", function (value) {
68+
_this.attributes.disable_drive_mounting = value;
69+
});
6370
// object # Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
6471
(0, _defineProperty2.default)(this, "getMountMappings", function () {
6572
return _this.attributes.mount_mappings;
@@ -72,6 +79,7 @@ var DesktopConfigurationProfile = /*#__PURE__*/(0, _createClass2.default)(functi
7279
// workspace_id - int64 - Workspace ID
7380
// mount_mappings - object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
7481
// use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
82+
// disable_drive_mounting - boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
7583
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
7684
var params,
7785
response,
@@ -333,6 +341,7 @@ _DesktopConfigurationProfile = DesktopConfigurationProfile;
333341
// mount_mappings (required) - object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
334342
// workspace_id - int64 - Workspace ID
335343
// use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
344+
// disable_drive_mounting - boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
336345
(0, _defineProperty2.default)(DesktopConfigurationProfile, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
337346
var params,
338347
options,

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.620",
3+
"version": "1.2.621",
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.620'
9+
const version = '1.2.621'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/DesktopConfigurationProfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ class DesktopConfigurationProfile {
5656
this.attributes.use_for_all_users = value
5757
}
5858

59+
// boolean # Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
60+
getDisableDriveMounting = () => this.attributes.disable_drive_mounting
61+
62+
setDisableDriveMounting = value => {
63+
this.attributes.disable_drive_mounting = value
64+
}
65+
5966
// object # Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
6067
getMountMappings = () => this.attributes.mount_mappings
6168

@@ -68,6 +75,7 @@ class DesktopConfigurationProfile {
6875
// workspace_id - int64 - Workspace ID
6976
// mount_mappings - object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
7077
// use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
78+
// disable_drive_mounting - boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
7179
update = async (params = {}) => {
7280
if (!this.attributes.id) {
7381
throw new errors.EmptyPropertyError('Current object has no id')
@@ -195,6 +203,7 @@ class DesktopConfigurationProfile {
195203
// mount_mappings (required) - object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
196204
// workspace_id - int64 - Workspace ID
197205
// use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
206+
// disable_drive_mounting - boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
198207
static create = async (params = {}, options = {}) => {
199208
if (!params.name) {
200209
throw new errors.MissingParameterError('Parameter missing: name')

0 commit comments

Comments
 (0)