files.com 1.1.330 → 1.1.331
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/scim_log.md +40 -0
- data/lib/files.com/models/scim_log.rb +70 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68d53421ad1a1f6e2463d8160072fbce783744c8b054d03d0a0765d584e88f07
|
4
|
+
data.tar.gz: 2bac6081f72a123c4fd6ae86ac3d564cbbaab89a4ec50a39e83b9cad29c43a56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9a6762a5239ad692124ad5776789b5e3158d13c59a1ef3c8ef147a08177f27e289389d5bd32a8881d9efe8d6bcff341f181c8f2b0721962c95c6511b62f294d
|
7
|
+
data.tar.gz: 9add9afbf40f263354ea7592db8cd05ba4555e4ce4d5aa5f184dfcdf8e63f93b3ba926f262d8d46615aaaba39be4a5800a9c008815327abfb247099f4cb5800f
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.331
|
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`.
|
@@ -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
|
data/lib/files.com/version.rb
CHANGED
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,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.
|
4
|
+
version: 1.1.331
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
@@ -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
|