files.com 1.1.284 → 1.1.285

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: b352bf2901921caf5aede20cd4f2821c923ab0f0d2401e2e9d2c9ea7da24ae85
4
+ data.tar.gz: 5e5331ce0145b7aa801a2ccf811671d532867af1c5fb9681658f2ec98d8cc15f
5
5
  SHA512:
6
- metadata.gz: 4b29598141afa51b236bccf8837c80c2e1a3d8e8f2b80050f59a277fd1d64b66c5bb389061a0e624d471fecc0f1336dbaf7710a60614e7e7c6217bdc0ef6a98c
7
- data.tar.gz: 6152b9e09dfcefc7137072e8e24abefdcef0b79a718624ab99d47fa376e568f01d9d67b3e613e368df10973de3087179c60b1fb7e6b382514531bad63fb0559c
6
+ metadata.gz: 1ef906531c60ef7829254a1f4c5c0c70ac9a4876af9f809d2fcb69d677e839db00dfd2c6ed245f2e6287bf48140cbd6b2388f1ef3e48931a1fd9dc01e721669a
7
+ data.tar.gz: 3cc141016bdd1ca0a17dc7f101db68f94415de1489265f38661c28e7f5d94452056940673710d0a5de2989b3ef4773072ecf7dc259124c5356ce4298fc73e06f
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.284
1
+ 1.1.285
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
  ---
@@ -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.285"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.285
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com