pulp_container_client 2.27.13 → 2.27.14

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 +10 -10
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerPullThroughDistribution.md +10 -10
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  7. data/docs/ContainerContainerPushRepository.md +9 -9
  8. data/docs/ContainerContainerPushRepositoryResponse.md +18 -18
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +10 -10
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +10 -10
  13. data/docs/PatchedcontainerContainerPushRepository.md +9 -9
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +70 -70
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +83 -83
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +70 -70
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +83 -83
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +65 -65
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +89 -89
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +63 -63
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +63 -63
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +63 -63
  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 +7 -7
  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 +7 -7
  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 +7 -7
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  33. metadata +2 -2
@@ -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
- # RepositoryVersion to be served
20
- attr_accessor :repository_version
19
+ # The latest RepositoryVersion for this Repository will be served.
20
+ attr_accessor :repository
21
21
 
22
- # A unique name. Ex, `rawhide` and `stable`.
23
- attr_accessor :name
22
+ # Whether this distribution should be shown in the content app.
23
+ attr_accessor :hidden
24
+
25
+ attr_accessor :pulp_labels
24
26
 
25
27
  # The registry path exposed by this pull-through distribution.
26
28
  attr_accessor :base_path
27
29
 
30
+ # RepositoryVersion to be served
31
+ attr_accessor :repository_version
32
+
28
33
  # An optional content-guard. If none is specified, a default one will be used.
29
34
  attr_accessor :content_guard
30
35
 
31
- # Whether this distribution should be shown in the content app.
32
- attr_accessor :hidden
33
-
34
- attr_accessor :pulp_labels
35
-
36
- # The latest RepositoryVersion for this Repository will be served.
37
- attr_accessor :repository
36
+ # A unique name. Ex, `rawhide` and `stable`.
37
+ attr_accessor :name
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
- :'repository_version' => :'repository_version',
55
- :'name' => :'name',
56
- :'base_path' => :'base_path',
57
- :'content_guard' => :'content_guard',
54
+ :'repository' => :'repository',
58
55
  :'hidden' => :'hidden',
59
56
  :'pulp_labels' => :'pulp_labels',
60
- :'repository' => :'repository',
57
+ :'base_path' => :'base_path',
58
+ :'repository_version' => :'repository_version',
59
+ :'content_guard' => :'content_guard',
60
+ :'name' => :'name',
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
- :'repository_version' => :'String',
77
- :'name' => :'String',
78
- :'base_path' => :'String',
79
- :'content_guard' => :'String',
76
+ :'repository' => :'String',
80
77
  :'hidden' => :'Boolean',
81
78
  :'pulp_labels' => :'Hash<String, String>',
82
- :'repository' => :'String',
79
+ :'base_path' => :'String',
80
+ :'repository_version' => :'String',
81
+ :'content_guard' => :'String',
82
+ :'name' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -90,8 +90,8 @@ module PulpContainerClient
90
90
  # List of attributes with nullable: true
91
91
  def self.openapi_nullable
92
92
  Set.new([
93
- :'repository_version',
94
93
  :'repository',
94
+ :'repository_version',
95
95
  :'description'
96
96
  ])
97
97
  end
@@ -111,14 +111,20 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
- if attributes.key?(:'repository_version')
115
- self.repository_version = attributes[:'repository_version']
114
+ if attributes.key?(:'repository')
115
+ self.repository = attributes[:'repository']
116
116
  end
117
117
 
118
- if attributes.key?(:'name')
119
- self.name = attributes[:'name']
118
+ if attributes.key?(:'hidden')
119
+ self.hidden = attributes[:'hidden']
120
120
  else
121
- self.name = nil
121
+ self.hidden = false
122
+ end
123
+
124
+ if attributes.key?(:'pulp_labels')
125
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
+ self.pulp_labels = value
127
+ end
122
128
  end
123
129
 
124
130
  if attributes.key?(:'base_path')
@@ -127,24 +133,18 @@ module PulpContainerClient
127
133
  self.base_path = nil
128
134
  end
129
135
 
136
+ if attributes.key?(:'repository_version')
137
+ self.repository_version = attributes[:'repository_version']
138
+ end
139
+
130
140
  if attributes.key?(:'content_guard')
131
141
  self.content_guard = attributes[:'content_guard']
132
142
  end
133
143
 
134
- if attributes.key?(:'hidden')
135
- self.hidden = attributes[:'hidden']
144
+ if attributes.key?(:'name')
145
+ self.name = attributes[:'name']
136
146
  else
137
- self.hidden = false
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
144
- end
145
-
146
- if attributes.key?(:'repository')
147
- self.repository = attributes[:'repository']
147
+ self.name = 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 @name.nil?
177
- invalid_properties.push('invalid value for "name", name cannot be nil.')
178
- end
179
-
180
- if @name.to_s.length < 1
181
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
182
- end
183
-
184
176
  if @base_path.nil?
185
177
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
186
178
  end
@@ -189,6 +181,14 @@ module PulpContainerClient
189
181
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
190
182
  end
191
183
 
184
+ if @name.nil?
185
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
186
+ end
187
+
188
+ if @name.to_s.length < 1
189
+ invalid_properties.push('invalid value for "name", 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 @name.nil?
208
- return false if @name.to_s.length < 1
209
207
  return false if @base_path.nil?
210
208
  return false if @base_path.to_s.length < 1
209
+ return false if @name.nil?
210
+ return false if @name.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] name Value to be assigned
218
- def name=(name)
219
- if name.nil?
220
- fail ArgumentError, 'name cannot be nil'
221
- end
222
-
223
- if name.to_s.length < 1
224
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
225
- end
226
-
227
- @name = name
228
- end
229
-
230
216
  # Custom attribute writer method with validation
231
217
  # @param [Object] base_path Value to be assigned
232
218
  def base_path=(base_path)
@@ -241,6 +227,20 @@ module PulpContainerClient
241
227
  @base_path = base_path
242
228
  end
243
229
 
230
+ # Custom attribute writer method with validation
231
+ # @param [Object] name Value to be assigned
232
+ def name=(name)
233
+ if name.nil?
234
+ fail ArgumentError, 'name cannot be nil'
235
+ end
236
+
237
+ if name.to_s.length < 1
238
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
239
+ end
240
+
241
+ @name = name
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
- repository_version == o.repository_version &&
260
- name == o.name &&
261
- base_path == o.base_path &&
262
- content_guard == o.content_guard &&
259
+ repository == o.repository &&
263
260
  hidden == o.hidden &&
264
261
  pulp_labels == o.pulp_labels &&
