pulp_container_client 2.27.6 → 2.27.7

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