pulpcore_client 3.17.8 → 3.18.0

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -4
  3. data/docs/AccessPolicy.md +2 -2
  4. data/docs/AccessPolicyResponse.md +2 -2
  5. data/docs/ContentRedirectContentGuard.md +19 -0
  6. data/docs/ContentRedirectContentGuardResponse.md +23 -0
  7. data/docs/ContentguardsContentRedirectApi.md +361 -0
  8. data/docs/PaginatedContentRedirectContentGuardResponseList.md +23 -0
  9. data/docs/PaginatedTaskScheduleResponseList.md +23 -0
  10. data/docs/PatchedContentRedirectContentGuard.md +19 -0
  11. data/docs/TaskScheduleResponse.md +29 -0
  12. data/docs/TaskSchedulesApi.md +368 -0
  13. data/docs/WorkerResponse.md +6 -4
  14. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +440 -0
  15. data/lib/pulpcore_client/api/task_schedules_api.rb +441 -0
  16. data/lib/pulpcore_client/api_client.rb +4 -1
  17. data/lib/pulpcore_client/configuration.rb +0 -1
  18. data/lib/pulpcore_client/models/access_policy.rb +0 -10
  19. data/lib/pulpcore_client/models/access_policy_response.rb +0 -10
  20. data/lib/pulpcore_client/models/content_redirect_content_guard.rb +258 -0
  21. data/lib/pulpcore_client/models/content_redirect_content_guard_response.rb +243 -0
  22. data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +237 -0
  23. data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +237 -0
  24. data/lib/pulpcore_client/models/patched_content_redirect_content_guard.rb +249 -0
  25. data/lib/pulpcore_client/models/task_schedule_response.rb +282 -0
  26. data/lib/pulpcore_client/models/worker_response.rb +23 -13
  27. data/lib/pulpcore_client/version.rb +1 -1
  28. data/lib/pulpcore_client.rb +8 -0
  29. data/spec/api/contentguards_content_redirect_api_spec.rb +120 -0
  30. data/spec/api/task_schedules_api_spec.rb +119 -0
  31. data/spec/models/content_redirect_content_guard_response_spec.rb +59 -0
  32. data/spec/models/content_redirect_content_guard_spec.rb +47 -0
  33. data/spec/models/paginated_content_redirect_content_guard_response_list_spec.rb +59 -0
  34. data/spec/models/paginated_task_schedule_response_list_spec.rb +59 -0
  35. data/spec/models/patched_content_redirect_content_guard_spec.rb +47 -0
  36. data/spec/models/task_schedule_response_spec.rb +77 -0
  37. data/spec/models/worker_response_spec.rb +8 -2
  38. metadata +147 -115
