fusionauth_client 1.27.2 → 1.29.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3be99d4a422cd75a0161a5fa7a93bcde4c83c28abb43284d43b22e490fadfb7
4
- data.tar.gz: fc5c5fcb80f985800cb8bd81308b4adeff01082bcfacf53603fecb61206e952a
3
+ metadata.gz: cae8af7f739562d92e736f5d9ff6955ced3e3aba66171a26cf35568fa71c0f24
4
+ data.tar.gz: bb6762275a129b25d654e5dba4b384986212a63f55c7103925d5c72d82b5d947
5
5
  SHA512:
6
- metadata.gz: ceb82d839e3bc5e1f1769d59d033fbc92834c6af96331f514eb2b0a8f583b49586167a61530a2fc23abcf000405bb59b87e10db0a83b636ee4bcfd6aab6ded79
7
- data.tar.gz: 20fdd61ccc7b0e029a628b105801fa2546b58f0ac8abf0b260dd916ad2ba805846934a74abe783ee2a018253210f6fda315f870084c3b31def6e18967d5c69a2
6
+ metadata.gz: b73c87ad929af3a314805aecf672cef3047ea468c4300b27fa26022b9e19f35a489f2ecc375e4549115bb1751d51297b354c58ee38e602da888df3ab93ba9882
7
+ data.tar.gz: 5da62fb18c3db0f538d30753e1cd5c87cafe0a9742f87f3dc7c4a4c09f1d84451630b124bad09840f6d712ede762f55cbbe85099fc6a81e936affe2e1433aba8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.27.2)
4
+ fusionauth_client (1.29.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/build.savant CHANGED
@@ -16,7 +16,7 @@
16
16
  savantVersion = "1.0.0"
17
17
 
18
18
  pubVersion = ""
19
- project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.27.2", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.29.1", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  standard()
22
22
  }
@@ -16,16 +16,16 @@
16
16
  <option name="myRootTask">
17
17
  <RakeTaskImpl id="rake">
18
18
  <subtasks>
19
- <RakeTaskImpl description="Build fusionauth_client-1.26.0.gem into the pkg directory" fullCommand="build" id="build" />
19
+ <RakeTaskImpl description="Build fusionauth_client-1.28.1.gem into the pkg directory" fullCommand="build" id="build" />
20
20
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
21
21
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
22
- <RakeTaskImpl description="Build and install fusionauth_client-1.26.0.gem into system gems" fullCommand="install" id="install" />
22
+ <RakeTaskImpl description="Build and install fusionauth_client-1.28.1.gem into system gems" fullCommand="install" id="install" />
23
23
  <RakeTaskImpl id="install">
24
24
  <subtasks>
25
- <RakeTaskImpl description="Build and install fusionauth_client-1.26.0.gem into system gems without network access" fullCommand="install:local" id="local" />
25
+ <RakeTaskImpl description="Build and install fusionauth_client-1.28.1.gem into system gems without network access" fullCommand="install:local" id="local" />
26
26
  </subtasks>
27
27
  </RakeTaskImpl>
28
- <RakeTaskImpl description="Create tag v1.26.0 and build and push fusionauth_client-1.26.0.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
28
+ <RakeTaskImpl description="Create tag v1.28.1 and build and push fusionauth_client-1.28.1.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
29
29
  <RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
30
30
  <RakeTaskImpl description="" fullCommand="default" id="default" />
31
31
  <RakeTaskImpl description="" fullCommand="release" id="release" />
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'fusionauth_client'
7
- spec.version = '1.27.2'
7
+ spec.version = '1.29.1'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -499,6 +499,18 @@ module FusionAuth
499
499
  .go()
500
500
  end
501
501
 
502
+ #
503
+ # Link an external user from a 3rd party identity provider to a FusionAuth user.
504
+ #
505
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to link the FusionAuth user.
506
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
507
+ def create_user_link(request)
508
+ start.uri('/api/identity-provider/link')
509
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
510
+ .post()
511
+ .go()
512
+ end
513
+
502
514
  #
503
515
  # Creates a webhook. You can optionally specify an Id for the webhook, if not provided one will be generated.
504
516
  #
@@ -925,6 +937,22 @@ module FusionAuth
925
937
  .go()
926
938
  end
927
939
 
940
+ #
941
+ # Remove an existing link that has been made from a 3rd party identity provider to a FusionAuth user.
942
+ #
943
+ # @param identity_provider_id [string] The unique Id of the identity provider.
944
+ # @param identity_provider_user_id [string] The unique Id of the user in the 3rd party identity provider to unlink.
945
+ # @param user_id [string] The unique Id of the FusionAuth user to unlink.
946
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
947
+ def delete_user_link(identity_provider_id, identity_provider_user_id, user_id)
948
+ start.uri('/api/identity-provider/link')
949
+ .url_parameter('identityProviderId', identity_provider_id)
950
+ .url_parameter('identityProviderUserId', identity_provider_user_id)
951
+ .url_parameter('userId', user_id)
952
+ .delete()
953
+ .go()
954
+ end
955
+
928
956
  #
929
957
  # Deletes the users with the given ids, or users matching the provided JSON query or queryString.
930
958
  # The order of preference is ids, query and then queryString, it is recommended to only provide one of the three for the request.
@@ -1801,6 +1829,22 @@ module FusionAuth
1801
1829
  .go()
1802
1830
  end
1803
1831
 
1832
+ #
1833
+ # Requests Elasticsearch to delete and rebuild the index for FusionAuth users or entities. Be very careful when running this request as it will
1834
+ # increase the CPU and I/O load on your database until the operation completes. Generally speaking you do not ever need to run this operation unless
1835
+ # instructed by FusionAuth support, or if you are migrating a database another system and you are not brining along the Elasticsearch index.
1836
+ #
1837
+ # You have been warned.
1838
+ #
1839
+ # @param request [OpenStruct, Hash] The request that contains the index name.
1840
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1841
+ def reindex(request)
1842
+ start.uri('/api/system/reindex')
1843
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1844
+ .post()
1845
+ .go()
1846
+ end
1847
+
1804
1848
  #
1805
1849
  # Removes a user from the family with the given id.
1806
1850
  #
@@ -2617,6 +2661,17 @@ module FusionAuth
2617
2661
  .go()
2618
2662
  end
2619
2663
 
2664
+ #
2665
+ # Retrieve the status of a re-index process. A status code of 200 indicates the re-index is in progress, a status code of
2666
+ # 404 indicates no re-index is in progress.
2667
+ #
2668
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2669
+ def retrieve_reindex_status()
2670
+ start.uri('/api/system/reindex')
2671
+ .get()
2672
+ .go()
2673
+ end
2674
+
2620
2675
  #
2621
2676
  # Retrieves the system configuration.
2622
2677
  #
@@ -2862,6 +2917,36 @@ module FusionAuth
2862
2917
  .go()
2863
2918
  end
2864
2919
 
2920
+ #
2921
+ # Retrieve a single Identity Provider user (link).
2922
+ #
2923
+ # @param identity_provider_id [string] The unique Id of the identity provider.
2924
+ # @param identity_provider_user_id [string] The unique Id of the user in the 3rd party identity provider.
2925
+ # @param user_id [string] The unique Id of the FusionAuth user.
2926
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2927
+ def retrieve_user_link(identity_provider_id, identity_provider_user_id, user_id)
2928
+ start.uri('/api/identity-provider/link')
2929
+ .url_parameter('identityProviderId', identity_provider_id)
2930
+ .url_parameter('identityProviderUserId', identity_provider_user_id)
2931
+ .url_parameter('userId', user_id)
2932
+ .get()
2933
+ .go()
2934
+ end
2935
+
2936
+ #
2937
+ # Retrieve all Identity Provider users (links) for the user. Specify the optional identityProviderId to retrieve links for a particular IdP.
2938
+ #
2939
+ # @param identity_provider_id [string] (Optional) The unique Id of the identity provider. Specify this value to reduce the links returned to those for a particular IdP.
2940
+ # @param user_id [string] The unique Id of the user.
2941
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2942
+ def retrieve_user_links_by_user_id(identity_provider_id, user_id)
2943
+ start.uri('/api/identity-provider/link')
2944
+ .url_parameter('identityProviderId', identity_provider_id)
2945
+ .url_parameter('userId', user_id)
2946
+ .get()
2947
+ .go()
2948
+ end
2949
+
2865
2950
  #
2866
2951
  # Retrieves the login report between the two instants for a particular user by Id. If you specify an application id, it will only return the
2867
2952
  # login counts for that application.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.2
4
+ version: 1.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-05-10 00:00:00.000000000 Z
12
+ date: 2021-07-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This library contains the Ruby client library that helps you connect
15
15
  your application to FusionAuth.