pulp_container_client 2.27.9 → 2.27.11

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 +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  7. data/docs/ContainerContainerPushRepository.md +8 -8
  8. data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  13. data/docs/PatchedcontainerContainerPushRepository.md +8 -8
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +62 -62
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +69 -69
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +62 -62
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +69 -69
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +73 -73
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +86 -86
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +55 -55
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +55 -55
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +71 -71
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  25. data/spec/models/container_container_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  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 +6 -6
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
  33. metadata +60 -60
@@ -16,26 +16,26 @@ 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
21
-
22
19
  # Whether this distribution should be shown in the content app.
23
20
  attr_accessor :hidden
24
21
 
25
- # An optional content-guard. If none is specified, a default one will be used.
26
- attr_accessor :content_guard
27
-
28
- # A unique name. Ex, `rawhide` and `stable`.
29
- attr_accessor :name
22
+ attr_accessor :pulp_labels
30
23
 
31
24
  # The latest RepositoryVersion for this Repository will be served.
32
25
  attr_accessor :repository
33
26
 
34
- attr_accessor :pulp_labels
27
+ # A unique name. Ex, `rawhide` and `stable`.
28
+ attr_accessor :name
35
29
 
36
30
  # RepositoryVersion to be served
37
31
  attr_accessor :repository_version
38
32
 
33
+ # An optional content-guard. If none is specified, a default one will be used.
34
+ attr_accessor :content_guard
35
+
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
+
39
39
  # Remote that can be used to fetch content when using pull-through caching.
40
40
  attr_accessor :remote
41
41
 
@@ -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
- :'base_path' => :'base_path',
55
54
  :'hidden' => :'hidden',
56
- :'content_guard' => :'content_guard',
57
- :'name' => :'name',
58
- :'repository' => :'repository',
59
55
  :'pulp_labels' => :'pulp_labels',
56
+ :'repository' => :'repository',
57
+ :'name' => :'name',
60
58
  :'repository_version' => :'repository_version',
59
+ :'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
- :'base_path' => :'String',
77
76
  :'hidden' => :'Boolean',
78
- :'content_guard' => :'String',
79
- :'name' => :'String',
80
- :'repository' => :'String',
81
77
  :'pulp_labels' => :'Hash<String, String>',
78
+ :'repository' => :'String',
79
+ :'name' => :'String',
82
80
  :'repository_version' => :'String',
81
+ :'content_guard' => :'String',
82
+ :'base_path' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -111,20 +111,20 @@ 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
118
- end
119
-
120
114
  if attributes.key?(:'hidden')
121
115
  self.hidden = attributes[:'hidden']
122
116
  else
123
117
  self.hidden = false
124
118
  end
125
119
 
126
- if attributes.key?(:'content_guard')
127
- self.content_guard = attributes[:'content_guard']
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
124
+ end
125
+
126
+ if attributes.key?(:'repository')
127
+ self.repository = attributes[:'repository']
128
128
  end
129
129
 
130
130
  if attributes.key?(:'name')
@@ -133,18 +133,18 @@ module PulpContainerClient
133
133
  self.name = nil
134
134
  end
135
135
 
136
- if attributes.key?(:'repository')
137
- self.repository = attributes[:'repository']
136
+ if attributes.key?(:'repository_version')
137
+ self.repository_version = attributes[:'repository_version']
138
138
  end
139
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?(:'content_guard')
141
+ self.content_guard = attributes[:'content_guard']
144
142
  end
145
143
 
146
- if attributes.key?(:'repository_version')
147
- self.repository_version = attributes[:'repository_version']
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
- base_path == o.base_path &&
260
259
  hidden == o.hidden &&
261
- content_guard == o.content_guard &&
262
- name == o.name &&
263
- repository == o.repository &&
264
260
  pulp_labels == o.pulp_labels &&
261
+ repository == o.repository &&
262
+ name == o.name &&
265
263
  repository_version == o.repository_version &&
