smplkit 3.0.122 → 3.0.123

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.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder.rb +5 -17
  3. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/{http_configuration.rb → forwarder_http_configuration.rb} +7 -7
  4. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_request.rb +3 -3
  5. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client.rb +1 -3
  6. data/lib/smplkit/_generated/audit/spec/models/{http_configuration_spec.rb → forwarder_http_configuration_spec.rb} +6 -6
  7. data/lib/smplkit/_generated/audit/spec/models/forwarder_spec.rb +0 -6
  8. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job.rb +2 -2
  9. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_http_configuration.rb +4 -4
  10. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client.rb +0 -2
  11. data/lib/smplkit/audit/forwarders.rb +18 -24
  12. data/lib/smplkit/audit/models.rb +175 -103
  13. data/lib/smplkit/jobs/client.rb +21 -26
  14. data/lib/smplkit/jobs/models.rb +233 -273
  15. metadata +3 -11
  16. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_environment.rb +0 -162
  17. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/http_header.rb +0 -220
  18. data/lib/smplkit/_generated/audit/spec/models/forwarder_environment_spec.rb +0 -42
  19. data/lib/smplkit/_generated/audit/spec/models/http_header_spec.rb +0 -42
  20. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/http_header.rb +0 -220
  21. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_environment.rb +0 -206
  22. data/lib/smplkit/_generated/jobs/spec/models/http_header_spec.rb +0 -42
  23. data/lib/smplkit/_generated/jobs/spec/models/job_environment_spec.rb +0 -66