@@ -0,0 +1,249 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpcoreClient
16
+ # A serializer for ContentRedirectContentGuard.
17
+ class PatchedContentRedirectContentGuard
18
+ # The unique name.
19
+ attr_accessor :name
20
+
21
+ # An optional description.
22
+ attr_accessor :description
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'name' => :'name',
28
+ :'description' => :'description'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'name' => :'String',
36
+ :'description' => :'String'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ :'description'
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::PatchedContentRedirectContentGuard` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::PatchedContentRedirectContentGuard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'name')
63
+ self.name = attributes[:'name']
64
+ end
65
+
66
+ if attributes.key?(:'description')
67
+ self.description = attributes[:'description']
68
+ end
69
+ end
70
+
71
+ # Show invalid properties with the reasons. Usually used together with valid?
72
+ # @return Array for valid properties with the reasons
73
+ def list_invalid_properties
74
+ invalid_properties = Array.new
75
+ if !@name.nil? && @name.to_s.length < 1
76
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
77
+ end
78
+
79
+ if !@description.nil? && @description.to_s.length < 1
80
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ return false if !@name.nil? && @name.to_s.length < 1
90
+ return false if !@description.nil? && @description.to_s.length < 1
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method with validation
95
+ # @param [Object] name Value to be assigned
96
+ def name=(name)
97
+ if !name.nil? && name.to_s.length < 1
98
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
99
+ end
100
+
101
+ @name = name
102
+ end
103
+
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] description Value to be assigned
106
+ def description=(description)
107
+ if !description.nil? && description.to_s.length < 1
108
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
109
+ end
110
+
111
+ @description = description
112
+ end
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ name == o.name &&
120
+ description == o.description
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [name, description].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ new.build_from_hash(attributes)
140
+ end
141
+
142
+ # Builds the object from hash
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ # @return [Object] Returns the model itself
145
+ def build_from_hash(attributes)
146
+ return nil unless attributes.is_a?(Hash)
147
+ self.class.openapi_types.each_pair do |key, type|
148
+ if type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the attribute
150
+ # is documented as an array but the input is not
151
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
152
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
153
+ end
154
+ elsif !attributes[self.class.attribute_map[key]].nil?
155
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
157
+ end
158
+
159
+ self
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def _deserialize(type, value)
167
+ case type.to_sym
168
+ when :DateTime
169
+ DateTime.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :Boolean
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ PulpcoreClient.const_get(type).build_from_hash(value)
200
+ end
201
+ end
202
+
203
+ # Returns the string representation of the object
204
+ # @return [String] String presentation of the object
205
+ def to_s
206
+ to_hash.to_s
207
+ end
208
+
209
+ # to_body is an alias to to_hash (backward compatibility)
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_body
212
+ to_hash
213
+ end
214
+
215
+ # Returns the object in the form of hash
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_hash
218
+ hash = {}
219
+ self.class.attribute_map.each_pair do |attr, param|
220
+ value = self.send(attr)
221
+ if value.nil?
222
+ is_nullable = self.class.openapi_nullable.include?(attr)
223
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
224
+ end
225
+
226
+ hash[param] = _to_hash(value)
227
+ end
228
+ hash
229
+ end
230
+
231
+ # Outputs non-array value in the form of hash
232
+ # For object, use to_hash. Otherwise, just return the value
233
+ # @param [Object] value Any valid value
234
+ # @return [Hash] Returns the value in the form of hash
235
+ def _to_hash(value)
236
+ if value.is_a?(Array)
237
+ value.compact.map { |v| _to_hash(v) }
238
+ elsif value.is_a?(Hash)
239
+ {}.tap do |hash|
240
+ value.each { |k, v| hash[k] = _to_hash(v) }
241
+ end
242
+ elsif value.respond_to? :to_hash
243
+ value.to_hash
244
+ else
245
+ value
246
+ end
247
+ end
248
+ end
249
+ end
@@ -0,0 +1,282 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpcoreClient
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ class TaskScheduleResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ # The name of the task schedule.
24
+ attr_accessor :name
25
+
26
+ # The name of the task to be scheduled.
27
+ attr_accessor :task_name
28
+
29
+ # Periodicity of the schedule.
30
+ attr_accessor :dispatch_interval
31
+
32
+ # Timestamp of the next time the task will be dispatched.
33
+ attr_accessor :next_dispatch
34
+
35
+ # The last task dispatched by this schedule.
36
+ attr_accessor :last_task
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'pulp_href' => :'pulp_href',
42
+ :'pulp_created' => :'pulp_created',
43
+ :'name' => :'name',
44
+ :'task_name' => :'task_name',
45
+ :'dispatch_interval' => :'dispatch_interval',
46
+ :'next_dispatch' => :'next_dispatch',
47
+ :'last_task' => :'last_task'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'pulp_href' => :'String',
55
+ :'pulp_created' => :'DateTime',
56
+ :'name' => :'String',
57
+ :'task_name' => :'String',
58
+ :'dispatch_interval' => :'String',
59
+ :'next_dispatch' => :'DateTime',
60
+ :'last_task' => :'String'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::TaskScheduleResponse` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ attributes = attributes.each_with_object({}) { |(k, v), h|
79
+ if (!self.class.attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::TaskScheduleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ end
82
+ h[k.to_sym] = v
83
+ }
84
+
85
+ if attributes.key?(:'pulp_href')
86
+ self.pulp_href = attributes[:'pulp_href']
87
+ end
88
+
89
+ if attributes.key?(:'pulp_created')
90
+ self.pulp_created = attributes[:'pulp_created']
91
+ end
92
+
93
+ if attributes.key?(:'name')
94
+ self.name = attributes[:'name']
95
+ end
96
+
97
+ if attributes.key?(:'task_name')
98
+ self.task_name = attributes[:'task_name']
99
+ end
100
+
101
+ if attributes.key?(:'dispatch_interval')
102
+ self.dispatch_interval = attributes[:'dispatch_interval']
103
+ end
104
+
105
+ if attributes.key?(:'next_dispatch')
106
+ self.next_dispatch = attributes[:'next_dispatch']
107
+ end
108
+
109
+ if attributes.key?(:'last_task')
110
+ self.last_task = attributes[:'last_task']
111
+ end
112
+ end
113
+
114
+ # Show invalid properties with the reasons. Usually used together with valid?
115
+ # @return Array for valid properties with the reasons
116
+ def list_invalid_properties
117
+ invalid_properties = Array.new
118
+ if @name.nil?
119
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
120
+ end
121
+
122
+ if @task_name.nil?
123
+ invalid_properties.push('invalid value for "task_name", task_name cannot be nil.')
124
+ end
125
+
126
+ if @dispatch_interval.nil?
127
+ invalid_properties.push('invalid value for "dispatch_interval", dispatch_interval cannot be nil.')
128
+ end
129
+
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
+ return false if @name.nil?
137
+ return false if @task_name.nil?
138
+ return false if @dispatch_interval.nil?
139
+ true
140
+ end
141
+
142
+ # Checks equality by comparing each attribute.
143
+ # @param [Object] Object to be compared
144
+ def ==(o)
145
+ return true if self.equal?(o)
146
+ self.class == o.class &&
147
+ pulp_href == o.pulp_href &&
148
+ pulp_created == o.pulp_created &&
149
+ name == o.name &&
150
+ task_name == o.task_name &&
151
+ dispatch_interval == o.dispatch_interval &&
152
+ next_dispatch == o.next_dispatch &&
153
+ last_task == o.last_task
154
+ end
155
+
156
+ # @see the `==` method
157
+ # @param [Object] Object to be compared
158
+ def eql?(o)
159
+ self == o
160
+ end
161
+
162
+ # Calculates hash code according to all attributes.
163
+ # @return [Integer] Hash code
164
+ def hash
165
+ [pulp_href, pulp_created, name, task_name, dispatch_interval, next_dispatch, last_task].hash
166
+ end
167
+
168
+ # Builds the object from hash
169
+ # @param [Hash] attributes Model attributes in the form of hash
170
+ # @return [Object] Returns the model itself
171
+ def self.build_from_hash(attributes)
172
+ new.build_from_hash(attributes)
173
+ end
174
+
175
+ # Builds the object from hash
176
+ # @param [Hash] attributes Model attributes in the form of hash
177
+ # @return [Object] Returns the model itself
178
+ def build_from_hash(attributes)
179
+ return nil unless attributes.is_a?(Hash)
180
+ self.class.openapi_types.each_pair do |key, type|
181
+ if type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the attribute
183
+ # is documented as an array but the input is not
184
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
185
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
186
+ end
187
+ elsif !attributes[self.class.attribute_map[key]].nil?
188
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
189
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
190
+ end
191
+
192
+ self
193
+ end
194
+
195
+ # Deserializes the data based on type
196
+ # @param string type Data type
197
+ # @param string value Value to be deserialized
198
+ # @return [Object] Deserialized data
199
+ def _deserialize(type, value)
200
+ case type.to_sym
201
+ when :DateTime
202
+ DateTime.parse(value)
203
+ when :Date
204
+ Date.parse(value)
205
+ when :String
206
+ value.to_s
207
+ when :Integer
208
+ value.to_i
209
+ when :Float
210
+ value.to_f
211
+ when :Boolean
212
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
213
+ true
214
+ else
215
+ false
216
+ end
217
+ when :Object
218
+ # generic object (usually a Hash), return directly
219
+ value
220
+ when /\AArray<(?<inner_type>.+)>\z/
221
+ inner_type = Regexp.last_match[:inner_type]
222
+ value.map { |v| _deserialize(inner_type, v) }
223
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
224
+ k_type = Regexp.last_match[:k_type]
225
+ v_type = Regexp.last_match[:v_type]
226
+ {}.tap do |hash|
227
+ value.each do |k, v|
228
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
229
+ end
230
+ end
231
+ else # model
232
+ PulpcoreClient.const_get(type).build_from_hash(value)
233
+ end
234
+ end
235
+
236
+ # Returns the string representation of the object
237
+ # @return [String] String presentation of the object
238
+ def to_s
239
+ to_hash.to_s
240
+ end
241
+
242
+ # to_body is an alias to to_hash (backward compatibility)
243
+ # @return [Hash] Returns the object in the form of hash
244
+ def to_body
245
+ to_hash
246
+ end
247
+
248
+ # Returns the object in the form of hash
249
+ # @return [Hash] Returns the object in the form of hash
250
+ def to_hash
251
+ hash = {}
252
+ self.class.attribute_map.each_pair do |attr, param|
253
+ value = self.send(attr)
254
+ if value.nil?
255
+ is_nullable = self.class.openapi_nullable.include?(attr)
256
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
257
+ end
258
+
259
+ hash[param] = _to_hash(value)
260
+ end
261
+ hash
262
+ end
263
+
264
+ # Outputs non-array value in the form of hash
265
+ # For object, use to_hash. Otherwise, just return the value
266
+ # @param [Object] value Any valid value
267
+ # @return [Hash] Returns the value in the form of hash
268
+ def _to_hash(value)
269
+ if value.is_a?(Array)
270
+ value.compact.map { |v| _to_hash(v) }
271
+ elsif value.is_a?(Hash)
272
+ {}.tap do |hash|
273
+ value.each { |k, v| hash[k] = _to_hash(v) }
274
+ end
275
+ elsif value.respond_to? :to_hash
276
+ value.to_hash
277
+ else
278
+ value
279
+ end
280
+ end
281
+ end
282
+ end
@@ -15,34 +15,39 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
17
  class WorkerResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Timestamp of creation.
19
21
  attr_accessor :pulp_created
20
22
 
21
- attr_accessor :pulp_href
22
-
23
23
  # The name of the worker.
24
24
  attr_accessor :name
25
25
 
26
26
  # Timestamp of the last time the worker talked to the service.
27
27
  attr_accessor :last_heartbeat
28
28
 
29
+ # The task this worker is currently executing, or empty if the worker is not currently assigned to a task.
30
+ attr_accessor :current_task
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
- :'pulp_created' => :'pulp_created',
33
35
  :'pulp_href' => :'pulp_href',
36
+ :'pulp_created' => :'pulp_created',
34
37
  :'name' => :'name',
35
- :'last_heartbeat' => :'last_heartbeat'
38
+ :'last_heartbeat' => :'last_heartbeat',
39
+ :'current_task' => :'current_task'
36
40
  }
