files.com 1.0.245 → 1.0.246
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/sso_strategy.md +28 -0
- data/lib/files.com/models/sso_strategy.rb +22 -0
- 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: 4b313c7e742dc9ab342e44f312e516e62411009f61bae81ac73eca88b9754fdb
|
4
|
+
data.tar.gz: ea2ba1027d5a1c1c4bbca808969c228bd13101e13342039cff21ba710b194b0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55f3caac0e415faa567dc9fd60a7aa6fff756ed70053adb9434f878fbb43e6ccfc023d05f493607f75f4f39ef4eb79baee2109061734073058338f30fa5d5641
|
7
|
+
data.tar.gz: ee2d4869b3f5608e4cf18bde1ccf87daf8f8a4e5c9cc83f583c956a3916a807f18171b5dce2d2fd86a9790f61fdcc9557f902b3825834204812fa7f48ec3ae2a
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.246
|
data/docs/sso_strategy.md
CHANGED
@@ -122,3 +122,31 @@ Files::SsoStrategy.find(id)
|
|
122
122
|
### Parameters
|
123
123
|
|
124
124
|
* `id` (int64): Required - Sso Strategy ID.
|
125
|
+
|
126
|
+
|
127
|
+
---
|
128
|
+
|
129
|
+
## Synchronize provisioning data with the SSO remote server
|
130
|
+
|
131
|
+
```
|
132
|
+
Files::SsoStrategy.sync(id)
|
133
|
+
```
|
134
|
+
|
135
|
+
### Parameters
|
136
|
+
|
137
|
+
* `id` (int64): Required - Sso Strategy ID.
|
138
|
+
|
139
|
+
|
140
|
+
---
|
141
|
+
|
142
|
+
## Synchronize provisioning data with the SSO remote server
|
143
|
+
|
144
|
+
```
|
145
|
+
sso_strategy = Files::SsoStrategy.list.first
|
146
|
+
|
147
|
+
sso_strategy.sync
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
* `id` (int64): Required - Sso Strategy ID.
|
@@ -224,6 +224,17 @@ module Files
|
|
224
224
|
@attributes[:ldap_username_field]
|
225
225
|
end
|
226
226
|
|
227
|
+
# Synchronize provisioning data with the SSO remote server
|
228
|
+
def sync(params = {})
|
229
|
+
params ||= {}
|
230
|
+
params[:id] = @attributes[:id]
|
231
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
232
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
233
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
234
|
+
|
235
|
+
Api.send_request("/sso_strategies/#{@attributes[:id]}/sync", :post, params, @options)
|
236
|
+
end
|
237
|
+
|
227
238
|
# Parameters:
|
228
239
|
# cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
229
240
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
@@ -255,5 +266,16 @@ module Files
|
|
255
266
|
def self.get(id, params = {}, options = {})
|
256
267
|
find(id, params, options)
|
257
268
|
end
|
269
|
+
|
270
|
+
# Synchronize provisioning data with the SSO remote server
|
271
|
+
def self.sync(id, params = {}, options = {})
|
272
|
+
params ||= {}
|
273
|
+
params[:id] = id
|
274
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
275
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
276
|
+
|
277
|
+
response, _options = Api.send_request("/sso_strategies/#{params[:id]}/sync", :post, params, options)
|
278
|
+
response.data
|
279
|
+
end
|
258
280
|
end
|
259
281
|
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.0.
|
4
|
+
version: 1.0.246
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|