seiso-connector 0.1.3 → 0.1.4
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 +8 -8
- data/lib/seiso/connector.rb +1 -0
- data/lib/seiso/connector/rest_connector.rb +8 -0
- data/lib/seiso/connector/uri_factory_v2.rb +8 -0
- data/seiso-connector.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDU0ZTNiZWYzYmMyMWM0NzA1MzFkZTA1MzBkZGQxZDI5MTkyY2U3Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGJkYWYwNmNkMjllODdhNTVkOTg0MGIyZTM4MTdkNDdkZWVmMGIwNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGY0NTYzNzM1YWQ3ZWI2ZDQ5NjZjNDFlZTc3ZmQ1YmQ1MjliNGU3ZmNhYzg1
|
10
|
+
M2YyMWZmNmY0N2ZiOTNkNzVlNDgxZjY2ZmI3YzJlOTczMGFjZjZjMDE1ZTFi
|
11
|
+
MTliYmZhM2MxZWQzNTU0NmI1MDk5N2YzMGU4YTliODhmYjc4MDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmI0NGQzMmU2NmQwZDYxMGRlNTQ5YjA3NGViZDg4NDMzNWJiYTU4NDZhNGNl
|
14
|
+
OTU5MTEwYzViYjk0YjVlNGEzMThhNGM3ODEyM2EzMzAyOGZkZWEzYWM1ZTMw
|
15
|
+
YzRhYzFjOTZhOWU5OWRiN2I0ZTNhOTdlMGQ3NmJhYTNlZWI1NmM=
|
data/lib/seiso/connector.rb
CHANGED
@@ -12,6 +12,8 @@ module Seiso
|
|
12
12
|
HN_ACCEPT = "Accept"
|
13
13
|
HN_CONTENT_TYPE = "Content-Type"
|
14
14
|
|
15
|
+
MT_TEXT_URI = "text/uri"
|
16
|
+
|
15
17
|
def initialize(host, port, use_ssl, ignore_cert, username, password, media_type)
|
16
18
|
@host = host
|
17
19
|
@port = port
|
@@ -68,6 +70,12 @@ module Seiso
|
|
68
70
|
do_request(http, request)
|
69
71
|
end
|
70
72
|
|
73
|
+
# - uri: main resource URI
|
74
|
+
# - linked_uri: specifies resource we're linking to the main resource
|
75
|
+
def put_link(uri, linked_uri)
|
76
|
+
puts "uri=#{uri}, linked_uri=#{linked_uri}"
|
77
|
+
end
|
78
|
+
|
71
79
|
def delete(uri)
|
72
80
|
puts "DELETE #{uri}"
|
73
81
|
request = Net::HTTP::Delete.new uri.request_uri
|
@@ -21,6 +21,14 @@ module Seiso
|
|
21
21
|
uri "/services/#{service_key}/doc-links"
|
22
22
|
end
|
23
23
|
|
24
|
+
def service_instance_uri(key)
|
25
|
+
uri "/service-instances/#{key}"
|
26
|
+
end
|
27
|
+
|
28
|
+
def seyren_checks_uri()
|
29
|
+
uri "/seyren-checks"
|
30
|
+
end
|
31
|
+
|
24
32
|
def find_seyren_check_uri(seyren_base_url, seyren_id)
|
25
33
|
uri "/seyren-checks/search/find-by-base-url-and-id?url=#{seyren_base_url}&id=#{seyren_id}"
|
26
34
|
end
|
data/seiso-connector.gemspec
CHANGED
@@ -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 = "seiso-connector"
|
7
|
-
spec.version = "0.1.
|
7
|
+
spec.version = "0.1.4"
|
8
8
|
spec.authors = ["Willie Wheeler"]
|
9
9
|
spec.email = ["wwheeler@expedia.com"]
|
10
10
|
spec.summary = "Connector to make it easier for Ruby clients to talk to the Seiso REST API."
|