files.com 1.1.291 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3206d9392ae3b8e4c267277295eb3a4e70286d257655eb26a3709ee5010e012e
4
- data.tar.gz: 7c957c3a0e82f02e7f4aefd0245658f4604a9ac63258f611062f74f7f2fd6cc8
3
+ metadata.gz: 85de1b4206fbd902e910a815679fdcfe486441227f3978e76a2587640e973ac3
4
+ data.tar.gz: b4f3ac6c0f3975e6d92f49606601adbffd67c92188428b17e7259825a2cb6d13
5
5
  SHA512:
6
- metadata.gz: d550b2f151a66ede7638409a8597949429a706440d8f75e0b8b8da618d0a5eaeac5bf068b83af7bb0debcb149dfb851aeada94a1de784f75d34517b468f307d9
7
- data.tar.gz: 79b6dcc68bd3234686904a504bf5d5668ba01aad6620b71d036dd0b9e960a2d9993e48c31ab4c7e19e9b11fdff399627582e4b0c8e930dc006084c120779946d
6
+ metadata.gz: 12559973018c1901298f240814e1e35a5f862932963e20837a19cc48b679a12a1135c7a682b679818684fa8f0698debb2df89ba434ab6c3d9574922ac7e08ee3
7
+ data.tar.gz: a8e5ea73a95743c2a7d13f9e54093b5c20972e693052d7af87449835ee13fa303be53315f783414949a88e8485ae7fe135529223c74ec2f45657307c3f8cba77
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.291
1
+ 1.1.292
@@ -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,7 +64,8 @@ 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
 
@@ -74,6 +77,7 @@ Files::UserLifecycleRule.create(
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,7 +90,8 @@ 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
 
@@ -99,6 +104,7 @@ Files::UserLifecycleRule.update(id,
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,7 +132,8 @@ 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
 
@@ -139,6 +146,7 @@ user_lifecycle_rule.update(
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
  ---
@@ -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]
@@ -88,6 +97,7 @@ module Files
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,6 +107,7 @@ 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
112
 
102
113
  Api.send_request("/user_lifecycle_rules/#{@attributes[:id]}", :patch, params, @options)
@@ -167,11 +178,13 @@ module Files
167
178
  # include_site_admins - boolean - Include site admins in the rule
168
179
  # include_folder_admins - boolean - Include folder admins in the rule
169
180
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
181
+ # name - string - User Lifecycle Rule name
170
182
  def self.create(params = {}, options = {})
171
183
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
172
184
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
173
185
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
174
186
  raise InvalidParameterError.new("Bad parameter: user_state must be an String") if params[:user_state] and !params[:user_state].is_a?(String)
187
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
175
188
 
176
189
  response, options = Api.send_request("/user_lifecycle_rules", :post, params, options)
177
190
  UserLifecycleRule.new(response.data, options)
@@ -184,6 +197,7 @@ module Files
184
197
  # include_site_admins - boolean - Include site admins in the rule
185
198
  # include_folder_admins - boolean - Include folder admins in the rule
186
199
  # user_state - string - State of the users to apply the rule to (inactive or disabled)
200
+ # name - string - User Lifecycle Rule name
187
201
  def self.update(id, params = {}, options = {})
188
202
  params ||= {}
189
203
  params[:id] = id
@@ -192,6 +206,7 @@ module Files
192
206
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
193
207
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
194
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)
195
210
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
196
211
 
197
212
  response, options = Api.send_request("/user_lifecycle_rules/#{params[:id]}", :patch, params, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.291"
4
+ VERSION = "1.1.292"
5
5
  end
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.291
4
+ version: 1.1.292
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com