264
+ 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
- [base_path, hidden, content_guard, name, repository, pulp_labels, repository_version, remote, distributions, private, description].hash
281
+ [hidden, pulp_labels, repository, name, repository_version, content_guard, base_path, remote, distributions, private, description].hash
282
282
  end
283
283
 
284
284
  # Builds the object from hash
@@ -16,31 +16,21 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
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
24
-
25
19
  # Whether this distribution should be shown in the content app.
26
20
  attr_accessor :hidden
27
21
 
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
22
+ attr_accessor :pulp_labels
30
23
 
31
24
  attr_accessor :pulp_href
32
25
 
33
- # The Pulp Resource Name (PRN).
34
- attr_accessor :prn
35
-
36
- # An optional content-guard. If none is specified, a default one will be used.
37
- attr_accessor :content_guard
26
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
27
+ attr_accessor :no_content_change_since
38
28
 
39
29
  # The Pulp Resource Name (PRN) of the associated optional content guard.
40
30
  attr_accessor :content_guard_prn
41
31
 
42
- # A unique name. Ex, `rawhide` and `stable`.
43
- attr_accessor :name
32
+ # The Pulp Resource Name (PRN).
33
+ attr_accessor :prn
44
34
 
45
35
  # The latest RepositoryVersion for this Repository will be served.
46
36
  attr_accessor :repository
@@ -48,11 +38,21 @@ module PulpContainerClient
48
38
  # Timestamp of creation.
49
39
  attr_accessor :pulp_created
50
40
 
51
- attr_accessor :pulp_labels
41
+ # A unique name. Ex, `rawhide` and `stable`.
42
+ attr_accessor :name
52
43
 
53
44
  # RepositoryVersion to be served
54
45
  attr_accessor :repository_version
55
46
 
47
+ # An optional content-guard. If none is specified, a default one will be used.
48
+ attr_accessor :content_guard
49
+
50
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
51
+ attr_accessor :base_path
52
+
53
+ # 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.
54
+ attr_accessor :pulp_last_updated
55
+
56
56
  # Remote that can be used to fetch content when using pull-through caching.
57
57
  attr_accessor :remote
58
58
 
@@ -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
- :'no_content_change_since' => :'no_content_change_since',
75
- :'base_path' => :'base_path',
76
74
  :'hidden' => :'hidden',
77
- :'pulp_last_updated' => :'pulp_last_updated',
75
+ :'pulp_labels' => :'pulp_labels',
78
76
  :'pulp_href' => :'pulp_href',
79
- :'prn' => :'prn',
80
- :'content_guard' => :'content_guard',
77
+ :'no_content_change_since' => :'no_content_change_since',
81
78
  :'content_guard_prn' => :'content_guard_prn',
82
- :'name' => :'name',
79
+ :'prn' => :'prn',
83
80
  :'repository' => :'repository',
84
81
  :'pulp_created' => :'pulp_created',
85
- :'pulp_labels' => :'pulp_labels',
82
+ :'name' => :'name',
86
83
  :'repository_version' => :'repository_version',
84
+ :'content_guard' => :'content_guard',
85
+ :'base_path' => :'base_path',
86
+ :'pulp_last_updated' => :'pulp_last_updated',
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
- :'no_content_change_since' => :'String',
104
- :'base_path' => :'String',
105
103
  :'hidden' => :'Boolean',
106
- :'pulp_last_updated' => :'Time',
104
+ :'pulp_labels' => :'Hash<String, String>',
107
105
  :'pulp_href' => :'String',
108
- :'prn' => :'String',
109
- :'content_guard' => :'String',
106
+ :'no_content_change_since' => :'String',
110
107
  :'content_guard_prn' => :'String',
111
- :'name' => :'String',
108
+ :'prn' => :'String',
112
109
  :'repository' => :'String',
113
110
  :'pulp_created' => :'Time',
114
- :'pulp_labels' => :'Hash<String, String>',
111
+ :'name' => :'String',
115
112
  :'repository_version' => :'String',
