files.com 1.1.284 → 1.1.286

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a4ce408d8a2136aacd899cd0d477615641819d42006d9860696ccf85b2b5788
4
- data.tar.gz: 7c28c2894ea72d3aadc811673bd7a2f1b8e13404426f83767d6ffc80a68966ce
3
+ metadata.gz: 6256043fdd8f657e9f09a158c9a9e1313ad29479b059d0f38ef24ecb2f79a5ab
4
+ data.tar.gz: 8e528d20b5c6170136557e1c042e4406c256f9a81ebe85b3b25386f074f041d0
5
5
  SHA512:
6
- metadata.gz: 4b29598141afa51b236bccf8837c80c2e1a3d8e8f2b80050f59a277fd1d64b66c5bb389061a0e624d471fecc0f1336dbaf7710a60614e7e7c6217bdc0ef6a98c
7
- data.tar.gz: 6152b9e09dfcefc7137072e8e24abefdcef0b79a718624ab99d47fa376e568f01d9d67b3e613e368df10973de3087179c60b1fb7e6b382514531bad63fb0559c
6
+ metadata.gz: a85488e1f8971b255ee9b098e4f0fcb6ddd59830f9c103f874cf7f4913e79871b3c30a874caa007ff6c647092912895b0cf4d50fd6441c996401d3b9b3827e56
7
+ data.tar.gz: 9ffe27cf757896a09f5a952d5fe93b5177734ae46d0fca92533e28df6d180b7eafc8b72fa2551f6ac59c4dbf8d650ac8e09a08846875d8b852e7d934c847dce6
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.284
1
+ 1.1.286
data/docs/behavior.md CHANGED
@@ -45,7 +45,6 @@ Files::Behavior.list
45
45
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
46
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
47
47
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
48
- * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
49
48
 
50
49
 
51
50
  ---