265
- repository == o.repository &&
262
+ base_path == o.base_path &&
263
+ repository_version == o.repository_version &&
264
+ content_guard == o.content_guard &&
265
+ name == o.name &&
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
- [repository_version, name, base_path, content_guard, hidden, pulp_labels, repository, remote, distributions, private, description].hash
281
+ [repository, hidden, pulp_labels, base_path, repository_version, content_guard, name, 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
- # RepositoryVersion to be served
20
- attr_accessor :repository_version
19
+ # The Pulp Resource Name (PRN).
20
+ attr_accessor :prn
21
+
22
+ # The latest RepositoryVersion for this Repository will be served.
23
+ attr_accessor :repository
24
+
25
+ # Whether this distribution should be shown in the content app.
26
+ attr_accessor :hidden
27
+
28
+ attr_accessor :pulp_labels
29
+
30
+ attr_accessor :pulp_href
21
31
 
22
32
  # Timestamp of creation.
23
33
  attr_accessor :pulp_created
24
34
 
35
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
36
+ attr_accessor :no_content_change_since
37
+
25
38
  # The Pulp Resource Name (PRN) of the associated optional content guard.
26
39
  attr_accessor :content_guard_prn
27
40
 
28
- attr_accessor :pulp_href
29
-
30
- # A unique name. Ex, `rawhide` and `stable`.
31
- attr_accessor :name
32
-
33
41
  # The registry path exposed by this pull-through distribution.
34
42
  attr_accessor :base_path
35
43
 
44
+ # RepositoryVersion to be served
45
+ attr_accessor :repository_version
46
+
36
47
  # An optional content-guard. If none is specified, a default one will be used.
37
48
  attr_accessor :content_guard
38
49
 
39
- # Whether this distribution should be shown in the content app.
40
- attr_accessor :hidden
41
-
42
50
  # 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.
43
51
  attr_accessor :pulp_last_updated
44
52
 
45
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
46
- attr_accessor :no_content_change_since
47
-
48
- attr_accessor :pulp_labels
49
-
50
- # The Pulp Resource Name (PRN).
51
- attr_accessor :prn
52
-
53
- # The latest RepositoryVersion for this Repository will be served.
54
- attr_accessor :repository
53
+ # A unique name. Ex, `rawhide` and `stable`.
54
+ attr_accessor :name
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
- :'repository_version' => :'repository_version',
74
+ :'prn' => :'prn',
75
+ :'repository' => :'repository',
76
+ :'hidden' => :'hidden',
77
+ :'pulp_labels' => :'pulp_labels',
78
+ :'pulp_href' => :'pulp_href',
75
79
  :'pulp_created' => :'pulp_created',
80
+ :'no_content_change_since' => :'no_content_change_since',
76
81
  :'content_guard_prn' => :'content_guard_prn',
77
- :'pulp_href' => :'pulp_href',
78
- :'name' => :'name',
79
82
  :'base_path' => :'base_path',
83
+ :'repository_version' => :'repository_version',
80
84
  :'content_guard' => :'content_guard',
81
- :'hidden' => :'hidden',
82
85
  :'pulp_last_updated' => :'pulp_last_updated',
83
- :'no_content_change_since' => :'no_content_change_since',
84
- :'pulp_labels' => :'pulp_labels',
85
- :'prn' => :'prn',
86
- :'repository' => :'repository',
86
+ :'name' => :'name',
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
- :'repository_version' => :'String',
103
+ :'prn' => :'String',
104
+ :'repository' => :'String',
105
+ :'hidden' => :'Boolean',
106
+ :'pulp_labels' => :'Hash<String, String>',
107
+ :'pulp_href' => :'String',
104
108
  :'pulp_created' => :'Time',
109
+ :'no_content_change_since' => :'String',
105
110
  :'content_guard_prn' => :'String',
106
- :'pulp_href' => :'String',
107
- :'name' => :'String',
108
111
  :'base_path' => :'String',
112
+ :'repository_version' => :'String',
109
113
  :'content_guard' => :'String',
110
- :'hidden' => :'Boolean',
111
114
  :'pulp_last_updated' => :'Time',
112
- :'no_content_change_since' => :'String',
113
- :'pulp_labels' => :'Hash<String, String>',
114
- :'prn' => :'String',
115
- :'repository' => :'String',
115
+ :'name' => :'String',
116
116
  :'remote' => :'String',
117
117
  :'distributions' => :'Array<String>',
118
118
  :'namespace' => :'String',
@@ -124,8 +124,8 @@ module PulpContainerClient
124
124
  # List of attributes with nullable: true
125
125
  def self.openapi_nullable
126
126
  Set.new([
127
- :'repository_version',
128
127
  :'repository',
128
+ :'repository_version',
129
129
  :'description'
130
130
  ])
131
131
  end
@@ -145,26 +145,40 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'repository_version')
149
- self.repository_version = attributes[:'repository_version']
148
+ if attributes.key?(:'prn')
149
+ self.prn = attributes[:'prn']
150
150
  end
151
151
 
152
- if attributes.key?(:'pulp_created')
153
- self.pulp_created = attributes[:'pulp_created']
152
+ if attributes.key?(:'repository')
153
+ self.repository = attributes[:'repository']
154
154
  end
155
155
 
156
- if attributes.key?(:'content_guard_prn')
157
- self.content_guard_prn = attributes[:'content_guard_prn']
156
+ if attributes.key?(:'hidden')
157
+ self.hidden = attributes[:'hidden']
158
+ else
159
+ self.hidden = false
160
+ end
161
+
162
+ if attributes.key?(:'pulp_labels')
163
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
164
+ self.pulp_labels = value
165
+ end
158
166
  end
