pulp_container_client 2.24.0 → 2.24.1

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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +8 -8
  5. data/docs/ContainerContainerDistributionResponse.md +14 -14
  6. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  8. data/docs/ContainerContainerPushRepository.md +8 -8
  9. data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
  10. data/docs/ContainerManifestResponse.md +2 -0
  11. data/docs/ContainerManifestSignatureResponse.md +2 -0
  12. data/docs/ContainerTagResponse.md +2 -0
  13. data/docs/ContentBlobsApi.md +4 -2
  14. data/docs/ContentManifestsApi.md +4 -2
  15. data/docs/ContentSignaturesApi.md +4 -2
  16. data/docs/ContentTagsApi.md +4 -2
  17. data/docs/DistributionsContainerApi.md +2 -2
  18. data/docs/DistributionsPullThroughApi.md +2 -2
  19. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  20. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  21. data/docs/PatchedcontainerContainerPushRepository.md +8 -8
  22. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -3
  23. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -3
  24. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -3
  25. data/lib/pulp_container_client/api/content_tags_api.rb +6 -3
  26. data/lib/pulp_container_client/models/container_blob_response.rb +13 -1
  27. data/lib/pulp_container_client/models/container_container_distribution.rb +65 -65
  28. data/lib/pulp_container_client/models/container_container_distribution_response.rb +73 -73
  29. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +65 -65
  30. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +73 -73
  31. data/lib/pulp_container_client/models/container_container_push_repository.rb +48 -48
  32. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +69 -69
  33. data/lib/pulp_container_client/models/container_manifest_response.rb +13 -1
  34. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +13 -1
  35. data/lib/pulp_container_client/models/container_tag_response.rb +13 -1
  36. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +58 -58
  37. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +58 -58
  38. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +48 -48
  39. data/lib/pulp_container_client/version.rb +1 -1
  40. data/spec/api/content_blobs_api_spec.rb +2 -1
  41. data/spec/api/content_manifests_api_spec.rb +2 -1
  42. data/spec/api/content_signatures_api_spec.rb +2 -1
  43. data/spec/api/content_tags_api_spec.rb +2 -1
  44. data/spec/models/container_blob_response_spec.rb +6 -0
  45. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  46. data/spec/models/container_container_distribution_spec.rb +6 -6
  47. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  48. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  49. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  50. data/spec/models/container_container_push_repository_spec.rb +4 -4
  51. data/spec/models/container_manifest_response_spec.rb +6 -0
  52. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  53. data/spec/models/container_tag_response_spec.rb +6 -0
  54. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  55. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  56. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  57. metadata +63 -63
@@ -16,36 +16,36 @@ 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_labels
20
-
21
- # The latest RepositoryVersion for this Repository will be served.
22
- attr_accessor :repository
23
-
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
- # An optional content-guard. If none is specified, a default one will be used.
28
- attr_accessor :content_guard
29
-
30
19
  # The Pulp Resource Name (PRN).
31
20
  attr_accessor :prn
32
21
 
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
22
+ attr_accessor :pulp_href
23
+
24
+ # 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.
25
+ attr_accessor :pulp_last_updated
35
26
 
36
27
  # Whether this distribution should be shown in the content app.
37
28
  attr_accessor :hidden
38
29
 
39
- attr_accessor :pulp_href
30
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
31
+ attr_accessor :base_path
40
32
 
41
33
  # A unique name. Ex, `rawhide` and `stable`.
42
34
  attr_accessor :name
43
35
 
44
- # 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.
45
- attr_accessor :pulp_last_updated
36
+ # An optional content-guard. If none is specified, a default one will be used.
37
+ attr_accessor :content_guard
46
38
 
47
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
48
- attr_accessor :base_path
39
+ attr_accessor :pulp_labels
40
+
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
+ # Timestamp of creation.
45
+ attr_accessor :pulp_created
46
+
47
+ # The latest RepositoryVersion for this Repository will be served.
48
+ attr_accessor :repository
49
49
 
50
50
  # Remote that can be used to fetch content when using pull-through caching.
51
51
  attr_accessor :remote
@@ -65,17 +65,17 @@ module PulpContainerClient
65
65
  # Attribute mapping from ruby-style variable name to JSON key.
66
66
  def self.attribute_map
