seiso-connector 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTM0N2JjZDM5Zjk4MGRkZjIzMjI5MWI5ZjM4YWFlZDA3ZDhmN2RiOA==
4
+ MDU0ZTNiZWYzYmMyMWM0NzA1MzFkZTA1MzBkZGQxZDI5MTkyY2U3Mw==
5
5
  data.tar.gz: !binary |-
6
- MjU4YzBlYzkyYjYxYjc4YWJhNmU1MDZlNDA1MDE4ODgwZmMyNzExYw==
6
+ MGJkYWYwNmNkMjllODdhNTVkOTg0MGIyZTM4MTdkNDdkZWVmMGIwNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzA0ZWFjMDM0ZTM1NzQ5M2MyZmVmYzFmZjA1OTA2NWY1MmMwNTFhNjJjYWJl
10
- YzY1MWUzYjFiZTBiOTU3YWYzMTRmNzFjZDllYTc3MTQ1YWJjMGFhOTRlYjBi
11
- YTMzYjdiNWNlYmQxY2E1M2FjNWQ1Y2FiMjk4ZjYyYzdiNzdjMjE=
9
+ OGY0NTYzNzM1YWQ3ZWI2ZDQ5NjZjNDFlZTc3ZmQ1YmQ1MjliNGU3ZmNhYzg1
10
+ M2YyMWZmNmY0N2ZiOTNkNzVlNDgxZjY2ZmI3YzJlOTczMGFjZjZjMDE1ZTFi
11
+ MTliYmZhM2MxZWQzNTU0NmI1MDk5N2YzMGU4YTliODhmYjc4MDI=
12
12
  data.tar.gz: !binary |-
13
- ZTUzYWQ0Mjg0ODI2NmYxZDhhMTg0N2Y3MzRlYTM0MGJlOGNkMDYzMDczNjA3
14
- MWRkMzgzOGMzNTJiZjJjNDdjNDY2MGRjYzc0OTk3OGVmOTlkNzBkMWQwMTAw
15
- Y2ZmYjgxNmQzOTdjZjdlMzA3NTlmZmZiNTdkYzQwY2ZmNzhiNzc=
13
+ NmI0NGQzMmU2NmQwZDYxMGRlNTQ5YjA3NGViZDg4NDMzNWJiYTU4NDZhNGNl
14
+ OTU5MTEwYzViYjk0YjVlNGEzMThhNGM3ODEyM2EzMzAyOGZkZWEzYWM1ZTMw
15
+ YzRhYzFjOTZhOWU5OWRiN2I0ZTNhOTdlMGQ3NmJhYTNlZWI1NmM=
@@ -1,6 +1,7 @@
1
1
  require "net/http"
2
2
  require "openssl"
3
3
  require "uri"
4
+
4
5
  require_relative "connector/connector_v1"
5
6
  require_relative "connector/connector_v2"
6
7
  require_relative "connector/rest_connector"
@@ -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
@@ -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.3"
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."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seiso-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willie Wheeler