pulp_container_client 2.27.12 → 2.28.0

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerNamespace.md +3 -1
  6. data/docs/ContainerContainerNamespaceResponse.md +3 -1
  7. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  9. data/docs/ContainerContainerPushRepository.md +4 -4
  10. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  11. data/docs/ContainerContainerRemote.md +6 -2
  12. data/docs/ContainerContainerRemoteResponse.md +4 -4
  13. data/docs/ContainerManifestSignatureResponse.md +2 -0
  14. data/docs/ContentSignaturesApi.md +2 -2
  15. data/docs/DistributionsContainerApi.md +2 -2
  16. data/docs/DistributionsPullThroughApi.md +12 -12
  17. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  18. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  19. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  20. data/docs/PatchedcontainerContainerRemote.md +6 -2
  21. data/docs/PulpContainerNamespacesApi.md +2 -2
  22. data/lib/pulp_container_client/api/content_signatures_api.rb +3 -3
  23. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +8 -4
  24. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
  25. data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
  26. data/lib/pulp_container_client/models/container_container_distribution_response.rb +76 -76
  27. data/lib/pulp_container_client/models/container_container_namespace.rb +15 -4
  28. data/lib/pulp_container_client/models/container_container_namespace_response.rb +15 -4
  29. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +55 -55
  30. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +76 -76
  31. data/lib/pulp_container_client/models/container_container_push_repository.rb +35 -35
  32. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -66
  33. data/lib/pulp_container_client/models/container_container_remote.rb +29 -3
  34. data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -19
  35. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +14 -1
  36. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +47 -47
  37. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
  38. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
  39. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +29 -3
  40. data/lib/pulp_container_client/version.rb +1 -1
  41. data/spec/api/content_signatures_api_spec.rb +1 -1
  42. data/spec/api/distributions_pull_through_api_spec.rb +4 -2
  43. data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
  44. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  45. data/spec/models/container_container_distribution_spec.rb +6 -6
  46. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  47. data/spec/models/container_container_namespace_spec.rb +6 -0
  48. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  49. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  50. data/spec/models/container_container_push_repository_response_spec.rb +12 -12
  51. data/spec/models/container_container_push_repository_spec.rb +4 -4
  52. data/spec/models/container_container_remote_response_spec.rb +2 -2
  53. data/spec/models/container_container_remote_spec.rb +12 -0
  54. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  55. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  56. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  57. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  58. data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
  59. metadata +62 -62
@@ -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
- attr_accessor :pulp_href
20
-
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
23
-
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
26
-
27
19
  # Whether this distribution should be shown in the content app.
28
20
  attr_accessor :hidden
29
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
+
30
25
  # The Pulp Resource Name (PRN).
31
26
  attr_accessor :prn
32
27
 
33
- # The Pulp Resource Name (PRN) of the associated optional content guard.
34
- attr_accessor :content_guard_prn
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
+ attr_accessor :pulp_labels
32
+
33
+ attr_accessor :pulp_href
35
34
 
36
35
  # A unique name. Ex, `rawhide` and `stable`.
37
36
  attr_accessor :name
38
37
 
39
- attr_accessor :pulp_labels
40
-
41
38
  # The latest RepositoryVersion for this Repository will be served.
42
39
  attr_accessor :repository
43
40
 
44
- # The registry path exposed by this pull-through distribution.
45
- attr_accessor :base_path
41
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
42
+ attr_accessor :no_content_change_since
43
+
44
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
45
+ attr_accessor :content_guard_prn
46
46
 
47
47
  # RepositoryVersion to be served
48
48
  attr_accessor :repository_version
49
49
 
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.
51
- attr_accessor :pulp_last_updated
50
+ # Timestamp of creation.
51
+ attr_accessor :pulp_created
52
52
 
53
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
54
- attr_accessor :no_content_change_since
53
+ # An optional content-guard. If none is specified, a default one will be used.
54
+ attr_accessor :content_guard
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
- :'pulp_href' => :'pulp_href',
75
- :'pulp_created' => :'pulp_created',
76
- :'content_guard' => :'content_guard',
77
74
  :'hidden' => :'hidden',
