files.com 1.1.331 → 1.1.332
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/user_lifecycle_rule.md +12 -0
- data/lib/files.com/models/user_lifecycle_rule.rb +15 -0
- 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: 984d635563ca89b4137c74426794516fb9177f3276673060cca3f6222ea078ef
|
4
|
+
data.tar.gz: 5aa462ecdfce87550c51bf4c3e49f3eaab88d29f2e8194b784e512745cdcfe18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54085ffc42a5207339586a51fea923416c324f8aa59c0479be835da934cc9c8e9339961a3b6eac62772953b08b19f2da4ecd84ef2c22708a554ba31a6558244a
|
7
|
+
data.tar.gz: 949a44a8d0e4314f3ee4fca6fe2e84770114fb3bd62e247758693e663917c67fc00ae757bbda5db0ef90d4a5be1427caf1eaf9cf7d3912c7595eae9bf844952c
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.332
|
data/docs/user_lifecycle_rule.md
CHANGED
@@ -6,6 +6,11 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"authentication_method": "password",
|
9
|
+
"group_ids": [
|
10
|
+
1,
|
11
|
+
2,
|
12
|
+
3
|
13
|
+
],
|
9
14
|
"inactivity_days": 12,
|
10
15
|
"include_folder_admins": true,
|
11
16
|
"include_site_admins": true,
|
@@ -18,6 +23,7 @@
|
|
18
23
|
|
19
24
|
* `id` (int64): User Lifecycle Rule ID
|
20
25
|
* `authentication_method` (string): User authentication method for the rule
|
26
|
+
* `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
21
27
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
22
28
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
23
29
|
* `include_site_admins` (boolean): Include site admins in the rule
|
@@ -61,6 +67,7 @@ Files::UserLifecycleRule.find(id)
|
|
61
67
|
```
|
62
68
|
Files::UserLifecycleRule.create(
|
63
69
|
authentication_method: "password",
|
70
|
+
group_ids: [1,2,3],
|
64
71
|
inactivity_days: 12,
|
65
72
|
include_site_admins: true,
|
66
73
|
include_folder_admins: true,
|
@@ -73,6 +80,7 @@ Files::UserLifecycleRule.create(
|
|
73
80
|
|
74
81
|
* `action` (string): Action to take on inactive users (disable or delete)
|
75
82
|
* `authentication_method` (string): User authentication method for the rule
|
83
|
+
* `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
76
84
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
77
85
|
* `include_site_admins` (boolean): Include site admins in the rule
|
78
86
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
@@ -87,6 +95,7 @@ Files::UserLifecycleRule.create(
|
|
87
95
|
```
|
88
96
|
Files::UserLifecycleRule.update(id,
|
89
97
|
authentication_method: "password",
|
98
|
+
group_ids: [1,2,3],
|
90
99
|
inactivity_days: 12,
|
91
100
|
include_site_admins: true,
|
92
101
|
include_folder_admins: true,
|
@@ -100,6 +109,7 @@ Files::UserLifecycleRule.update(id,
|
|
100
109
|
* `id` (int64): Required - User Lifecycle Rule ID.
|
101
110
|
* `action` (string): Action to take on inactive users (disable or delete)
|
102
111
|
* `authentication_method` (string): User authentication method for the rule
|
112
|
+
* `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
103
113
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
104
114
|
* `include_site_admins` (boolean): Include site admins in the rule
|
105
115
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
@@ -129,6 +139,7 @@ user_lifecycle_rule = Files::UserLifecycleRule.find(id)
|
|
129
139
|
|
130
140
|
user_lifecycle_rule.update(
|
131
141
|
authentication_method: "password",
|
142
|
+
group_ids: [1,2,3],
|
132
143
|
inactivity_days: 12,
|
133
144
|
include_site_admins: true,
|
134
145
|
include_folder_admins: true,
|
@@ -142,6 +153,7 @@ user_lifecycle_rule.update(
|
|
142
153
|
* `id` (int64): Required - User Lifecycle Rule ID.
|
143
154
|
* `action` (string): Action to take on inactive users (disable or delete)
|
144
155
|
* `authentication_method` (string): User authentication method for the rule
|
156
|
+
* `group_ids` (array(int64)): Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
145
157
|
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
146
158
|
* `include_site_admins` (boolean): Include site admins in the rule
|
147
159
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
@@ -27,6 +27,15 @@ module Files
|
|
27
27
|
@attributes[:authentication_method] = value
|
28
28
|
end
|
29
29
|
|
30
|
+
# array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
31
|
+
def group_ids
|
32
|
+
@attributes[:group_ids]
|
33
|
+
end
|
34
|
+
|
35
|
+
def group_ids=(value)
|
36
|
+
@attributes[:group_ids] = value
|
37
|
+
end
|
38
|
+
|
30
39
|
# int64 - Number of days of inactivity before the rule applies
|
31
40
|
def inactivity_days
|
32
41
|
@attributes[:inactivity_days]
|
@@ -93,6 +102,7 @@ module Files
|
|
93
102
|
# Parameters:
|
94
103
|
# action - string - Action to take on inactive users (disable or delete)
|
95
104
|
# authentication_method - string - User authentication method for the rule
|
105
|
+
# group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
96
106
|
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
97
107
|
# include_site_admins - boolean - Include site admins in the rule
|
98
108
|
# include_folder_admins - boolean - Include folder admins in the rule
|
@@ -105,6 +115,7 @@ module Files
|
|
105
115
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
106
116
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
107
117
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
118
|
+
raise InvalidParameterError.new("Bad parameter: group_ids must be an Array") if params[:group_ids] and !params[:group_ids].is_a?(Array)
|
108
119
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
109
120
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
110
121
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
@@ -174,6 +185,7 @@ module Files
|
|
174
185
|
# Parameters:
|
175
186
|
# action - string - Action to take on inactive users (disable or delete)
|
176
187
|
# authentication_method - string - User authentication method for the rule
|
188
|
+
# group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
177
189
|
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
178
190
|
# include_site_admins - boolean - Include site admins in the rule
|
179
191
|
# include_folder_admins - boolean - Include folder admins in the rule
|
@@ -182,6 +194,7 @@ module Files
|
|
182
194
|
def self.create(params = {}, options = {})
|
183
195
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
184
196
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
197
|
+
raise InvalidParameterError.new("Bad parameter: group_ids must be an Array") if params[:group_ids] and !params[:group_ids].is_a?(Array)
|
185
198
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
186
199
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
187
200
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
@@ -193,6 +206,7 @@ module Files
|
|
193
206
|
# Parameters:
|
194
207
|
# action - string - Action to take on inactive users (disable or delete)
|
195
208
|
# authentication_method - string - User authentication method for the rule
|
209
|
+
# group_ids - array(int64) - Array of Group IDs to which the rule applies. If empty or not set, the rule applies to all users.
|
196
210
|
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
197
211
|
# include_site_admins - boolean - Include site admins in the rule
|
198
212
|
# include_folder_admins - boolean - Include folder admins in the rule
|
@@ -204,6 +218,7 @@ module Files
|
|
204
218
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
205
219
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
206
220
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
221
|
+
raise InvalidParameterError.new("Bad parameter: group_ids must be an Array") if params[:group_ids] and !params[:group_ids].is_a?(Array)
|
207
222
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
208
223
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
209
224
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
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.1.
|
4
|
+
version: 1.1.332
|
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-10-
|
11
|
+
date: 2025-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|