files.com 1.1.330 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a493bf6166b6fce51ea6774e1189e6aa3724d016bd1e5b7088434004351460ea
4
- data.tar.gz: 6d0190883834427eb145c4307783392c429482fc77264635913c98ac6cc6faf8
3
+ metadata.gz: 984d635563ca89b4137c74426794516fb9177f3276673060cca3f6222ea078ef
4
+ data.tar.gz: 5aa462ecdfce87550c51bf4c3e49f3eaab88d29f2e8194b784e512745cdcfe18
5
5
  SHA512:
6
- metadata.gz: 1eebe136f5db2efb0bb51b4bc34dfd4142d10c65ff2a8a3a34ef6f4b7ba9ca3d5d8015b00cb40c6439ab91ef405426faa13217bd12a619d7ce078bb54c1f3fbb
7
- data.tar.gz: 634eeffa1196510241094dde919f3613babac6663c6b85a55ae68913ad448474340330ab527f93f82917a46d6fd1ab641311bd4ee5dd994c67eadb7625874906
6
+ metadata.gz: 54085ffc42a5207339586a51fea923416c324f8aa59c0479be835da934cc9c8e9339961a3b6eac62772953b08b19f2da4ecd84ef2c22708a554ba31a6558244a
7
+ data.tar.gz: 949a44a8d0e4314f3ee4fca6fe2e84770114fb3bd62e247758693e663917c67fc00ae757bbda5db0ef90d4a5be1427caf1eaf9cf7d3912c7595eae9bf844952c
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.330
1
+ 1.1.332
data/docs/scim_log.md ADDED
@@ -0,0 +1,40 @@
1
+ # ScimLog
2
+
3
+ ## Example ScimLog Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "created_at": "2023-01-01T12:00:00Z",
9
+ "request_path": "/api/scim/Users",
10
+ "request_method": "POST",
11
+ "http_response_code": "200",
12
+ "user_agent": "Okta",
13
+ "request_json": "example",
14
+ "response_json": "example"
15
+ }
16
+ ```
17
+
18
+ * `id` (int64): The unique ID of this SCIM request.
19
+ * `created_at` (string): The date and time when this SCIM request occurred.
20
+ * `request_path` (string): The path portion of the URL requested.
21
+ * `request_method` (string): The HTTP method used for this request.
22
+ * `http_response_code` (string): The HTTP response code returned for this request.
23
+ * `user_agent` (string): The User-Agent header sent with the request.
24
+ * `request_json` (string): The JSON payload sent with the request.
25
+ * `response_json` (string): The JSON payload returned in the response.
26
+
27
+
28
+ ---
29
+
30
+ ## List Scim Logs
31
+
32
+ ```
33
+ Files::ScimLog.list
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ * `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.
39
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
40
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
@@ -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
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class ScimLog
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - The unique ID of this SCIM request.
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ # string - The date and time when this SCIM request occurred.
18
+ def created_at
19
+ @attributes[:created_at]
20
+ end
21
+
22
+ # string - The path portion of the URL requested.
23
+ def request_path
24
+ @attributes[:request_path]
25
+ end
26
+
27
+ # string - The HTTP method used for this request.
28
+ def request_method
29
+ @attributes[:request_method]
30
+ end
31
+
32
+ # string - The HTTP response code returned for this request.
33
+ def http_response_code
34
+ @attributes[:http_response_code]
35
+ end
36
+
37
+ # string - The User-Agent header sent with the request.
38
+ def user_agent
39
+ @attributes[:user_agent]
40
+ end
41
+
42
+ # string - The JSON payload sent with the request.
43
+ def request_json
44
+ @attributes[:request_json]
45
+ end
46
+
47
+ # string - The JSON payload returned in the response.
48
+ def response_json
49
+ @attributes[:response_json]
50
+ end
51
+
52
+ # Parameters:
53
+ # 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.
54
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
55
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
56
+ def self.list(params = {}, options = {})
57
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
58
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
59
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
60
+
61
+ List.new(ScimLog, params) do
62
+ Api.send_request("/scim_logs", :get, params, options)
63
+ end
64
+ end
65
+
66
+ def self.all(params = {}, options = {})
67
+ list(params, options)
68
+ end
69
+ end
70
+ end
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.330"
4
+ VERSION = "1.1.332"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -111,6 +111,7 @@ require "files.com/models/remote_server"
111
111
  require "files.com/models/remote_server_configuration_file"
112
112
  require "files.com/models/request"
113
113
  require "files.com/models/restore"
114
+ require "files.com/models/scim_log"
114
115
  require "files.com/models/session"
115
116
  require "files.com/models/settings_change"
116
117
  require "files.com/models/sftp_action_log"
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.330
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-03 00:00:00.000000000 Z
11
+ date: 2025-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -236,6 +236,7 @@ files:
236
236
  - docs/remote_server_configuration_file.md
237
237
  - docs/request.md
238
238
  - docs/restore.md
239
+ - docs/scim_log.md
239
240
  - docs/session.md
240
241
  - docs/settings_change.md
241
242
  - docs/sftp_action_log.md
@@ -348,6 +349,7 @@ files:
348
349
  - lib/files.com/models/remote_server_configuration_file.rb
349
350
  - lib/files.com/models/request.rb
350
351
  - lib/files.com/models/restore.rb
352
+ - lib/files.com/models/scim_log.rb
351
353
  - lib/files.com/models/session.rb
352
354
  - lib/files.com/models/settings_change.rb
353
355
  - lib/files.com/models/sftp_action_log.rb