37
41
  end
38
42
 
39
43
  # Attribute type mapping.
40
44
  def self.openapi_types
41
45
  {
42
- :'pulp_created' => :'DateTime',
43
46
  :'pulp_href' => :'String',
47
+ :'pulp_created' => :'DateTime',
44
48
  :'name' => :'String',
45
- :'last_heartbeat' => :'DateTime'
49
+ :'last_heartbeat' => :'DateTime',
50
+ :'current_task' => :'String'
46
51
  }
47
52
  end
48
53
 
@@ -67,14 +72,14 @@ module PulpcoreClient
67
72
  h[k.to_sym] = v
68
73
  }
69
74
 
70
- if attributes.key?(:'pulp_created')
71
- self.pulp_created = attributes[:'pulp_created']
72
- end
73
-
74
75
  if attributes.key?(:'pulp_href')
75
76
  self.pulp_href = attributes[:'pulp_href']
76
77
  end
77
78
 
79
+ if attributes.key?(:'pulp_created')
80
+ self.pulp_created = attributes[:'pulp_created']
81
+ end
82
+
78
83
  if attributes.key?(:'name')
79
84
  self.name = attributes[:'name']
80
85
  end
@@ -82,6 +87,10 @@ module PulpcoreClient
82
87
  if attributes.key?(:'last_heartbeat')
83
88
  self.last_heartbeat = attributes[:'last_heartbeat']
84
89
  end
90
+
91
+ if attributes.key?(:'current_task')
92
+ self.current_task = attributes[:'current_task']
93
+ end
85
94
  end
86
95
 
87
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -102,10 +111,11 @@ module PulpcoreClient
102
111
  def ==(o)
103
112
  return true if self.equal?(o)
104
113
  self.class == o.class &&
105
- pulp_created == o.pulp_created &&
106
114
  pulp_href == o.pulp_href &&
115
+ pulp_created == o.pulp_created &&
107
116
  name == o.name &&
108
- last_heartbeat == o.last_heartbeat
117
+ last_heartbeat == o.last_heartbeat &&
118
+ current_task == o.current_task
109
119
  end
110
120
 
111
121
  # @see the `==` method
@@ -117,7 +127,7 @@ module PulpcoreClient
117
127
  # Calculates hash code according to all attributes.
118
128
  # @return [Integer] Hash code
119
129
  def hash
120
- [pulp_created, pulp_href, name, last_heartbeat].hash
130
+ [pulp_href, pulp_created, name, last_heartbeat, current_task].hash
121
131
  end
122
132
 
123
133
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.17.8'
14
+ VERSION = '3.18.0'
15
15
  end
@@ -24,6 +24,8 @@ require 'pulpcore_client/models/artifact_response'
24
24
  require 'pulpcore_client/models/async_operation_response'
25
25
  require 'pulpcore_client/models/content_app_status_response'
26
26
  require 'pulpcore_client/models/content_guard_response'
27
+ require 'pulpcore_client/models/content_redirect_content_guard'
28
+ require 'pulpcore_client/models/content_redirect_content_guard_response'
27
29
  require 'pulpcore_client/models/content_summary_response'
28
30
  require 'pulpcore_client/models/database_connection_response'
29
31
  require 'pulpcore_client/models/evaluation_response'
@@ -50,6 +52,7 @@ require 'pulpcore_client/models/orphans_cleanup'
50
52
  require 'pulpcore_client/models/paginated_access_policy_response_list'
51
53
  require 'pulpcore_client/models/paginated_artifact_response_list'
52
54
  require 'pulpcore_client/models/paginated_content_guard_response_list'
55
+ require 'pulpcore_client/models/paginated_content_redirect_content_guard_response_list'
53
56
  require 'pulpcore_client/models/paginated_filesystem_export_response_list'
54
57
  require 'pulpcore_client/models/paginated_filesystem_exporter_response_list'
55
58
  require 'pulpcore_client/models/paginated_group_response_list'
@@ -69,11 +72,13 @@ require 'pulpcore_client/models/paginated_role_response_list'
69
72
  require 'pulpcore_client/models/paginated_signing_service_response_list'
70
73
  require 'pulpcore_client/models/paginated_task_group_response_list'
71
74
  require 'pulpcore_client/models/paginated_task_response_list'
75
+ require 'pulpcore_client/models/paginated_task_schedule_response_list'
72
76
  require 'pulpcore_client/models/paginated_upload_response_list'
73
77
  require 'pulpcore_client/models/paginated_user_response_list'
74
78
  require 'pulpcore_client/models/paginated_user_role_response_list'
75
79
  require 'pulpcore_client/models/paginated_worker_response_list'
76
80
  require 'pulpcore_client/models/patched_access_policy'
81
+ require 'pulpcore_client/models/patched_content_redirect_content_guard'
77
82
  require 'pulpcore_client/models/patched_filesystem_exporter'
78
83
  require 'pulpcore_client/models/patched_group'
79
84
  require 'pulpcore_client/models/patched_pulp_exporter'
@@ -111,6 +116,7 @@ require 'pulpcore_client/models/storage_response'
111
116
  require 'pulpcore_client/models/task_group_operation_response'
112
117
  require 'pulpcore_client/models/task_group_response'
113
118
  require 'pulpcore_client/models/task_response'
119
+ require 'pulpcore_client/models/task_schedule_response'
114
120
  require 'pulpcore_client/models/upload'
115
121
  require 'pulpcore_client/models/upload_chunk'
116
122
  require 'pulpcore_client/models/upload_chunk_response'
@@ -131,6 +137,7 @@ require 'pulpcore_client/api/access_policies_api'
131
137
  require 'pulpcore_client/api/artifacts_api'
132
138
  require 'pulpcore_client/api/content_api'
133
139
  require 'pulpcore_client/api/contentguards_api'
140
+ require 'pulpcore_client/api/contentguards_content_redirect_api'
134
141
  require 'pulpcore_client/api/contentguards_rbac_api'
135
142
  require 'pulpcore_client/api/exporters_filesystem_api'
136
143
  require 'pulpcore_client/api/exporters_filesystem_exports_api'
@@ -155,6 +162,7 @@ require 'pulpcore_client/api/roles_api'
155
162
  require 'pulpcore_client/api/signing_services_api'
156
163
  require 'pulpcore_client/api/status_api'
157
164
  require 'pulpcore_client/api/task_groups_api'
165
+ require 'pulpcore_client/api/task_schedules_api'
158
166
  require 'pulpcore_client/api/tasks_api'
159
167
  require 'pulpcore_client/api/uploads_api'
160
168
  require 'pulpcore_client/api/users_api'