@@ -1,220 +0,0 @@
1
- =begin
2
- #smplkit Jobs API
3
-
4
- #Scheduled HTTP job execution 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::Jobs
17
- # A single HTTP header attached to an outbound request. Header values are encrypted at the application layer before persistence regardless of header name; the wire representation here is always plaintext on both the request and the response, so a `GET → mutate → PUT` round-trip preserves header values without requiring the customer to re-enter secrets.
18
- class HttpHeader < ApiModelBase
19
- # Header name.
20
- attr_accessor :name
21
-
22
- # Header value. Stored encrypted at rest; returned as plaintext on `GET`.
23
- attr_accessor :value
24
-
25
- # Attribute mapping from ruby-style variable name to JSON key.
26
- def self.attribute_map
27
- {
28
- :'name' => :'name',
29
- :'value' => :'value'
30
- }
31
- end
32
-
33
- # Returns attribute mapping this model knows about
34
- def self.acceptable_attribute_map
35
- attribute_map
36
- end
37
-
38
- # Returns all the JSON keys this model knows about
39
- def self.acceptable_attributes
40
- acceptable_attribute_map.values
41
- end
42
-
43
- # Attribute type mapping.
44
- def self.openapi_types
45
- {
46
- :'name' => :'String',
47
- :'value' => :'String'
48
- }
49
- end
50
-
51
- # List of attributes with nullable: true
52
- def self.openapi_nullable
53
- Set.new([
54
- ])
55
- end
56
-
57
- # Initializes the object
58
- # @param [Hash] attributes Model attributes in the form of hash
59
- def initialize(attributes = {})
60
- if (!attributes.is_a?(Hash))
61
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Jobs::HttpHeader` initialize method"
62
- end
63
-
64
- # check to see if the attribute exists and convert string to symbol for hash key
65
- acceptable_attribute_map = self.class.acceptable_attribute_map
66
- attributes = attributes.each_with_object({}) { |(k, v), h|
67
- if (!acceptable_attribute_map.key?(k.to_sym))
68
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Jobs::HttpHeader`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
69
- end
70
- h[k.to_sym] = v
71
- }
72
-
73
- if attributes.key?(:'name')
74
- self.name = attributes[:'name']
75
- else
76
- self.name = nil
77
- end
78
-
79
- if attributes.key?(:'value')
80
- self.value = attributes[:'value']
81
- else
82
- self.value = nil
83
- end
84
- end
85
-
86
- # Show invalid properties with the reasons. Usually used together with valid?
87
- # @return Array for valid properties with the reasons
88
- def list_invalid_properties
89
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
90
- invalid_properties = Array.new
91
- if @name.nil?
92
- invalid_properties.push('invalid value for "name", name cannot be nil.')
93
- end
94
-
95
- if @name.to_s.length > 200
96
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 200.')
97
- end
98
-
99
- if @name.to_s.length < 1
100
- invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
101
- end
102
-
103
- if @value.nil?
104
- invalid_properties.push('invalid value for "value", value cannot be nil.')
105
- end
106
-
107
- if @value.to_s.length > 8192
108
- invalid_properties.push('invalid value for "value", the character length must be smaller than or equal to 8192.')
109
- end
110
-
111
- invalid_properties
112
- end
113
-
114
- # Check to see if the all the properties in the model are valid
115
- # @return true if the model is valid
116
- def valid?
117
- warn '[DEPRECATED] the `valid?` method is obsolete'
118
- return false if @name.nil?
119
- return false if @name.to_s.length > 200
120
- return false if @name.to_s.length < 1
121
- return false if @value.nil?
122
- return false if @value.to_s.length > 8192
123
- true
124
- end
125
-
126
- # Custom attribute writer method with validation
127
- # @param [Object] name Value to be assigned
128
- def name=(name)
129
- if name.nil?
130
- fail ArgumentError, 'name cannot be nil'
131
- end
132
-
133
- if name.to_s.length > 200
134
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 200.'
135
- end
136
-
137
- if name.to_s.length < 1
138
- fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
139
- end
140
-
141
- @name = name
142
- end
143
-
144
- # Custom attribute writer method with validation
145
- # @param [Object] value Value to be assigned
146
- def value=(value)
147
- if value.nil?
148
- fail ArgumentError, 'value cannot be nil'
149
- end
150
-
151
- if value.to_s.length > 8192
152
- fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to 8192.'
153
- end
154
-
155
- @value = value
156
- end
157
-
158
- # Checks equality by comparing each attribute.
159
- # @param [Object] Object to be compared
160
- def ==(o)
161
- return true if self.equal?(o)
162
- self.class == o.class &&
163
- name == o.name &&
164
- value == o.value
165
- end
166
-
167
- # @see the `==` method
168
- # @param [Object] Object to be compared
169
- def eql?(o)
170
- self == o
171
- end
172
-
173
- # Calculates hash code according to all attributes.
174
- # @return [Integer] Hash code
175
- def hash
176
- [name, value].hash
177
- end
178
-
179
- # Builds the object from hash
180
- # @param [Hash] attributes Model attributes in the form of hash
181
- # @return [Object] Returns the model itself
182
- def self.build_from_hash(attributes)
183
- return nil unless attributes.is_a?(Hash)
184
- attributes = attributes.transform_keys(&:to_sym)
185
- transformed_hash = {}
186
- openapi_types.each_pair do |key, type|
187
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
188
- transformed_hash["#{key}"] = nil
189
- elsif type =~ /\AArray<(.*)>/i
190
- # check to ensure the input is an array given that the attribute
191
- # is documented as an array but the input is not
192
- if attributes[attribute_map[key]].is_a?(Array)
193
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
194
- end
195
- elsif !attributes[attribute_map[key]].nil?
196
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
197
- end
198
- end
199
- new(transformed_hash)
200
- end
201
-
202
- # Returns the object in the form of hash
203
- # @return [Hash] Returns the object in the form of hash
204
- def to_hash
205
- hash = {}
206
- self.class.attribute_map.each_pair do |attr, param|
207
- value = self.send(attr)
208
- if value.nil?
209
- is_nullable = self.class.openapi_nullable.include?(attr)
210
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
211
- end
212
-
213
- hash[param] = _to_hash(value)
214
- end
215
- hash
216
- end
217
-
218
- end
219
-
220
- end
@@ -1,206 +0,0 @@
1
- =begin
2
- #smplkit Jobs API
3
-
4
- #Scheduled HTTP job execution 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::Jobs
17
- # Per-environment override for a job's enablement, schedule, and configuration.
18
- class JobEnvironment < ApiModelBase
19
- # Whether the job schedules runs in this environment. A job runs in an environment only via this field; it is disabled in every environment by default.
20
- attr_accessor :enabled
21
-
22
- # Per-environment schedule override. Omit to inherit the job's base `schedule`. When present, it must be a 5-field cron expression (e.g. `0 3 * * *`), evaluated in this environment's effective `timezone` (the per-environment override, else the base, else UTC), and is only allowed on a recurring (cron) job — it varies the cadence within that environment. It cannot appear on a manual or one-off job, and cannot change a job's kind.
23
- attr_accessor :schedule
24
-
25
- # Per-environment timezone override for evaluating this environment's cron `schedule`. Omit to inherit the base `timezone` (else UTC). When present, it must be a valid IANA timezone key (e.g. `America/New_York`). Only valid on a recurring (cron) job; it may be set on an environment that inherits the base schedule (it need not also override `schedule`).
26
- attr_accessor :timezone
27
-
28
- # Per-environment HTTP request override. Omit to inherit the job's base `configuration`. When present, it fully replaces the base configuration for runs in this environment.
29
- attr_accessor :configuration
30
-
31
- # Per-environment retry-policy override — the `id` of a retry policy (or `Default`). Omit to inherit the job's base `retry_policy`. When present, runs in this environment retry according to this policy instead of the base.
32
- attr_accessor :retry_policy
33
-
34
- # The next scheduled fire time in this environment. `null` when the environment is not enabled, or once a one-off run has fired.
35
- attr_accessor :next_run_at
36
-
37
- # Attribute mapping from ruby-style variable name to JSON key.
38
- def self.attribute_map
39
- {
40
- :'enabled' => :'enabled',
41
- :'schedule' => :'schedule',
42
- :'timezone' => :'timezone',
43
- :'configuration' => :'configuration',
44
- :'retry_policy' => :'retry_policy',
45
- :'next_run_at' => :'next_run_at'
46
- }
47
- end
48
-
49
- # Returns attribute mapping this model knows about
50
- def self.acceptable_attribute_map
51
- attribute_map
52
- end
53
-
54
- # Returns all the JSON keys this model knows about
55
- def self.acceptable_attributes
56
- acceptable_attribute_map.values
57
- end
58
-
59
- # Attribute type mapping.
60
- def self.openapi_types
61
- {
62
- :'enabled' => :'Boolean',
63
- :'schedule' => :'String',
64
- :'timezone' => :'String',
65
- :'configuration' => :'JobHttpConfiguration',
66
- :'retry_policy' => :'String',
67
- :'next_run_at' => :'Time'
68
- }
69
- end
70
-
71
- # List of attributes with nullable: true
72
- def self.openapi_nullable
73
- Set.new([
74
- :'schedule',
75
- :'timezone',
76
- :'configuration',
77
- :'retry_policy',
78
- :'next_run_at'
79
- ])
80
- end
81
-
82
- # Initializes the object
83
- # @param [Hash] attributes Model attributes in the form of hash
84
- def initialize(attributes = {})
85
- if (!attributes.is_a?(Hash))
86
- fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Jobs::JobEnvironment` initialize method"
87
- end
88
-
89
- # check to see if the attribute exists and convert string to symbol for hash key
90
- acceptable_attribute_map = self.class.acceptable_attribute_map
91
- attributes = attributes.each_with_object({}) { |(k, v), h|
92
- if (!acceptable_attribute_map.key?(k.to_sym))
93
- fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Jobs::JobEnvironment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
94
- end
95
- h[k.to_sym] = v
96
- }
97
-
98
- if attributes.key?(:'enabled')
99
- self.enabled = attributes[:'enabled']
100
- else
101
- self.enabled = false
102
- end
103
-
104
- if attributes.key?(:'schedule')
105
- self.schedule = attributes[:'schedule']
106
- end
107
-
108
- if attributes.key?(:'timezone')
109
- self.timezone = attributes[:'timezone']
110
- end
111
-
112
- if attributes.key?(:'configuration')
113
- self.configuration = attributes[:'configuration']
114
- end
115
-
116
- if attributes.key?(:'retry_policy')
117
- self.retry_policy = attributes[:'retry_policy']
118
- end
119
-
120
- if attributes.key?(:'next_run_at')
121
- self.next_run_at = attributes[:'next_run_at']
122
- end
123
- end
124
-
125
- # Show invalid properties with the reasons. Usually used together with valid?
126
- # @return Array for valid properties with the reasons
127
- def list_invalid_properties
128
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
129
- invalid_properties = Array.new
130
- invalid_properties
131
- end
132
-
133
- # Check to see if the all the properties in the model are valid
134
- # @return true if the model is valid
135
- def valid?
136
- warn '[DEPRECATED] the `valid?` method is obsolete'
137
- true
138
- end
139
-
140
- # Checks equality by comparing each attribute.
141
- # @param [Object] Object to be compared
142
- def ==(o)
143
- return true if self.equal?(o)
144
- self.class == o.class &&
145
- enabled == o.enabled &&
146
- schedule == o.schedule &&
147
- timezone == o.timezone &&
148
- configuration == o.configuration &&
149
- retry_policy == o.retry_policy &&
150
- next_run_at == o.next_run_at
151
- end
152
-
153
- # @see the `==` method
154
- # @param [Object] Object to be compared
155
- def eql?(o)
156
- self == o
157
- end
158
-
159
- # Calculates hash code according to all attributes.
160
- # @return [Integer] Hash code
161
- def hash
162
- [enabled, schedule, timezone, configuration, retry_policy, next_run_at].hash
163
- end
164
-
165
- # Builds the object from hash
166
- # @param [Hash] attributes Model attributes in the form of hash
167
- # @return [Object] Returns the model itself
168
- def self.build_from_hash(attributes)
169
- return nil unless attributes.is_a?(Hash)
170
- attributes = attributes.transform_keys(&:to_sym)
171
- transformed_hash = {}
172
- openapi_types.each_pair do |key, type|
173
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
174
- transformed_hash["#{key}"] = nil
175
- elsif type =~ /\AArray<(.*)>/i
176
- # check to ensure the input is an array given that the attribute
177
- # is documented as an array but the input is not
178
- if attributes[attribute_map[key]].is_a?(Array)
179
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
180
- end
181
- elsif !attributes[attribute_map[key]].nil?
182
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
183
- end
184
- end
185
- new(transformed_hash)
186
- end
187
-
188
- # Returns the object in the form of hash
189
- # @return [Hash] Returns the object in the form of hash
190
- def to_hash
191
- hash = {}
192
- self.class.attribute_map.each_pair do |attr, param|
193
- value = self.send(attr)
194
- if value.nil?
195
- is_nullable = self.class.openapi_nullable.include?(attr)
196
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
197
- end
198
-
199
- hash[param] = _to_hash(value)
200
- end
201
- hash
202
- end
203
-
204
- end
205
-
206
- end
@@ -1,42 +0,0 @@
1
- =begin
2
- #smplkit Jobs API
3
-
4
- #Scheduled HTTP job execution 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::Jobs::HttpHeader
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Jobs::HttpHeader do
21
- #let(:instance) { SmplkitGeneratedClient::Jobs::HttpHeader.new }
22
-
23
- describe 'test an instance of HttpHeader' do
24
- it 'should create an instance of HttpHeader' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::HttpHeader)
27
- end
28
- end
29
-
30
- describe 'test attribute "name"' 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 "value"' 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
- end
@@ -1,66 +0,0 @@
1
- =begin
2
- #smplkit Jobs API
3
-
4
- #Scheduled HTTP job execution 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::Jobs::JobEnvironment
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Jobs::JobEnvironment do
21
- #let(:instance) { SmplkitGeneratedClient::Jobs::JobEnvironment.new }
22
-
23
- describe 'test an instance of JobEnvironment' do
24
- it 'should create an instance of JobEnvironment' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::JobEnvironment)
27
- end
28
- end
29
-
30
- describe 'test attribute "enabled"' 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 "schedule"' 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 "timezone"' 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 "configuration"' 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 "retry_policy"' 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 "next_run_at"' 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
- end