files.com 1.1.576 → 1.1.578
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/desktop_configuration_profile.md +145 -0
- data/docs/site.md +6 -0
- data/docs/user.md +8 -0
- data/lib/files.com/models/desktop_configuration_profile.rb +185 -0
- data/lib/files.com/models/site.rb +6 -0
- data/lib/files.com/models/user.rb +15 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7a9474aee1909f849b815061c17af151a30f2662eee30489e4144688d992aa7
|
|
4
|
+
data.tar.gz: 8416c7681a8c315c1798fb4ac93cd86b353d18acf2f5544c62cc2fb8343265aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d7903b3044aaca5a613b6c41abc3637365709316eacecf62fd2e6b08b4f80346ca88151d5449649f23df03ff662d0761e0e883d3b97326487e6a55441846eca
|
|
7
|
+
data.tar.gz: 4180d08f7740fa8e084f565a1124b96819f731b79136b69bac31e9686aa6373097321dca93fd30d1f406688ee99db8a898620a23e33362ae5ec655051e5b623c
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.578
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# DesktopConfigurationProfile
|
|
2
|
+
|
|
3
|
+
## Example DesktopConfigurationProfile Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"name": "North America Desktop Profile",
|
|
9
|
+
"workspace_id": 1,
|
|
10
|
+
"use_for_all_users": true,
|
|
11
|
+
"mount_mappings": {
|
|
12
|
+
"key": "example value"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
* `id` (int64): Desktop Configuration Profile ID
|
|
18
|
+
* `name` (string): Profile name
|
|
19
|
+
* `workspace_id` (int64): Workspace ID
|
|
20
|
+
* `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
|
|
21
|
+
* `mount_mappings` (object): Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## List Desktop Configuration Profiles
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Files::DesktopConfigurationProfile.list
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
35
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
36
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `name`.
|
|
37
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id`.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Show Desktop Configuration Profile
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
Files::DesktopConfigurationProfile.find(id)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
* `id` (int64): Required - Desktop Configuration Profile ID.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Create Desktop Configuration Profile
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Files::DesktopConfigurationProfile.create(
|
|
59
|
+
name: "North America Desktop Profile",
|
|
60
|
+
mount_mappings: {"key":"example value"},
|
|
61
|
+
workspace_id: 1,
|
|
62
|
+
use_for_all_users: false
|
|
63
|
+
)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
* `name` (string): Required - Profile name
|
|
69
|
+
* `mount_mappings` (object): Required - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
70
|
+
* `workspace_id` (int64): Workspace ID
|
|
71
|
+
* `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Update Desktop Configuration Profile
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
Files::DesktopConfigurationProfile.update(id,
|
|
80
|
+
name: "North America Desktop Profile",
|
|
81
|
+
workspace_id: 1,
|
|
82
|
+
mount_mappings: {"key":"example value"},
|
|
83
|
+
use_for_all_users: false
|
|
84
|
+
)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
* `id` (int64): Required - Desktop Configuration Profile ID.
|
|
90
|
+
* `name` (string): Profile name
|
|
91
|
+
* `workspace_id` (int64): Workspace ID
|
|
92
|
+
* `mount_mappings` (object): Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
93
|
+
* `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Delete Desktop Configuration Profile
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Files::DesktopConfigurationProfile.delete(id)
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Parameters
|
|
105
|
+
|
|
106
|
+
* `id` (int64): Required - Desktop Configuration Profile ID.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Update Desktop Configuration Profile
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
desktop_configuration_profile = Files::DesktopConfigurationProfile.find(id)
|
|
115
|
+
|
|
116
|
+
desktop_configuration_profile.update(
|
|
117
|
+
name: "North America Desktop Profile",
|
|
118
|
+
workspace_id: 1,
|
|
119
|
+
mount_mappings: {"key":"example value"},
|
|
120
|
+
use_for_all_users: false
|
|
121
|
+
)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Parameters
|
|
125
|
+
|
|
126
|
+
* `id` (int64): Required - Desktop Configuration Profile ID.
|
|
127
|
+
* `name` (string): Profile name
|
|
128
|
+
* `workspace_id` (int64): Workspace ID
|
|
129
|
+
* `mount_mappings` (object): Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
130
|
+
* `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Delete Desktop Configuration Profile
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
desktop_configuration_profile = Files::DesktopConfigurationProfile.find(id)
|
|
139
|
+
|
|
140
|
+
desktop_configuration_profile.delete
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
* `id` (int64): Required - Desktop Configuration Profile ID.
|
data/docs/site.md
CHANGED
|
@@ -187,12 +187,14 @@
|
|
|
187
187
|
"calculate_file_checksums_sha1": true,
|
|
188
188
|
"calculate_file_checksums_sha256": true,
|
|
189
189
|
"legacy_checksums_mode": true,
|
|
190
|
+
"finalize_partial_uploads": true,
|
|
190
191
|
"use_provided_modified_at": true,
|
|
191
192
|
"windows_mode_ftp": false,
|
|
192
193
|
"user_belongs_to_parent_site": false,
|
|
193
194
|
"impersonator_user_id": 1
|
|
194
195
|
},
|
|
195
196
|
"sftp_enabled": true,
|
|
197
|
+
"sftp_finalize_partial_uploads": true,
|
|
196
198
|
"sftp_host_key_type": "default",
|
|
197
199
|
"active_sftp_host_key_id": 1,
|
|
198
200
|
"sftp_insecure_ciphers": true,
|
|
@@ -239,6 +241,7 @@
|
|
|
239
241
|
"dav_permission": true,
|
|
240
242
|
"disabled": true,
|
|
241
243
|
"disabled_expired_or_inactive": true,
|
|
244
|
+
"desktop_configuration_profile_id": 1,
|
|
242
245
|
"email": "john.doe@files.com",
|
|
243
246
|
"filesystem_layout": "site_root",
|
|
244
247
|
"first_login_at": "2000-01-01T01:00:00Z",
|
|
@@ -450,6 +453,7 @@
|
|
|
450
453
|
* `require_logout_from_bundles_and_inboxes` (boolean): If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
|
|
451
454
|
* `session` (Session): Current session
|
|
452
455
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
|
456
|
+
* `sftp_finalize_partial_uploads` (boolean): Finalize partial SFTP uploads from interrupted connections? Default: true.
|
|
453
457
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
|
454
458
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
|
455
459
|
* `sftp_insecure_ciphers` (boolean): If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
|
|
@@ -614,6 +618,7 @@ Files::Site.update(
|
|
|
614
618
|
dav_enabled: false,
|
|
615
619
|
ftp_enabled: false,
|
|
616
620
|
sftp_enabled: false,
|
|
621
|
+
sftp_finalize_partial_uploads: false,
|
|
617
622
|
users_can_create_api_keys: false,
|
|
618
623
|
users_can_create_ssh_keys: false,
|
|
619
624
|
show_user_notifications_log_in_link: false,
|
|
@@ -778,6 +783,7 @@ Files::Site.update(
|
|
|
778
783
|
* `dav_enabled` (boolean): Is WebDAV enabled?
|
|
779
784
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
|
780
785
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
|
786
|
+
* `sftp_finalize_partial_uploads` (boolean): Finalize partial SFTP uploads from interrupted connections? Default: true.
|
|
781
787
|
* `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
|
|
782
788
|
* `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
|
|
783
789
|
* `show_user_notifications_log_in_link` (boolean): Show log in link in user notifications?
|
data/docs/user.md
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"dav_permission": true,
|
|
24
24
|
"disabled": true,
|
|
25
25
|
"disabled_expired_or_inactive": true,
|
|
26
|
+
"desktop_configuration_profile_id": 1,
|
|
26
27
|
"email": "john.doe@files.com",
|
|
27
28
|
"filesystem_layout": "site_root",
|
|
28
29
|
"first_login_at": "2000-01-01T01:00:00Z",
|
|
@@ -99,6 +100,7 @@
|
|
|
99
100
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
100
101
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
101
102
|
* `disabled_expired_or_inactive` (boolean): Computed property that returns true if user disabled or expired or inactive.
|
|
103
|
+
* `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
102
104
|
* `email` (email): User email address
|
|
103
105
|
* `filesystem_layout` (string): File system layout
|
|
104
106
|
* `first_login_at` (date-time): User's first login time
|
|
@@ -227,6 +229,7 @@ Files::User.create(
|
|
|
227
229
|
bypass_user_lifecycle_rules: false,
|
|
228
230
|
bypass_site_allowed_ips: false,
|
|
229
231
|
dav_permission: true,
|
|
232
|
+
desktop_configuration_profile_id: 1,
|
|
230
233
|
disabled: true,
|
|
231
234
|
filesystem_layout: "site_root",
|
|
232
235
|
ftp_permission: true,
|
|
@@ -285,6 +288,7 @@ Files::User.create(
|
|
|
285
288
|
* `bypass_user_lifecycle_rules` (boolean): Exempt this user from user lifecycle rules?
|
|
286
289
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
|
287
290
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
291
|
+
* `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
288
292
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
289
293
|
* `filesystem_layout` (string): File system layout
|
|
290
294
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
|
@@ -378,6 +382,7 @@ Files::User.update(id,
|
|
|
378
382
|
bypass_user_lifecycle_rules: false,
|
|
379
383
|
bypass_site_allowed_ips: false,
|
|
380
384
|
dav_permission: true,
|
|
385
|
+
desktop_configuration_profile_id: 1,
|
|
381
386
|
disabled: true,
|
|
382
387
|
filesystem_layout: "site_root",
|
|
383
388
|
ftp_permission: true,
|
|
@@ -438,6 +443,7 @@ Files::User.update(id,
|
|
|
438
443
|
* `bypass_user_lifecycle_rules` (boolean): Exempt this user from user lifecycle rules?
|
|
439
444
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
|
440
445
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
446
|
+
* `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
441
447
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
442
448
|
* `filesystem_layout` (string): File system layout
|
|
443
449
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
|
@@ -556,6 +562,7 @@ user.update(
|
|
|
556
562
|
bypass_user_lifecycle_rules: false,
|
|
557
563
|
bypass_site_allowed_ips: false,
|
|
558
564
|
dav_permission: true,
|
|
565
|
+
desktop_configuration_profile_id: 1,
|
|
559
566
|
disabled: true,
|
|
560
567
|
filesystem_layout: "site_root",
|
|
561
568
|
ftp_permission: true,
|
|
@@ -616,6 +623,7 @@ user.update(
|
|
|
616
623
|
* `bypass_user_lifecycle_rules` (boolean): Exempt this user from user lifecycle rules?
|
|
617
624
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
|
618
625
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
|
626
|
+
* `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
619
627
|
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
620
628
|
* `filesystem_layout` (string): File system layout
|
|
621
629
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class DesktopConfigurationProfile
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Desktop Configuration Profile ID
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def id=(value)
|
|
18
|
+
@attributes[:id] = value
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# string - Profile name
|
|
22
|
+
def name
|
|
23
|
+
@attributes[:name]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def name=(value)
|
|
27
|
+
@attributes[:name] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# int64 - Workspace ID
|
|
31
|
+
def workspace_id
|
|
32
|
+
@attributes[:workspace_id]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def workspace_id=(value)
|
|
36
|
+
@attributes[:workspace_id] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# boolean - Whether this profile applies to all users in the Workspace by default
|
|
40
|
+
def use_for_all_users
|
|
41
|
+
@attributes[:use_for_all_users]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def use_for_all_users=(value)
|
|
45
|
+
@attributes[:use_for_all_users] = value
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
49
|
+
def mount_mappings
|
|
50
|
+
@attributes[:mount_mappings]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def mount_mappings=(value)
|
|
54
|
+
@attributes[:mount_mappings] = value
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Parameters:
|
|
58
|
+
# name - string - Profile name
|
|
59
|
+
# workspace_id - int64 - Workspace ID
|
|
60
|
+
# mount_mappings - object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
61
|
+
# use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
|
|
62
|
+
def update(params = {})
|
|
63
|
+
params ||= {}
|
|
64
|
+
params[:id] = @attributes[:id]
|
|
65
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
66
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
67
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
68
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
69
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
70
|
+
|
|
71
|
+
Api.send_request("/desktop_configuration_profiles/#{@attributes[:id]}", :patch, params, @options)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def delete(params = {})
|
|
75
|
+
params ||= {}
|
|
76
|
+
params[:id] = @attributes[:id]
|
|
77
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
78
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
79
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
80
|
+
|
|
81
|
+
Api.send_request("/desktop_configuration_profiles/#{@attributes[:id]}", :delete, params, @options)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def destroy(params = {})
|
|
85
|
+
delete(params)
|
|
86
|
+
nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def save
|
|
90
|
+
if @attributes[:id]
|
|
91
|
+
new_obj = update(@attributes)
|
|
92
|
+
else
|
|
93
|
+
new_obj = DesktopConfigurationProfile.create(@attributes, @options)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
@attributes = new_obj.attributes
|
|
97
|
+
true
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Parameters:
|
|
101
|
+
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
102
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
103
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `name`.
|
|
104
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id`.
|
|
105
|
+
def self.list(params = {}, options = {})
|
|
106
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
107
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
108
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
109
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
110
|
+
|
|
111
|
+
List.new(DesktopConfigurationProfile, params) do
|
|
112
|
+
Api.send_request("/desktop_configuration_profiles", :get, params, options)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def self.all(params = {}, options = {})
|
|
117
|
+
list(params, options)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Parameters:
|
|
121
|
+
# id (required) - int64 - Desktop Configuration Profile ID.
|
|
122
|
+
def self.find(id, params = {}, options = {})
|
|
123
|
+
params ||= {}
|
|
124
|
+
params[:id] = id
|
|
125
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
126
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
127
|
+
|
|
128
|
+
response, options = Api.send_request("/desktop_configuration_profiles/#{params[:id]}", :get, params, options)
|
|
129
|
+
DesktopConfigurationProfile.new(response.data, options)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def self.get(id, params = {}, options = {})
|
|
133
|
+
find(id, params, options)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Parameters:
|
|
137
|
+
# name (required) - string - Profile name
|
|
138
|
+
# mount_mappings (required) - object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
139
|
+
# workspace_id - int64 - Workspace ID
|
|
140
|
+
# use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
|
|
141
|
+
def self.create(params = {}, options = {})
|
|
142
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
143
|
+
raise InvalidParameterError.new("Bad parameter: mount_mappings must be an Hash") if params[:mount_mappings] and !params[:mount_mappings].is_a?(Hash)
|
|
144
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
145
|
+
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
146
|
+
raise MissingParameterError.new("Parameter missing: mount_mappings") unless params[:mount_mappings]
|
|
147
|
+
|
|
148
|
+
response, options = Api.send_request("/desktop_configuration_profiles", :post, params, options)
|
|
149
|
+
DesktopConfigurationProfile.new(response.data, options)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Parameters:
|
|
153
|
+
# name - string - Profile name
|
|
154
|
+
# workspace_id - int64 - Workspace ID
|
|
155
|
+
# mount_mappings - object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
|
|
156
|
+
# use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
|
|
157
|
+
def self.update(id, params = {}, options = {})
|
|
158
|
+
params ||= {}
|
|
159
|
+
params[:id] = id
|
|
160
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
161
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
162
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
163
|
+
raise InvalidParameterError.new("Bad parameter: mount_mappings must be an Hash") if params[:mount_mappings] and !params[:mount_mappings].is_a?(Hash)
|
|
164
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
165
|
+
|
|
166
|
+
response, options = Api.send_request("/desktop_configuration_profiles/#{params[:id]}", :patch, params, options)
|
|
167
|
+
DesktopConfigurationProfile.new(response.data, options)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def self.delete(id, params = {}, options = {})
|
|
171
|
+
params ||= {}
|
|
172
|
+
params[:id] = id
|
|
173
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
174
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
175
|
+
|
|
176
|
+
Api.send_request("/desktop_configuration_profiles/#{params[:id]}", :delete, params, options)
|
|
177
|
+
nil
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def self.destroy(id, params = {}, options = {})
|
|
181
|
+
delete(id, params, options)
|
|
182
|
+
nil
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
@@ -679,6 +679,11 @@ module Files
|
|
|
679
679
|
@attributes[:sftp_enabled]
|
|
680
680
|
end
|
|
681
681
|
|
|
682
|
+
# boolean - Finalize partial SFTP uploads from interrupted connections? Default: true.
|
|
683
|
+
def sftp_finalize_partial_uploads
|
|
684
|
+
@attributes[:sftp_finalize_partial_uploads]
|
|
685
|
+
end
|
|
686
|
+
|
|
682
687
|
# string - Sftp Host Key Type
|
|
683
688
|
def sftp_host_key_type
|
|
684
689
|
@attributes[:sftp_host_key_type]
|
|
@@ -1001,6 +1006,7 @@ module Files
|
|
|
1001
1006
|
# dav_enabled - boolean - Is WebDAV enabled?
|
|
1002
1007
|
# ftp_enabled - boolean - Is FTP enabled?
|
|
1003
1008
|
# sftp_enabled - boolean - Is SFTP enabled?
|
|
1009
|
+
# sftp_finalize_partial_uploads - boolean - Finalize partial SFTP uploads from interrupted connections? Default: true.
|
|
1004
1010
|
# users_can_create_api_keys - boolean - Allow users to create their own API keys?
|
|
1005
1011
|
# users_can_create_ssh_keys - boolean - Allow users to create their own SSH keys?
|
|
1006
1012
|
# show_user_notifications_log_in_link - boolean - Show log in link in user notifications?
|
|
@@ -158,6 +158,15 @@ module Files
|
|
|
158
158
|
@attributes[:disabled_expired_or_inactive] = value
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
# int64 - Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
162
|
+
def desktop_configuration_profile_id
|
|
163
|
+
@attributes[:desktop_configuration_profile_id]
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def desktop_configuration_profile_id=(value)
|
|
167
|
+
@attributes[:desktop_configuration_profile_id] = value
|
|
168
|
+
end
|
|
169
|
+
|
|
161
170
|
# email - User email address
|
|
162
171
|
def email
|
|
163
172
|
@attributes[:email]
|
|
@@ -824,6 +833,7 @@ module Files
|
|
|
824
833
|
# bypass_user_lifecycle_rules - boolean - Exempt this user from user lifecycle rules?
|
|
825
834
|
# bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
|
826
835
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
|
836
|
+
# desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
827
837
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
828
838
|
# filesystem_layout - string - File system layout
|
|
829
839
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
|
@@ -875,6 +885,7 @@ module Files
|
|
|
875
885
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
876
886
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params[:authenticate_until] and !params[:authenticate_until].is_a?(String)
|
|
877
887
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
|
888
|
+
raise InvalidParameterError.new("Bad parameter: desktop_configuration_profile_id must be an Integer") if params[:desktop_configuration_profile_id] and !params[:desktop_configuration_profile_id].is_a?(Integer)
|
|
878
889
|
raise InvalidParameterError.new("Bad parameter: filesystem_layout must be an String") if params[:filesystem_layout] and !params[:filesystem_layout].is_a?(String)
|
|
879
890
|
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params[:header_text] and !params[:header_text].is_a?(String)
|
|
880
891
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params[:language] and !params[:language].is_a?(String)
|
|
@@ -999,6 +1010,7 @@ module Files
|
|
|
999
1010
|
# bypass_user_lifecycle_rules - boolean - Exempt this user from user lifecycle rules?
|
|
1000
1011
|
# bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
|
1001
1012
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
|
1013
|
+
# desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
1002
1014
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
1003
1015
|
# filesystem_layout - string - File system layout
|
|
1004
1016
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
|
@@ -1045,6 +1057,7 @@ module Files
|
|
|
1045
1057
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
1046
1058
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params[:authenticate_until] and !params[:authenticate_until].is_a?(String)
|
|
1047
1059
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
|
1060
|
+
raise InvalidParameterError.new("Bad parameter: desktop_configuration_profile_id must be an Integer") if params[:desktop_configuration_profile_id] and !params[:desktop_configuration_profile_id].is_a?(Integer)
|
|
1048
1061
|
raise InvalidParameterError.new("Bad parameter: filesystem_layout must be an String") if params[:filesystem_layout] and !params[:filesystem_layout].is_a?(String)
|
|
1049
1062
|
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params[:header_text] and !params[:header_text].is_a?(String)
|
|
1050
1063
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params[:language] and !params[:language].is_a?(String)
|
|
@@ -1124,6 +1137,7 @@ module Files
|
|
|
1124
1137
|
# bypass_user_lifecycle_rules - boolean - Exempt this user from user lifecycle rules?
|
|
1125
1138
|
# bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
|
1126
1139
|
# dav_permission - boolean - Can the user connect with WebDAV?
|
|
1140
|
+
# desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned directly to this user, if any.
|
|
1127
1141
|
# disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
|
1128
1142
|
# filesystem_layout - string - File system layout
|
|
1129
1143
|
# ftp_permission - boolean - Can the user access with FTP/FTPS?
|
|
@@ -1174,6 +1188,7 @@ module Files
|
|
|
1174
1188
|
raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
|
|
1175
1189
|
raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params[:authenticate_until] and !params[:authenticate_until].is_a?(String)
|
|
1176
1190
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
|
1191
|
+
raise InvalidParameterError.new("Bad parameter: desktop_configuration_profile_id must be an Integer") if params[:desktop_configuration_profile_id] and !params[:desktop_configuration_profile_id].is_a?(Integer)
|
|
1177
1192
|
raise InvalidParameterError.new("Bad parameter: filesystem_layout must be an String") if params[:filesystem_layout] and !params[:filesystem_layout].is_a?(String)
|
|
1178
1193
|
raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params[:header_text] and !params[:header_text].is_a?(String)
|
|
1179
1194
|
raise InvalidParameterError.new("Bad parameter: language must be an String") if params[:language] and !params[:language].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -60,6 +60,7 @@ require "files.com/models/bundle_recipient"
|
|
|
60
60
|
require "files.com/models/bundle_registration"
|
|
61
61
|
require "files.com/models/child_site_management_policy"
|
|
62
62
|
require "files.com/models/clickwrap"
|
|
63
|
+
require "files.com/models/desktop_configuration_profile"
|
|
63
64
|
require "files.com/models/dns_record"
|
|
64
65
|
require "files.com/models/email_incoming_message"
|
|
65
66
|
require "files.com/models/email_log"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.578
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -198,6 +198,7 @@ files:
|
|
|
198
198
|
- docs/bundle_registration.md
|
|
199
199
|
- docs/child_site_management_policy.md
|
|
200
200
|
- docs/clickwrap.md
|
|
201
|
+
- docs/desktop_configuration_profile.md
|
|
201
202
|
- docs/dns_record.md
|
|
202
203
|
- docs/email_incoming_message.md
|
|
203
204
|
- docs/email_log.md
|
|
@@ -320,6 +321,7 @@ files:
|
|
|
320
321
|
- lib/files.com/models/bundle_registration.rb
|
|
321
322
|
- lib/files.com/models/child_site_management_policy.rb
|
|
322
323
|
- lib/files.com/models/clickwrap.rb
|
|
324
|
+
- lib/files.com/models/desktop_configuration_profile.rb
|
|
323
325
|
- lib/files.com/models/dir.rb
|
|
324
326
|
- lib/files.com/models/dns_record.rb
|
|
325
327
|
- lib/files.com/models/email_incoming_message.rb
|