75
+ :'base_path' => :'base_path',
78
76
  :'prn' => :'prn',
79
- :'content_guard_prn' => :'content_guard_prn',
80
- :'name' => :'name',
77
+ :'pulp_last_updated' => :'pulp_last_updated',
81
78
  :'pulp_labels' => :'pulp_labels',
79
+ :'pulp_href' => :'pulp_href',
80
+ :'name' => :'name',
82
81
  :'repository' => :'repository',
83
- :'base_path' => :'base_path',
84
- :'repository_version' => :'repository_version',
85
- :'pulp_last_updated' => :'pulp_last_updated',
86
82
  :'no_content_change_since' => :'no_content_change_since',
83
+ :'content_guard_prn' => :'content_guard_prn',
84
+ :'repository_version' => :'repository_version',
85
+ :'pulp_created' => :'pulp_created',
86
+ :'content_guard' => :'content_guard',
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
- :'pulp_href' => :'String',
104
- :'pulp_created' => :'Time',
105
- :'content_guard' => :'String',
106
103
  :'hidden' => :'Boolean',
104
+ :'base_path' => :'String',
107
105
  :'prn' => :'String',
108
- :'content_guard_prn' => :'String',
109
- :'name' => :'String',
106
+ :'pulp_last_updated' => :'Time',
110
107
  :'pulp_labels' => :'Hash<String, String>',
108
+ :'pulp_href' => :'String',
109
+ :'name' => :'String',
111
110
  :'repository' => :'String',
112
- :'base_path' => :'String',
113
- :'repository_version' => :'String',
114
- :'pulp_last_updated' => :'Time',
115
111
  :'no_content_change_since' => :'String',
112
+ :'content_guard_prn' => :'String',
113
+ :'repository_version' => :'String',
114
+ :'pulp_created' => :'Time',
115
+ :'content_guard' => :'String',
116
116
  :'remote' => :'String',
117
117
  :'distributions' => :'Array<String>',
118
118
  :'namespace' => :'String',
@@ -145,36 +145,24 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'pulp_href')
149
- self.pulp_href = attributes[:'pulp_href']
150
- end
151
-
152
- if attributes.key?(:'pulp_created')
153
- self.pulp_created = attributes[:'pulp_created']
154
- end
155
-
156
- if attributes.key?(:'content_guard')
157
- self.content_guard = attributes[:'content_guard']
158
- end
159
-
160
148
  if attributes.key?(:'hidden')
161
149
  self.hidden = attributes[:'hidden']
162
150
  else
163
151
  self.hidden = false
164
152
  end
165
153
 
166
- if attributes.key?(:'prn')
167
- self.prn = attributes[:'prn']
154
+ if attributes.key?(:'base_path')
155
+ self.base_path = attributes[:'base_path']
156
+ else
157
+ self.base_path = nil
168
158
  end
169
159
 
170
- if attributes.key?(:'content_guard_prn')
171
- self.content_guard_prn = attributes[:'content_guard_prn']
160
+ if attributes.key?(:'prn')
161
+ self.prn = attributes[:'prn']
172
162
  end
173
163
 
174
- if attributes.key?(:'name')
175
- self.name = attributes[:'name']
176
- else
177
- self.name = nil
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
178
166
  end
179
167
 
180
168
  if attributes.key?(:'pulp_labels')
@@ -183,26 +171,38 @@ module PulpContainerClient
183
171
  end
184
172
  end
185
173
 
174
+ if attributes.key?(:'pulp_href')
175
+ self.pulp_href = attributes[:'pulp_href']
176
+ end
177
+
178
+ if attributes.key?(:'name')
179
+ self.name = attributes[:'name']
180
+ else
181
+ self.name = nil
182
+ end
183
+
186
184
  if attributes.key?(:'repository')
187
185
  self.repository = attributes[:'repository']
188
186
  end
189
187
 
