sticapi_client 3.3.5 → 3.3.6

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: fb37d29cc393e3932afa15d45c1ce0690de120426a9c42caa283d4c2dfd40b27
4
- data.tar.gz: e0d9e2fa0b5ef1a9f744d6d9d44009ceff3ff3db862cff86706baa178963234e
3
+ metadata.gz: c01c3e3245860df256d80ba83badbaf84b709d636a549255904eb2c9842e8842
4
+ data.tar.gz: '08b89b55fedb21eb5512150e2cb169e87e28782a26491d81764601d44d06fa33'
5
5
  SHA512:
6
- metadata.gz: 8827b122c6c38f89dfdd8744160bd2f16ecf52ffc1196563742caa25d1a9995ce290fcb14861c9430661a5e62d65fbbd9dbae0ca2a85c89acbde99de6de596fc
7
- data.tar.gz: 3b225149baa581e5ef893903ecb38c019534bd79e07ae872a1968e1e463a33a9abe90cfc8d309c31bad01594c86ba97f971f80e82be883651b7187168fea71b6
6
+ metadata.gz: 8ac017e27301211be27f3727133c501176241426dd6275a8f2816f24b451201de2175dcb0b13dbb2ab3c0c2c16adb24dff6328fd5d13e62935b0ec5b9fc0fffe
7
+ data.tar.gz: e147ce78cf3fd4916716b033c493f5a955ce5965359ed14e0d8359822b5d8ae97b3c499057e5748911b6400381e334367abfd811e780fa2291684885f31cc5b6
@@ -52,6 +52,22 @@ module SticapiClient
52
52
  Sticapi::SticapiClient.instance.sticapi_request("/users/disable_user", options)
53
53
  end
54
54
 
55
+ # Bloqueia o usuário no AD
56
+ # Parâmetro value [String] username
57
+ # Retorno [JSON] Sucesso ou falha ao bloqueiar o usuário
58
+ # user: { string }
59
+ def self.block_user_ad(options = {})
60
+ Sticapi::SticapiClient.instance.sticapi_request("/users/block_user_ad", options)
61
+ end
62
+
63
+ # Desbloqueia o usuário no AD
64
+ # Parâmetro value [String] username
65
+ # Retorno [JSON] Sucesso ou falha ao desbloqueiar o usuário
66
+ # user: { string }
67
+ def self.unblock_user_ad(options = {})
68
+ Sticapi::SticapiClient.instance.sticapi_request("/users/unblock_user_ad", options)
69
+ end
70
+
55
71
  # Altera a unidade organizacional de um usuário no AD
56
72
  # Parâmetro username [string] username
57
73
  # Parâmetro base [String] "OU=PJPI.OFF,OU=intranet,DC=tjpi,DC=local"
@@ -1,3 +1,3 @@
1
1
  module SticapiClient
2
- VERSION = "3.3.5"
2
+ VERSION = "3.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.5
4
+ version: 3.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-24 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.4.19
142
+ rubygems_version: 3.5.9
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Client to use TJPI sticapi services