159
167
 
160
168
  if attributes.key?(:'pulp_href')
161
169
  self.pulp_href = attributes[:'pulp_href']
162
170
  end
163
171
 
164
- if attributes.key?(:'name')
165
- self.name = attributes[:'name']
166
- else
167
- self.name = nil
172
+ if attributes.key?(:'pulp_created')
173
+ self.pulp_created = attributes[:'pulp_created']
174
+ end
175
+
176
+ if attributes.key?(:'no_content_change_since')
177
+ self.no_content_change_since = attributes[:'no_content_change_since']
178
+ end
179
+
180
+ if attributes.key?(:'content_guard_prn')
181
+ self.content_guard_prn = attributes[:'content_guard_prn']
168
182
  end
169
183
 
170
184
  if attributes.key?(:'base_path')
@@ -173,36 +187,22 @@ module PulpContainerClient
173
187
  self.base_path = nil
174
188
  end
175
189
 
176
- if attributes.key?(:'content_guard')
177
- self.content_guard = attributes[:'content_guard']
190
+ if attributes.key?(:'repository_version')
191
+ self.repository_version = attributes[:'repository_version']
178
192
  end
179
193
 
180
- if attributes.key?(:'hidden')
181
- self.hidden = attributes[:'hidden']
182
- else
183
- self.hidden = false
194
+ if attributes.key?(:'content_guard')
195
+ self.content_guard = attributes[:'content_guard']
184
196
  end
185
197
 
186
198
  if attributes.key?(:'pulp_last_updated')
187
199
  self.pulp_last_updated = attributes[:'pulp_last_updated']
188
200
  end
189
201
 
190
- if attributes.key?(:'no_content_change_since')
191
- self.no_content_change_since = attributes[:'no_content_change_since']
192
- end
193
-
194
- if attributes.key?(:'pulp_labels')
195
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
196
- self.pulp_labels = value
197
- end
198
- end
199
-
200
- if attributes.key?(:'prn')
201
- self.prn = attributes[:'prn']
202
- end
203
-
204
- if attributes.key?(:'repository')
205
- self.repository = attributes[:'repository']
202
+ if attributes.key?(:'name')
203
+ self.name = attributes[:'name']
204
+ else
205
+ self.name = 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 @name.nil?
239
- invalid_properties.push('invalid value for "name", name cannot be nil.')
240
- end
241
-
242
238
  if @base_path.nil?
243
239
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
244
240
  end
245
241
 
242
+ if @name.nil?
243
+ invalid_properties.push('invalid value for "name", name 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 @name.nil?
258
257
  return false if @base_path.nil?
258
+ return false if @name.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
- repository_version == o.repository_version &&
268
+ prn == o.prn &&
269
+ repository == o.repository &&
270
+ hidden == o.hidden &&
271
+ pulp_labels == o.pulp_labels &&
272
+ pulp_href == o.pulp_href &&
269
273
  pulp_created == o.pulp_created &&
274
+ no_content_change_since == o.no_content_change_since &&
270
275
  content_guard_prn == o.content_guard_prn &&
271
- pulp_href == o.pulp_href &&
272
- name == o.name &&
273
276
  base_path == o.base_path &&
277
+ repository_version == o.repository_version &&
274
278
  content_guard == o.content_guard &&
275
- hidden == o.hidden &&
276
279
  pulp_last_updated == o.pulp_last_updated &&
277
- no_content_change_since == o.no_content_change_since &&
278
- pulp_labels == o.pulp_labels &&
279
- prn == o.prn &&
280
- repository == o.repository &&
280
+ name == o.name &&
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
- [repository_version, pulp_created, content_guard_prn, pulp_href, name, base_path, content_guard, hidden, pulp_last_updated, no_content_change_since, pulp_labels, prn, repository, remote, distributions, namespace, private, description].hash
297
+ [prn, repository, hidden, pulp_labels, pulp_href, pulp_created, no_content_change_since, content_guard_prn, base_path, repository_version, content_guard, pulp_last_updated, name, remote, distributions, namespace, private, description].hash
298
298
  end
299
299
 
300
300
  # Builds the object from hash