190
- if attributes.key?(:'base_path')
191
- self.base_path = attributes[:'base_path']
192
- else
193
- self.base_path = nil
188
+ if attributes.key?(:'no_content_change_since')
189
+ self.no_content_change_since = attributes[:'no_content_change_since']
190
+ end
191
+
192
+ if attributes.key?(:'content_guard_prn')
193
+ self.content_guard_prn = attributes[:'content_guard_prn']
194
194
  end
195
195
 
196
196
  if attributes.key?(:'repository_version')
197
197
  self.repository_version = attributes[:'repository_version']
198
198
  end
199
199
 
200
- if attributes.key?(:'pulp_last_updated')
201
- self.pulp_last_updated = attributes[:'pulp_last_updated']
200
+ if attributes.key?(:'pulp_created')
201
+ self.pulp_created = attributes[:'pulp_created']
202
202
  end
203
203
 
204
- if attributes.key?(:'no_content_change_since')
205
- self.no_content_change_since = attributes[:'no_content_change_since']
204
+ if attributes.key?(:'content_guard')
205
+ self.content_guard = attributes[:'content_guard']
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
- pulp_href == o.pulp_href &&
269
- pulp_created == o.pulp_created &&
270
- content_guard == o.content_guard &&
271
268
  hidden == o.hidden &&
269
+ base_path == o.base_path &&
272
270
  prn == o.prn &&
273
- content_guard_prn == o.content_guard_prn &&
274
- name == o.name &&
271
+ pulp_last_updated == o.pulp_last_updated &&
275
272
  pulp_labels == o.pulp_labels &&
273
+ pulp_href == o.pulp_href &&
274
+ name == o.name &&
276
275
  repository == o.repository &&
277
- base_path == o.base_path &&
278
- repository_version == o.repository_version &&
279
- pulp_last_updated == o.pulp_last_updated &&
280
276
  no_content_change_since == o.no_content_change_since &&
277
+ content_guard_prn == o.content_guard_prn &&
278
+ repository_version == o.repository_version &&
279
+ pulp_created == o.pulp_created &&
280
+ content_guard == o.content_guard &&
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
- [pulp_href, pulp_created, content_guard, hidden, prn, content_guard_prn, name, pulp_labels, repository, base_path, repository_version, pulp_last_updated, no_content_change_since, remote, distributions, namespace, private, description].hash
297
+ [hidden, base_path, prn, pulp_last_updated, pulp_labels, pulp_href, name, repository, no_content_change_since, content_guard_prn, repository_version, pulp_created, content_guard, remote, distributions, namespace, private, description].hash
298
298
  end
299
299
 
300
300
  # Builds the object from hash
@@ -16,19 +16,19 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- # An optional description.
20
- attr_accessor :description
21
-
22
19
  # A reference to an associated signing service.
23
20
  attr_accessor :manifest_signing_service
24
21
 
25
22
  # Retain X versions of the repository. Default is null which retains all versions.
26
23
  attr_accessor :retain_repo_versions
27
24
 
25
+ attr_accessor :pulp_labels
26
+
28
27
  # A unique name for this repository.
29
28
  attr_accessor :name
30
29
 
31
- attr_accessor :pulp_labels
30
+ # An optional description.
31
+ attr_accessor :description
32
32
 
33
33
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
34
34
  attr_accessor :retain_checkpoints
@@ -36,11 +36,11 @@ module PulpContainerClient
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'description' => :'description',
40
39
  :'manifest_signing_service' => :'manifest_signing_service',
41
40
  :'retain_repo_versions' => :'retain_repo_versions',
42
- :'name' => :'name',
43
41
  :'pulp_labels' => :'pulp_labels',
42
+ :'name' => :'name',
43
+ :'description' => :'description',
44
44
  :'retain_checkpoints' => :'retain_checkpoints'
45
45
  }
46
46
  end
@@ -53,11 +53,11 @@ module PulpContainerClient
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
- :'description' => :'String',
57
56
  :'manifest_signing_service' => :'String',
58
57
  :'retain_repo_versions' => :'Integer',
59
- :'name' => :'String',
60
58
  :'pulp_labels' => :'Hash<String, String>',
59
+ :'name' => :'String',
60
+ :'description' => :'String',
61
61
  :'retain_checkpoints' => :'Integer'
