files.com 1.1.290 → 1.1.292
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 +20 -12
- data/lib/files.com/models/user_cipher_use.rb +12 -0
- data/lib/files.com/models/user_lifecycle_rule.rb +24 -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: 85de1b4206fbd902e910a815679fdcfe486441227f3978e76a2587640e973ac3
|
4
|
+
data.tar.gz: b4f3ac6c0f3975e6d92f49606601adbffd67c92188428b17e7259825a2cb6d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12559973018c1901298f240814e1e35a5f862932963e20837a19cc48b679a12a1135c7a682b679818684fa8f0698debb2df89ba434ab6c3d9574922ac7e08ee3
|
7
|
+
data.tar.gz: a8e5ea73a95743c2a7d13f9e54093b5c20972e693052d7af87449835ee13fa303be53315f783414949a88e8485ae7fe135529223c74ec2f45657307c3f8cba77
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.292
|
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
@@ -11,6 +11,7 @@
|
|
11
11
|
"include_site_admins": true,
|
12
12
|
"action": "disable",
|
13
13
|
"user_state": "inactive",
|
14
|
+
"name": "password specific rules",
|
14
15
|
"site_id": 1
|
15
16
|
}
|
16
17
|
```
|
@@ -22,6 +23,7 @@
|
|
22
23
|
* `include_site_admins` (boolean): Include site admins in the rule
|
23
24
|
* `action` (string): Action to take on inactive users (disable or delete)
|
24
25
|
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
|
26
|
+
* `name` (string): User Lifecycle Rule name
|
25
27
|
* `site_id` (int64): Site ID
|
26
28
|
|
27
29
|
|
@@ -62,18 +64,20 @@ Files::UserLifecycleRule.create(
|
|
62
64
|
inactivity_days: 12,
|
63
65
|
include_site_admins: true,
|
64
66
|
include_folder_admins: true,
|
65
|
-
user_state: "inactive"
|
67
|
+
user_state: "inactive",
|
68
|
+
name: "password specific rules"
|
66
69
|
)
|
67
70
|
```
|
68
71
|
|
69
72
|
### Parameters
|
70
73
|
|
71
|
-
* `action` (string):
|
72
|
-
* `authentication_method` (string):
|
73
|
-
* `inactivity_days` (int64):
|
74
|
+
* `action` (string): Action to take on inactive users (disable or delete)
|
75
|
+
* `authentication_method` (string): User authentication method for the rule
|
76
|
+
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
74
77
|
* `include_site_admins` (boolean): Include site admins in the rule
|
75
78
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
76
79
|
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
|
80
|
+
* `name` (string): User Lifecycle Rule name
|
77
81
|
|
78
82
|
|
79
83
|
---
|
@@ -86,19 +90,21 @@ Files::UserLifecycleRule.update(id,
|
|
86
90
|
inactivity_days: 12,
|
87
91
|
include_site_admins: true,
|
88
92
|
include_folder_admins: true,
|
89
|
-
user_state: "inactive"
|
93
|
+
user_state: "inactive",
|
94
|
+
name: "password specific rules"
|
90
95
|
)
|
91
96
|
```
|
92
97
|
|
93
98
|
### Parameters
|
94
99
|
|
95
100
|
* `id` (int64): Required - User Lifecycle Rule ID.
|
96
|
-
* `action` (string):
|
97
|
-
* `authentication_method` (string):
|
98
|
-
* `inactivity_days` (int64):
|
101
|
+
* `action` (string): Action to take on inactive users (disable or delete)
|
102
|
+
* `authentication_method` (string): User authentication method for the rule
|
103
|
+
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
99
104
|
* `include_site_admins` (boolean): Include site admins in the rule
|
100
105
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
101
106
|
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
|
107
|
+
* `name` (string): User Lifecycle Rule name
|
102
108
|
|
103
109
|
|
104
110
|
---
|
@@ -126,19 +132,21 @@ user_lifecycle_rule.update(
|
|
126
132
|
inactivity_days: 12,
|
127
133
|
include_site_admins: true,
|
128
134
|
include_folder_admins: true,
|
129
|
-
user_state: "inactive"
|
135
|
+
user_state: "inactive",
|
136
|
+
name: "password specific rules"
|
130
137
|
)
|
131
138
|
```
|
132
139
|
|
133
140
|
### Parameters
|
134
141
|
|
135
142
|
* `id` (int64): Required - User Lifecycle Rule ID.
|
136
|
-
* `action` (string):
|
137
|
-
* `authentication_method` (string):
|
138
|
-
* `inactivity_days` (int64):
|
143
|
+
* `action` (string): Action to take on inactive users (disable or delete)
|
144
|
+
* `authentication_method` (string): User authentication method for the rule
|
145
|
+
* `inactivity_days` (int64): Number of days of inactivity before the rule applies
|
139
146
|
* `include_site_admins` (boolean): Include site admins in the rule
|
140
147
|
* `include_folder_admins` (boolean): Include folder admins in the rule
|
141
148
|
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
|
149
|
+
* `name` (string): User Lifecycle Rule name
|
142
150
|
|
143
151
|
|
144
152
|
---
|
@@ -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)
|
@@ -72,6 +72,15 @@ module Files
|
|
72
72
|
@attributes[:user_state] = value
|
73
73
|
end
|
74
74
|
|
75
|
+
# string - User Lifecycle Rule name
|
76
|
+
def name
|
77
|
+
@attributes[:name]
|
78
|
+
end
|
79
|
+
|
80
|
+
def name=(value)
|
81
|
+
@attributes[:name] = value
|
82
|
+
end
|
83
|
+
|
75
84
|
# int64 - Site ID
|
76
85
|
def site_id
|
77
86
|
@attributes[:site_id]
|
@@ -82,12 +91,13 @@ module Files
|
|
82
91
|
end
|
83
92
|
|
84
93
|
# Parameters:
|
85
|
-
# action
|
86
|
-
# authentication_method
|
87
|
-
# inactivity_days
|
94
|
+
# action - string - Action to take on inactive users (disable or delete)
|
95
|
+
# authentication_method - string - User authentication method for the rule
|
96
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
88
97
|
# include_site_admins - boolean - Include site admins in the rule
|
89
98
|
# include_folder_admins - boolean - Include folder admins in the rule
|
90
99
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
100
|
+
# name - string - User Lifecycle Rule name
|
91
101
|
def update(params = {})
|
92
102
|
params ||= {}
|
93
103
|
params[:id] = @attributes[:id]
|
@@ -97,10 +107,8 @@ module Files
|
|
97
107
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
98
108
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
99
109
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
110
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
100
111
|
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
112
|
|
105
113
|
Api.send_request("/user_lifecycle_rules/#{@attributes[:id]}", :patch, params, @options)
|
106
114
|
end
|
@@ -164,32 +172,32 @@ module Files
|
|
164
172
|
end
|
165
173
|
|
166
174
|
# Parameters:
|
167
|
-
# action
|
168
|
-
# authentication_method
|
169
|
-
# inactivity_days
|
175
|
+
# action - string - Action to take on inactive users (disable or delete)
|
176
|
+
# authentication_method - string - User authentication method for the rule
|
177
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
170
178
|
# include_site_admins - boolean - Include site admins in the rule
|
171
179
|
# include_folder_admins - boolean - Include folder admins in the rule
|
172
180
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
181
|
+
# name - string - User Lifecycle Rule name
|
173
182
|
def self.create(params = {}, options = {})
|
174
183
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
175
184
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
176
185
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
177
186
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
178
|
-
raise
|
179
|
-
raise MissingParameterError.new("Parameter missing: authentication_method") unless params[:authentication_method]
|
180
|
-
raise MissingParameterError.new("Parameter missing: inactivity_days") unless params[:inactivity_days]
|
187
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
181
188
|
|
182
189
|
response, options = Api.send_request("/user_lifecycle_rules", :post, params, options)
|
183
190
|
UserLifecycleRule.new(response.data, options)
|
184
191
|
end
|
185
192
|
|
186
193
|
# Parameters:
|
187
|
-
# action
|
188
|
-
# authentication_method
|
189
|
-
# inactivity_days
|
194
|
+
# action - string - Action to take on inactive users (disable or delete)
|
195
|
+
# authentication_method - string - User authentication method for the rule
|
196
|
+
# inactivity_days - int64 - Number of days of inactivity before the rule applies
|
190
197
|
# include_site_admins - boolean - Include site admins in the rule
|
191
198
|
# include_folder_admins - boolean - Include folder admins in the rule
|
192
199
|
# user_state - string - State of the users to apply the rule to (inactive or disabled)
|
200
|
+
# name - string - User Lifecycle Rule name
|
193
201
|
def self.update(id, params = {}, options = {})
|
194
202
|
params ||= {}
|
195
203
|
params[:id] = id
|
@@ -198,10 +206,8 @@ module Files
|
|
198
206
|
raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
|
199
207
|
raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
|
200
208
|
raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
|
209
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
201
210
|
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
211
|
|
206
212
|
response, options = Api.send_request("/user_lifecycle_rules/#{params[:id]}", :patch, params, options)
|
207
213
|
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.292
|
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
|