files.com 1.0.245 → 1.0.246

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: 4e51ac49211c7ec86182f0dfa3feefcc1de4063ded9d7a419f70b284c5120bed
4
- data.tar.gz: d0121f52bddbcbda81319f0f9318b7fe93d7ab76d3b59c732ebd0cc2307aac8f
3
+ metadata.gz: 4b313c7e742dc9ab342e44f312e516e62411009f61bae81ac73eca88b9754fdb
4
+ data.tar.gz: ea2ba1027d5a1c1c4bbca808969c228bd13101e13342039cff21ba710b194b0d
5
5
  SHA512:
6
- metadata.gz: 46313c75ba8fa5cadab91119344d1aee3a1e8c9a7fc6b9e4160227a54cf0a58d1ed5a0cdf287874b1a15d2dd04a1a1595fff585e9be253e55de0d72369d69a51
7
- data.tar.gz: a39420c7ac1802edfdc07e7d4d9a92e5b91f36bedb92800f5cbff1418111a3d97c23631c8803bb8385bfde87ed4589f900622f1df62878c1cadc0e710aca33b8
6
+ metadata.gz: 55f3caac0e415faa567dc9fd60a7aa6fff756ed70053adb9434f878fbb43e6ccfc023d05f493607f75f4f39ef4eb79baee2109061734073058338f30fa5d5641
7
+ data.tar.gz: ee2d4869b3f5608e4cf18bde1ccf87daf8f8a4e5c9cc83f583c956a3916a807f18171b5dce2d2fd86a9790f61fdcc9557f902b3825834204812fa7f48ec3ae2a
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.245
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.245
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-02 00:00:00.000000000 Z
11
+ date: 2022-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable