pulp_container_client 2.28.0 → 2.28.1

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  13. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +77 -77
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +53 -53
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +77 -77
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +54 -54
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +70 -70
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -46
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +46 -46
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +52 -52
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +13 -13
  25. data/spec/models/container_container_distribution_spec.rb +5 -5
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  28. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  29. data/spec/models/container_container_push_repository_spec.rb +5 -5
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  33. metadata +59 -59
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistribution
19
- # Whether this distribution should be shown in the content app.
20
- attr_accessor :hidden
21
-
22
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
- attr_accessor :base_path
19
+ # An optional content-guard. If none is specified, a default one will be used.
20
+ attr_accessor :content_guard
24
21
 
25
22
  attr_accessor :pulp_labels
26
23
 
27
24
  # A unique name. Ex, `rawhide` and `stable`.
28
25
  attr_accessor :name
29
26
 
27
+ # Whether this distribution should be shown in the content app.
28
+ attr_accessor :hidden
29
+
30
30
  # The latest RepositoryVersion for this Repository will be served.
31
31
  attr_accessor :repository
32
32
 
33
33
  # RepositoryVersion to be served
34
34
  attr_accessor :repository_version
35
35
 
36
- # An optional content-guard. If none is specified, a default one will be used.
37
- attr_accessor :content_guard
36
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
37
+ attr_accessor :base_path
38
38
 
39
39
  # Remote that can be used to fetch content when using pull-through caching.
40
40
  attr_accessor :remote
@@ -51,13 +51,13 @@ module PulpContainerClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'hidden' => :'hidden',
55
- :'base_path' => :'base_path',
54
+ :'content_guard' => :'content_guard',
56
55
  :'pulp_labels' => :'pulp_labels',
57
56
  :'name' => :'name',
57
+ :'hidden' => :'hidden',
58
58
  :'repository' => :'repository',
59
59
  :'repository_version' => :'repository_version',
60
- :'content_guard' => :'content_guard',
60
+ :'base_path' => :'base_path',
61
61
  :'remote' => :'remote',
62
62
  :'distributions' => :'distributions',
63
63
  :'private' => :'private',
@@ -73,13 +73,13 @@ module PulpContainerClient
73
73
  # Attribute type mapping.
74
74
  def self.openapi_types
75
75
  {
76
- :'hidden' => :'Boolean',
77
- :'base_path' => :'String',
76
+ :'content_guard' => :'String',
78
77
  :'pulp_labels' => :'Hash<String, String>',
79
78
  :'name' => :'String',
79
+ :'hidden' => :'Boolean',
80
80
  :'repository' => :'String',
81
81
  :'repository_version' => :'String',
82
- :'content_guard' => :'String',
82
+ :'base_path' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -111,16 +111,8 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
- if attributes.key?(:'hidden')
115
- self.hidden = attributes[:'hidden']
116
- else
117
- self.hidden = false
118
- end
119
-
120
- if attributes.key?(:'base_path')
121
- self.base_path = attributes[:'base_path']
122
- else
123
- self.base_path = nil
114
+ if attributes.key?(:'content_guard')
115
+ self.content_guard = attributes[:'content_guard']
124
116
  end
125
117
 
126
118
  if attributes.key?(:'pulp_labels')
@@ -135,6 +127,12 @@ module PulpContainerClient
135
127
  self.name = nil
136
128
  end
137
129
 
130
+ if attributes.key?(:'hidden')
131
+ self.hidden = attributes[:'hidden']
132
+ else
133
+ self.hidden = false
134
+ end
135
+
138
136
  if attributes.key?(:'repository')
139
137
  self.repository = attributes[:'repository']
140
138
  end
@@ -143,8 +141,10 @@ module PulpContainerClient
143
141
  self.repository_version = attributes[:'repository_version']
144
142
  end
145
143
 
146
- if attributes.key?(:'content_guard')
147
- self.content_guard = attributes[:'content_guard']
144
+ if attributes.key?(:'base_path')
145
+ self.base_path = attributes[:'base_path']
146
+ else
147
+ self.base_path = nil
148
148
  end
149
149
 
150
150
  if attributes.key?(:'remote')
@@ -173,14 +173,6 @@ module PulpContainerClient
173
173
  def list_invalid_properties
174
174
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
175
175
  invalid_properties = Array.new
176
- if @base_path.nil?
177
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
178
- end
179
-
180
- if @base_path.to_s.length < 1
181
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
182
- end
183
-
184
176
  if @name.nil?
185
177
  invalid_properties.push('invalid value for "name", name cannot be nil.')
186
178
  end
@@ -189,6 +181,14 @@ module PulpContainerClient
189
181
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
190
182
  end
191
183
 
184
+ if @base_path.nil?
185
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
186
+ end
187
+
188
+ if @base_path.to_s.length < 1
189
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
190
+ end
191
+
192
192
  if @remote.nil?
193
193
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
194
194
  end
@@ -204,29 +204,15 @@ module PulpContainerClient
204
204
  # @return true if the model is valid
205
205
  def valid?
206
206
  warn '[DEPRECATED] the `valid?` method is obsolete'
207
- return false if @base_path.nil?
208
- return false if @base_path.to_s.length < 1
209
207
  return false if @name.nil?
210
208
  return false if @name.to_s.length < 1
209
+ return false if @base_path.nil?
210
+ return false if @base_path.to_s.length < 1
211
211
  return false if @remote.nil?
212
212
  return false if !@description.nil? && @description.to_s.length < 1
213
213
  true
214
214
  end
215
215
 
216
- # Custom attribute writer method with validation
217
- # @param [Object] base_path Value to be assigned
218
- def base_path=(base_path)
219
- if base_path.nil?
220
- fail ArgumentError, 'base_path cannot be nil'
221
- end
222
-
223
- if base_path.to_s.length < 1
224
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
225
- end
226
-
227
- @base_path = base_path
228
- end
229
-
230
216
  # Custom attribute writer method with validation
231
217
  # @param [Object] name Value to be assigned
232
218
  def name=(name)
@@ -241,6 +227,20 @@ module PulpContainerClient
241
227
  @name = name
242
228
  end
243
229
 
230
+ # Custom attribute writer method with validation
231
+ # @param [Object] base_path Value to be assigned
232
+ def base_path=(base_path)
233
+ if base_path.nil?
234
+ fail ArgumentError, 'base_path cannot be nil'
235
+ end
236
+
237
+ if base_path.to_s.length < 1
238
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
239
+ end
240
+
241
+ @base_path = base_path
242
+ end
243
+
244
244
  # Custom attribute writer method with validation
245
245
  # @param [Object] description Value to be assigned
246
246
  def description=(description)
@@ -256,13 +256,13 @@ module PulpContainerClient
256
256
  def ==(o)
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
- hidden == o.hidden &&
260
- base_path == o.base_path &&
259
+ content_guard == o.content_guard &&
261
260
  pulp_labels == o.pulp_labels &&
262
261
  name == o.name &&
262
+ hidden == o.hidden &&
263
263
  repository == o.repository &&
264
264
  repository_version == o.repository_version &&
265
- content_guard == o.content_guard &&
265
+ base_path == o.base_path &&
266
266
  remote == o.remote &&
267
267
  distributions == o.distributions &&
268
268
  private == o.private &&
@@ -278,7 +278,7 @@ module PulpContainerClient
278
278
  # Calculates hash code according to all attributes.
279
279
  # @return [Integer] Hash code
280
280
  def hash
281
- [hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, remote, distributions, private, description].hash
281
+ [content_guard, pulp_labels, name, hidden, repository, repository_version, base_path, remote, distributions, private, description].hash
282
282
  end
283
283
 
284
284
  # Builds the object from hash
@@ -16,42 +16,42 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
19
- # Whether this distribution should be shown in the content app.
20
- attr_accessor :hidden
19
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
20
+ attr_accessor :pulp_last_updated
21
21
 
22
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
- attr_accessor :base_path
22
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
23
+ attr_accessor :no_content_change_since
24
+
25
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
26
+ attr_accessor :content_guard_prn
27
+
28
+ attr_accessor :pulp_href
29
+
30
+ # An optional content-guard. If none is specified, a default one will be used.
31
+ attr_accessor :content_guard
24
32
 
25
33
  # The Pulp Resource Name (PRN).
26
34
  attr_accessor :prn
27
35
 
28
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
29
- attr_accessor :pulp_last_updated
36
+ # Timestamp of creation.
37
+ attr_accessor :pulp_created
30
38
 
31
39
  attr_accessor :pulp_labels
32
40
 
33
- attr_accessor :pulp_href
34
-
35
41
  # A unique name. Ex, `rawhide` and `stable`.
36
42
  attr_accessor :name
37
43
 
44
+ # Whether this distribution should be shown in the content app.
45
+ attr_accessor :hidden
46
+
38
47
  # The latest RepositoryVersion for this Repository will be served.
39
48
  attr_accessor :repository
40
49
 
41
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
42
- attr_accessor :no_content_change_since
43
-
44
- # The Pulp Resource Name (PRN) of the associated optional content guard.
45
- attr_accessor :content_guard_prn
46
-
47
50
  # RepositoryVersion to be served
48
51
  attr_accessor :repository_version
49
52
 
50
- # Timestamp of creation.
51
- attr_accessor :pulp_created
52
-
53
- # An optional content-guard. If none is specified, a default one will be used.
54
- attr_accessor :content_guard
53
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
54
+ attr_accessor :base_path
55
55
 
56
56
  # Remote that can be used to fetch content when using pull-through caching.
57
57
  attr_accessor :remote
@@ -71,19 +71,19 @@ module PulpContainerClient
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
- :'hidden' => :'hidden',
75
- :'base_path' => :'base_path',
76
- :'prn' => :'prn',
77
74
  :'pulp_last_updated' => :'pulp_last_updated',
78
- :'pulp_labels' => :'pulp_labels',
75
+ :'no_content_change_since' => :'no_content_change_since',
76
+ :'content_guard_prn' => :'content_guard_prn',
79
77
  :'pulp_href' => :'pulp_href',
78
+ :'content_guard' => :'content_guard',
79
+ :'prn' => :'prn',
80
+ :'pulp_created' => :'pulp_created',
81
+ :'pulp_labels' => :'pulp_labels',
80
82
  :'name' => :'name',
83
+ :'hidden' => :'hidden',
81
84
  :'repository' => :'repository',
82
- :'no_content_change_since' => :'no_content_change_since',
83
- :'content_guard_prn' => :'content_guard_prn',
84
85
  :'repository_version' => :'repository_version',
85
- :'pulp_created' => :'pulp_created',
86
- :'content_guard' => :'content_guard',
86
+ :'base_path' => :'base_path',
87
87
  :'remote' => :'remote',
88
88
  :'distributions' => :'distributions',
89
89
  :'namespace' => :'namespace',
@@ -100,19 +100,19 @@ module PulpContainerClient
100
100
  # Attribute type mapping.
101
101
  def self.openapi_types
102
102
  {
103
- :'hidden' => :'Boolean',
104
- :'base_path' => :'String',
105
- :'prn' => :'String',
106
103
  :'pulp_last_updated' => :'Time',
107
- :'pulp_labels' => :'Hash<String, String>',
104
+ :'no_content_change_since' => :'String',
105
+ :'content_guard_prn' => :'String',
108
106
  :'pulp_href' => :'String',
107
+ :'content_guard' => :'String',
108
+ :'prn' => :'String',
109
+ :'pulp_created' => :'Time',
110
+ :'pulp_labels' => :'Hash<String, String>',
109
111
  :'name' => :'String',
112
+ :'hidden' => :'Boolean',
110
113
  :'repository' => :'String',
111
- :'no_content_change_since' => :'String',
112
- :'content_guard_prn' => :'String',
113
114
  :'repository_version' => :'String',
114
- :'pulp_created' => :'Time',
115
- :'content_guard' => :'String',
115
+ :'base_path' => :'String',
116
116
  :'remote' => :'String',
117
117
  :'distributions' => :'Array<String>',
118
118
  :'namespace' => :'String',
@@ -145,24 +145,32 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'hidden')
149
- self.hidden = attributes[:'hidden']
150
- else
151
- self.hidden = false
148
+ if attributes.key?(:'pulp_last_updated')
149
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
152
150
  end
153
151
 
154
- if attributes.key?(:'base_path')
155
- self.base_path = attributes[:'base_path']
156
- else
157
- self.base_path = nil
152
+ if attributes.key?(:'no_content_change_since')
153
+ self.no_content_change_since = attributes[:'no_content_change_since']
154
+ end
155
+
156
+ if attributes.key?(:'content_guard_prn')
157
+ self.content_guard_prn = attributes[:'content_guard_prn']
158
+ end
159
+
160
+ if attributes.key?(:'pulp_href')
161
+ self.pulp_href = attributes[:'pulp_href']
162
+ end
163
+
164
+ if attributes.key?(:'content_guard')
165
+ self.content_guard = attributes[:'content_guard']
158
166
  end
159
167
 
160
168
  if attributes.key?(:'prn')
161
169
  self.prn = attributes[:'prn']
162
170
  end
163
171
 
164
- if attributes.key?(:'pulp_last_updated')
165
- self.pulp_last_updated = attributes[:'pulp_last_updated']
172
+ if attributes.key?(:'pulp_created')
173
+ self.pulp_created = attributes[:'pulp_created']
166
174
  end
167
175
 
168
176
  if attributes.key?(:'pulp_labels')
@@ -171,38 +179,30 @@ module PulpContainerClient
171
179
  end
172
180
  end
173
181
 
174
- if attributes.key?(:'pulp_href')
175
- self.pulp_href = attributes[:'pulp_href']
176
- end
177
-
178
182
  if attributes.key?(:'name')
179
183
  self.name = attributes[:'name']
180
184
  else
181
185
  self.name = nil
182
186
  end
183
187
 
184
- if attributes.key?(:'repository')
185
- self.repository = attributes[:'repository']
186
- end
187
-
188
- if attributes.key?(:'no_content_change_since')
189
- self.no_content_change_since = attributes[:'no_content_change_since']
188
+ if attributes.key?(:'hidden')
189
+ self.hidden = attributes[:'hidden']
190
+ else
191
+ self.hidden = false
190
192
  end
191
193
 
192
- if attributes.key?(:'content_guard_prn')
193
- self.content_guard_prn = attributes[:'content_guard_prn']
194
+ if attributes.key?(:'repository')
195
+ self.repository = attributes[:'repository']
194
196
  end
195
197
 
196
198
  if attributes.key?(:'repository_version')
197
199
  self.repository_version = attributes[:'repository_version']
198
200
  end
199
201
 
200
- if attributes.key?(:'pulp_created')
201
- self.pulp_created = attributes[:'pulp_created']
202
- end
203
-
204
- if attributes.key?(:'content_guard')
205
- self.content_guard = attributes[:'content_guard']
202
+ if attributes.key?(:'base_path')
203
+ self.base_path = attributes[:'base_path']
204
+ else
205
+ self.base_path = nil
206
206
  end
207
207
 
208
208
  if attributes.key?(:'remote')
@@ -235,14 +235,14 @@ module PulpContainerClient
235
235
  def list_invalid_properties
236
236
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
237
237
  invalid_properties = Array.new
238
- if @base_path.nil?
239
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
240
- end
241
-
242
238
  if @name.nil?
243
239
  invalid_properties.push('invalid value for "name", name cannot be nil.')
244
240
  end
245
241
 
242
+ if @base_path.nil?
243
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
244
+ end
245
+
246
246
  if @remote.nil?
247
247
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
248
248
  end
@@ -254,8 +254,8 @@ module PulpContainerClient
254
254
  # @return true if the model is valid
255
255
  def valid?
256
256
  warn '[DEPRECATED] the `valid?` method is obsolete'
257
- return false if @base_path.nil?
258
257
  return false if @name.nil?
258
+ return false if @base_path.nil?
259
259
  return false if @remote.nil?
260
260
  true
261
261
  end
@@ -265,19 +265,19 @@ module PulpContainerClient
265
265
  def ==(o)
266
266
  return true if self.equal?(o)
267
267
  self.class == o.class &&
268
- hidden == o.hidden &&
269
- base_path == o.base_path &&
270
- prn == o.prn &&
271
268
  pulp_last_updated == o.pulp_last_updated &&
272
- pulp_labels == o.pulp_labels &&
269
+ no_content_change_since == o.no_content_change_since &&
270
+ content_guard_prn == o.content_guard_prn &&
273
271
  pulp_href == o.pulp_href &&
272
+ content_guard == o.content_guard &&
273
+ prn == o.prn &&
274
+ pulp_created == o.pulp_created &&
275
+ pulp_labels == o.pulp_labels &&
274
276
  name == o.name &&
277
+ hidden == o.hidden &&
275
278
  repository == o.repository &&
276
- no_content_change_since == o.no_content_change_since &&
277
- content_guard_prn == o.content_guard_prn &&
278
279
  repository_version == o.repository_version &&
279
- pulp_created == o.pulp_created &&
280
- content_guard == o.content_guard &&
280
+ base_path == o.base_path &&
281
281
  remote == o.remote &&
282
282
  distributions == o.distributions &&
283
283
  namespace == o.namespace &&
@@ -294,7 +294,7 @@ module PulpContainerClient
294
294
  # Calculates hash code according to all attributes.
295
295
  # @return [Integer] Hash code
296
296
  def hash
297
- [hidden, base_path, prn, pulp_last_updated, pulp_labels, pulp_href, name, repository, no_content_change_since, content_guard_prn, repository_version, pulp_created, content_guard, remote, distributions, namespace, private, description].hash
297
+ [pulp_last_updated, no_content_change_since, content_guard_prn, pulp_href, content_guard, prn, pulp_created, pulp_labels, name, hidden, repository, repository_version, base_path, remote, distributions, namespace, private, description].hash
298
298
  end
299
299
 
300
300
  # Builds the object from hash