files.com 1.1.290 → 1.1.291
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_cipher_use.md +6 -0
- data/docs/user_lifecycle_rule.md +9 -9
- data/lib/files.com/models/user_cipher_use.rb +12 -0
- data/lib/files.com/models/user_lifecycle_rule.rb +9 -18
- 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: 3206d9392ae3b8e4c267277295eb3a4e70286d257655eb26a3709ee5010e012e
|
4
|
+
data.tar.gz: 7c957c3a0e82f02e7f4aefd0245658f4604a9ac63258f611062f74f7f2fd6cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d550b2f151a66ede7638409a8597949429a706440d8f75e0b8b8da618d0a5eaeac5bf068b83af7bb0debcb149dfb851aeada94a1de784f75d34517b468f307d9
|
7
|
+
data.tar.gz: 79b6dcc68bd3234686904a504bf5d5668ba01aad6620b71d036dd0b9e960a2d9993e48c31ab4c7e19e9b11fdff399627582e4b0c8e930dc006084c120779946d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.291
|
data/docs/user_cipher_use.md
CHANGED
@@ -38,3 +38,9 @@ Files::UserCipherUse.list(
|
|
38
38
|
* `user_id` (int64): User ID. If provided, will return uses for this user.
|
39
39
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
40
40
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
41
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `updated_at`.
|
42
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `insecure` and `updated_at`. Valid field combinations are `[ insecure, updated_at ]`.
|
43
|
+
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `updated_at`.
|
44
|
+
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `updated_at`.
|
45
|
+
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `updated_at`.
|
46
|
+
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `updated_at`.
|
data/docs/user_lifecycle_rule.md
CHANGED
@@ -68,9 +68,9 @@ Files::UserLifecycleRule.create(
|
|
68
68
|
|
69
69
|
### Parameters
|
70
70
|
|
71
|
-
* `action` (string):
|
72
|
-
* `authentication_method` (string):
|
73
|
-
* `inactivity_days` (int64):
|
71
|
+
* `action` (string): Action to take on inactive users (disable or delete)
|
72
|
+
* `authentication_method` (string): User authentication method for the rule
|
73
|
+
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
74
74
|
* `include_site_admins` (boolean): Include site admins in the rule
|
75
75
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
76
76
|
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
|
@@ -93,9 +93,9 @@ Files::UserLifecycleRule.update(id,
|
|
93
93
|
### Parameters
|
94
94
|
|
95
95
|
* `id` (int64): Required - User Lifecycle Rule ID.
|
96
|
-
* `action` (string):
|
97
|
-
* `authentication_method` (string):
|
98
|
-
* `inactivity_days` (int64):
|
96
|
+
* `action` (string): Action to take on inactive users (disable or delete)
|
97
|
+
* `authentication_method` (string): User authentication method for the rule
|
98
|
+
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
99
99
|
* `include_site_admins` (boolean): Include site admins in the rule
|
100
100
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
101
101
|
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
|
@@ -133,9 +133,9 @@ user_lifecycle_rule.update(
|
|
133
133
|
### Parameters
|
134
134
|
|
135
135
|
* `id` (int64): Required - User Lifecycle Rule ID.
|
136
|
-
* `action` (string):
|
137
|
-
* `authentication_method` (string):
|
138
|
-
* `inactivity_days` (int64):
|
136
|
+
* `action` (string): Action to take on inactive users (disable or delete)
|
137
|
+
* `authentication_method` (string): User authentication method for the rule
|
138
|
+
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
139
139
|
* `include_site_admins` (boolean): Include site admins in the rule
|
140
140
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
141
141
|
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
|
@@ -48,10 +48,22 @@ module Files
|
|
48
48
|
# user_id - int64 - User ID. If provided, will return uses for this user.
|
49
49
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
50
50
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
51
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `updated_at`.
|
52
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `insecure` and `updated_at`. Valid field combinations are `[ insecure, updated_at ]`.
|
53
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `updated_at`.
|
54
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `updated_at`.
|
55
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `updated_at`.
|
56
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `updated_at`.
|
51
57
|
def self.list(params = {}, options = {})
|
52
58
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
53
59
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
54
60
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
61
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
62
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
63
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
64
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
65
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
66
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
55
67
|
|
56
68
|
List.new(UserCipherUse, params) do
|
57
69
|
Api.send_request("/user_cipher_uses", :get, params, options)
|
@@ -82,9 +82,9 @@ module Files
|
|
82
82
|
end
|
83
83
|
|
84
84
|
# Parameters:
|
85
|
-
# action
|
86
|
-
# authentication_method
|
87
|
-
# inactivity_days
|
85
|
+
# action - string - Action to take on inactive users (disable or delete)
|
86
|
+
# authentication_method - string - User authentication method for the rule
|
87
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
88
88
|
# include_site_admins - boolean - Include site admins in the rule
|
89
89
|
# include_folder_admins - boolean - Include folder admins in the rule
|
90
90
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
@@ -98,9 +98,6 @@ module Files
|
|
98
98
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
99
99
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
100
100
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
101
|
-
raise MissingParameterError.new("Parameter missing: action") unless params[:action]
|
102
|
-
raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
|
103
|
-
raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
|
104
101
|
|
105
102
|
Api.send_request("/user_lifecycle_rules/#{@attributes[:id]}", :patch, params, @options)
|
106
103
|
end
|
@@ -164,9 +161,9 @@ module Files
|
|
164
161
|
end
|
165
162
|
|
166
163
|
# Parameters:
|
167
|
-
# action
|
168
|
-
# authentication_method
|
169
|
-
# inactivity_days
|
164
|
+
# action - string - Action to take on inactive users (disable or delete)
|
165
|
+
# authentication_method - string - User authentication method for the rule
|
166
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
170
167
|
# include_site_admins - boolean - Include site admins in the rule
|
171
168
|
# include_folder_admins - boolean - Include folder admins in the rule
|
172
169
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
@@ -175,18 +172,15 @@ module Files
|
|
175
172
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
176
173
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
177
174
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
178
|
-
raise MissingParameterError.new("Parameter missing: action") unless params[:action]
|
179
|
-
raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
|
180
|
-
raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
|
181
175
|
|
182
176
|
response, options = Api.send_request("/user_lifecycle_rules", :post, params, options)
|
183
177
|
UserLifecycleRule.new(response.data, options)
|
184
178
|
end
|
185
179
|
|
186
180
|
# Parameters:
|
187
|
-
# action
|
188
|
-
# authentication_method
|
189
|
-
# inactivity_days
|
181
|
+
# action - string - Action to take on inactive users (disable or delete)
|
182
|
+
# authentication_method - string - User authentication method for the rule
|
183
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
190
184
|
# include_site_admins - boolean - Include site admins in the rule
|
191
185
|
# include_folder_admins - boolean - Include folder admins in the rule
|
192
186
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
@@ -199,9 +193,6 @@ module Files
|
|
199
193
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
200
194
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
201
195
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
202
|
-
raise MissingParameterError.new("Parameter missing: action") unless params[:action]
|
203
|
-
raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
|
204
|
-
raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
|
205
196
|
|
206
197
|
response, options = Api.send_request("/user_lifecycle_rules/#{params[:id]}", :patch, params, options)
|
207
198
|
UserLifecycleRule.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.1.
|
4
|
+
version: 1.1.291
|
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-07-
|
11
|
+
date: 2025-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|