clowder-common-ruby 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e5767791bccbe0f77d953de067609ecb60e5a21330f7dbbd15ea76d7dfc8f93
4
- data.tar.gz: b8b1dcde02ca8bc832f2ac2ef052fad1f4197c490bf0c28dcc546587bf74991b
3
+ metadata.gz: dff7cc402aa2642333e32ab492fe4b017760ae4a9411b7e686f6a877f22fba01
4
+ data.tar.gz: 651e69a1d1fc83aa64b0b4f8ea7e6830dad4428efc48eaba2c674cdc7704d0f1
5
5
  SHA512:
6
- metadata.gz: 50f962168c4d9118a836f173a4f83966a045d0f4656c3793485d641b4569078e92ea747a07f46e618f63d914186fc04374630fbdfe50078591cbcbecfc8734f8
7
- data.tar.gz: 166f2b4204f869f5849e68d63f40ebc80d23ad4d8c7d059310eca988435b7780a84f5b9723d9f8ef7a2926c04f4256c33dbc4e4b908c0efe5f6ba88a3ae2f49f
6
+ metadata.gz: 102a5fb6bfe8cc8e8b8cc4d69eecf1300302b29f1e3f34e7397d1ffab0299efd9d5193f5577363ca620fc6d90a4a5d99a6a47a6b719757cd73c2b3bd69edd97c
7
+ data.tar.gz: 2f5a0f8f4f0aa92c9cc3a7dda8d96ded3e61a262cdedb5d518eaadc40ef589dcf9173dbf361db945dcb2224357183f68acfc7a266461955a03fb106a51424fb9
data/bin/schema.json CHANGED
@@ -62,8 +62,11 @@
62
62
  "items": {
63
63
  "$ref": "#/definitions/PrivateDependencyEndpoint"
64
64
  }
65
+ },
66
+ "BOPURL": {
67
+ "description": "Defines the path to the BOPURL.",
68
+ "type": "string"
65
69
  }
66
-
67
70
  },
68
71
  "required": [
69
72
  "metricsPort",
@@ -93,6 +96,14 @@
93
96
  "type": "object",
94
97
  "description": "Arbitrary metadata pertaining to the application application",
95
98
  "properties": {
99
+ "name": {
100
+ "description": "Name of the ClowdApp",
101
+ "type": "string"
102
+ },
103
+ "envName": {
104
+ "description": "Name of the ClowdEnvironment this ClowdApp runs in",
105
+ "type": "string"
106
+ },
96
107
  "deployments": {
97
108
  "description": "Metadata pertaining to an application's deployments",
98
109
  "type": "array",
@@ -186,6 +197,12 @@
186
197
  },
187
198
  "password": {
188
199
  "type": "string"
200
+ },
201
+ "securityProtocol": {
202
+ "type": "string"
203
+ },
204
+ "saslMechanism": {
205
+ "type": "string"
189
206
  }
190
207
  },
191
208
  "required": []
@@ -55,6 +55,7 @@ module ClowderCommonRuby
55
55
  keys << :featureFlags
56
56
  keys << :endpoints
57
57
  keys << :privateEndpoints
58
+ keys << :BOPURL
58
59
  end
59
60
  end
60
61
  end
@@ -102,6 +103,8 @@ module ClowderCommonRuby
102
103
 
103
104
  def valid_keys
104
105
  [].tap do |keys|
106
+ keys << :name
107
+ keys << :envName
105
108
  keys << :deployments
106
109
  end
107
110
  end
@@ -199,6 +202,8 @@ module ClowderCommonRuby
199
202
  [].tap do |keys|
200
203
  keys << :username
201
204
  keys << :password
205
+ keys << :securityProtocol
206
+ keys << :saslMechanism
202
207
  end
203
208
  end
204
209
  end
@@ -1,3 +1,3 @@
1
1
  module ClowderCommonRuby
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
data/test.json CHANGED
@@ -15,7 +15,8 @@
15
15
  "brokers": [
16
16
  {
17
17
  "hostname": "broker-host",
18
- "port": 27015
18
+ "port": 27015,
19
+ "cacert": "kafkaca"
19
20
  }
20
21
  ],
21
22
  "topics": [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clowder-common-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Red Hat Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a ruby interface for preparing Clowder variables.
14
14
  email:
@@ -20,7 +20,6 @@ files:
20
20
  - README.md
21
21
  - Rakefile
22
22
  - bin/json_schema_ruby
23
- - bin/output
24
23
  - bin/ruby_class_converter.rb
25
24
  - bin/schema.json
26
25
  - lib/clowder-common-ruby.rb
@@ -49,8 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
48
  - !ruby/object:Gem::Version
50
49
  version: '0'
51
50
  requirements: []
52
- rubyforge_project:
53
- rubygems_version: 2.7.6.2
51
+ rubygems_version: 3.3.7
54
52
  signing_key:
55
53
  specification_version: 4
56
54
  summary: Supporting files and libraries for Clowder environmental variables.
data/bin/output DELETED
@@ -1,134 +0,0 @@
1
- # This file is automatically generated by bin/json_schema_ruby
2
- require 'ostruct'
3
-
4
- module ClowderCommonRuby
5
- class AppConfig < OpenStruct
6
- attr_accessor :logging
7
- attr_accessor :kafka
8
- attr_accessor :database
9
- attr_accessor :objectStore
10
- attr_accessor :inMemoryDb
11
- attr_accessor :featureFlags
12
- attr_accessor :endpoints
13
- attr_accessor :privateEndpoints
14
-
15
- def initialize(attributes)
16
- super
17
- raise 'The input argument (attributes) must be a hash' if (!attributes || !attributes.is_a?(Hash))
18
-
19
- attributes = attributes.each_with_object({}) do |(k, v), h|
20
- raise "The input [#{k}] is invalid" unless valid_keys.include?(k.to_sym)
21
- h[k.to_sym] = v
22
- end
23
-
24
- @logging = LoggingConfig.new(attributes.fetch(:logging, {}))
25
- @kafka = KafkaConfig.new(attributes.fetch(:kafka, {}))
26
- @database = DatabaseConfig.new(attributes.fetch(:database, {}))
27
- @objectStore = ObjectStoreConfig.new(attributes.fetch(:objectStore, {}))
28
- @inMemoryDb = InMemoryDBConfig.new(attributes.fetch(:inMemoryDb, {}))
29
- @featureFlags = FeatureFlagsConfig.new(attributes.fetch(:featureFlags, {}))
30
- @endpoints = []
31
- attributes.fetch(:endpoints, []).each do |attr|
32
- @endpoints << DependencyEndpoint.new(attr)
33
- end
34
- @privateEndpoints = []
35
- attributes.fetch(:privateEndpoints, []).each do |attr|
36
- @privateEndpoints << PrivateDependencyEndpoint.new(attr)
37
- end
38
- end
39
-
40
- def valid_keys
41
- [].tap do |keys|
42
- keys << :privatePort
43
- keys << :publicPort
44
- keys << :webPort
45
- keys << :metricsPort
46
- keys << :metricsPath
47
- keys << :logging
48
- keys << :kafka
49
- keys << :database
50
- keys << :objectStore
51
- keys << :inMemoryDb
52
- keys << :featureFlags
53
- keys << :endpoints
54
- keys << :privateEndpoints
55
- end
56
- end
57
- end
58
-
59
- class LoggingConfig < OpenStruct
60
- attr_accessor :cloudwatch
61
-
62
- def initialize(attributes)
63
- super
64
- raise 'The input argument (attributes) must be a hash' if (!attributes || !attributes.is_a?(Hash))
65
-
66
- attributes = attributes.each_with_object({}) do |(k, v), h|
67
- raise "The input [#{k}] is invalid" unless valid_keys.include?(k.to_sym)
68
- h[k.to_sym] = v
69
- end
70
-
71
- @cloudwatch = CloudWatchConfig.new(attributes.fetch(:cloudwatch, {}))
72
- end
73
-
74
- def valid_keys
75
- [].tap do |keys|
76
- keys << :type
77
- keys << :cloudwatch
78
- end
79
- end
80
- end
81
-
82
- class CloudWatchConfig < OpenStruct
83
-
84
- def initialize(attributes)
85
- super
86
- raise 'The input argument (attributes) must be a hash' if (!attributes || !attributes.is_a?(Hash))
87
-
88
- attributes = attributes.each_with_object({}) do |(k, v), h|
89
- raise "The input [#{k}] is invalid" unless valid_keys.include?(k.to_sym)
90
- h[k.to_sym] = v
91
- end
92
-
93
- end
94
-
95
- def valid_keys
96
- [].tap do |keys|
97
- keys << :accessKeyId
98
- keys << :secretAccessKey
99
- keys << :region
100
- keys << :logGroup
101
- end
102
- end
103
- end
104
-
105
- class KafkaConfig < OpenStruct
106
- attr_accessor :brokers
107
- attr_accessor :topics
108
-
109
- def initialize(attributes)
110
- super
111
- raise 'The input argument (attributes) must be a hash' if (!attributes || !attributes.is_a?(Hash))
112
-
113
- attributes = attributes.each_with_object({}) do |(k, v), h|
114
- raise "The input [#{k}] is invalid" unless valid_keys.include?(k.to_sym)
115
- h[k.to_sym] = v
116
- end
117
-
118
- @brokers = []
119
- attributes.fetch(:brokers, []).each do |attr|
120
- @brokers << BrokerConfig.new(attr)
121
- end
122
- @topics = []
123
- attributes.fetch(:topics, []).each do |attr|
124
- @topics << TopicConfig.new(attr)
125
- end
126
- end
127
-
128
- def valid_keys
129
- [].tap do |keys|
130
- keys << :brokers
131
- keys << :topics
132
- end
133
- end
134
- end