62
62
  }
63
63
  end
@@ -65,9 +65,9 @@ module PulpContainerClient
65
65
  # List of attributes with nullable: true
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
- :'description',
69
68
  :'manifest_signing_service',
70
69
  :'retain_repo_versions',
70
+ :'description',
71
71
  :'retain_checkpoints'
72
72
  ])
73
73
  end
@@ -87,10 +87,6 @@ module PulpContainerClient
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
- if attributes.key?(:'description')
91
- self.description = attributes[:'description']
92
- end
93
-
94
90
  if attributes.key?(:'manifest_signing_service')
95
91
  self.manifest_signing_service = attributes[:'manifest_signing_service']
96
92
  end
@@ -99,16 +95,20 @@ module PulpContainerClient
99
95
  self.retain_repo_versions = attributes[:'retain_repo_versions']
100
96
  end
101
97
 
98
+ if attributes.key?(:'pulp_labels')
99
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
+ self.pulp_labels = value
101
+ end
102
+ end
103
+
102
104
  if attributes.key?(:'name')
103
105
  self.name = attributes[:'name']
104
106
  else
105
107
  self.name = nil
106
108
  end
107
109
 
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
110
+ if attributes.key?(:'description')
111
+ self.description = attributes[:'description']
112
112
  end
113
113
 
114
114
  if attributes.key?(:'retain_checkpoints')
@@ -121,10 +121,6 @@ module PulpContainerClient
121
121
  def list_invalid_properties
122
122
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
123
  invalid_properties = Array.new
124
- if !@description.nil? && @description.to_s.length < 1
125
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
126
- end
127
-
128
124
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
125
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
130
126
  end
@@ -137,6 +133,10 @@ module PulpContainerClient
137
133
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
138
134
  end
139
135
 
136
+ if !@description.nil? && @description.to_s.length < 1
137
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
138
+ end
139
+
140
140
  if !@retain_checkpoints.nil? && @retain_checkpoints < 1
141
141
  invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
142
142
  end
@@ -148,24 +148,14 @@ module PulpContainerClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
151
- return false if !@description.nil? && @description.to_s.length < 1
152
151
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
152
  return false if @name.nil?
154
153
  return false if @name.to_s.length < 1
154
+ return false if !@description.nil? && @description.to_s.length < 1
155
155
  return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
156
156
  true
157
157
  end
158
158
 
159
- # Custom attribute writer method with validation
160
- # @param [Object] description Value to be assigned
161
- def description=(description)
162
- if !description.nil? && description.to_s.length < 1
163
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
164
- end
165
-
166
- @description = description
167
- end
168
-
169
159
  # Custom attribute writer method with validation
170
160
  # @param [Object] retain_repo_versions Value to be assigned
171
161
  def retain_repo_versions=(retain_repo_versions)
@@ -190,6 +180,16 @@ module PulpContainerClient
190
180
  @name = name
191
181
  end
192
182
 
183
+ # Custom attribute writer method with validation
184
+ # @param [Object] description Value to be assigned
185
+ def description=(description)
186
+ if !description.nil? && description.to_s.length < 1
187
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
188
+ end
189
+
190
+ @description = description
191
+ end
192
+
193
193
  # Custom attribute writer method with validation
194
194
  # @param [Object] retain_checkpoints Value to be assigned
195
195
  def retain_checkpoints=(retain_checkpoints)
@@ -205,11 +205,11 @@ module PulpContainerClient
205
205
  def ==(o)
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
- description == o.description &&
209
208
  manifest_signing_service == o.manifest_signing_service &&
210
209
  retain_repo_versions == o.retain_repo_versions &&
211
- name == o.name &&
212
210
  pulp_labels == o.pulp_labels &&
211
+ name == o.name &&
212
+ description == o.description &&
213
213
  retain_checkpoints == o.retain_checkpoints
214
214
  end
215
215
 
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [description, manifest_signing_service, retain_repo_versions, name, pulp_labels, retain_checkpoints].hash
225
+ [manifest_signing_service, retain_repo_versions, pulp_labels, name, description, retain_checkpoints].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash