smplkit 3.0.12 → 3.0.14
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/app/lib/smplkit_app_client/api/api_keys_api.rb +9 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/billing_api.rb +20 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/context_types_api.rb +9 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/context_values_api.rb +97 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/contexts_api.rb +16 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/environments_api.rb +9 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/invitations_api.rb +9 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/metrics_api.rb +27 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/plans_api.rb +9 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/products_api.rb +9 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/services_api.rb +9 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/users_api.rb +8 -17
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context.rb +12 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_resource.rb +1 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_value.rb +166 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_value_list_response.rb +193 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_value_resource.rb +225 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{user_list_meta.rb → list_meta.rb} +20 -19
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_names_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{page_meta.rb → pagination_meta.rb} +43 -75
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_list_response.rb +30 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_list_response.rb +18 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +6 -2
- data/lib/smplkit/_generated/app/spec/api/api_keys_api_spec.rb +3 -0
- data/lib/smplkit/_generated/app/spec/api/billing_api_spec.rb +7 -1
- data/lib/smplkit/_generated/app/spec/api/context_types_api_spec.rb +3 -0
- data/lib/smplkit/_generated/app/spec/api/context_values_api_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/api/contexts_api_spec.rb +6 -2
- data/lib/smplkit/_generated/app/spec/api/environments_api_spec.rb +3 -0
- data/lib/smplkit/_generated/app/spec/api/invitations_api_spec.rb +3 -0
- data/lib/smplkit/_generated/app/spec/api/metrics_api_spec.rb +9 -0
- data/lib/smplkit/_generated/app/spec/api/plans_api_spec.rb +3 -0
- data/lib/smplkit/_generated/app/spec/api/products_api_spec.rb +3 -0
- data/lib/smplkit/_generated/app/spec/api/services_api_spec.rb +3 -0
- data/lib/smplkit/_generated/app/spec/api/users_api_spec.rb +3 -2
- data/lib/smplkit/_generated/app/spec/models/api_key_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/context_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/context_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/context_type_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/context_value_list_response_spec.rb +42 -0
- data/lib/smplkit/_generated/app/spec/models/context_value_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/{user_list_meta_spec.rb → context_value_spec.rb} +7 -7
- data/lib/smplkit/_generated/app/spec/models/environment_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/invitation_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/invoice_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/list_meta_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/metric_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/metric_names_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/metric_rollup_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/{page_meta_spec.rb → pagination_meta_spec.rb} +9 -9
- data/lib/smplkit/_generated/app/spec/models/payment_method_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/plan_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/product_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/service_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/api/configs_api.rb +9 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/api/usage_api.rb +9 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_list_response.rb +30 -4
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/list_meta.rb +165 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/pagination_meta.rb +215 -0
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/models/usage_list_response.rb +30 -4
- data/lib/smplkit/_generated/config/lib/smplkit_config_client.rb +2 -0
- data/lib/smplkit/_generated/config/spec/api/configs_api_spec.rb +3 -0
- data/lib/smplkit/_generated/config/spec/api/usage_api_spec.rb +3 -0
- data/lib/smplkit/_generated/config/spec/models/config_list_response_spec.rb +6 -0
- data/lib/smplkit/_generated/config/spec/models/list_meta_spec.rb +36 -0
- data/lib/smplkit/_generated/config/spec/models/pagination_meta_spec.rb +54 -0
- data/lib/smplkit/_generated/config/spec/models/usage_list_response_spec.rb +6 -0
- metadata +17 -5
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
# Pagination block returned inside ``meta`` on every list response. ``page`` and ``size`` are always present and echo the parameters that served the response (their defaults when the client omitted them). ``total`` and ``total_pages`` are present only when the request included ``meta[total]=true``.
|
|
18
|
+
class PaginationMeta < ApiModelBase
|
|
19
|
+
# 1-based page number returned.
|
|
20
|
+
attr_accessor :page
|
|
21
|
+
|
|
22
|
+
# Number of items per page.
|
|
23
|
+
attr_accessor :size
|
|
24
|
+
|
|
25
|
+
# Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
|
|
26
|
+
attr_accessor :total
|
|
27
|
+
|
|
28
|
+
# Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
|
|
29
|
+
attr_accessor :total_pages
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'page' => :'page',
|
|
35
|
+
:'size' => :'size',
|
|
36
|
+
:'total' => :'total',
|
|
37
|
+
:'total_pages' => :'total_pages'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns attribute mapping this model knows about
|
|
42
|
+
def self.acceptable_attribute_map
|
|
43
|
+
attribute_map
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns all the JSON keys this model knows about
|
|
47
|
+
def self.acceptable_attributes
|
|
48
|
+
acceptable_attribute_map.values
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
def self.openapi_types
|
|
53
|
+
{
|
|
54
|
+
:'page' => :'Integer',
|
|
55
|
+
:'size' => :'Integer',
|
|
56
|
+
:'total' => :'Integer',
|
|
57
|
+
:'total_pages' => :'Integer'
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# List of attributes with nullable: true
|
|
62
|
+
def self.openapi_nullable
|
|
63
|
+
Set.new([
|
|
64
|
+
:'total',
|
|
65
|
+
:'total_pages'
|
|
66
|
+
])
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Initializes the object
|
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
71
|
+
def initialize(attributes = {})
|
|
72
|
+
if (!attributes.is_a?(Hash))
|
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Config::PaginationMeta` initialize method"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
79
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
80
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Config::PaginationMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
81
|
+
end
|
|
82
|
+
h[k.to_sym] = v
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'page')
|
|
86
|
+
self.page = attributes[:'page']
|
|
87
|
+
else
|
|
88
|
+
self.page = nil
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'size')
|
|
92
|
+
self.size = attributes[:'size']
|
|
93
|
+
else
|
|
94
|
+
self.size = nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'total')
|
|
98
|
+
self.total = attributes[:'total']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'total_pages')
|
|
102
|
+
self.total_pages = attributes[:'total_pages']
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
107
|
+
# @return Array for valid properties with the reasons
|
|
108
|
+
def list_invalid_properties
|
|
109
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
110
|
+
invalid_properties = Array.new
|
|
111
|
+
if @page.nil?
|
|
112
|
+
invalid_properties.push('invalid value for "page", page cannot be nil.')
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if @size.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "size", size cannot be nil.')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
invalid_properties
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Check to see if the all the properties in the model are valid
|
|
123
|
+
# @return true if the model is valid
|
|
124
|
+
def valid?
|
|
125
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
+
return false if @page.nil?
|
|
127
|
+
return false if @size.nil?
|
|
128
|
+
true
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Custom attribute writer method with validation
|
|
132
|
+
# @param [Object] page Value to be assigned
|
|
133
|
+
def page=(page)
|
|
134
|
+
if page.nil?
|
|
135
|
+
fail ArgumentError, 'page cannot be nil'
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
@page = page
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param [Object] size Value to be assigned
|
|
143
|
+
def size=(size)
|
|
144
|
+
if size.nil?
|
|
145
|
+
fail ArgumentError, 'size cannot be nil'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
@size = size
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Checks equality by comparing each attribute.
|
|
152
|
+
# @param [Object] Object to be compared
|
|
153
|
+
def ==(o)
|
|
154
|
+
return true if self.equal?(o)
|
|
155
|
+
self.class == o.class &&
|
|
156
|
+
page == o.page &&
|
|
157
|
+
size == o.size &&
|
|
158
|
+
total == o.total &&
|
|
159
|
+
total_pages == o.total_pages
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# @see the `==` method
|
|
163
|
+
# @param [Object] Object to be compared
|
|
164
|
+
def eql?(o)
|
|
165
|
+
self == o
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Calculates hash code according to all attributes.
|
|
169
|
+
# @return [Integer] Hash code
|
|
170
|
+
def hash
|
|
171
|
+
[page, size, total, total_pages].hash
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Builds the object from hash
|
|
175
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
176
|
+
# @return [Object] Returns the model itself
|
|
177
|
+
def self.build_from_hash(attributes)
|
|
178
|
+
return nil unless attributes.is_a?(Hash)
|
|
179
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
180
|
+
transformed_hash = {}
|
|
181
|
+
openapi_types.each_pair do |key, type|
|
|
182
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
183
|
+
transformed_hash["#{key}"] = nil
|
|
184
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
185
|
+
# check to ensure the input is an array given that the attribute
|
|
186
|
+
# is documented as an array but the input is not
|
|
187
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
188
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
189
|
+
end
|
|
190
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
191
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
new(transformed_hash)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Returns the object in the form of hash
|
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
|
199
|
+
def to_hash
|
|
200
|
+
hash = {}
|
|
201
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
202
|
+
value = self.send(attr)
|
|
203
|
+
if value.nil?
|
|
204
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
205
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
hash[param] = _to_hash(value)
|
|
209
|
+
end
|
|
210
|
+
hash
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
end
|
|
@@ -18,10 +18,13 @@ module SmplkitGeneratedClient::Config
|
|
|
18
18
|
class UsageListResponse < ApiModelBase
|
|
19
19
|
attr_accessor :data
|
|
20
20
|
|
|
21
|
+
attr_accessor :meta
|
|
22
|
+
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
24
|
def self.attribute_map
|
|
23
25
|
{
|
|
24
|
-
:'data' => :'data'
|
|
26
|
+
:'data' => :'data',
|
|
27
|
+
:'meta' => :'meta'
|
|
25
28
|
}
|
|
26
29
|
end
|
|
27
30
|
|
|
@@ -38,7 +41,8 @@ module SmplkitGeneratedClient::Config
|
|
|
38
41
|
# Attribute type mapping.
|
|
39
42
|
def self.openapi_types
|
|
40
43
|
{
|
|
41
|
-
:'data' => :'Array<UsageResource>'
|
|
44
|
+
:'data' => :'Array<UsageResource>',
|
|
45
|
+
:'meta' => :'ListMeta'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
44
48
|
|
|
@@ -71,6 +75,12 @@ module SmplkitGeneratedClient::Config
|
|
|
71
75
|
else
|
|
72
76
|
self.data = nil
|
|
73
77
|
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'meta')
|
|
80
|
+
self.meta = attributes[:'meta']
|
|
81
|
+
else
|
|
82
|
+
self.meta = nil
|
|
83
|
+
end
|
|
74
84
|
end
|
|
75
85
|
|
|
76
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -82,6 +92,10 @@ module SmplkitGeneratedClient::Config
|
|
|
82
92
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
|
83
93
|
end
|
|
84
94
|
|
|
95
|
+
if @meta.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "meta", meta cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
85
99
|
invalid_properties
|
|
86
100
|
end
|
|
87
101
|
|
|
@@ -90,6 +104,7 @@ module SmplkitGeneratedClient::Config
|
|
|
90
104
|
def valid?
|
|
91
105
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
106
|
return false if @data.nil?
|
|
107
|
+
return false if @meta.nil?
|
|
93
108
|
true
|
|
94
109
|
end
|
|
95
110
|
|
|
@@ -103,12 +118,23 @@ module SmplkitGeneratedClient::Config
|
|
|
103
118
|
@data = data
|
|
104
119
|
end
|
|
105
120
|
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param [Object] meta Value to be assigned
|
|
123
|
+
def meta=(meta)
|
|
124
|
+
if meta.nil?
|
|
125
|
+
fail ArgumentError, 'meta cannot be nil'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
@meta = meta
|
|
129
|
+
end
|
|
130
|
+
|
|
106
131
|
# Checks equality by comparing each attribute.
|
|
107
132
|
# @param [Object] Object to be compared
|
|
108
133
|
def ==(o)
|
|
109
134
|
return true if self.equal?(o)
|
|
110
135
|
self.class == o.class &&
|
|
111
|
-
data == o.data
|
|
136
|
+
data == o.data &&
|
|
137
|
+
meta == o.meta
|
|
112
138
|
end
|
|
113
139
|
|
|
114
140
|
# @see the `==` method
|
|
@@ -120,7 +146,7 @@ module SmplkitGeneratedClient::Config
|
|
|
120
146
|
# Calculates hash code according to all attributes.
|
|
121
147
|
# @return [Integer] Hash code
|
|
122
148
|
def hash
|
|
123
|
-
[data].hash
|
|
149
|
+
[data, meta].hash
|
|
124
150
|
end
|
|
125
151
|
|
|
126
152
|
# Builds the object from hash
|
|
@@ -26,6 +26,8 @@ require 'smplkit_config_client/models/config_request'
|
|
|
26
26
|
require 'smplkit_config_client/models/config_resource'
|
|
27
27
|
require 'smplkit_config_client/models/config_response'
|
|
28
28
|
require 'smplkit_config_client/models/environment_override'
|
|
29
|
+
require 'smplkit_config_client/models/list_meta'
|
|
30
|
+
require 'smplkit_config_client/models/pagination_meta'
|
|
29
31
|
require 'smplkit_config_client/models/usage_attributes'
|
|
30
32
|
require 'smplkit_config_client/models/usage_list_response'
|
|
31
33
|
require 'smplkit_config_client/models/usage_resource'
|
|
@@ -74,6 +74,9 @@ describe 'ConfigsApi' do
|
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @option opts [String] :filter_parent
|
|
76
76
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
|
|
77
|
+
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
78
|
+
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
79
|
+
# @option opts [Boolean] :meta_total When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
|
|
77
80
|
# @return [ConfigListResponse]
|
|
78
81
|
describe 'list_configs test' do
|
|
79
82
|
it 'should work' do
|
|
@@ -37,6 +37,9 @@ describe 'UsageApi' do
|
|
|
37
37
|
# Report the current-period usage counters for this account.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :filter_period Period to report. `current` is the only supported value.
|
|
40
|
+
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
41
|
+
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
42
|
+
# @option opts [Boolean] :meta_total When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
|
|
40
43
|
# @return [UsageListResponse]
|
|
41
44
|
describe 'list_config_usage test' do
|
|
42
45
|
it 'should work' do
|
|
@@ -33,4 +33,10 @@ describe SmplkitGeneratedClient::Config::ConfigListResponse do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "meta"' 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
|
+
|
|
36
42
|
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::ListMeta
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Config::ListMeta do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Config::ListMeta.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListMeta' do
|
|
24
|
+
it 'should create an instance of ListMeta' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Config::ListMeta)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "pagination"' 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,54 @@
|
|
|
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::PaginationMeta
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Config::PaginationMeta do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Config::PaginationMeta.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PaginationMeta' do
|
|
24
|
+
it 'should create an instance of PaginationMeta' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Config::PaginationMeta)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "page"' 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 "size"' 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 "total"' 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 "total_pages"' 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
|
+
end
|
|
@@ -33,4 +33,10 @@ describe SmplkitGeneratedClient::Config::UsageListResponse do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "meta"' 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
|
+
|
|
36
42
|
end
|
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.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Smpl Solutions LLC
|
|
@@ -157,6 +157,7 @@ files:
|
|
|
157
157
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/api/auth_api.rb
|
|
158
158
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/api/billing_api.rb
|
|
159
159
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/api/context_types_api.rb
|
|
160
|
+
- lib/smplkit/_generated/app/lib/smplkit_app_client/api/context_values_api.rb
|
|
160
161
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/api/contexts_api.rb
|
|
161
162
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/api/email_registrations_api.rb
|
|
162
163
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/api/emails_api.rb
|
|
@@ -203,6 +204,9 @@ files:
|
|
|
203
204
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_request.rb
|
|
204
205
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_resource.rb
|
|
205
206
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_response.rb
|
|
207
|
+
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_value.rb
|
|
208
|
+
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_value_list_response.rb
|
|
209
|
+
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_value_resource.rb
|
|
206
210
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/email.rb
|
|
207
211
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/email_resource.rb
|
|
208
212
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/email_response.rb
|
|
@@ -228,6 +232,7 @@ files:
|
|
|
228
232
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_resource.rb
|
|
229
233
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_single_response.rb
|
|
230
234
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/limit_definition.rb
|
|
235
|
+
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/list_meta.rb
|
|
231
236
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/login_request.rb
|
|
232
237
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_attributes.rb
|
|
233
238
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_bulk_request.rb
|
|
@@ -240,7 +245,7 @@ files:
|
|
|
240
245
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_resource.rb
|
|
241
246
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/next_tier_response.rb
|
|
242
247
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/oidc_provider.rb
|
|
243
|
-
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/
|
|
248
|
+
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/pagination_meta.rb
|
|
244
249
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method.rb
|
|
245
250
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_list_response.rb
|
|
246
251
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_request.rb
|
|
@@ -275,7 +280,6 @@ files:
|
|
|
275
280
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_response.rb
|
|
276
281
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_response_attributes.rb
|
|
277
282
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/user.rb
|
|
278
|
-
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_list_meta.rb
|
|
279
283
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_list_response.rb
|
|
280
284
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_request.rb
|
|
281
285
|
- lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_resource.rb
|
|
@@ -288,6 +292,7 @@ files:
|
|
|
288
292
|
- lib/smplkit/_generated/app/spec/api/auth_api_spec.rb
|
|
289
293
|
- lib/smplkit/_generated/app/spec/api/billing_api_spec.rb
|
|
290
294
|
- lib/smplkit/_generated/app/spec/api/context_types_api_spec.rb
|
|
295
|
+
- lib/smplkit/_generated/app/spec/api/context_values_api_spec.rb
|
|
291
296
|
- lib/smplkit/_generated/app/spec/api/contexts_api_spec.rb
|
|
292
297
|
- lib/smplkit/_generated/app/spec/api/email_registrations_api_spec.rb
|
|
293
298
|
- lib/smplkit/_generated/app/spec/api/emails_api_spec.rb
|
|
@@ -330,6 +335,9 @@ files:
|
|
|
330
335
|
- lib/smplkit/_generated/app/spec/models/context_type_resource_spec.rb
|
|
331
336
|
- lib/smplkit/_generated/app/spec/models/context_type_response_spec.rb
|
|
332
337
|
- lib/smplkit/_generated/app/spec/models/context_type_spec.rb
|
|
338
|
+
- lib/smplkit/_generated/app/spec/models/context_value_list_response_spec.rb
|
|
339
|
+
- lib/smplkit/_generated/app/spec/models/context_value_resource_spec.rb
|
|
340
|
+
- lib/smplkit/_generated/app/spec/models/context_value_spec.rb
|
|
333
341
|
- lib/smplkit/_generated/app/spec/models/email_resource_spec.rb
|
|
334
342
|
- lib/smplkit/_generated/app/spec/models/email_response_spec.rb
|
|
335
343
|
- lib/smplkit/_generated/app/spec/models/email_spec.rb
|
|
@@ -355,6 +363,7 @@ files:
|
|
|
355
363
|
- lib/smplkit/_generated/app/spec/models/invoice_single_response_spec.rb
|
|
356
364
|
- lib/smplkit/_generated/app/spec/models/invoice_spec.rb
|
|
357
365
|
- lib/smplkit/_generated/app/spec/models/limit_definition_spec.rb
|
|
366
|
+
- lib/smplkit/_generated/app/spec/models/list_meta_spec.rb
|
|
358
367
|
- lib/smplkit/_generated/app/spec/models/login_request_spec.rb
|
|
359
368
|
- lib/smplkit/_generated/app/spec/models/metric_attributes_spec.rb
|
|
360
369
|
- lib/smplkit/_generated/app/spec/models/metric_bulk_request_spec.rb
|
|
@@ -367,7 +376,7 @@ files:
|
|
|
367
376
|
- lib/smplkit/_generated/app/spec/models/metric_rollup_resource_spec.rb
|
|
368
377
|
- lib/smplkit/_generated/app/spec/models/next_tier_response_spec.rb
|
|
369
378
|
- lib/smplkit/_generated/app/spec/models/oidc_provider_spec.rb
|
|
370
|
-
- lib/smplkit/_generated/app/spec/models/
|
|
379
|
+
- lib/smplkit/_generated/app/spec/models/pagination_meta_spec.rb
|
|
371
380
|
- lib/smplkit/_generated/app/spec/models/payment_method_list_response_spec.rb
|
|
372
381
|
- lib/smplkit/_generated/app/spec/models/payment_method_request_spec.rb
|
|
373
382
|
- lib/smplkit/_generated/app/spec/models/payment_method_resource_spec.rb
|
|
@@ -401,7 +410,6 @@ files:
|
|
|
401
410
|
- lib/smplkit/_generated/app/spec/models/subscription_resource_spec.rb
|
|
402
411
|
- lib/smplkit/_generated/app/spec/models/subscription_response_attributes_spec.rb
|
|
403
412
|
- lib/smplkit/_generated/app/spec/models/subscription_response_spec.rb
|
|
404
|
-
- lib/smplkit/_generated/app/spec/models/user_list_meta_spec.rb
|
|
405
413
|
- lib/smplkit/_generated/app/spec/models/user_list_response_spec.rb
|
|
406
414
|
- lib/smplkit/_generated/app/spec/models/user_request_spec.rb
|
|
407
415
|
- lib/smplkit/_generated/app/spec/models/user_resource_spec.rb
|
|
@@ -512,6 +520,8 @@ files:
|
|
|
512
520
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_resource.rb
|
|
513
521
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/config_response.rb
|
|
514
522
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/environment_override.rb
|
|
523
|
+
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/list_meta.rb
|
|
524
|
+
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/pagination_meta.rb
|
|
515
525
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/usage_attributes.rb
|
|
516
526
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/usage_list_response.rb
|
|
517
527
|
- lib/smplkit/_generated/config/lib/smplkit_config_client/models/usage_resource.rb
|
|
@@ -526,6 +536,8 @@ files:
|
|
|
526
536
|
- lib/smplkit/_generated/config/spec/models/config_response_spec.rb
|
|
527
537
|
- lib/smplkit/_generated/config/spec/models/config_spec.rb
|
|
528
538
|
- lib/smplkit/_generated/config/spec/models/environment_override_spec.rb
|
|
539
|
+
- lib/smplkit/_generated/config/spec/models/list_meta_spec.rb
|
|
540
|
+
- lib/smplkit/_generated/config/spec/models/pagination_meta_spec.rb
|
|
529
541
|
- lib/smplkit/_generated/config/spec/models/usage_attributes_spec.rb
|
|
530
542
|
- lib/smplkit/_generated/config/spec/models/usage_list_response_spec.rb
|
|
531
543
|
- lib/smplkit/_generated/config/spec/models/usage_resource_spec.rb
|