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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf7b14baa920ec474639fc7c003a6ed6c599b85088ddf7ffa195d4a94f3073dc
4
- data.tar.gz: 72b202b8260593efd4862227a24784615560d1eb2ff2102fc8f8b9851c1d090e
3
+ metadata.gz: 3206d9392ae3b8e4c267277295eb3a4e70286d257655eb26a3709ee5010e012e
4
+ data.tar.gz: 7c957c3a0e82f02e7f4aefd0245658f4604a9ac63258f611062f74f7f2fd6cc8
5
5
  SHA512:
6
- metadata.gz: 8c6573a01f4432e66a158f3dfdf7d8bd6d25e5775e4557c756c2f7d5538a11f1bbbe42316bcace3ad4925336438dfc412c1b37ca80403edc8597993d3ae95f1d
7
- data.tar.gz: 6b4c3a28e14f269ea2dbde1a4e12977b4f627ea44625d922436ddaf7a847d00a8cf8f347b6af7a8ee8460706f8827ea3842274d22a37d7c00f0b5207eeb18a97
6
+ metadata.gz: d550b2f151a66ede7638409a8597949429a706440d8f75e0b8b8da618d0a5eaeac5bf068b83af7bb0debcb149dfb851aeada94a1de784f75d34517b468f307d9
7
+ data.tar.gz: 79b6dcc68bd3234686904a504bf5d5668ba01aad6620b71d036dd0b9e960a2d9993e48c31ab4c7e19e9b11fdff399627582e4b0c8e930dc006084c120779946d
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.290
1
+ 1.1.291
@@ -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`.
@@ -68,9 +68,9 @@ Files::UserLifecycleRule.create(
68
68
 
69
69
  ### Parameters
70
70
 
71
- * `action` (string): Required - Action to take on inactive users (disable or delete)
72
- * `authentication_method` (string): Required - User authentication method for the rule
73
- * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
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): Required - Action to take on inactive users (disable or delete)
97
- * `authentication_method` (string): Required - User authentication method for the rule
98
- * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
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): Required - Action to take on inactive users (disable or delete)
137
- * `authentication_method` (string): Required - User authentication method for the rule
138
- * `inactivity_days` (int64): Required - Number of days of inactivity before the rule applies
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 (required) - string - Action to take on inactive users (disable or delete)
86
- # authentication_method (required) - string - User authentication method for the rule
87
- # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
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 (required) - string - Action to take on inactive users (disable or delete)
168
- # authentication_method (required) - string - User authentication method for the rule
169
- # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
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 (required) - string - Action to take on inactive users (disable or delete)
188
- # authentication_method (required) - string - User authentication method for the rule
189
- # inactivity_days (required) - int64 - Number of days of inactivity before the rule applies
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.290"
4
+ VERSION = "1.1.291"
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.290
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-02 00:00:00.000000000 Z
11
+ date: 2025-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable