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 +4 -4
- data/lib/sticapi_client/user.rb +16 -0
- data/lib/sticapi_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c01c3e3245860df256d80ba83badbaf84b709d636a549255904eb2c9842e8842
|
|
4
|
+
data.tar.gz: '08b89b55fedb21eb5512150e2cb169e87e28782a26491d81764601d44d06fa33'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ac017e27301211be27f3727133c501176241426dd6275a8f2816f24b451201de2175dcb0b13dbb2ab3c0c2c16adb24dff6328fd5d13e62935b0ec5b9fc0fffe
|
|
7
|
+
data.tar.gz: e147ce78cf3fd4916716b033c493f5a955ce5965359ed14e0d8359822b5d8ae97b3c499057e5748911b6400381e334367abfd811e780fa2291684885f31cc5b6
|
data/lib/sticapi_client/user.rb
CHANGED
|
@@ -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"
|
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.
|
|
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-
|
|
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.
|
|
142
|
+
rubygems_version: 3.5.9
|
|
143
143
|
signing_key:
|
|
144
144
|
specification_version: 4
|
|
145
145
|
summary: Client to use TJPI sticapi services
|