pulpcore_client 3.22.24 → 3.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -4
  3. data/docs/ArtifactDistributionResponse.md +8 -8
  4. data/docs/DistributionsApi.md +4 -0
  5. data/docs/DistributionsArtifactsApi.md +4 -0
  6. data/docs/Domain.md +27 -0
  7. data/docs/DomainResponse.md +31 -0
  8. data/docs/DomainsApi.md +362 -0
  9. data/docs/ExportersFilesystemApi.md +3 -3
  10. data/docs/ExportersFilesystemExportsApi.md +3 -3
  11. data/docs/GroupRole.md +3 -1
  12. data/docs/GroupRoleResponse.md +3 -1
  13. data/docs/GroupsApi.md +6 -6
  14. data/docs/GroupsRolesApi.md +6 -4
  15. data/docs/PaginatedDomainResponseList.md +23 -0
  16. data/docs/PaginatedUpstreamPulpResponseList.md +23 -0
  17. data/docs/PatchedDomain.md +27 -0
  18. data/docs/PatchedUpstreamPulp.md +37 -0
  19. data/docs/RepositoriesApi.md +16 -0
  20. data/docs/RepositoryResponse.md +1 -1
  21. data/docs/RolesApi.md +6 -6
  22. data/docs/StatusResponse.md +3 -1
  23. data/docs/StorageClassEnum.md +16 -0
  24. data/docs/TaskSchedulesApi.md +2 -2
  25. data/docs/TasksApi.md +1 -1
  26. data/docs/UpstreamPulp.md +37 -0
  27. data/docs/UpstreamPulpResponse.md +39 -0
  28. data/docs/UpstreamPulpsApi.md +405 -0
  29. data/docs/UserRole.md +4 -2
  30. data/docs/UserRoleResponse.md +4 -2
  31. data/docs/UsersApi.md +6 -6
  32. data/docs/UsersRolesApi.md +6 -4
  33. data/docs/VersionResponse.md +3 -1
  34. data/lib/pulpcore_client/api/distributions_api.rb +6 -0
  35. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +6 -0
  36. data/lib/pulpcore_client/api/domains_api.rb +446 -0
  37. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +6 -6
  38. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +6 -6
  39. data/lib/pulpcore_client/api/groups_api.rb +12 -12
  40. data/lib/pulpcore_client/api/groups_roles_api.rb +11 -8
  41. data/lib/pulpcore_client/api/repositories_api.rb +24 -0
  42. data/lib/pulpcore_client/api/roles_api.rb +12 -12
  43. data/lib/pulpcore_client/api/task_schedules_api.rb +4 -4
  44. data/lib/pulpcore_client/api/tasks_api.rb +2 -2
  45. data/lib/pulpcore_client/api/upstream_pulps_api.rb +492 -0
  46. data/lib/pulpcore_client/api/users_api.rb +12 -12
  47. data/lib/pulpcore_client/api/users_roles_api.rb +11 -8
  48. data/lib/pulpcore_client/api/workers_api.rb +1 -1
  49. data/lib/pulpcore_client/models/artifact_distribution_response.rb +34 -34
  50. data/lib/pulpcore_client/models/domain.rb +323 -0
  51. data/lib/pulpcore_client/models/domain_response.rb +318 -0
  52. data/lib/pulpcore_client/models/group_role.rb +16 -5
  53. data/lib/pulpcore_client/models/group_role_response.rb +15 -4
  54. data/lib/pulpcore_client/models/nested_role.rb +19 -0
  55. data/lib/pulpcore_client/models/paginated_domain_response_list.rb +237 -0
  56. data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +237 -0
  57. data/lib/pulpcore_client/models/patched_domain.rb +304 -0
  58. data/lib/pulpcore_client/models/patched_upstream_pulp.rb +450 -0
  59. data/lib/pulpcore_client/models/repository_response.rb +1 -1
  60. data/lib/pulpcore_client/models/status_response.rb +19 -4
  61. data/lib/pulpcore_client/models/storage_class_enum.rb +37 -0
  62. data/lib/pulpcore_client/models/upstream_pulp.rb +477 -0
  63. data/lib/pulpcore_client/models/upstream_pulp_response.rb +338 -0
  64. data/lib/pulpcore_client/models/user_role.rb +17 -6
  65. data/lib/pulpcore_client/models/user_role_response.rb +16 -5
  66. data/lib/pulpcore_client/models/version_response.rb +19 -4
  67. data/lib/pulpcore_client/version.rb +1 -1
  68. data/lib/pulpcore_client.rb +11 -0
  69. data/spec/api/distributions_api_spec.rb +2 -0
  70. data/spec/api/distributions_artifacts_api_spec.rb +2 -0
  71. data/spec/api/domains_api_spec.rb +120 -0
  72. data/spec/api/exporters_filesystem_api_spec.rb +3 -3
  73. data/spec/api/exporters_filesystem_exports_api_spec.rb +3 -3
  74. data/spec/api/groups_api_spec.rb +6 -6
  75. data/spec/api/groups_roles_api_spec.rb +5 -4
  76. data/spec/api/repositories_api_spec.rb +8 -0
  77. data/spec/api/roles_api_spec.rb +6 -6
  78. data/spec/api/task_schedules_api_spec.rb +2 -2
  79. data/spec/api/tasks_api_spec.rb +1 -1
  80. data/spec/api/upstream_pulps_api_spec.rb +127 -0
  81. data/spec/api/users_api_spec.rb +6 -6
  82. data/spec/api/users_roles_api_spec.rb +5 -4
  83. data/spec/models/artifact_distribution_response_spec.rb +6 -6
  84. data/spec/models/domain_response_spec.rb +83 -0
  85. data/spec/models/domain_spec.rb +71 -0
  86. data/spec/models/group_role_response_spec.rb +6 -0
  87. data/spec/models/group_role_spec.rb +6 -0
  88. data/spec/models/paginated_domain_response_list_spec.rb +59 -0
  89. data/spec/models/paginated_upstream_pulp_response_list_spec.rb +59 -0
  90. data/spec/models/patched_domain_spec.rb +71 -0
  91. data/spec/models/patched_upstream_pulp_spec.rb +101 -0
  92. data/spec/models/status_response_spec.rb +6 -0
  93. data/spec/models/storage_class_enum_spec.rb +35 -0
  94. data/spec/models/upstream_pulp_response_spec.rb +107 -0
  95. data/spec/models/upstream_pulp_spec.rb +101 -0
  96. data/spec/models/user_role_response_spec.rb +6 -0
  97. data/spec/models/user_role_spec.rb +6 -0
  98. data/spec/models/version_response_spec.rb +6 -0
  99. metadata +178 -134
@@ -0,0 +1,338 @@
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
+ # Serializer for a Server.
17
+ class UpstreamPulpResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ # A unique name for this Pulp server.
24
+ attr_accessor :name
25
+
26
+ # The transport, hostname, and an optional port of the Pulp server. e.g. https://example.com
27
+ attr_accessor :base_url
28
+
29
+ # The API root. Defaults to '/pulp/'.
30
+ attr_accessor :api_root
31
+
32
+ # The domain of the Pulp server if enabled.
33
+ attr_accessor :domain
34
+
35
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
+ attr_accessor :ca_cert
37
+
38
+ # A PEM encoded client certificate used for authentication.
39
+ attr_accessor :client_cert
40
+
41
+ # If True, TLS peer validation must be performed.
42
+ attr_accessor :tls_validation
43
+
44
+ # Timestamp of the most recent update of the remote.
45
+ attr_accessor :pulp_last_updated
46
+
47
+ # List of hidden (write only) fields
48
+ attr_accessor :hidden_fields
49
+
50
+ # One or more comma separated labels that will be used to filter distributions on the upstream Pulp. E.g. \"foo=bar,key=val\" or \"foo,key\"
51
+ attr_accessor :pulp_label_select
52
+
53
+ # Attribute mapping from ruby-style variable name to JSON key.
54
+ def self.attribute_map
55
+ {
56
+ :'pulp_href' => :'pulp_href',
57
+ :'pulp_created' => :'pulp_created',
58
+ :'name' => :'name',
59
+ :'base_url' => :'base_url',
60
+ :'api_root' => :'api_root',
61
+ :'domain' => :'domain',
62
+ :'ca_cert' => :'ca_cert',
63
+ :'client_cert' => :'client_cert',
64
+ :'tls_validation' => :'tls_validation',
65
+ :'pulp_last_updated' => :'pulp_last_updated',
66
+ :'hidden_fields' => :'hidden_fields',
67
+ :'pulp_label_select' => :'pulp_label_select'
68
+ }
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.openapi_types
73
+ {
74
+ :'pulp_href' => :'String',
75
+ :'pulp_created' => :'DateTime',
76
+ :'name' => :'String',
77
+ :'base_url' => :'String',
78
+ :'api_root' => :'String',
79
+ :'domain' => :'String',
80
+ :'ca_cert' => :'String',
81
+ :'client_cert' => :'String',
82
+ :'tls_validation' => :'Boolean',
83
+ :'pulp_last_updated' => :'DateTime',
84
+ :'hidden_fields' => :'Array<RemoteResponseHiddenFields>',
85
+ :'pulp_label_select' => :'String'
86
+ }
87
+ end
88
+
89
+ # List of attributes with nullable: true
90
+ def self.openapi_nullable
91
+ Set.new([
92
+ :'domain',
93
+ :'ca_cert',
94
+ :'client_cert',
95
+ :'pulp_label_select'
96
+ ])
97
+ end
98
+
99
+ # Initializes the object
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ def initialize(attributes = {})
102
+ if (!attributes.is_a?(Hash))
103
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::UpstreamPulpResponse` initialize method"
104
+ end
105
+
106
+ # check to see if the attribute exists and convert string to symbol for hash key
107
+ attributes = attributes.each_with_object({}) { |(k, v), h|
108
+ if (!self.class.attribute_map.key?(k.to_sym))
109
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::UpstreamPulpResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
110
+ end
111
+ h[k.to_sym] = v
112
+ }
113
+
114
+ if attributes.key?(:'pulp_href')
115
+ self.pulp_href = attributes[:'pulp_href']
116
+ end
117
+
118
+ if attributes.key?(:'pulp_created')
119
+ self.pulp_created = attributes[:'pulp_created']
120
+ end
121
+
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
+ end
125
+
126
+ if attributes.key?(:'base_url')
127
+ self.base_url = attributes[:'base_url']
128
+ end
129
+
130
+ if attributes.key?(:'api_root')
131
+ self.api_root = attributes[:'api_root']
132
+ end
133
+
134
+ if attributes.key?(:'domain')
135
+ self.domain = attributes[:'domain']
136
+ end
137
+
138
+ if attributes.key?(:'ca_cert')
139
+ self.ca_cert = attributes[:'ca_cert']
140
+ end
141
+
142
+ if attributes.key?(:'client_cert')
143
+ self.client_cert = attributes[:'client_cert']
144
+ end
145
+
146
+ if attributes.key?(:'tls_validation')
147
+ self.tls_validation = attributes[:'tls_validation']
148
+ end
149
+
150
+ if attributes.key?(:'pulp_last_updated')
151
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
152
+ end
153
+
154
+ if attributes.key?(:'hidden_fields')
155
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
156
+ self.hidden_fields = value
157
+ end
158
+ end
159
+
160
+ if attributes.key?(:'pulp_label_select')
161
+ self.pulp_label_select = attributes[:'pulp_label_select']
162
+ end
163
+ end
164
+
165
+ # Show invalid properties with the reasons. Usually used together with valid?
166
+ # @return Array for valid properties with the reasons
167
+ def list_invalid_properties
168
+ invalid_properties = Array.new
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
171
+ end
172
+
173
+ if @base_url.nil?
174
+ invalid_properties.push('invalid value for "base_url", base_url cannot be nil.')
175
+ end
176
+
177
+ if @api_root.nil?
178
+ invalid_properties.push('invalid value for "api_root", api_root cannot be nil.')
179
+ end
180
+
181
+ invalid_properties
182
+ end
183
+
184
+ # Check to see if the all the properties in the model are valid
185
+ # @return true if the model is valid
186
+ def valid?
187
+ return false if @name.nil?
188
+ return false if @base_url.nil?
189
+ return false if @api_root.nil?
190
+ true
191
+ end
192
+
193
+ # Checks equality by comparing each attribute.
194
+ # @param [Object] Object to be compared
195
+ def ==(o)
196
+ return true if self.equal?(o)
197
+ self.class == o.class &&
198
+ pulp_href == o.pulp_href &&
199
+ pulp_created == o.pulp_created &&
200
+ name == o.name &&
201
+ base_url == o.base_url &&
202
+ api_root == o.api_root &&
203
+ domain == o.domain &&
204
+ ca_cert == o.ca_cert &&
205
+ client_cert == o.client_cert &&
206
+ tls_validation == o.tls_validation &&
207
+ pulp_last_updated == o.pulp_last_updated &&
208
+ hidden_fields == o.hidden_fields &&
209
+ pulp_label_select == o.pulp_label_select
210
+ end
211
+
212
+ # @see the `==` method
213
+ # @param [Object] Object to be compared
214
+ def eql?(o)
215
+ self == o
216
+ end
217
+
218
+ # Calculates hash code according to all attributes.
219
+ # @return [Integer] Hash code
220
+ def hash
221
+ [pulp_href, pulp_created, name, base_url, api_root, domain, ca_cert, client_cert, tls_validation, pulp_last_updated, hidden_fields, pulp_label_select].hash
222
+ end
223
+
224
+ # Builds the object from hash
225
+ # @param [Hash] attributes Model attributes in the form of hash
226
+ # @return [Object] Returns the model itself
227
+ def self.build_from_hash(attributes)
228
+ new.build_from_hash(attributes)
229
+ end
230
+
231
+ # Builds the object from hash
232
+ # @param [Hash] attributes Model attributes in the form of hash
233
+ # @return [Object] Returns the model itself
234
+ def build_from_hash(attributes)
235
+ return nil unless attributes.is_a?(Hash)
236
+ self.class.openapi_types.each_pair do |key, type|
237
+ if type =~ /\AArray<(.*)>/i
238
+ # check to ensure the input is an array given that the attribute
239
+ # is documented as an array but the input is not
240
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
241
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
242
+ end
243
+ elsif !attributes[self.class.attribute_map[key]].nil?
244
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
245
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
246
+ end
247
+
248
+ self
249
+ end
250
+
251
+ # Deserializes the data based on type
252
+ # @param string type Data type
253
+ # @param string value Value to be deserialized
254
+ # @return [Object] Deserialized data
255
+ def _deserialize(type, value)
256
+ case type.to_sym
257
+ when :DateTime
258
+ DateTime.parse(value)
259
+ when :Date
260
+ Date.parse(value)
261
+ when :String
262
+ value.to_s
263
+ when :Integer
264
+ value.to_i
265
+ when :Float
266
+ value.to_f
267
+ when :Boolean
268
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
269
+ true
270
+ else
271
+ false
272
+ end
273
+ when :Object
274
+ # generic object (usually a Hash), return directly
275
+ value
276
+ when /\AArray<(?<inner_type>.+)>\z/
277
+ inner_type = Regexp.last_match[:inner_type]
278
+ value.map { |v| _deserialize(inner_type, v) }
279
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
280
+ k_type = Regexp.last_match[:k_type]
281
+ v_type = Regexp.last_match[:v_type]
282
+ {}.tap do |hash|
283
+ value.each do |k, v|
284
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
285
+ end
286
+ end
287
+ else # model
288
+ PulpcoreClient.const_get(type).build_from_hash(value)
289
+ end
290
+ end
291
+
292
+ # Returns the string representation of the object
293
+ # @return [String] String presentation of the object
294
+ def to_s
295
+ to_hash.to_s
296
+ end
297
+
298
+ # to_body is an alias to to_hash (backward compatibility)
299
+ # @return [Hash] Returns the object in the form of hash
300
+ def to_body
301
+ to_hash
302
+ end
303
+
304
+ # Returns the object in the form of hash
305
+ # @return [Hash] Returns the object in the form of hash
306
+ def to_hash
307
+ hash = {}
308
+ self.class.attribute_map.each_pair do |attr, param|
309
+ value = self.send(attr)
310
+ if value.nil?
311
+ is_nullable = self.class.openapi_nullable.include?(attr)
312
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
313
+ end
314
+
315
+ hash[param] = _to_hash(value)
316
+ end
317
+ hash
318
+ end
319
+
320
+ # Outputs non-array value in the form of hash
321
+ # For object, use to_hash. Otherwise, just return the value
322
+ # @param [Object] value Any valid value
323
+ # @return [Hash] Returns the value in the form of hash
324
+ def _to_hash(value)
325
+ if value.is_a?(Array)
326
+ value.compact.map { |v| _to_hash(v) }
327
+ elsif value.is_a?(Hash)
328
+ {}.tap do |hash|
329
+ value.each { |k, v| hash[k] = _to_hash(v) }
330
+ end
331
+ elsif value.respond_to? :to_hash
332
+ value.to_hash
333
+ else
334
+ value
335
+ end
336
+ end
337
+ end
338
+ end
@@ -17,14 +17,18 @@ module PulpcoreClient
17
17
  class UserRole
18
18
  attr_accessor :role
19
19
 
20
- # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level.
20
+ # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level.
21
21
  attr_accessor :content_object
22
22
 
23
+ # Domain this role should be applied on, mutually exclusive with content_object.
24
+ attr_accessor :domain
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'role' => :'role',
27
- :'content_object' => :'content_object'
30
+ :'content_object' => :'content_object',
31
+ :'domain' => :'domain'
28
32
  }
29
33
  end
30
34
 
@@ -32,14 +36,16 @@ module PulpcoreClient
32
36
  def self.openapi_types
33
37
  {
34
38
  :'role' => :'String',
35
- :'content_object' => :'String'
39
+ :'content_object' => :'String',
40
+ :'domain' => :'String'
36
41
  }
37
42
  end
38
43
 
39
44
  # List of attributes with nullable: true
40
45
  def self.openapi_nullable
41
46
  Set.new([
42
- :'content_object'
47
+ :'content_object',
48
+ :'domain'
43
49
  ])
44
50
  end
45
51
 
@@ -65,6 +71,10 @@ module PulpcoreClient
65
71
  if attributes.key?(:'content_object')
66
72
  self.content_object = attributes[:'content_object']
67
73
  end
74
+
75
+ if attributes.key?(:'domain')
76
+ self.domain = attributes[:'domain']
77
+ end
68
78
  end
69
79
 
70
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -125,7 +135,8 @@ module PulpcoreClient
125
135
  return true if self.equal?(o)
126
136
  self.class == o.class &&
127
137
  role == o.role &&
128
- content_object == o.content_object
138
+ content_object == o.content_object &&
139
+ domain == o.domain
129
140
  end
130
141
 
131
142
  # @see the `==` method
@@ -137,7 +148,7 @@ module PulpcoreClient
137
148
  # Calculates hash code according to all attributes.
138
149
  # @return [Integer] Hash code
139
150
  def hash
140
- [role, content_object].hash
151
+ [role, content_object, domain].hash
141
152
  end
142
153
 
143
154
  # Builds the object from hash
@@ -22,13 +22,16 @@ module PulpcoreClient
22
22
 
23
23
  attr_accessor :role
24
24
 
25
- # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level.
25
+ # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level.
26
26
  attr_accessor :content_object
27
27
 
28
28
  attr_accessor :description
29
29
 
30
30
  attr_accessor :permissions
31
31
 
32
+ # Domain this role should be applied on, mutually exclusive with content_object.
33
+ attr_accessor :domain
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -37,7 +40,8 @@ module PulpcoreClient
37
40
  :'role' => :'role',
38
41
  :'content_object' => :'content_object',
39
42
  :'description' => :'description',
40
- :'permissions' => :'permissions'
43
+ :'permissions' => :'permissions',
44
+ :'domain' => :'domain'
41
45
  }
42
46
  end
43
47
 
@@ -49,7 +53,8 @@ module PulpcoreClient
49
53
  :'role' => :'String',
50
54
  :'content_object' => :'String',
51
55
  :'description' => :'String',
52
- :'permissions' => :'Array<String>'
56
+ :'permissions' => :'Array<String>',
57
+ :'domain' => :'String'
53
58
  }
54
59
  end
55
60
 
@@ -57,6 +62,7 @@ module PulpcoreClient
57
62
  def self.openapi_nullable
58
63
  Set.new([
59
64
  :'content_object',
65
+ :'domain'
60
66
  ])
61
67
  end
62
68
 
@@ -100,6 +106,10 @@ module PulpcoreClient
100
106
  self.permissions = value
101
107
  end
102
108
  end
109
+
110
+ if attributes.key?(:'domain')
111
+ self.domain = attributes[:'domain']
112
+ end
103
113
  end
104
114
 
105
115
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -130,7 +140,8 @@ module PulpcoreClient
130
140
  role == o.role &&
131
141
  content_object == o.content_object &&
132
142
  description == o.description &&
133
- permissions == o.permissions
143
+ permissions == o.permissions &&
144
+ domain == o.domain
134
145
  end
135
146
 
136
147
  # @see the `==` method
@@ -142,7 +153,7 @@ module PulpcoreClient
142
153
  # Calculates hash code according to all attributes.
143
154
  # @return [Integer] Hash code
144
155
  def hash
145
- [pulp_href, pulp_created, role, content_object, description, permissions].hash
156
+ [pulp_href, pulp_created, role, content_object, description, permissions, domain].hash
146
157
  end
147
158
 
148
159
  # Builds the object from hash
@@ -24,12 +24,16 @@ module PulpcoreClient
24
24
  # Python package name providing the component
25
25
  attr_accessor :package
26
26
 
27
+ # Domain feature compatibility of component
28
+ attr_accessor :domain_compatible
29
+
27
30
  # Attribute mapping from ruby-style variable name to JSON key.
28
31
  def self.attribute_map
29
32
  {
30
33
  :'component' => :'component',
31
34
  :'version' => :'version',
32
- :'package' => :'package'
35
+ :'package' => :'package',
36
+ :'domain_compatible' => :'domain_compatible'
33
37
  }
34
38
  end
35
39
 
@@ -38,7 +42,8 @@ module PulpcoreClient
38
42
  {
39
43
  :'component' => :'String',
40
44
  :'version' => :'String',
41
- :'package' => :'String'
45
+ :'package' => :'String',
46
+ :'domain_compatible' => :'Boolean'
42
47
  }
43
48
  end
44
49
 
@@ -74,6 +79,10 @@ module PulpcoreClient
74
79
  if attributes.key?(:'package')
75
80
  self.package = attributes[:'package']
76
81
  end
82
+
83
+ if attributes.key?(:'domain_compatible')
84
+ self.domain_compatible = attributes[:'domain_compatible']
85
+ end
77
86
  end
78
87
 
79
88
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,6 +101,10 @@ module PulpcoreClient
92
101
  invalid_properties.push('invalid value for "package", package cannot be nil.')
93
102
  end
94
103
 
104
+ if @domain_compatible.nil?
105
+ invalid_properties.push('invalid value for "domain_compatible", domain_compatible cannot be nil.')
106
+ end
107
+
95
108
  invalid_properties
96
109
  end
97
110
 
@@ -101,6 +114,7 @@ module PulpcoreClient
101
114
  return false if @component.nil?
102
115
  return false if @version.nil?
103
116
  return false if @package.nil?
117
+ return false if @domain_compatible.nil?
104
118
  true
105
119
  end
106
120
 
@@ -111,7 +125,8 @@ module PulpcoreClient
111
125
  self.class == o.class &&
112
126
  component == o.component &&
113
127
  version == o.version &&
114
- package == o.package
128
+ package == o.package &&
129
+ domain_compatible == o.domain_compatible
115
130
  end
116
131
 
117
132
  # @see the `==` method
@@ -123,7 +138,7 @@ module PulpcoreClient
123
138
  # Calculates hash code according to all attributes.
124
139
  # @return [Integer] Hash code
125
140
  def hash
126
- [component, version, package].hash
141
+ [component, version, package, domain_compatible].hash
127
142
  end
128
143
 
129
144
  # 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.22.24'
14
+ VERSION = '3.23.0'
15
15
  end
@@ -31,6 +31,8 @@ require 'pulpcore_client/models/content_settings_response'
31
31
  require 'pulpcore_client/models/content_summary_response'
32
32
  require 'pulpcore_client/models/database_connection_response'
33
33
  require 'pulpcore_client/models/distribution_response'
34
+ require 'pulpcore_client/models/domain'
35
+ require 'pulpcore_client/models/domain_response'
34
36
  require 'pulpcore_client/models/evaluation_response'
35
37
  require 'pulpcore_client/models/filesystem_export'
36
38
  require 'pulpcore_client/models/filesystem_export_response'
@@ -58,6 +60,7 @@ require 'pulpcore_client/models/paginated_artifact_response_list'
58
60
  require 'pulpcore_client/models/paginated_content_guard_response_list'
59
61
  require 'pulpcore_client/models/paginated_content_redirect_content_guard_response_list'
60
62
  require 'pulpcore_client/models/paginated_distribution_response_list'
63
+ require 'pulpcore_client/models/paginated_domain_response_list'
61
64
  require 'pulpcore_client/models/paginated_filesystem_export_response_list'
62
65
  require 'pulpcore_client/models/paginated_filesystem_exporter_response_list'
63
66
  require 'pulpcore_client/models/paginated_group_response_list'
@@ -79,11 +82,13 @@ require 'pulpcore_client/models/paginated_task_group_response_list'
79
82
  require 'pulpcore_client/models/paginated_task_response_list'
80
83
  require 'pulpcore_client/models/paginated_task_schedule_response_list'
81
84
  require 'pulpcore_client/models/paginated_upload_response_list'
85
+ require 'pulpcore_client/models/paginated_upstream_pulp_response_list'
82
86
  require 'pulpcore_client/models/paginated_user_response_list'
83
87
  require 'pulpcore_client/models/paginated_user_role_response_list'
84
88
  require 'pulpcore_client/models/paginated_worker_response_list'
85
89
  require 'pulpcore_client/models/patched_access_policy'
86
90
  require 'pulpcore_client/models/patched_content_redirect_content_guard'
91
+ require 'pulpcore_client/models/patched_domain'
87
92
  require 'pulpcore_client/models/patched_filesystem_exporter'
88
93
  require 'pulpcore_client/models/patched_group'
89
94
  require 'pulpcore_client/models/patched_pulp_exporter'
@@ -91,6 +96,7 @@ require 'pulpcore_client/models/patched_pulp_importer'
91
96
  require 'pulpcore_client/models/patched_rbac_content_guard'
92
97
  require 'pulpcore_client/models/patched_role'
93
98
  require 'pulpcore_client/models/patched_task_cancel'
99
+ require 'pulpcore_client/models/patched_upstream_pulp'
94
100
  require 'pulpcore_client/models/patched_user'
95
101
  require 'pulpcore_client/models/policy_enum'
96
102
  require 'pulpcore_client/models/progress_report_response'
@@ -119,6 +125,7 @@ require 'pulpcore_client/models/role_response'
119
125
  require 'pulpcore_client/models/signing_service_response'
120
126
  require 'pulpcore_client/models/states_enum'
121
127
  require 'pulpcore_client/models/status_response'
128
+ require 'pulpcore_client/models/storage_class_enum'
122
129
  require 'pulpcore_client/models/storage_response'
123
130
  require 'pulpcore_client/models/task_group_operation_response'
124
131
  require 'pulpcore_client/models/task_group_response'
@@ -130,6 +137,8 @@ require 'pulpcore_client/models/upload_chunk_response'
130
137
  require 'pulpcore_client/models/upload_commit'
131
138
  require 'pulpcore_client/models/upload_detail_response'
132
139
  require 'pulpcore_client/models/upload_response'
140
+ require 'pulpcore_client/models/upstream_pulp'
141
+ require 'pulpcore_client/models/upstream_pulp_response'
133
142
  require 'pulpcore_client/models/user'
134
143
  require 'pulpcore_client/models/user_group'
135
144
  require 'pulpcore_client/models/user_group_response'
@@ -148,6 +157,7 @@ require 'pulpcore_client/api/contentguards_content_redirect_api'
148
157
  require 'pulpcore_client/api/contentguards_rbac_api'
149
158
  require 'pulpcore_client/api/distributions_api'
150
159
  require 'pulpcore_client/api/distributions_artifacts_api'
160
+ require 'pulpcore_client/api/domains_api'
151
161
  require 'pulpcore_client/api/exporters_filesystem_api'
152
162
  require 'pulpcore_client/api/exporters_filesystem_exports_api'
153
163
  require 'pulpcore_client/api/exporters_pulp_api'
@@ -173,6 +183,7 @@ require 'pulpcore_client/api/task_groups_api'
173
183
  require 'pulpcore_client/api/task_schedules_api'
174
184
  require 'pulpcore_client/api/tasks_api'
175
185
  require 'pulpcore_client/api/uploads_api'
186
+ require 'pulpcore_client/api/upstream_pulps_api'
176
187
  require 'pulpcore_client/api/users_api'
177
188
  require 'pulpcore_client/api/users_roles_api'
178
189
  require 'pulpcore_client/api/workers_api'
@@ -49,6 +49,8 @@ describe 'DistributionsApi' do
49
49
  # @option opts [Integer] :offset The initial index from which to return the results.
50
50
  # @option opts [Array<String>] :ordering Ordering
51
51
  # @option opts [String] :pulp_label_select Filter labels by search string
52
+ # @option opts [String] :repository Filter results where repository matches value
53
+ # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
52
54
  # @option opts [String] :with_content Filter distributions based on the content served by them
53
55
  # @option opts [Array<String>] :fields A list of fields to include in the response.
54
56
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -49,6 +49,8 @@ describe 'DistributionsArtifactsApi' do
49
49
  # @option opts [Integer] :offset The initial index from which to return the results.
50
50
  # @option opts [Array<String>] :ordering Ordering
51
51
  # @option opts [String] :pulp_label_select Filter labels by search string
52
+ # @option opts [String] :repository Filter results where repository matches value
53
+ # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
52
54
  # @option opts [String] :with_content Filter distributions based on the content served by them
53
55
  # @option opts [Array<String>] :fields A list of fields to include in the response.
54
56
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.