smplkit 3.0.6 → 3.0.7
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/logging/lib/smplkit_logging_client/api/log_groups_api.rb +9 -2
- data/lib/smplkit/_generated/logging/lib/smplkit_logging_client/api/logger_sources_api.rb +18 -4
- data/lib/smplkit/_generated/logging/lib/smplkit_logging_client/api/loggers_api.rb +9 -2
- data/lib/smplkit/_generated/logging/lib/smplkit_logging_client/api/services_api.rb +9 -2
- data/lib/smplkit/_generated/logging/spec/api/log_groups_api_spec.rb +2 -1
- data/lib/smplkit/_generated/logging/spec/api/logger_sources_api_spec.rb +4 -2
- data/lib/smplkit/_generated/logging/spec/api/loggers_api_spec.rb +2 -1
- data/lib/smplkit/_generated/logging/spec/api/services_api_spec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1fc071e8cae2cb8461a8e55fe564dcbdc446cae32a0735d90624a9f5ccbd944
|
|
4
|
+
data.tar.gz: 65c1e1e655595c0b444e27ad421b9cd42eed5882e6c5b488afe2df6673e5d547
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 512e2fcb432fe88a942c5734e137ddd81189aa9ba64507b196def8f4e35add40affad4bf1a744dc0c0a11c68c5f23e25bbb554950770fed27f217c557d7ef70c
|
|
7
|
+
data.tar.gz: 3c423613894ce47daaab38db04addae21892c945a665714d41a2b43330392e1d56dc74167531c1fd23ce40c7be613e36f7539aca6e4f93707f80a58eb5fae6ab
|
|
@@ -214,8 +214,9 @@ module SmplkitGeneratedClient::Logging
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# List Log Groups
|
|
217
|
-
# List log groups for this account.
|
|
217
|
+
# List log groups for this account. Default sort is `key` ascending.
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @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`. (default to 'key')
|
|
219
220
|
# @return [LogGroupListResponse]
|
|
220
221
|
def list_log_groups(opts = {})
|
|
221
222
|
data, _status_code, _headers = list_log_groups_with_http_info(opts)
|
|
@@ -223,18 +224,24 @@ module SmplkitGeneratedClient::Logging
|
|
|
223
224
|
end
|
|
224
225
|
|
|
225
226
|
# List Log Groups
|
|
226
|
-
# List log groups for this account.
|
|
227
|
+
# List log groups for this account. Default sort is `key` ascending.
|
|
227
228
|
# @param [Hash] opts the optional parameters
|
|
229
|
+
# @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`. (default to 'key')
|
|
228
230
|
# @return [Array<(LogGroupListResponse, Integer, Hash)>] LogGroupListResponse data, response status code and response headers
|
|
229
231
|
def list_log_groups_with_http_info(opts = {})
|
|
230
232
|
if @api_client.config.debugging
|
|
231
233
|
@api_client.config.logger.debug 'Calling API: LogGroupsApi.list_log_groups ...'
|
|
232
234
|
end
|
|
235
|
+
allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "updated_at", "-updated_at"]
|
|
236
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
237
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
238
|
+
end
|
|
233
239
|
# resource path
|
|
234
240
|
local_var_path = '/api/v1/log_groups'
|
|
235
241
|
|
|
236
242
|
# query parameters
|
|
237
243
|
query_params = opts[:query_params] || {}
|
|
244
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
238
245
|
|
|
239
246
|
# header parameters
|
|
240
247
|
header_params = opts[:header_params] || {}
|
|
@@ -20,10 +20,11 @@ module SmplkitGeneratedClient::Logging
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# List All Logger Sources
|
|
23
|
-
# List every logger source observation for this account. Supports `filter[environment]` and `filter[service]` to narrow to a specific environment or service.
|
|
23
|
+
# List every logger source observation for this account. Default sort is `-last_seen` (most recently observed first). Supports `filter[environment]` and `filter[service]` to narrow to a specific environment or service.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [String] :filter_environment
|
|
26
26
|
# @option opts [String] :filter_service
|
|
27
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (default to '-last_seen')
|
|
27
28
|
# @return [LoggerSourceListResponse]
|
|
28
29
|
def list_all_logger_sources(opts = {})
|
|
29
30
|
data, _status_code, _headers = list_all_logger_sources_with_http_info(opts)
|
|
@@ -31,15 +32,20 @@ module SmplkitGeneratedClient::Logging
|
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
# List All Logger Sources
|
|
34
|
-
# List every logger source observation for this account. Supports `filter[environment]` and `filter[service]` to narrow to a specific environment or service.
|
|
35
|
+
# List every logger source observation for this account. Default sort is `-last_seen` (most recently observed first). Supports `filter[environment]` and `filter[service]` to narrow to a specific environment or service.
|
|
35
36
|
# @param [Hash] opts the optional parameters
|
|
36
37
|
# @option opts [String] :filter_environment
|
|
37
38
|
# @option opts [String] :filter_service
|
|
39
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (default to '-last_seen')
|
|
38
40
|
# @return [Array<(LoggerSourceListResponse, Integer, Hash)>] LoggerSourceListResponse data, response status code and response headers
|
|
39
41
|
def list_all_logger_sources_with_http_info(opts = {})
|
|
40
42
|
if @api_client.config.debugging
|
|
41
43
|
@api_client.config.logger.debug 'Calling API: LoggerSourcesApi.list_all_logger_sources ...'
|
|
42
44
|
end
|
|
45
|
+
allowable_values = ["created_at", "-created_at", "environment", "-environment", "last_seen", "-last_seen", "service", "-service"]
|
|
46
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
47
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
48
|
+
end
|
|
43
49
|
# resource path
|
|
44
50
|
local_var_path = '/api/v1/logger_sources'
|
|
45
51
|
|
|
@@ -47,6 +53,7 @@ module SmplkitGeneratedClient::Logging
|
|
|
47
53
|
query_params = opts[:query_params] || {}
|
|
48
54
|
query_params[:'filter[environment]'] = opts[:'filter_environment'] if !opts[:'filter_environment'].nil?
|
|
49
55
|
query_params[:'filter[service]'] = opts[:'filter_service'] if !opts[:'filter_service'].nil?
|
|
56
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
50
57
|
|
|
51
58
|
# header parameters
|
|
52
59
|
header_params = opts[:header_params] || {}
|
|
@@ -83,9 +90,10 @@ module SmplkitGeneratedClient::Logging
|
|
|
83
90
|
end
|
|
84
91
|
|
|
85
92
|
# List Logger Sources
|
|
86
|
-
# List the service / environment observations recorded for a logger.
|
|
93
|
+
# List the service / environment observations recorded for a logger. Default sort is `-last_seen` (most recently observed first).
|
|
87
94
|
# @param id [String]
|
|
88
95
|
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (default to '-last_seen')
|
|
89
97
|
# @return [LoggerSourceListResponse]
|
|
90
98
|
def list_logger_sources(id, opts = {})
|
|
91
99
|
data, _status_code, _headers = list_logger_sources_with_http_info(id, opts)
|
|
@@ -93,9 +101,10 @@ module SmplkitGeneratedClient::Logging
|
|
|
93
101
|
end
|
|
94
102
|
|
|
95
103
|
# List Logger Sources
|
|
96
|
-
# List the service / environment observations recorded for a logger.
|
|
104
|
+
# List the service / environment observations recorded for a logger. Default sort is `-last_seen` (most recently observed first).
|
|
97
105
|
# @param id [String]
|
|
98
106
|
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (default to '-last_seen')
|
|
99
108
|
# @return [Array<(LoggerSourceListResponse, Integer, Hash)>] LoggerSourceListResponse data, response status code and response headers
|
|
100
109
|
def list_logger_sources_with_http_info(id, opts = {})
|
|
101
110
|
if @api_client.config.debugging
|
|
@@ -105,11 +114,16 @@ module SmplkitGeneratedClient::Logging
|
|
|
105
114
|
if @api_client.config.client_side_validation && id.nil?
|
|
106
115
|
fail ArgumentError, "Missing the required parameter 'id' when calling LoggerSourcesApi.list_logger_sources"
|
|
107
116
|
end
|
|
117
|
+
allowable_values = ["created_at", "-created_at", "environment", "-environment", "last_seen", "-last_seen", "service", "-service"]
|
|
118
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
119
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
120
|
+
end
|
|
108
121
|
# resource path
|
|
109
122
|
local_var_path = '/api/v1/loggers/{id}/sources'.sub('{id}', CGI.escape(id.to_s))
|
|
110
123
|
|
|
111
124
|
# query parameters
|
|
112
125
|
query_params = opts[:query_params] || {}
|
|
126
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
113
127
|
|
|
114
128
|
# header parameters
|
|
115
129
|
header_params = opts[:header_params] || {}
|
|
@@ -214,11 +214,12 @@ module SmplkitGeneratedClient::Logging
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# List Loggers
|
|
217
|
-
# List loggers for this account. Supports `filter[managed]` to narrow to managed (or unmanaged) loggers, `filter[service]` to keep only loggers observed in a specific service, and `filter[last_seen]` (interval notation `[<from>,*)`) to keep only loggers with a source observation at or after the given timestamp.
|
|
217
|
+
# List loggers for this account. Default sort is `key` ascending. Supports `filter[managed]` to narrow to managed (or unmanaged) loggers, `filter[service]` to keep only loggers observed in a specific service, and `filter[last_seen]` (interval notation `[<from>,*)`) to keep only loggers with a source observation at or after the given timestamp.
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
219
|
# @option opts [Boolean] :filter_managed
|
|
220
220
|
# @option opts [String] :filter_service
|
|
221
221
|
# @option opts [String] :filter_last_seen
|
|
222
|
+
# @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`. (default to 'key')
|
|
222
223
|
# @return [LoggerListResponse]
|
|
223
224
|
def list_loggers(opts = {})
|
|
224
225
|
data, _status_code, _headers = list_loggers_with_http_info(opts)
|
|
@@ -226,16 +227,21 @@ module SmplkitGeneratedClient::Logging
|
|
|
226
227
|
end
|
|
227
228
|
|
|
228
229
|
# List Loggers
|
|
229
|
-
# List loggers for this account. Supports `filter[managed]` to narrow to managed (or unmanaged) loggers, `filter[service]` to keep only loggers observed in a specific service, and `filter[last_seen]` (interval notation `[<from>,*)`) to keep only loggers with a source observation at or after the given timestamp.
|
|
230
|
+
# List loggers for this account. Default sort is `key` ascending. Supports `filter[managed]` to narrow to managed (or unmanaged) loggers, `filter[service]` to keep only loggers observed in a specific service, and `filter[last_seen]` (interval notation `[<from>,*)`) to keep only loggers with a source observation at or after the given timestamp.
|
|
230
231
|
# @param [Hash] opts the optional parameters
|
|
231
232
|
# @option opts [Boolean] :filter_managed
|
|
232
233
|
# @option opts [String] :filter_service
|
|
233
234
|
# @option opts [String] :filter_last_seen
|
|
235
|
+
# @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`. (default to 'key')
|
|
234
236
|
# @return [Array<(LoggerListResponse, Integer, Hash)>] LoggerListResponse data, response status code and response headers
|
|
235
237
|
def list_loggers_with_http_info(opts = {})
|
|
236
238
|
if @api_client.config.debugging
|
|
237
239
|
@api_client.config.logger.debug 'Calling API: LoggersApi.list_loggers ...'
|
|
238
240
|
end
|
|
241
|
+
allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "updated_at", "-updated_at"]
|
|
242
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
243
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
244
|
+
end
|
|
239
245
|
# resource path
|
|
240
246
|
local_var_path = '/api/v1/loggers'
|
|
241
247
|
|
|
@@ -244,6 +250,7 @@ module SmplkitGeneratedClient::Logging
|
|
|
244
250
|
query_params[:'filter[managed]'] = opts[:'filter_managed'] if !opts[:'filter_managed'].nil?
|
|
245
251
|
query_params[:'filter[service]'] = opts[:'filter_service'] if !opts[:'filter_service'].nil?
|
|
246
252
|
query_params[:'filter[last_seen]'] = opts[:'filter_last_seen'] if !opts[:'filter_last_seen'].nil?
|
|
253
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
247
254
|
|
|
248
255
|
# header parameters
|
|
249
256
|
header_params = opts[:header_params] || {}
|
|
@@ -20,8 +20,9 @@ module SmplkitGeneratedClient::Logging
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# List Services
|
|
23
|
-
# List the services that have reported a logger for this account.
|
|
23
|
+
# List the services that have reported a logger for this account. Default sort is `name` ascending.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `name`, `-name`. (default to 'name')
|
|
25
26
|
# @return [ServiceListResponse]
|
|
26
27
|
def list_services(opts = {})
|
|
27
28
|
data, _status_code, _headers = list_services_with_http_info(opts)
|
|
@@ -29,18 +30,24 @@ module SmplkitGeneratedClient::Logging
|
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
# List Services
|
|
32
|
-
# List the services that have reported a logger for this account.
|
|
33
|
+
# List the services that have reported a logger for this account. Default sort is `name` ascending.
|
|
33
34
|
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `name`, `-name`. (default to 'name')
|
|
34
36
|
# @return [Array<(ServiceListResponse, Integer, Hash)>] ServiceListResponse data, response status code and response headers
|
|
35
37
|
def list_services_with_http_info(opts = {})
|
|
36
38
|
if @api_client.config.debugging
|
|
37
39
|
@api_client.config.logger.debug 'Calling API: ServicesApi.list_services ...'
|
|
38
40
|
end
|
|
41
|
+
allowable_values = ["name", "-name"]
|
|
42
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
43
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
44
|
+
end
|
|
39
45
|
# resource path
|
|
40
46
|
local_var_path = '/api/v1/services'
|
|
41
47
|
|
|
42
48
|
# query parameters
|
|
43
49
|
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
44
51
|
|
|
45
52
|
# header parameters
|
|
46
53
|
header_params = opts[:header_params] || {}
|
|
@@ -70,8 +70,9 @@ describe 'LogGroupsApi' do
|
|
|
70
70
|
|
|
71
71
|
# unit tests for list_log_groups
|
|
72
72
|
# List Log Groups
|
|
73
|
-
# List log groups for this account.
|
|
73
|
+
# List log groups for this account. Default sort is `key` ascending.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @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`.
|
|
75
76
|
# @return [LogGroupListResponse]
|
|
76
77
|
describe 'list_log_groups test' do
|
|
77
78
|
it 'should work' do
|
|
@@ -34,10 +34,11 @@ describe 'LoggerSourcesApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for list_all_logger_sources
|
|
36
36
|
# List All Logger Sources
|
|
37
|
-
# List every logger source observation for this account. Supports `filter[environment]` and `filter[service]` to narrow to a specific environment or service.
|
|
37
|
+
# List every logger source observation for this account. Default sort is `-last_seen` (most recently observed first). Supports `filter[environment]` and `filter[service]` to narrow to a specific environment or service.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :filter_environment
|
|
40
40
|
# @option opts [String] :filter_service
|
|
41
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`.
|
|
41
42
|
# @return [LoggerSourceListResponse]
|
|
42
43
|
describe 'list_all_logger_sources test' do
|
|
43
44
|
it 'should work' do
|
|
@@ -47,9 +48,10 @@ describe 'LoggerSourcesApi' do
|
|
|
47
48
|
|
|
48
49
|
# unit tests for list_logger_sources
|
|
49
50
|
# List Logger Sources
|
|
50
|
-
# List the service / environment observations recorded for a logger.
|
|
51
|
+
# List the service / environment observations recorded for a logger. Default sort is `-last_seen` (most recently observed first).
|
|
51
52
|
# @param id
|
|
52
53
|
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`.
|
|
53
55
|
# @return [LoggerSourceListResponse]
|
|
54
56
|
describe 'list_logger_sources test' do
|
|
55
57
|
it 'should work' do
|
|
@@ -70,11 +70,12 @@ describe 'LoggersApi' do
|
|
|
70
70
|
|
|
71
71
|
# unit tests for list_loggers
|
|
72
72
|
# List Loggers
|
|
73
|
-
# List loggers for this account. Supports `filter[managed]` to narrow to managed (or unmanaged) loggers, `filter[service]` to keep only loggers observed in a specific service, and `filter[last_seen]` (interval notation `[<from>,*)`) to keep only loggers with a source observation at or after the given timestamp.
|
|
73
|
+
# List loggers for this account. Default sort is `key` ascending. Supports `filter[managed]` to narrow to managed (or unmanaged) loggers, `filter[service]` to keep only loggers observed in a specific service, and `filter[last_seen]` (interval notation `[<from>,*)`) to keep only loggers with a source observation at or after the given timestamp.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @option opts [Boolean] :filter_managed
|
|
76
76
|
# @option opts [String] :filter_service
|
|
77
77
|
# @option opts [String] :filter_last_seen
|
|
78
|
+
# @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`.
|
|
78
79
|
# @return [LoggerListResponse]
|
|
79
80
|
describe 'list_loggers test' do
|
|
80
81
|
it 'should work' do
|
|
@@ -34,8 +34,9 @@ describe 'ServicesApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for list_services
|
|
36
36
|
# List Services
|
|
37
|
-
# List the services that have reported a logger for this account.
|
|
37
|
+
# List the services that have reported a logger for this account. Default sort is `name` ascending.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `name`, `-name`.
|
|
39
40
|
# @return [ServiceListResponse]
|
|
40
41
|
describe 'list_services test' do
|
|
41
42
|
it 'should work' do
|