@@ -77,7 +76,6 @@ Files::Behavior.list_for(path,
77
76
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
78
77
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
79
78
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
80
- * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
81
79
  * `path` (string): Required - Path to operate on.
82
80
  * `ancestor_behaviors` (boolean): If `true`, behaviors above this path are shown.
83
81
 
data/docs/site.md CHANGED
@@ -60,7 +60,6 @@
60
60
  "custom_namespace": true,
61
61
  "dav_enabled": true,
62
62
  "dav_user_root_enabled": true,
63
- "days_before_deleting_disabled_users": 30,
64
63
  "days_to_retain_backups": 30,
65
64
  "document_edits_in_bundle_allowed": true,
66
65
  "default_time_zone": "Pacific Time (US & Canada)",
@@ -352,7 +351,6 @@
352
351
  * `custom_namespace` (boolean): Is this site using a custom namespace for users?
353
352
  * `dav_enabled` (boolean): Is WebDAV enabled?
354
353
  * `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
355
- * `days_before_deleting_disabled_users` (int64): Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
356
354
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
357
355
  * `document_edits_in_bundle_allowed` (boolean): If true, allow public viewers of Bundles with full permissions to use document editing integrations.
358
356
  * `default_time_zone` (string): Site default time zone
@@ -558,7 +556,6 @@ Files::Site.update(
558
556
  allowed_countries: "US,DE",
559
557
  allowed_ips: "example",
560
558
  disallowed_countries: "US,DE",
561
- days_before_deleting_disabled_users: 1,
562
559
  days_to_retain_backups: 1,
563
560
  max_prior_passwords: 1,
564
561
  password_validity_days: 1,
@@ -718,7 +715,6 @@ Files::Site.update(
718
715
  * `allowed_countries` (string): Comma separated list of allowed Country codes
719
716
  * `allowed_ips` (string): List of allowed IP addresses
720
717
  * `disallowed_countries` (string): Comma separated list of disallowed Country codes
721
- * `days_before_deleting_disabled_users` (int64): Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
722
718
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
723
719
  * `max_prior_passwords` (int64): Number of prior passwords to disallow
724
720
  * `password_validity_days` (int64): Number of days password is valid
@@ -10,6 +10,7 @@
10
10
  "include_folder_admins": true,
11
11
  "include_site_admins": true,
12
12
  "action": "disable",
13
+ "user_state": "inactive",
13
14
  "site_id": 1
14
15
  }
15
16
  ```
@@ -20,6 +21,7 @@
20
21
  * `include_folder_admins` (boolean): Include folder admins in the rule
21
22
  * `include_site_admins` (boolean): Include site admins in the rule
22
23
  * `action` (string): Action to take on inactive users (disable or delete)
24
+ * `user_state` (string): State of the users to apply the rule to (inactive or disabled)
23
25
  * `site_id` (int64): Site ID
24
26
 
25
27
 
@@ -59,7 +61,8 @@ Files::UserLifecycleRule.create(
59
61
  authentication_method: "password",
60
62
  inactivity_days: 12,
61
63
  include_site_admins: true,
62
- include_folder_admins: true
64
+ include_folder_admins: true,
65
+ user_state: "inactive"
63
66
  )
64
67
  ```
65
68
 
@@ -70,6 +73,7 @@ Files::UserLifecycleRule.create(
70
73
  * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
71
74
  * `include_site_admins` (boolean): Include site admins in the rule
72
75
  * `include_folder_admins` (boolean): Include folder admins in the rule
76
+ * `user_state` (string): State of the users to apply the rule to (inactive or disabled)
73
77
 
74
78
 
75
79
  ---
@@ -81,7 +85,8 @@ Files::UserLifecycleRule.update(id,
81
85
  authentication_method: "password",
82
86
  inactivity_days: 12,
83
87
  include_site_admins: true,
84
- include_folder_admins: true
88
+ include_folder_admins: true,
89
+ user_state: "inactive"
85
90
  )
86
91
  ```
87
92
 
@@ -93,6 +98,7 @@ Files::UserLifecycleRule.update(id,
93
98
  * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
94
99
  * `include_site_admins` (boolean): Include site admins in the rule
95
100
  * `include_folder_admins` (boolean): Include folder admins in the rule
101
+ * `user_state` (string): State of the users to apply the rule to (inactive or disabled)
96
102
 
97
103
 
98
104
  ---
@@ -119,7 +125,8 @@ user_lifecycle_rule.update(
119
125
  authentication_method: "password",
120
126
  inactivity_days: 12,
121
127
  include_site_admins: true,
122
- include_folder_admins: true
128
+ include_folder_admins: true,
129
+ user_state: "inactive"
123
130
  )
124
131
  ```
125
132
 
@@ -131,6 +138,7 @@ user_lifecycle_rule.update(
131
138
  * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
132
139
  * `include_site_admins` (boolean): Include site admins in the rule
133
140
  * `include_folder_admins` (boolean): Include folder admins in the rule
141
+ * `user_state` (string): State of the users to apply the rule to (inactive or disabled)
134
142
 
135
143
 
136
144
  ---
@@ -160,13 +160,11 @@ module Files
160
160
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
161
161
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
162
162
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
163
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
164
163
  def self.list(params = {}, options = {})
165
164
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
166
165
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
167
166
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
168
167
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
169
- raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
170
168
 
171
169
  List.new(Behavior, params) do
172
170
  Api.send_request("/behaviors", :get, params, options)
@@ -198,7 +196,6 @@ module Files
198
196
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
199
197
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
200
198
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
201
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
202
199
  # path (required) - string - Path to operate on.
203
200
  # ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
204
201
  def self.list_for(path, params = {}, options = {})
@@ -208,7 +205,6 @@ module Files
208
205
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
209
206
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
210
207
  raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
211
- raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
212
208
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
213
209
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
214
210
 
@@ -244,11 +244,6 @@ module Files
244
244
  @attributes[:dav_user_root_enabled]
245
245
  end
246
246
 
247
- # int64 - Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
248
- def days_before_deleting_disabled_users
249
- @attributes[:days_before_deleting_disabled_users]
250
- end
251
-
252
247
  # int64 - Number of days to keep deleted files
253
248
  def days_to_retain_backups
254
249
  @attributes[:days_to_retain_backups]
@@ -932,7 +927,6 @@ module Files
932
927
  # allowed_countries - string - Comma separated list of allowed Country codes
933
928
  # allowed_ips - string - List of allowed IP addresses
934
929
  # disallowed_countries - string - Comma separated list of disallowed Country codes
935
- # days_before_deleting_disabled_users - int64 - Number of days to keep disabled users before deleting them. If set to 0, disabled users will not be deleted.
936
930
  # days_to_retain_backups - int64 - Number of days to keep deleted files
937
931
  # max_prior_passwords - int64 - Number of prior passwords to disallow
938
932
  # password_validity_days - int64 - Number of days password is valid
@@ -1067,7 +1061,6 @@ module Files
1067
1061
  raise InvalidParameterError.new("Bad parameter: allowed_countries must be an String") if params[:allowed_countries] and !params[:allowed_countries].is_a?(String)
1068
1062
  raise InvalidParameterError.new("Bad parameter: allowed_ips must be an String") if params[:allowed_ips] and !params[:allowed_ips].is_a?(String)
1069
1063
  raise InvalidParameterError.new("Bad parameter: disallowed_countries must be an String") if params[:disallowed_countries] and !params[:disallowed_countries].is_a?(String)
1070
- raise InvalidParameterError.new("Bad parameter: days_before_deleting_disabled_users must be an Integer") if params[:days_before_deleting_disabled_users] and !params[:days_before_deleting_disabled_users].is_a?(Integer)
1071
1064
  raise InvalidParameterError.new("Bad parameter: days_to_retain_backups must be an Integer") if params[:days_to_retain_backups] and !params[:days_to_retain_backups].is_a?(Integer)
1072
1065
  raise InvalidParameterError.new("Bad parameter: max_prior_passwords must be an Integer") if params[:max_prior_passwords] and !params[:max_prior_passwords].is_a?(Integer)
1073
1066
  raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params[:password_validity_days] and !params[:password_validity_days].is_a?(Integer)
@@ -63,6 +63,15 @@ module Files
63
63
  @attributes[:action] = value
64
64
  end
65
65
 
66
+ # string - State of the users to apply the rule to (inactive or disabled)
67
+ def user_state
68
+ @attributes[:user_state]
69
+ end
70
+
71
+ def user_state=(value)
72
+ @attributes[:user_state] = value
73
+ end
74
+
66
75
  # int64 - Site ID
67
76
  def site_id
68
77
  @attributes[:site_id]
@@ -78,6 +87,7 @@ module Files
78
87
  # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
79
88
  # include_site_admins - boolean - Include site admins in the rule
80
89
  # include_folder_admins - boolean - Include folder admins in the rule
90
+ # user_state - string - State of the users to apply the rule to (inactive or disabled)
81
91
  def update(params = {})
82
92
  params ||= {}
83
93
  params[:id] = @attributes[:id]
@@ -86,6 +96,7 @@ module Files
86
96
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
87
97
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
88
98
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
99
+ raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
89
100
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
90
101
  raise MissingParameterError.new("Parameter missing: action") unless params[:action]
91
102
  raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
@@ -158,10 +169,12 @@ module Files
158
169
  # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
159
170
  # include_site_admins - boolean - Include site admins in the rule
160
171
  # include_folder_admins - boolean - Include folder admins in the rule
172
+ # user_state - string - State of the users to apply the rule to (inactive or disabled)
161
173
  def self.create(params = {}, options = {})
162
174
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
163
175
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
164
176
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
177
+ raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
165
178
  raise MissingParameterError.new("Parameter missing: action") unless params[:action]
166
179
  raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
167
180
  raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
@@ -176,6 +189,7 @@ module Files
176
189
  # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
177
190
  # include_site_admins - boolean - Include site admins in the rule
178
191
  # include_folder_admins - boolean - Include folder admins in the rule
192
+ # user_state - string - State of the users to apply the rule to (inactive or disabled)
179
193
  def self.update(id, params = {}, options = {})
180
194
  params ||= {}
181
195
  params[:id] = id
@@ -183,6 +197,7 @@ module Files
183
197
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
184
198
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
185
199
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
200
+ raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
186
201
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
187
202
  raise MissingParameterError.new("Parameter missing: action") unless params[:action]
188
203
  raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.284"
4
+ VERSION = "1.1.286"
5
5
  end
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.284
4
+ version: 1.1.286
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-26 00:00:00.000000000 Z
11
+ date: 2025-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable