pulp_container_client 2.27.9 → 2.27.10

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 +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  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 +7 -7
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +52 -52
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +64 -64
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +52 -52
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +64 -64
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +68 -68
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +84 -84
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +45 -45
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +45 -45
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +64 -64
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +12 -12
  25. data/spec/models/container_container_distribution_spec.rb +4 -4
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  28. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  29. data/spec/models/container_container_push_repository_spec.rb +6 -6
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
  33. metadata +60 -60
@@ -16,39 +16,39 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class ContainerContainerDistributionResponse
19
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
20
- attr_accessor :no_content_change_since
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
+ attr_accessor :pulp_labels
24
20
 
25
21
  # Whether this distribution should be shown in the content app.
26
22
  attr_accessor :hidden
27
23
 
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
30
-
31
24
  attr_accessor :pulp_href
32
25
 
33
- # The Pulp Resource Name (PRN).
34
- attr_accessor :prn
26
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
27
+ attr_accessor :content_guard_prn
35
28
 
36
29
  # An optional content-guard. If none is specified, a default one will be used.
37
30
  attr_accessor :content_guard
38
31
 
39
- # The Pulp Resource Name (PRN) of the associated optional content guard.
40
- attr_accessor :content_guard_prn
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
41
34
 
42
35
  # A unique name. Ex, `rawhide` and `stable`.
43
36
  attr_accessor :name
44
37
 
45
- # The latest RepositoryVersion for this Repository will be served.
46
- attr_accessor :repository
38
+ # The Pulp Resource Name (PRN).
39
+ attr_accessor :prn
40
+
41
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
42
+ attr_accessor :base_path
47
43
 
48
44
  # Timestamp of creation.
49
45
  attr_accessor :pulp_created
50
46
 
51
- attr_accessor :pulp_labels
47
+ # 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.
48
+ attr_accessor :pulp_last_updated
49
+
50
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
51
+ attr_accessor :no_content_change_since
52
52
 
53
53
  # RepositoryVersion to be served
54
54
  attr_accessor :repository_version
@@ -71,18 +71,18 @@ module PulpContainerClient
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
- :'no_content_change_since' => :'no_content_change_since',
75
- :'base_path' => :'base_path',
74
+ :'pulp_labels' => :'pulp_labels',
76
75
  :'hidden' => :'hidden',
77
- :'pulp_last_updated' => :'pulp_last_updated',
78
76
  :'pulp_href' => :'pulp_href',
79
- :'prn' => :'prn',
80
- :'content_guard' => :'content_guard',
81
77
  :'content_guard_prn' => :'content_guard_prn',
82
- :'name' => :'name',
78
+ :'content_guard' => :'content_guard',
83
79
  :'repository' => :'repository',
80
+ :'name' => :'name',
81
+ :'prn' => :'prn',
82
+ :'base_path' => :'base_path',
84
83
  :'pulp_created' => :'pulp_created',
85
- :'pulp_labels' => :'pulp_labels',
84
+ :'pulp_last_updated' => :'pulp_last_updated',
85
+ :'no_content_change_since' => :'no_content_change_since',
86
86
  :'repository_version' => :'repository_version',
87
87
  :'registry_path' => :'registry_path',
88
88
  :'remote' => :'remote',
@@ -100,18 +100,18 @@ module PulpContainerClient
100
100
  # Attribute type mapping.
101
101
  def self.openapi_types
102
102
  {
103
- :'no_content_change_since' => :'String',
104
- :'base_path' => :'String',
103
+ :'pulp_labels' => :'Hash<String, String>',
105
104
  :'hidden' => :'Boolean',
106
- :'pulp_last_updated' => :'Time',
107
105
  :'pulp_href' => :'String',
108
- :'prn' => :'String',
109
- :'content_guard' => :'String',
110
106
  :'content_guard_prn' => :'String',
111
- :'name' => :'String',
107
+ :'content_guard' => :'String',
112
108
  :'repository' => :'String',
109
+ :'name' => :'String',
110
+ :'prn' => :'String',
111
+ :'base_path' => :'String',
113
112
  :'pulp_created' => :'Time',
114
- :'pulp_labels' => :'Hash<String, String>',
113
+ :'pulp_last_updated' => :'Time',
114
+ :'no_content_change_since' => :'String',
115
115
  :'repository_version' => :'String',
116
116
  :'registry_path' => :'String',
117
117
  :'remote' => :'String',
@@ -145,14 +145,10 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'no_content_change_since')
149
- self.no_content_change_since = attributes[:'no_content_change_since']
150
- end
151
-
152
- if attributes.key?(:'base_path')
153
- self.base_path = attributes[:'base_path']
154
- else
155
- self.base_path = nil
148
+ if attributes.key?(:'pulp_labels')
149
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
150
+ self.pulp_labels = value
151
+ end
156
152
  end
157
153
 
158
154
  if attributes.key?(:'hidden')
@@ -161,24 +157,20 @@ module PulpContainerClient
161
157
  self.hidden = false
162
158
  end
163
159
 
164
- if attributes.key?(:'pulp_last_updated')
165
- self.pulp_last_updated = attributes[:'pulp_last_updated']
166
- end
167
-
168
160
  if attributes.key?(:'pulp_href')
169
161
  self.pulp_href = attributes[:'pulp_href']
170
162
  end
171
163
 
172
- if attributes.key?(:'prn')
173
- self.prn = attributes[:'prn']
164
+ if attributes.key?(:'content_guard_prn')
165
+ self.content_guard_prn = attributes[:'content_guard_prn']
174
166
  end
175
167
 
176
168
  if attributes.key?(:'content_guard')
177
169
  self.content_guard = attributes[:'content_guard']
178
170
  end
179
171
 
180
- if attributes.key?(:'content_guard_prn')
181
- self.content_guard_prn = attributes[:'content_guard_prn']
172
+ if attributes.key?(:'repository')
173
+ self.repository = attributes[:'repository']
182
174
  end
183
175
 
184
176
  if attributes.key?(:'name')
@@ -187,18 +179,26 @@ module PulpContainerClient
187
179
  self.name = nil
188
180
  end
189
181
 
190
- if attributes.key?(:'repository')
191
- self.repository = attributes[:'repository']
182
+ if attributes.key?(:'prn')
183
+ self.prn = attributes[:'prn']
184
+ end
185
+
186
+ if attributes.key?(:'base_path')
187
+ self.base_path = attributes[:'base_path']
188
+ else
189
+ self.base_path = nil
192
190
  end
193
191
 
194
192
  if attributes.key?(:'pulp_created')
195
193
  self.pulp_created = attributes[:'pulp_created']
196
194
  end
197
195
 
198
- if attributes.key?(:'pulp_labels')
199
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
200
- self.pulp_labels = value
201
- end
196
+ if attributes.key?(:'pulp_last_updated')
197
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
198
+ end
199
+
200
+ if attributes.key?(:'no_content_change_since')
201
+ self.no_content_change_since = attributes[:'no_content_change_since']
202
202
  end
203
203
 
204
204
  if attributes.key?(:'repository_version')
@@ -231,14 +231,14 @@ module PulpContainerClient
231
231
  def list_invalid_properties
232
232
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
233
233
  invalid_properties = Array.new
234
- if @base_path.nil?
235
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
236
- end
237
-
238
234
  if @name.nil?
239
235
  invalid_properties.push('invalid value for "name", name cannot be nil.')
240
236
  end
241
237
 
238
+ if @base_path.nil?
239
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
240
+ end
241
+
242
242
  invalid_properties
243
243
  end
244
244
 
@@ -246,8 +246,8 @@ module PulpContainerClient
246
246
  # @return true if the model is valid
247
247
  def valid?
248
248
  warn '[DEPRECATED] the `valid?` method is obsolete'
249
- return false if @base_path.nil?
250
249
  return false if @name.nil?
250
+ return false if @base_path.nil?
251
251
  true
252
252
  end
253
253
 
@@ -256,18 +256,18 @@ module PulpContainerClient
256
256
  def ==(o)
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
- no_content_change_since == o.no_content_change_since &&
260
- base_path == o.base_path &&
259
+ pulp_labels == o.pulp_labels &&
261
260
  hidden == o.hidden &&
262
- pulp_last_updated == o.pulp_last_updated &&
263
261
  pulp_href == o.pulp_href &&
264
- prn == o.prn &&
265
- content_guard == o.content_guard &&
266
262
  content_guard_prn == o.content_guard_prn &&
267
- name == o.name &&
263
+ content_guard == o.content_guard &&
268
264
  repository == o.repository &&
265
+ name == o.name &&
266
+ prn == o.prn &&
267
+ base_path == o.base_path &&
269
268
  pulp_created == o.pulp_created &&
270
- pulp_labels == o.pulp_labels &&
269
+ pulp_last_updated == o.pulp_last_updated &&
270
+ no_content_change_since == o.no_content_change_since &&
271
271
  repository_version == o.repository_version &&
272
272
  registry_path == o.registry_path &&
273
273
  remote == o.remote &&
@@ -285,7 +285,7 @@ module PulpContainerClient
285
285
  # Calculates hash code according to all attributes.
286
286
  # @return [Integer] Hash code
287
287
  def hash