67
67
  {
68
- :'pulp_labels' => :'pulp_labels',
69
- :'repository' => :'repository',
70
- :'pulp_created' => :'pulp_created',
71
- :'content_guard' => :'content_guard',
72
68
  :'prn' => :'prn',
73
- :'no_content_change_since' => :'no_content_change_since',
74
- :'hidden' => :'hidden',
75
69
  :'pulp_href' => :'pulp_href',
76
- :'name' => :'name',
77
70
  :'pulp_last_updated' => :'pulp_last_updated',
71
+ :'hidden' => :'hidden',
78
72
  :'base_path' => :'base_path',
73
+ :'name' => :'name',
74
+ :'content_guard' => :'content_guard',
75
+ :'pulp_labels' => :'pulp_labels',
76
+ :'no_content_change_since' => :'no_content_change_since',
77
+ :'pulp_created' => :'pulp_created',
78
+ :'repository' => :'repository',
79
79
  :'remote' => :'remote',
80
80
  :'distributions' => :'distributions',
81
81
  :'namespace' => :'namespace',
@@ -92,17 +92,17 @@ module PulpContainerClient
92
92
  # Attribute type mapping.
93
93
  def self.openapi_types
94
94
  {
95
- :'pulp_labels' => :'Hash<String, String>',
96
- :'repository' => :'String',
97
- :'pulp_created' => :'Time',
98
- :'content_guard' => :'String',
99
95
  :'prn' => :'String',
100
- :'no_content_change_since' => :'String',
101
- :'hidden' => :'Boolean',
102
96
  :'pulp_href' => :'String',
103
- :'name' => :'String',
104
97
  :'pulp_last_updated' => :'Time',
98
+ :'hidden' => :'Boolean',
105
99
  :'base_path' => :'String',
100
+ :'name' => :'String',
101
+ :'content_guard' => :'String',
102
+ :'pulp_labels' => :'Hash<String, String>',
103
+ :'no_content_change_since' => :'String',
104
+ :'pulp_created' => :'Time',
105
+ :'repository' => :'String',
106
106
  :'remote' => :'String',
107
107
  :'distributions' => :'Array<String>',
108
108
  :'namespace' => :'String',
@@ -134,30 +134,16 @@ module PulpContainerClient
134
134
  h[k.to_sym] = v
135
135
  }
136
136
 
137
- if attributes.key?(:'pulp_labels')
138
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
139
- self.pulp_labels = value
140
- end
141
- end
142
-
143
- if attributes.key?(:'repository')
144
- self.repository = attributes[:'repository']
145
- end
146
-
147
- if attributes.key?(:'pulp_created')
148
- self.pulp_created = attributes[:'pulp_created']
149
- end
150
-
151
- if attributes.key?(:'content_guard')
152
- self.content_guard = attributes[:'content_guard']
153
- end
154
-
155
137
  if attributes.key?(:'prn')
156
138
  self.prn = attributes[:'prn']
157
139
  end
158
140
 
159
- if attributes.key?(:'no_content_change_since')
160
- self.no_content_change_since = attributes[:'no_content_change_since']
141
+ if attributes.key?(:'pulp_href')
142
+ self.pulp_href = attributes[:'pulp_href']
143
+ end
144
+
145
+ if attributes.key?(:'pulp_last_updated')
146
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
161
147
  end
162
148
 
163
149
  if attributes.key?(:'hidden')
@@ -166,8 +152,10 @@ module PulpContainerClient
166
152
  self.hidden = false
167
153
  end
168
154
 
169
- if attributes.key?(:'pulp_href')
170
- self.pulp_href = attributes[:'pulp_href']
155
+ if attributes.key?(:'base_path')
156
+ self.base_path = attributes[:'base_path']
157
+ else
158
+ self.base_path = nil
171
159
  end
172
160
 
173
161
  if attributes.key?(:'name')
@@ -176,14 +164,26 @@ module PulpContainerClient
176
164
  self.name = nil
177
165
  end
178
166
 
179
- if attributes.key?(:'pulp_last_updated')
180
- self.pulp_last_updated = attributes[:'pulp_last_updated']
167
+ if attributes.key?(:'content_guard')
168
+ self.content_guard = attributes[:'content_guard']
181
169
  end
182
170
 
183
- if attributes.key?(:'base_path')
184
- self.base_path = attributes[:'base_path']
185
- else
186
- self.base_path = nil
171
+ if attributes.key?(:'pulp_labels')
172
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
173
+ self.pulp_labels = value
174
+ end
175
+ end
176
+
177
+ if attributes.key?(:'no_content_change_since')
178
+ self.no_content_change_since = attributes[:'no_content_change_since']
179
+ end
180
+
181
+ if attributes.key?(:'pulp_created')
182
+ self.pulp_created = attributes[:'pulp_created']
183
+ end
184
+
185
+ if attributes.key?(:'repository')
186
+ self.repository = attributes[:'repository']
187
187
  end
188
188
 
189
189
  if attributes.key?(:'remote')
@@ -216,14 +216,14 @@ module PulpContainerClient
216
216
  def list_invalid_properties
217
217
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
218
218
  invalid_properties = Array.new
219
- if @name.nil?
220
- invalid_properties.push('invalid value for "name", name cannot be nil.')
221
- end
222
-
223
219
  if @base_path.nil?
224
220
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
225
221
  end
226
222
 
223
+ if @name.nil?
224
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
225
+ end
226
+
227
227
  if @remote.nil?
228
228
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
229
229
  end
@@ -235,8 +235,8 @@ module PulpContainerClient
235
235
  # @return true if the model is valid
236
236
  def valid?
237
237
  warn '[DEPRECATED] the `valid?` method is obsolete'
238
- return false if @name.nil?
239
238
  return false if @base_path.nil?
239
+ return false if @name.nil?
240
240
  return false if @remote.nil?
241
241
  true
242
242
  end
@@ -246,17 +246,17 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
- pulp_labels == o.pulp_labels &&
250
- repository == o.repository &&
251
- pulp_created == o.pulp_created &&
252
- content_guard == o.content_guard &&
253
249
  prn == o.prn &&
254
- no_content_change_since == o.no_content_change_since &&
255
- hidden == o.hidden &&
256
250
  pulp_href == o.pulp_href &&
257
- name == o.name &&
258
251
  pulp_last_updated == o.pulp_last_updated &&
252
+ hidden == o.hidden &&
259
253
  base_path == o.base_path &&
254
+ name == o.name &&
255
+ content_guard == o.content_guard &&
256
+ pulp_labels == o.pulp_labels &&
257
+ no_content_change_since == o.no_content_change_since &&
258
+ pulp_created == o.pulp_created &&
259
+ repository == o.repository &&
260
260
  remote == o.remote &&
261
261
  distributions == o.distributions &&
262
262
  namespace == o.namespace &&
@@ -273,7 +273,7 @@ module PulpContainerClient
273
273
  # Calculates hash code according to all attributes.
274
274
  # @return [Integer] Hash code
275
275
  def hash
276
- [pulp_labels, repository, pulp_created, content_guard, prn, no_content_change_since, hidden, pulp_href, name, pulp_last_updated, base_path, remote, distributions, namespace, private, description].hash
276
+ [prn, pulp_href, pulp_last_updated, hidden, base_path, name, content_guard, pulp_labels, no_content_change_since, pulp_created, repository, remote, distributions, namespace, private, description].hash
277
277
  end
278
278
 
279
279
  # Builds the object from hash
@@ -16,28 +16,28 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- attr_accessor :pulp_labels
19
+ # A reference to an associated signing service.
20
+ attr_accessor :manifest_signing_service
20
21
 
21
- # An optional description.
22
- attr_accessor :description
22
+ # Retain X versions of the repository. Default is null which retains all versions.
23
+ attr_accessor :retain_repo_versions
23
24
 
24
25
  # A unique name for this repository.
25
26
  attr_accessor :name
26
27
 
27
- # Retain X versions of the repository. Default is null which retains all versions.
28
- attr_accessor :retain_repo_versions
28
+ # An optional description.
29
+ attr_accessor :description
29
30
 
30
- # A reference to an associated signing service.
31
- attr_accessor :manifest_signing_service
31
+ attr_accessor :pulp_labels
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'pulp_labels' => :'pulp_labels',
37
- :'description' => :'description',
38
- :'name' => :'name',
36
+ :'manifest_signing_service' => :'manifest_signing_service',
39
37
  :'retain_repo_versions' => :'retain_repo_versions',
40
- :'manifest_signing_service' => :'manifest_signing_service'
38
+ :'name' => :'name',
39
+ :'description' => :'description',
40
+ :'pulp_labels' => :'pulp_labels'
41
41
  }
