files.com 1.1.5 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/api_key.md +1 -2
- data/docs/group.md +33 -1
- data/docs/site.md +2 -0
- data/lib/files.com/models/api_key.rb +9 -9
- data/lib/files.com/models/group.rb +48 -0
- data/lib/files.com/models/site.rb +1 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '045895df933d7ee7e70af3e54d72f8ff2a3a26c2dff685e793f3ebd7852af77b'
|
4
|
+
data.tar.gz: 195b79c751211a1e8ba022f646e2b01c1e4e7454d0c181c78c1e93dffa26e92f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fae2012ac5edf7d114345c30009ea24e431018b5e3836e3e64d92054b7141829f0d1dee59b1120a65ea1d70650c95f895a05a3428042e38b8bb0f9d860689bc
|
7
|
+
data.tar.gz: 57751fea98faea1a0c1e38bf49f92529a247b420549ad081cde7174066bd5d2f4bd6e32228722f4f4d35b58ab579083940a93ef06ee3443a39dbacc3d9cd0576
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.7
|
data/docs/api_key.md
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
"key": "[key]",
|
13
13
|
"last_use_at": "2000-01-01T01:00:00Z",
|
14
14
|
"name": "My Main API Key",
|
15
|
-
"path": "shared/docs",
|
16
15
|
"permission_set": "full",
|
17
16
|
"platform": "win32",
|
18
17
|
"url": "example",
|
@@ -28,11 +27,11 @@
|
|
28
27
|
* `key` (string): API Key actual key string
|
29
28
|
* `last_use_at` (date-time): API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
|
30
29
|
* `name` (string): Internal name for the API Key. For your use.
|
31
|
-
* `path` (string): Folder path restriction for this api key. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
32
30
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
33
31
|
* `platform` (string): If this API key represents a Desktop app, what platform was it created on?
|
34
32
|
* `url` (string): URL for API host.
|
35
33
|
* `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
|
34
|
+
* `path` (string): Folder path restriction for this api key.
|
36
35
|
|
37
36
|
|
38
37
|
---
|
data/docs/group.md
CHANGED
@@ -9,7 +9,11 @@
|
|
9
9
|
"admin_ids": "1",
|
10
10
|
"notes": "example",
|
11
11
|
"user_ids": "1",
|
12
|
-
"usernames": "example"
|
12
|
+
"usernames": "example",
|
13
|
+
"ftp_permission": true,
|
14
|
+
"sftp_permission": true,
|
15
|
+
"dav_permission": true,
|
16
|
+
"restapi_permission": true
|
13
17
|
}
|
14
18
|
```
|
15
19
|
|
@@ -19,6 +23,10 @@
|
|
19
23
|
* `notes` (string): Notes about this group
|
20
24
|
* `user_ids` (string): Comma-delimited list of user IDs who belong to this group (separated by commas)
|
21
25
|
* `usernames` (string): Comma-delimited list of usernames who belong to this group (separated by commas)
|
26
|
+
* `ftp_permission` (boolean): If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
27
|
+
* `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.
|
28
|
+
* `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.
|
29
|
+
* `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.
|
22
30
|
|
23
31
|
|
24
32
|
---
|
@@ -63,6 +71,10 @@ Files::Group.create(
|
|
63
71
|
notes: "example",
|
64
72
|
user_ids: "1",
|
65
73
|
admin_ids: "1",
|
74
|
+
ftp_permission: true,
|
75
|
+
sftp_permission: true,
|
76
|
+
dav_permission: true,
|
77
|
+
restapi_permission: true,
|
66
78
|
name: "name"
|
67
79
|
)
|
68
80
|
```
|
@@ -72,6 +84,10 @@ Files::Group.create(
|
|
72
84
|
* `notes` (string): Group notes.
|
73
85
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
74
86
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
87
|
+
* `ftp_permission` (boolean): If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
88
|
+
* `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.
|
89
|
+
* `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.
|
90
|
+
* `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.
|
75
91
|
* `name` (string): Required - Group name.
|
76
92
|
|
77
93
|
|
@@ -84,6 +100,10 @@ Files::Group.update(id,
|
|
84
100
|
notes: "example",
|
85
101
|
user_ids: "1",
|
86
102
|
admin_ids: "1",
|
103
|
+
ftp_permission: true,
|
104
|
+
sftp_permission: true,
|
105
|
+
dav_permission: true,
|
106
|
+
restapi_permission: true,
|
87
107
|
name: "owners"
|
88
108
|
)
|
89
109
|
```
|
@@ -94,6 +114,10 @@ Files::Group.update(id,
|
|
94
114
|
* `notes` (string): Group notes.
|
95
115
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
96
116
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
117
|
+
* `ftp_permission` (boolean): If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
118
|
+
* `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.
|
119
|
+
* `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.
|
120
|
+
* `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.
|
97
121
|
* `name` (string): Group name.
|
98
122
|
|
99
123
|
|
@@ -121,6 +145,10 @@ group.update(
|
|
121
145
|
notes: "example",
|
122
146
|
user_ids: "1",
|
123
147
|
admin_ids: "1",
|
148
|
+
ftp_permission: true,
|
149
|
+
sftp_permission: true,
|
150
|
+
dav_permission: true,
|
151
|
+
restapi_permission: true,
|
124
152
|
name: "owners"
|
125
153
|
)
|
126
154
|
```
|
@@ -131,6 +159,10 @@ group.update(
|
|
131
159
|
* `notes` (string): Group notes.
|
132
160
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
133
161
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
162
|
+
* `ftp_permission` (boolean): If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
163
|
+
* `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.
|
164
|
+
* `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.
|
165
|
+
* `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.
|
134
166
|
* `name` (string): Group name.
|
135
167
|
|
136
168
|
|
data/docs/site.md
CHANGED
@@ -486,6 +486,7 @@ Files::Site.update(
|
|
486
486
|
sftp_enabled: true,
|
487
487
|
sftp_host_key_type: "default",
|
488
488
|
active_sftp_host_key_id: 1,
|
489
|
+
protocol_access_groups_only: true,
|
489
490
|
bundle_watermark_value: {"key":"example value"},
|
490
491
|
group_admins_can_set_user_password: true,
|
491
492
|
bundle_recipient_blacklist_free_email_domains: true,
|
@@ -624,6 +625,7 @@ Files::Site.update(
|
|
624
625
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
625
626
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
626
627
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
628
|
+
* `protocol_access_groups_only` (boolean): If `true`, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
627
629
|
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
628
630
|
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
629
631
|
* `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
|
@@ -77,15 +77,6 @@ module Files
|
|
77
77
|
@attributes[:name] = value
|
78
78
|
end
|
79
79
|
|
80
|
-
# string - Folder path restriction for this api key. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
81
|
-
def path
|
82
|
-
@attributes[:path]
|
83
|
-
end
|
84
|
-
|
85
|
-
def path=(value)
|
86
|
-
@attributes[:path] = value
|
87
|
-
end
|
88
|
-
|
89
80
|
# string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
90
81
|
def permission_set
|
91
82
|
@attributes[:permission_set]
|
@@ -122,6 +113,15 @@ module Files
|
|
122
113
|
@attributes[:user_id] = value
|
123
114
|
end
|
124
115
|
|
116
|
+
# string - Folder path restriction for this api key.
|
117
|
+
def path
|
118
|
+
@attributes[:path]
|
119
|
+
end
|
120
|
+
|
121
|
+
def path=(value)
|
122
|
+
@attributes[:path] = value
|
123
|
+
end
|
124
|
+
|
125
125
|
# Parameters:
|
126
126
|
# name - string - Internal name for the API Key. For your use.
|
127
127
|
# description - string - User-supplied description of API key.
|
@@ -63,10 +63,50 @@ module Files
|
|
63
63
|
@attributes[:usernames] = value
|
64
64
|
end
|
65
65
|
|
66
|
+
# boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
67
|
+
def ftp_permission
|
68
|
+
@attributes[:ftp_permission]
|
69
|
+
end
|
70
|
+
|
71
|
+
def ftp_permission=(value)
|
72
|
+
@attributes[:ftp_permission] = value
|
73
|
+
end
|
74
|
+
|
75
|
+
# 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.
|
76
|
+
def sftp_permission
|
77
|
+
@attributes[:sftp_permission]
|
78
|
+
end
|
79
|
+
|
80
|
+
def sftp_permission=(value)
|
81
|
+
@attributes[:sftp_permission] = value
|
82
|
+
end
|
83
|
+
|
84
|
+
# 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.
|
85
|
+
def dav_permission
|
86
|
+
@attributes[:dav_permission]
|
87
|
+
end
|
88
|
+
|
89
|
+
def dav_permission=(value)
|
90
|
+
@attributes[:dav_permission] = value
|
91
|
+
end
|
92
|
+
|
93
|
+
# 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.
|
94
|
+
def restapi_permission
|
95
|
+
@attributes[:restapi_permission]
|
96
|
+
end
|
97
|
+
|
98
|
+
def restapi_permission=(value)
|
99
|
+
@attributes[:restapi_permission] = value
|
100
|
+
end
|
101
|
+
|
66
102
|
# Parameters:
|
67
103
|
# notes - string - Group notes.
|
68
104
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
69
105
|
# admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
106
|
+
# ftp_permission - boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
107
|
+
# 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.
|
108
|
+
# 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.
|
109
|
+
# 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.
|
70
110
|
# name - string - Group name.
|
71
111
|
def update(params = {})
|
72
112
|
params ||= {}
|
@@ -152,6 +192,10 @@ module Files
|
|
152
192
|
# notes - string - Group notes.
|
153
193
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
154
194
|
# admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
195
|
+
# ftp_permission - boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
196
|
+
# 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.
|
197
|
+
# 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.
|
198
|
+
# 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.
|
155
199
|
# name (required) - string - Group name.
|
156
200
|
def self.create(params = {}, options = {})
|
157
201
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
@@ -168,6 +212,10 @@ module Files
|
|
168
212
|
# notes - string - Group notes.
|
169
213
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
170
214
|
# admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
215
|
+
# ftp_permission - boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
216
|
+
# 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.
|
217
|
+
# 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.
|
218
|
+
# 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.
|
171
219
|
# name - string - Group name.
|
172
220
|
def self.update(id, params = {}, options = {})
|
173
221
|
params ||= {}
|
@@ -851,6 +851,7 @@ module Files
|
|
851
851
|
# sftp_enabled - boolean - Is SFTP enabled?
|
852
852
|
# sftp_host_key_type - string - Sftp Host Key Type
|
853
853
|
# active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
854
|
+
# protocol_access_groups_only - boolean - If `true`, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
854
855
|
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
855
856
|
# group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
856
857
|
# bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
|
data/lib/files.com/version.rb
CHANGED