files.com 1.0.482 → 1.0.483
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/group.md +9 -9
- data/docs/user.md +1 -1
- data/lib/files.com/models/group.rb +7 -6
- data/lib/files.com/models/user.rb +2 -1
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae7e09efad17e854b47c2f1b5af3b3d9442ae7ef516d8f9f94a64aea4d7fe871
|
4
|
+
data.tar.gz: 20e0f0f22f99d362b3a9a184963fa12b006501c26b38acdc05e9a095d9a169e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00e941c023e8ab7110ea18bd2c365b97eadc98b4af04d13ff76c342280dc3fac393ef7cdbe6894adaf095036e211ef4d258fe8e640caf3cf8f358764004f2046
|
7
|
+
data.tar.gz: 4bc26ac91ad071306618dde58b6bd9b9ac0cee6b847dba2c9b9bb7d8c83a267cfa76e183a1da50de49468044e99112b5e1ffa637acce6a89657b3937ffbcb86b
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.483
|
data/docs/group.md
CHANGED
@@ -60,19 +60,19 @@ Files::Group.find(id)
|
|
60
60
|
|
61
61
|
```
|
62
62
|
Files::Group.create(
|
63
|
-
name: "owners",
|
64
63
|
notes: "example",
|
65
64
|
user_ids: "1",
|
66
|
-
admin_ids: "1"
|
65
|
+
admin_ids: "1",
|
66
|
+
name: "name"
|
67
67
|
)
|
68
68
|
```
|
69
69
|
|
70
70
|
### Parameters
|
71
71
|
|
72
|
-
* `name` (string): Group name.
|
73
72
|
* `notes` (string): Group notes.
|
74
73
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
75
74
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
75
|
+
* `name` (string): Required - Group name.
|
76
76
|
|
77
77
|
|
78
78
|
---
|
@@ -81,20 +81,20 @@ Files::Group.create(
|
|
81
81
|
|
82
82
|
```
|
83
83
|
Files::Group.update(id,
|
84
|
-
name: "owners",
|
85
84
|
notes: "example",
|
86
85
|
user_ids: "1",
|
87
|
-
admin_ids: "1"
|
86
|
+
admin_ids: "1",
|
87
|
+
name: "owners"
|
88
88
|
)
|
89
89
|
```
|
90
90
|
|
91
91
|
### Parameters
|
92
92
|
|
93
93
|
* `id` (int64): Required - Group ID.
|
94
|
-
* `name` (string): Group name.
|
95
94
|
* `notes` (string): Group notes.
|
96
95
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
97
96
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
97
|
+
* `name` (string): Group name.
|
98
98
|
|
99
99
|
|
100
100
|
---
|
@@ -118,20 +118,20 @@ Files::Group.delete(id)
|
|
118
118
|
group = Files::Group.list.first
|
119
119
|
|
120
120
|
group.update(
|
121
|
-
name: "owners",
|
122
121
|
notes: "example",
|
123
122
|
user_ids: "1",
|
124
|
-
admin_ids: "1"
|
123
|
+
admin_ids: "1",
|
124
|
+
name: "owners"
|
125
125
|
)
|
126
126
|
```
|
127
127
|
|
128
128
|
### Parameters
|
129
129
|
|
130
130
|
* `id` (int64): Required - Group ID.
|
131
|
-
* `name` (string): Group name.
|
132
131
|
* `notes` (string): Group notes.
|
133
132
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
134
133
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
134
|
+
* `name` (string): Group name.
|
135
135
|
|
136
136
|
|
137
137
|
---
|
data/docs/user.md
CHANGED
@@ -279,7 +279,7 @@ Files::User.create(
|
|
279
279
|
* `require_2fa` (string): 2FA required setting
|
280
280
|
* `time_zone` (string): User time zone
|
281
281
|
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
|
282
|
-
* `username` (string): User's username
|
282
|
+
* `username` (string): Required - User's username
|
283
283
|
|
284
284
|
|
285
285
|
---
|
@@ -64,19 +64,19 @@ module Files
|
|
64
64
|
end
|
65
65
|
|
66
66
|
# Parameters:
|
67
|
-
# name - string - Group name.
|
68
67
|
# notes - string - Group notes.
|
69
68
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
70
69
|
# admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
70
|
+
# name - string - Group name.
|
71
71
|
def update(params = {})
|
72
72
|
params ||= {}
|
73
73
|
params[:id] = @attributes[:id]
|
74
74
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
75
75
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
76
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
77
76
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
78
77
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
79
78
|
raise InvalidParameterError.new("Bad parameter: admin_ids must be an String") if params[:admin_ids] and !params[:admin_ids].is_a?(String)
|
79
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
80
80
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
81
81
|
|
82
82
|
Api.send_request("/groups/#{@attributes[:id]}", :patch, params, @options)
|
@@ -146,33 +146,34 @@ module Files
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# Parameters:
|
149
|
-
# name - string - Group name.
|
150
149
|
# notes - string - Group notes.
|
151
150
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
152
151
|
# admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
152
|
+
# name (required) - string - Group name.
|
153
153
|
def self.create(params = {}, options = {})
|
154
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
155
154
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
156
155
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
157
156
|
raise InvalidParameterError.new("Bad parameter: admin_ids must be an String") if params[:admin_ids] and !params[:admin_ids].is_a?(String)
|
157
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
158
|
+
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
158
159
|
|
159
160
|
response, options = Api.send_request("/groups", :post, params, options)
|
160
161
|
Group.new(response.data, options)
|
161
162
|
end
|
162
163
|
|
163
164
|
# Parameters:
|
164
|
-
# name - string - Group name.
|
165
165
|
# notes - string - Group notes.
|
166
166
|
# user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
167
167
|
# admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
168
|
+
# name - string - Group name.
|
168
169
|
def self.update(id, params = {}, options = {})
|
169
170
|
params ||= {}
|
170
171
|
params[:id] = id
|
171
172
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
172
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
173
173
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
174
174
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
175
175
|
raise InvalidParameterError.new("Bad parameter: admin_ids must be an String") if params[:admin_ids] and !params[:admin_ids].is_a?(String)
|
176
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
176
177
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
177
178
|
|
178
179
|
response, options = Api.send_request("/groups/#{params[:id]}", :patch, params, options)
|
@@ -875,7 +875,7 @@ module Files
|
|
875
875
|
# require_2fa - string - 2FA required setting
|
876
876
|
# time_zone - string - User time zone
|
877
877
|
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
|
878
|
-
# username - string - User's username
|
878
|
+
# username (required) - string - User's username
|
879
879
|
def self.create(params = {}, options = {})
|
880
880
|
raise InvalidParameterError.new("Bad parameter: change_password must be an String") if params[:change_password] and !params[:change_password].is_a?(String)
|
881
881
|
raise InvalidParameterError.new("Bad parameter: change_password_confirmation must be an String") if params[:change_password_confirmation] and !params[:change_password_confirmation].is_a?(String)
|
@@ -903,6 +903,7 @@ module Files
|
|
903
903
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params[:time_zone] and !params[:time_zone].is_a?(String)
|
904
904
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
|
905
905
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
906
|
+
raise MissingParameterError.new("Parameter missing: username") unless params[:username]
|
906
907
|
|
907
908
|
response, options = Api.send_request("/users", :post, params, options)
|
908
909
|
User.new(response.data, options)
|
data/lib/files.com/version.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.483
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|