khipu-chaski-api-client 1.1.0 → 1.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 350a56ca4a2af3abbb63ca79a1dcb84c6eacd950b2894802c4130dd32abffa5d
|
4
|
+
data.tar.gz: e0317464b67565ef401d8c7c240e7f89960c5be56488585d220a605eefbfc1bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e488292873558d2e16812adfb43e204211d7f21c841a94f19c609ee7b208a6b1a71bb70518d5cb0060614e29ae70b3f6eaab6ea60320e15cedf174505c000485
|
7
|
+
data.tar.gz: 4caa1559c957f1decfea259238a92abd42cd4ef607d0a314e6662c365b3633b2aa97d875912f1547279ffc4f8b3f5d39c1075f0c83dbee97a89a6d0cbf9d02b2
|
@@ -59,6 +59,57 @@ module KhipuChaski
|
|
59
59
|
return result
|
60
60
|
end
|
61
61
|
|
62
|
+
# Registro de dispositivo eliminando alias anteriores
|
63
|
+
# Registra un dispositivo identificado por su tokenId, elimina alias anteriores
|
64
|
+
# @param device Dispositivo a registrar
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @return [SuccessResponse]
|
67
|
+
def add_unique_alias_device(device, opts = {})
|
68
|
+
if Configuration.debugging
|
69
|
+
Configuration.logger.debug "Calling API: DeviceRegistryApi#add_unique_alias_device ..."
|
70
|
+
end
|
71
|
+
|
72
|
+
# verify the required parameter 'device' is set
|
73
|
+
fail "Missing the required parameter 'device' when calling add_unique_alias_device" if device.nil?
|
74
|
+
|
75
|
+
# resource path
|
76
|
+
path = "/devices/uniqueAlias".sub('{format}','json')
|
77
|
+
|
78
|
+
# query parameters
|
79
|
+
query_params = {}
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = {}
|
83
|
+
|
84
|
+
# HTTP header 'Accept' (if needed)
|
85
|
+
_header_accept = ['application/json']
|
86
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
87
|
+
|
88
|
+
# HTTP header 'Content-Type'
|
89
|
+
_header_content_type = ['application/json']
|
90
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
91
|
+
|
92
|
+
# form parameters
|
93
|
+
form_params = {}
|
94
|
+
|
95
|
+
# http body (model)
|
96
|
+
post_body = @api_client.object_to_http_body(device)
|
97
|
+
|
98
|
+
|
99
|
+
auth_names = ['khipu']
|
100
|
+
result = @api_client.call_api(:POST, path,
|
101
|
+
:header_params => header_params,
|
102
|
+
:query_params => query_params,
|
103
|
+
:form_params => form_params,
|
104
|
+
:body => post_body,
|
105
|
+
:auth_names => auth_names,
|
106
|
+
:return_type => 'SuccessResponse')
|
107
|
+
if Configuration.debugging
|
108
|
+
Configuration.logger.debug "API called: DeviceRegistryApi#add_unique_alias_device. Result: #{result.inspect}"
|
109
|
+
end
|
110
|
+
return result
|
111
|
+
end
|
112
|
+
|
62
113
|
# Obtiene dispositivo
|
63
114
|
# Obtiene la informacion de un dispositivo especifico
|
64
115
|
# @param token_id Token que identifica al dispositivo. Tiene la forma <platform>:<registryId>, donde platform puede tomar los valores \"and\" o \"ios\".
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: khipu-chaski-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khipu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|