pulp_container_client 2.24.4 → 2.24.5

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