288
- [no_content_change_since, base_path, hidden, pulp_last_updated, pulp_href, prn, content_guard, content_guard_prn, name, repository, pulp_created, pulp_labels, repository_version, registry_path, remote, namespace, private, description].hash
288
+ [pulp_labels, hidden, pulp_href, content_guard_prn, content_guard, repository, name, prn, base_path, pulp_created, pulp_last_updated, no_content_change_since, repository_version, registry_path, remote, namespace, private, description].hash
289
289
  end
290
290
 
291
291
  # Builds the object from hash
@@ -16,8 +16,7 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistribution
19
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
20
- attr_accessor :base_path
19
+ attr_accessor :pulp_labels
21
20
 
22
21
  # Whether this distribution should be shown in the content app.
23
22
  attr_accessor :hidden
@@ -25,13 +24,14 @@ module PulpContainerClient
25
24
  # An optional content-guard. If none is specified, a default one will be used.
26
25
  attr_accessor :content_guard
27
26
 
28
- # A unique name. Ex, `rawhide` and `stable`.
29
- attr_accessor :name
30
-
31
27
  # The latest RepositoryVersion for this Repository will be served.
32
28
  attr_accessor :repository
33
29
 
34
- attr_accessor :pulp_labels
30
+ # A unique name. Ex, `rawhide` and `stable`.
31
+ attr_accessor :name
32
+
33
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
34
+ attr_accessor :base_path
35
35
 
36
36
  # RepositoryVersion to be served
37
37
  attr_accessor :repository_version
@@ -51,12 +51,12 @@ module PulpContainerClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'base_path' => :'base_path',
54
+ :'pulp_labels' => :'pulp_labels',
55
55
  :'hidden' => :'hidden',
56
56
  :'content_guard' => :'content_guard',
57
- :'name' => :'name',
58
57
  :'repository' => :'repository',
59
- :'pulp_labels' => :'pulp_labels',
58
+ :'name' => :'name',
59
+ :'base_path' => :'base_path',
60
60
  :'repository_version' => :'repository_version',
61
61
  :'remote' => :'remote',
62
62
  :'distributions' => :'distributions',
@@ -73,12 +73,12 @@ module PulpContainerClient
73
73
  # Attribute type mapping.
74
74
  def self.openapi_types
75
75
  {
76
- :'base_path' => :'String',
76
+ :'pulp_labels' => :'Hash<String, String>',
77
77
  :'hidden' => :'Boolean',
78
78
  :'content_guard' => :'String',
79
- :'name' => :'String',
80
79
  :'repository' => :'String',
81
- :'pulp_labels' => :'Hash<String, String>',
80
+ :'name' => :'String',
81
+ :'base_path' => :'String',
82
82
  :'repository_version' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
@@ -111,10 +111,10 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
- if attributes.key?(:'base_path')
115
- self.base_path = attributes[:'base_path']
116
- else
117
- self.base_path = nil
114
+ if attributes.key?(:'pulp_labels')
115
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
+ self.pulp_labels = value
117
+ end
118
118
  end
119
119
 
120
120
  if attributes.key?(:'hidden')
@@ -127,20 +127,20 @@ module PulpContainerClient
127
127
  self.content_guard = attributes[:'content_guard']
128
128
  end
129
129
 
130
+ if attributes.key?(:'repository')
131
+ self.repository = attributes[:'repository']
132
+ end
133
+
130
134
  if attributes.key?(:'name')
131
135
  self.name = attributes[:'name']
132
136
  else
133
137
  self.name = nil
134
138
  end
135
139
 
136
- if attributes.key?(:'repository')
137
- self.repository = attributes[:'repository']
138
- end
139
-
140
- if attributes.key?(:'pulp_labels')
141
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
142
- self.pulp_labels = value
143
- end
140
+ if attributes.key?(:'base_path')
141
+ self.base_path = attributes[:'base_path']
142
+ else
143
+ self.base_path = nil
144
144
  end
145
145
 
146
146
  if attributes.key?(:'repository_version')
@@ -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,12 +256,12 @@ module PulpContainerClient
256
256
  def ==(o)
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
- base_path == o.base_path &&
259
+ pulp_labels == o.pulp_labels &&
260
260
  hidden == o.hidden &&
261
261
  content_guard == o.content_guard &&
262
- name == o.name &&
263
262
  repository == o.repository &&
264
- pulp_labels == o.pulp_labels &&
263
+ name == o.name &&
264
+ base_path == o.base_path &&
265
265
  repository_version == o.repository_version &&
266
266
  remote == o.remote &&
267
267
  distributions == o.distributions &&
@@ -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
- [base_path, hidden, content_guard, name, repository, pulp_labels, repository_version, remote, distributions, private, description].hash
281
+ [pulp_labels, hidden, content_guard, repository, name, base_path, repository_version, remote, distributions, private, description].hash
282
282
  end
283
283
 
284
284
  # Builds the object from hash