42
42
  end
43
43
 
@@ -49,20 +49,20 @@ module PulpContainerClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'pulp_labels' => :'Hash<String, String>',
53
- :'description' => :'String',
54
- :'name' => :'String',
52
+ :'manifest_signing_service' => :'String',
55
53
  :'retain_repo_versions' => :'Integer',
56
- :'manifest_signing_service' => :'String'
54
+ :'name' => :'String',
55
+ :'description' => :'String',
56
+ :'pulp_labels' => :'Hash<String, String>'
57
57
  }
58
58
  end
59
59
 
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
- :'description',
63
+ :'manifest_signing_service',
64
64
  :'retain_repo_versions',
65
- :'manifest_signing_service'
65
+ :'description',
66
66
  ])
67
67
  end
68
68
 
@@ -81,14 +81,12 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'pulp_labels')
85
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
86
- self.pulp_labels = value
87
- end
84
+ if attributes.key?(:'manifest_signing_service')
85
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
88
86
  end
89
87
 
90
- if attributes.key?(:'description')
91
- self.description = attributes[:'description']
88
+ if attributes.key?(:'retain_repo_versions')
89
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
92
90
  end
93
91
 
94
92
  if attributes.key?(:'name')
@@ -97,12 +95,14 @@ module PulpContainerClient
97
95
  self.name = nil
