smplkit 3.0.44 → 3.0.45
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/smplkit/_generated/config/lib/smplkit_config_client/api/configs_api.rb +68 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/config.rb +12 -1
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_bulk_item.rb +249 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_bulk_request.rb +168 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_bulk_response.rb +166 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client.rb +3 -0
- data/lib/smplkit/_generated/config/spec/api/configs_api_spec.rb +12 -0
- data/lib/smplkit/_generated/config/spec/models/config_bulk_item_spec.rb +72 -0
- data/lib/smplkit/_generated/config/spec/models/config_bulk_request_spec.rb +36 -0
- data/lib/smplkit/_generated/config/spec/models/config_bulk_response_spec.rb +36 -0
- data/lib/smplkit/_generated/config/spec/models/config_spec.rb +6 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96ce623bcee669b3eded8c3d5d03d3bcfca858fddd4a5b721b644dd38bc52808
|
|
4
|
+
data.tar.gz: 669143d67043e0f153d4e8b69d56e788e7e74c829fbf5dc519f83b5d366d9945
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c8bc85bd092767c6880174ce8937fafa67eedbd05a99166aec7c3908321ad1b85f863874cb6aa2d2c8de534a016c7aa4660ce0b0dcfeb9252eff12132b8adea
|
|
7
|
+
data.tar.gz: b6f26033f77e966dba0eca8a027b34ccaa862ebdae35c323ad7439f59a3b4d84cf458ae5ee3cc6ea8d4a74b3b6270515c679ae37393fd803e521600de3ddbd8a
|
|
@@ -19,6 +19,74 @@ module SmplkitGeneratedClient::Config
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Bulk Register Configs
|
|
23
|
+
# Register configs declared by an SDK. For each item in the batch: - If no config with that key exists, create one with ``managed=false`` (auto-discovered) using the declared items, parent, name, and description. - If a config with that key already exists, leave the config row untouched (per ADR-024 §2.9). - Either way, upsert a ``config_source`` row for ``(config, service, environment)`` and refresh its ``last_seen`` timestamp. Per ADR-022 §2.11 rule 2 this endpoint never enforces ``config.managed_configurations`` — discovered configs do not consume a managed slot.
|
|
24
|
+
# @param config_bulk_request [ConfigBulkRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [ConfigBulkResponse]
|
|
27
|
+
def bulk_register_configs(config_bulk_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = bulk_register_configs_with_http_info(config_bulk_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Bulk Register Configs
|
|
33
|
+
# Register configs declared by an SDK. For each item in the batch: - If no config with that key exists, create one with ``managed=false`` (auto-discovered) using the declared items, parent, name, and description. - If a config with that key already exists, leave the config row untouched (per ADR-024 §2.9). - Either way, upsert a ``config_source`` row for ``(config, service, environment)`` and refresh its ``last_seen`` timestamp. Per ADR-022 §2.11 rule 2 this endpoint never enforces ``config.managed_configurations`` — discovered configs do not consume a managed slot.
|
|
34
|
+
# @param config_bulk_request [ConfigBulkRequest]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(ConfigBulkResponse, Integer, Hash)>] ConfigBulkResponse data, response status code and response headers
|
|
37
|
+
def bulk_register_configs_with_http_info(config_bulk_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ConfigsApi.bulk_register_configs ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'config_bulk_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && config_bulk_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'config_bulk_request' when calling ConfigsApi.bulk_register_configs"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api/v1/configs/bulk'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(config_bulk_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'ConfigBulkResponse'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"ConfigsApi.bulk_register_configs",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: ConfigsApi#bulk_register_configs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
22
90
|
# Create Config
|
|
23
91
|
# Create a config for this account. The caller supplies the config's key as `data.id`. Keys are unique within an account and immutable for the lifetime of the config.
|
|
24
92
|
# @param config_request [ConfigRequest]
|
|
@@ -31,6 +31,9 @@ module SmplkitGeneratedClient::Config
|
|
|
31
31
|
# Map of environment keys to per-environment override sets. An environment override applies when this config is resolved against that environment.
|
|
32
32
|
attr_accessor :environments
|
|
33
33
|
|
|
34
|
+
# Whether this config is admin-managed (`true`) or auto-discovered by an SDK and not yet claimed (`false`). Configs created through the console or `POST /api/v1/configs` are always managed. Configs registered via `POST /api/v1/configs/bulk` land unmanaged. Setting this field to `true` on a PUT promotes a discovered config to managed, which consumes a slot of the `config.managed_configurations` entitlement.
|
|
35
|
+
attr_accessor :managed
|
|
36
|
+
|
|
34
37
|
# When the config was created.
|
|
35
38
|
attr_accessor :created_at
|
|
36
39
|
|
|
@@ -45,6 +48,7 @@ module SmplkitGeneratedClient::Config
|
|
|
45
48
|
:'parent' => :'parent',
|
|
46
49
|
:'items' => :'items',
|
|
47
50
|
:'environments' => :'environments',
|
|
51
|
+
:'managed' => :'managed',
|
|
48
52
|
:'created_at' => :'created_at',
|
|
49
53
|
:'updated_at' => :'updated_at'
|
|
50
54
|
}
|
|
@@ -68,6 +72,7 @@ module SmplkitGeneratedClient::Config
|
|
|
68
72
|
:'parent' => :'String',
|
|
69
73
|
:'items' => :'Hash<String, ConfigItemDefinition>',
|
|
70
74
|
:'environments' => :'Hash<String, EnvironmentOverride>',
|
|
75
|
+
:'managed' => :'Boolean',
|
|
71
76
|
:'created_at' => :'Time',
|
|
72
77
|
:'updated_at' => :'Time'
|
|
73
78
|
}
|
|
@@ -80,6 +85,7 @@ module SmplkitGeneratedClient::Config
|
|
|
80
85
|
:'parent',
|
|
81
86
|
:'items',
|
|
82
87
|
:'environments',
|
|
88
|
+
:'managed',
|
|
83
89
|
:'created_at',
|
|
84
90
|
:'updated_at'
|
|
85
91
|
])
|
|
@@ -127,6 +133,10 @@ module SmplkitGeneratedClient::Config
|
|
|
127
133
|
end
|
|
128
134
|
end
|
|
129
135
|
|
|
136
|
+
if attributes.key?(:'managed')
|
|
137
|
+
self.managed = attributes[:'managed']
|
|
138
|
+
end
|
|
139
|
+
|
|
130
140
|
if attributes.key?(:'created_at')
|
|
131
141
|
self.created_at = attributes[:'created_at']
|
|
132
142
|
end
|
|
@@ -200,6 +210,7 @@ module SmplkitGeneratedClient::Config
|
|
|
200
210
|
parent == o.parent &&
|
|
201
211
|
items == o.items &&
|
|
202
212
|
environments == o.environments &&
|
|
213
|
+
managed == o.managed &&
|
|
203
214
|
created_at == o.created_at &&
|
|
204
215
|
updated_at == o.updated_at
|
|
205
216
|
end
|
|
@@ -213,7 +224,7 @@ module SmplkitGeneratedClient::Config
|
|
|
213
224
|
# Calculates hash code according to all attributes.
|
|
214
225
|
# @return [Integer] Hash code
|
|
215
226
|
def hash
|
|
216
|
-
[name, description, parent, items, environments, created_at, updated_at].hash
|
|
227
|
+
[name, description, parent, items, environments, managed, created_at, updated_at].hash
|
|
217
228
|
end
|
|
218
229
|
|
|
219
230
|
# Builds the object from hash
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Config API
|
|
3
|
+
|
|
4
|
+
#Configuration management API for smplkit.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SmplkitGeneratedClient::Config
|
|
17
|
+
# One config declaration reported by an SDK during bulk registration. Each item declares an entire config from code — the config's key, optional parent reference, and the items the calling code uses with their declared types, default values, and descriptions.
|
|
18
|
+
class ConfigBulkItem < ApiModelBase
|
|
19
|
+
# Config key as declared in code. URL-safe and stable for the lifetime of the config.
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# Display name. Defaults to a humanized version of the `id` when omitted.
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# Optional human-readable description of the config.
|
|
26
|
+
attr_accessor :description
|
|
27
|
+
|
|
28
|
+
# Parent config key. Used only when creating a new (discovered) config. Ignored on subsequent observations of an existing config — discovery never modifies parent on a config that already exists.
|
|
29
|
+
attr_accessor :parent
|
|
30
|
+
|
|
31
|
+
# Items declared by the SDK with their types, defaults, and descriptions. Used to populate items on a newly-discovered config; ignored on subsequent observations of an existing config.
|
|
32
|
+
attr_accessor :items
|
|
33
|
+
|
|
34
|
+
# Service reporting the declaration. Defaults to `unknown`.
|
|
35
|
+
attr_accessor :service
|
|
36
|
+
|
|
37
|
+
# Environment reporting the declaration. Defaults to `unknown`.
|
|
38
|
+
attr_accessor :environment
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'id' => :'id',
|
|
44
|
+
:'name' => :'name',
|
|
45
|
+
:'description' => :'description',
|
|
46
|
+
:'parent' => :'parent',
|
|
47
|
+
:'items' => :'items',
|
|
48
|
+
:'service' => :'service',
|
|
49
|
+
:'environment' => :'environment'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns attribute mapping this model knows about
|
|
54
|
+
def self.acceptable_attribute_map
|
|
55
|
+
attribute_map
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns all the JSON keys this model knows about
|
|
59
|
+
def self.acceptable_attributes
|
|
60
|
+
acceptable_attribute_map.values
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Attribute type mapping.
|
|
64
|
+
def self.openapi_types
|
|
65
|
+
{
|
|
66
|
+
:'id' => :'String',
|
|
67
|
+
:'name' => :'String',
|
|
68
|
+
:'description' => :'String',
|
|
69
|
+
:'parent' => :'String',
|
|
70
|
+
:'items' => :'Hash<String, ConfigItemDefinition>',
|
|
71
|
+
:'service' => :'String',
|
|
72
|
+
:'environment' => :'String'
|
|
73
|
+
}
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# List of attributes with nullable: true
|
|
77
|
+
def self.openapi_nullable
|
|
78
|
+
Set.new([
|
|
79
|
+
:'name',
|
|
80
|
+
:'description',
|
|
81
|
+
:'parent',
|
|
82
|
+
:'items',
|
|
83
|
+
:'service',
|
|
84
|
+
:'environment'
|
|
85
|
+
])
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Initializes the object
|
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
|
+
def initialize(attributes = {})
|
|
91
|
+
if (!attributes.is_a?(Hash))
|
|
92
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Config::ConfigBulkItem` initialize method"
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
96
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
97
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
98
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Config::ConfigBulkItem`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
100
|
+
end
|
|
101
|
+
h[k.to_sym] = v
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'id')
|
|
105
|
+
self.id = attributes[:'id']
|
|
106
|
+
else
|
|
107
|
+
self.id = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'name')
|
|
111
|
+
self.name = attributes[:'name']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'description')
|
|
115
|
+
self.description = attributes[:'description']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'parent')
|
|
119
|
+
self.parent = attributes[:'parent']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'items')
|
|
123
|
+
if (value = attributes[:'items']).is_a?(Hash)
|
|
124
|
+
self.items = value
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'service')
|
|
129
|
+
self.service = attributes[:'service']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'environment')
|
|
133
|
+
self.environment = attributes[:'environment']
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
138
|
+
# @return Array for valid properties with the reasons
|
|
139
|
+
def list_invalid_properties
|
|
140
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
141
|
+
invalid_properties = Array.new
|
|
142
|
+
if @id.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if !@description.nil? && @description.to_s.length > 1000
|
|
147
|
+
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1000.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
invalid_properties
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Check to see if the all the properties in the model are valid
|
|
154
|
+
# @return true if the model is valid
|
|
155
|
+
def valid?
|
|
156
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
157
|
+
return false if @id.nil?
|
|
158
|
+
return false if !@description.nil? && @description.to_s.length > 1000
|
|
159
|
+
true
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Custom attribute writer method with validation
|
|
163
|
+
# @param [Object] id Value to be assigned
|
|
164
|
+
def id=(id)
|
|
165
|
+
if id.nil?
|
|
166
|
+
fail ArgumentError, 'id cannot be nil'
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
@id = id
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Custom attribute writer method with validation
|
|
173
|
+
# @param [Object] description Value to be assigned
|
|
174
|
+
def description=(description)
|
|
175
|
+
if !description.nil? && description.to_s.length > 1000
|
|
176
|
+
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1000.'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
@description = description
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Checks equality by comparing each attribute.
|
|
183
|
+
# @param [Object] Object to be compared
|
|
184
|
+
def ==(o)
|
|
185
|
+
return true if self.equal?(o)
|
|
186
|
+
self.class == o.class &&
|
|
187
|
+
id == o.id &&
|
|
188
|
+
name == o.name &&
|
|
189
|
+
description == o.description &&
|
|
190
|
+
parent == o.parent &&
|
|
191
|
+
items == o.items &&
|
|
192
|
+
service == o.service &&
|
|
193
|
+
environment == o.environment
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# @see the `==` method
|
|
197
|
+
# @param [Object] Object to be compared
|
|
198
|
+
def eql?(o)
|
|
199
|
+
self == o
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Calculates hash code according to all attributes.
|
|
203
|
+
# @return [Integer] Hash code
|
|
204
|
+
def hash
|
|
205
|
+
[id, name, description, parent, items, service, environment].hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Builds the object from hash
|
|
209
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
210
|
+
# @return [Object] Returns the model itself
|
|
211
|
+
def self.build_from_hash(attributes)
|
|
212
|
+
return nil unless attributes.is_a?(Hash)
|
|
213
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
214
|
+
transformed_hash = {}
|
|
215
|
+
openapi_types.each_pair do |key, type|
|
|
216
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
217
|
+
transformed_hash["#{key}"] = nil
|
|
218
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
219
|
+
# check to ensure the input is an array given that the attribute
|
|
220
|
+
# is documented as an array but the input is not
|
|
221
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
222
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
223
|
+
end
|
|
224
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
225
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
new(transformed_hash)
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Returns the object in the form of hash
|
|
232
|
+
# @return [Hash] Returns the object in the form of hash
|
|
233
|
+
def to_hash
|
|
234
|
+
hash = {}
|
|
235
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
236
|
+
value = self.send(attr)
|
|
237
|
+
if value.nil?
|
|
238
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
239
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
hash[param] = _to_hash(value)
|
|
243
|
+
end
|
|
244
|
+
hash
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
end
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Config API
|
|
3
|
+
|
|
4
|
+
#Configuration management API for smplkit.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SmplkitGeneratedClient::Config
|
|
17
|
+
# Inputs to the bulk-register-configs action.
|
|
18
|
+
class ConfigBulkRequest < ApiModelBase
|
|
19
|
+
# Configs reported by the SDK in this batch.
|
|
20
|
+
attr_accessor :configs
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'configs' => :'configs'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns attribute mapping this model knows about
|
|
30
|
+
def self.acceptable_attribute_map
|
|
31
|
+
attribute_map
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns all the JSON keys this model knows about
|
|
35
|
+
def self.acceptable_attributes
|
|
36
|
+
acceptable_attribute_map.values
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.openapi_types
|
|
41
|
+
{
|
|
42
|
+
:'configs' => :'Array<ConfigBulkItem>'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# List of attributes with nullable: true
|
|
47
|
+
def self.openapi_nullable
|
|
48
|
+
Set.new([
|
|
49
|
+
])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Config::ConfigBulkRequest` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Config::ConfigBulkRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
64
|
+
end
|
|
65
|
+
h[k.to_sym] = v
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'configs')
|
|
69
|
+
if (value = attributes[:'configs']).is_a?(Array)
|
|
70
|
+
self.configs = value
|
|
71
|
+
end
|
|
72
|
+
else
|
|
73
|
+
self.configs = nil
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
78
|
+
# @return Array for valid properties with the reasons
|
|
79
|
+
def list_invalid_properties
|
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
81
|
+
invalid_properties = Array.new
|
|
82
|
+
if @configs.nil?
|
|
83
|
+
invalid_properties.push('invalid value for "configs", configs cannot be nil.')
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
invalid_properties
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Check to see if the all the properties in the model are valid
|
|
90
|
+
# @return true if the model is valid
|
|
91
|
+
def valid?
|
|
92
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
|
+
return false if @configs.nil?
|
|
94
|
+
true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Custom attribute writer method with validation
|
|
98
|
+
# @param [Object] configs Value to be assigned
|
|
99
|
+
def configs=(configs)
|
|
100
|
+
if configs.nil?
|
|
101
|
+
fail ArgumentError, 'configs cannot be nil'
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
@configs = configs
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Checks equality by comparing each attribute.
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
configs == o.configs
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @see the `==` method
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def eql?(o)
|
|
118
|
+
self == o
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Calculates hash code according to all attributes.
|
|
122
|
+
# @return [Integer] Hash code
|
|
123
|
+
def hash
|
|
124
|
+
[configs].hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Builds the object from hash
|
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
+
# @return [Object] Returns the model itself
|
|
130
|
+
def self.build_from_hash(attributes)
|
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
+
transformed_hash = {}
|
|
134
|
+
openapi_types.each_pair do |key, type|
|
|
135
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
136
|
+
transformed_hash["#{key}"] = nil
|
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
141
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
new(transformed_hash)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Returns the object in the form of hash
|
|
151
|
+
# @return [Hash] Returns the object in the form of hash
|
|
152
|
+
def to_hash
|
|
153
|
+
hash = {}
|
|
154
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
155
|
+
value = self.send(attr)
|
|
156
|
+
if value.nil?
|
|
157
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
158
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
hash[param] = _to_hash(value)
|
|
162
|
+
end
|
|
163
|
+
hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
end
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Config API
|
|
3
|
+
|
|
4
|
+
#Configuration management API for smplkit.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SmplkitGeneratedClient::Config
|
|
17
|
+
# Result of a bulk-register-configs action.
|
|
18
|
+
class ConfigBulkResponse < ApiModelBase
|
|
19
|
+
# Number of items in the batch that were registered or refreshed (i.e. for which a source row was written or updated).
|
|
20
|
+
attr_accessor :registered
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'registered' => :'registered'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns attribute mapping this model knows about
|
|
30
|
+
def self.acceptable_attribute_map
|
|
31
|
+
attribute_map
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns all the JSON keys this model knows about
|
|
35
|
+
def self.acceptable_attributes
|
|
36
|
+
acceptable_attribute_map.values
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.openapi_types
|
|
41
|
+
{
|
|
42
|
+
:'registered' => :'Integer'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# List of attributes with nullable: true
|
|
47
|
+
def self.openapi_nullable
|
|
48
|
+
Set.new([
|
|
49
|
+
])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Config::ConfigBulkResponse` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Config::ConfigBulkResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
64
|
+
end
|
|
65
|
+
h[k.to_sym] = v
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'registered')
|
|
69
|
+
self.registered = attributes[:'registered']
|
|
70
|
+
else
|
|
71
|
+
self.registered = nil
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
if @registered.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "registered", registered cannot be nil.')
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
return false if @registered.nil?
|
|
92
|
+
true
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Custom attribute writer method with validation
|
|
96
|
+
# @param [Object] registered Value to be assigned
|
|
97
|
+
def registered=(registered)
|
|
98
|
+
if registered.nil?
|
|
99
|
+
fail ArgumentError, 'registered cannot be nil'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
@registered = registered
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
registered == o.registered
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @see the `==` method
|
|
114
|
+
# @param [Object] Object to be compared
|
|
115
|
+
def eql?(o)
|
|
116
|
+
self == o
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Calculates hash code according to all attributes.
|
|
120
|
+
# @return [Integer] Hash code
|
|
121
|
+
def hash
|
|
122
|
+
[registered].hash
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Builds the object from hash
|
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
+
# @return [Object] Returns the model itself
|
|
128
|
+
def self.build_from_hash(attributes)
|
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
|
130
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
131
|
+
transformed_hash = {}
|
|
132
|
+
openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = nil
|
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
139
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
new(transformed_hash)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Returns the object in the form of hash
|
|
149
|
+
# @return [Hash] Returns the object in the form of hash
|
|
150
|
+
def to_hash
|
|
151
|
+
hash = {}
|
|
152
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
153
|
+
value = self.send(attr)
|
|
154
|
+
if value.nil?
|
|
155
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
156
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
hash[param] = _to_hash(value)
|
|
160
|
+
end
|
|
161
|
+
hash
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
end
|
|
@@ -19,6 +19,9 @@ require 'smplkit_config_client/configuration'
|
|
|
19
19
|
|
|
20
20
|
# Models
|
|
21
21
|
require 'smplkit_config_client/models/config'
|
|
22
|
+
require 'smplkit_config_client/models/config_bulk_item'
|
|
23
|
+
require 'smplkit_config_client/models/config_bulk_request'
|
|
24
|
+
require 'smplkit_config_client/models/config_bulk_response'
|
|
22
25
|
require 'smplkit_config_client/models/config_item_definition'
|
|
23
26
|
require 'smplkit_config_client/models/config_item_override'
|
|
24
27
|
require 'smplkit_config_client/models/config_list_response'
|
|
@@ -32,6 +32,18 @@ describe 'ConfigsApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for bulk_register_configs
|
|
36
|
+
# Bulk Register Configs
|
|
37
|
+
# Register configs declared by an SDK. For each item in the batch: - If no config with that key exists, create one with ``managed=false`` (auto-discovered) using the declared items, parent, name, and description. - If a config with that key already exists, leave the config row untouched (per ADR-024 §2.9). - Either way, upsert a ``config_source`` row for ``(config, service, environment)`` and refresh its ``last_seen`` timestamp. Per ADR-022 §2.11 rule 2 this endpoint never enforces ``config.managed_configurations`` — discovered configs do not consume a managed slot.
|
|
38
|
+
# @param config_bulk_request
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [ConfigBulkResponse]
|
|
41
|
+
describe 'bulk_register_configs test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
35
47
|
# unit tests for create_config
|
|
36
48
|
# Create Config
|
|
37
49
|
# Create a config for this account. The caller supplies the config's key as `data.id`. Keys are unique within an account and immutable for the lifetime of the config.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Config API
|
|
3
|
+
|
|
4
|
+
#Configuration management API for smplkit.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for SmplkitGeneratedClient::Config::ConfigBulkItem
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Config::ConfigBulkItem do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Config::ConfigBulkItem.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ConfigBulkItem' do
|
|
24
|
+
it 'should create an instance of ConfigBulkItem' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Config::ConfigBulkItem)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "name"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "description"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "parent"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "items"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "service"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "environment"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Config API
|
|
3
|
+
|
|
4
|
+
#Configuration management API for smplkit.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for SmplkitGeneratedClient::Config::ConfigBulkRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Config::ConfigBulkRequest do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Config::ConfigBulkRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ConfigBulkRequest' do
|
|
24
|
+
it 'should create an instance of ConfigBulkRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Config::ConfigBulkRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "configs"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#smplkit Config API
|
|
3
|
+
|
|
4
|
+
#Configuration management API for smplkit.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for SmplkitGeneratedClient::Config::ConfigBulkResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Config::ConfigBulkResponse do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Config::ConfigBulkResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ConfigBulkResponse' do
|
|
24
|
+
it 'should create an instance of ConfigBulkResponse' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Config::ConfigBulkResponse)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "registered"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
end
|
|
@@ -57,6 +57,12 @@ describe SmplkitGeneratedClient::Config::Config do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
describe 'test attribute "managed"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
60
66
|
describe 'test attribute "created_at"' do
|
|
61
67
|
it 'should work' do
|
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smplkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.45
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Smpl Solutions LLC
|
|
@@ -551,6 +551,9 @@ files:
|
|
|
551
551
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/api_model_base.rb
|
|
552
552
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/configuration.rb
|
|
553
553
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config.rb
|
|
554
|
+
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_bulk_item.rb
|
|
555
|
+
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_bulk_request.rb
|
|
556
|
+
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_bulk_response.rb
|
|
554
557
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_item_definition.rb
|
|
555
558
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_item_override.rb
|
|
556
559
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_list_response.rb
|
|
@@ -566,6 +569,9 @@ files:
|
|
|
566
569
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/version.rb
|
|
567
570
|
- lib/smplkit/_generated/config/spec/api/configs_api_spec.rb
|
|
568
571
|
- lib/smplkit/_generated/config/spec/api/usage_api_spec.rb
|
|
572
|
+
- lib/smplkit/_generated/config/spec/models/config_bulk_item_spec.rb
|
|
573
|
+
- lib/smplkit/_generated/config/spec/models/config_bulk_request_spec.rb
|
|
574
|
+
- lib/smplkit/_generated/config/spec/models/config_bulk_response_spec.rb
|
|
569
575
|
- lib/smplkit/_generated/config/spec/models/config_item_definition_spec.rb
|
|
570
576
|
- lib/smplkit/_generated/config/spec/models/config_item_override_spec.rb
|
|
571
577
|
- lib/smplkit/_generated/config/spec/models/config_list_response_spec.rb
|