113
+ :'content_guard' => :'String',
114
+ :'base_path' => :'String',
115
+ :'pulp_last_updated' => :'Time',
116
116
  :'remote' => :'String',
117
117
  :'distributions' => :'Array<String>',
118
118
  :'namespace' => :'String',
@@ -145,46 +145,32 @@ 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
156
- end
157
-
158
148
  if attributes.key?(:'hidden')
159
149
  self.hidden = attributes[:'hidden']
160
150
  else
161
151
  self.hidden = false
162
152
  end
163
153
 
164
- if attributes.key?(:'pulp_last_updated')
165
- self.pulp_last_updated = attributes[:'pulp_last_updated']
154
+ if attributes.key?(:'pulp_labels')
155
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
156
+ self.pulp_labels = value
157
+ end
166
158
  end
167
159
 
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']
174
- end
175
-
176
- if attributes.key?(:'content_guard')
177
- self.content_guard = attributes[:'content_guard']
164
+ if attributes.key?(:'no_content_change_since')
165
+ self.no_content_change_since = attributes[:'no_content_change_since']
178
166
  end
179
167
 
180
168
  if attributes.key?(:'content_guard_prn')
181
169
  self.content_guard_prn = attributes[:'content_guard_prn']
182
170
  end
183
171
 
184
- if attributes.key?(:'name')
185
- self.name = attributes[:'name']
186
- else
187
- self.name = nil
172
+ if attributes.key?(:'prn')
173
+ self.prn = attributes[:'prn']
188
174
  end
189
175
 
190
176
  if attributes.key?(:'repository')
@@ -195,16 +181,30 @@ module PulpContainerClient
195
181
  self.pulp_created = attributes[:'pulp_created']
196
182
  end
197
183
 
198
- if attributes.key?(:'pulp_labels')
199
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
200
- self.pulp_labels = value
201
- end
184
+ if attributes.key?(:'name')
185
+ self.name = attributes[:'name']
186
+ else
187
+ self.name = nil
202
188
  end
203
189
 
204
190
  if attributes.key?(:'repository_version')
205
191
  self.repository_version = attributes[:'repository_version']
206
192
  end
207
193
 
194
+ if attributes.key?(:'content_guard')
195
+ self.content_guard = attributes[:'content_guard']
196
+ end
197
+
198
+ if attributes.key?(:'base_path')
199
+ self.base_path = attributes[:'base_path']
200
+ else
201
+ self.base_path = nil
202
+ end
203
+
204
+ if attributes.key?(:'pulp_last_updated')
205
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
206
+ end
207
+
208
208
  if attributes.key?(:'remote')
209
209
  self.remote = attributes[:'remote']
210
210
  else
@@ -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
- no_content_change_since == o.no_content_change_since &&
269
- base_path == o.base_path &&
270
268
  hidden == o.hidden &&
271
- pulp_last_updated == o.pulp_last_updated &&
269
+ pulp_labels == o.pulp_labels &&
272
270
  pulp_href == o.pulp_href &&
273
- prn == o.prn &&
274
- content_guard == o.content_guard &&
271
+ no_content_change_since == o.no_content_change_since &&
275
272
  content_guard_prn == o.content_guard_prn &&
276
- name == o.name &&
273
+ prn == o.prn &&
277
274
  repository == o.repository &&
278
275
  pulp_created == o.pulp_created &&
279
- pulp_labels == o.pulp_labels &&
276
+ name == o.name &&
280
277
  repository_version == o.repository_version &&
278
+ content_guard == o.content_guard &&
279
+ base_path == o.base_path &&
280
+ pulp_last_updated == o.pulp_last_updated &&
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
- [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, remote, distributions, namespace, private, description].hash
297
+ [hidden, pulp_labels, pulp_href, no_content_change_since, content_guard_prn, prn, repository, pulp_created, name, repository_version, content_guard, base_path, pulp_last_updated, remote, distributions, namespace, private, description].hash
298
298
  end
299
299
 
300
300
  # Builds the object from hash