98
96
  end
99
97
 
100
- if attributes.key?(:'retain_repo_versions')
101
- self.retain_repo_versions = attributes[:'retain_repo_versions']
98
+ if attributes.key?(:'description')
99
+ self.description = attributes[:'description']
102
100
  end
103
101
 
104
- if attributes.key?(:'manifest_signing_service')
105
- self.manifest_signing_service = attributes[:'manifest_signing_service']
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
106
106
  end
107
107
  end
108
108
 
@@ -111,8 +111,8 @@ module PulpContainerClient
111
111
  def list_invalid_properties
112
112
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
113
  invalid_properties = Array.new
114
- if !@description.nil? && @description.to_s.length < 1
115
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
114
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
115
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
116
116
  end
117
117
 
118
118
  if @name.nil?
@@ -123,8 +123,8 @@ module PulpContainerClient
123
123
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
124
124
  end
125
125
 
126
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
+ if !@description.nil? && @description.to_s.length < 1
127
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
128
128
  end
129
129
 
130
130
  invalid_properties
@@ -134,21 +134,21 @@ module PulpContainerClient
134
134
  # @return true if the model is valid
135
135
  def valid?
136
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
- return false if !@description.nil? && @description.to_s.length < 1
137
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
138
138
  return false if @name.nil?
139
139
  return false if @name.to_s.length < 1
140
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
140
+ return false if !@description.nil? && @description.to_s.length < 1
141
141
  true
142
142
  end
143
143
 
144
144
  # Custom attribute writer method with validation
145
- # @param [Object] description Value to be assigned
146
- def description=(description)
147
- if !description.nil? && description.to_s.length < 1
148
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
145
+ # @param [Object] retain_repo_versions Value to be assigned
146
+ def retain_repo_versions=(retain_repo_versions)
147
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
148
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
149
149
  end
150
150
 
151
- @description = description
151
+ @retain_repo_versions = retain_repo_versions
152
152
  end
153
153
 
154
154
  # Custom attribute writer method with validation
@@ -166,13 +166,13 @@ module PulpContainerClient
166
166
  end
167
167
 
168
168
  # Custom attribute writer method with validation
169
- # @param [Object] retain_repo_versions Value to be assigned
170
- def retain_repo_versions=(retain_repo_versions)
171
- if !retain_repo_versions.nil? && retain_repo_versions < 1
172
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
169
+ # @param [Object] description Value to be assigned
170
+ def description=(description)
171
+ if !description.nil? && description.to_s.length < 1
172
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
173
173
  end
174
174
 
175
- @retain_repo_versions = retain_repo_versions
175
+ @description = description
176
176
  end
177
177
 
178
178
  # Checks equality by comparing each attribute.
@@ -180,11 +180,11 @@ module PulpContainerClient
180
180
  def ==(o)
181
181
  return true if self.equal?(o)
182
182
  self.class == o.class &&
183
- pulp_labels == o.pulp_labels &&
184
- description == o.description &&
185
- name == o.name &&
183
+ manifest_signing_service == o.manifest_signing_service &&
186
184
  retain_repo_versions == o.retain_repo_versions &&
187
- manifest_signing_service == o.manifest_signing_service
185
+ name == o.name &&
186
+ description == o.description &&
187
+ pulp_labels == o.pulp_labels
188
188
  end
189
189
 
190
190
  # @see the `==` method
@@ -196,7 +196,7 @@ module PulpContainerClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [pulp_labels, description, name, retain_repo_versions, manifest_signing_service].hash
199
+ [manifest_signing_service, retain_repo_versions, name, description, pulp_labels].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash