pulp_container_client 2.27.9 → 2.27.10

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 +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  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 +6 -6
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  13. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +52 -52
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +64 -64
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +52 -52
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +64 -64
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +68 -68
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +84 -84
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +45 -45
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +45 -45
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +64 -64
  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 +4 -4
  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 +4 -4
  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 +4 -4
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
  33. metadata +60 -60
@@ -16,39 +16,39 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
19
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
20
- attr_accessor :no_content_change_since
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
19
+ attr_accessor :pulp_labels
24
20
 
25
21
  # Whether this distribution should be shown in the content app.
26
22
  attr_accessor :hidden
27
23
 
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
24
  attr_accessor :pulp_href
32
25
 
33
- # The Pulp Resource Name (PRN).
34
- attr_accessor :prn
26
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
27
+ attr_accessor :content_guard_prn
35
28
 
36
29
  # An optional content-guard. If none is specified, a default one will be used.
37
30
  attr_accessor :content_guard
38
31
 
39
- # The Pulp Resource Name (PRN) of the associated optional content guard.
40
- attr_accessor :content_guard_prn
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
41
34
 
42
35
  # A unique name. Ex, `rawhide` and `stable`.
43
36
  attr_accessor :name
44
37
 
45
- # The latest RepositoryVersion for this Repository will be served.
46
- attr_accessor :repository
38
+ # The Pulp Resource Name (PRN).
39
+ attr_accessor :prn
40
+
41
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
42
+ attr_accessor :base_path
47
43
 
48
44
  # Timestamp of creation.
49
45
  attr_accessor :pulp_created
50
46
 
51
- attr_accessor :pulp_labels
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.
48
+ attr_accessor :pulp_last_updated
49
+
50
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
51
+ attr_accessor :no_content_change_since
52
52
 
53
53
  # RepositoryVersion to be served
54
54
  attr_accessor :repository_version
@@ -71,18 +71,18 @@ module PulpContainerClient
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
- :'no_content_change_since' => :'no_content_change_since',
75
- :'base_path' => :'base_path',
74
+ :'pulp_labels' => :'pulp_labels',
76
75
  :'hidden' => :'hidden',
77
- :'pulp_last_updated' => :'pulp_last_updated',
78
76
  :'pulp_href' => :'pulp_href',
79
- :'prn' => :'prn',
80
- :'content_guard' => :'content_guard',
81
77
  :'content_guard_prn' => :'content_guard_prn',
82
- :'name' => :'name',
78
+ :'content_guard' => :'content_guard',
83
79
  :'repository' => :'repository',
80
+ :'name' => :'name',
81
+ :'prn' => :'prn',
82
+ :'base_path' => :'base_path',
84
83
  :'pulp_created' => :'pulp_created',
85
- :'pulp_labels' => :'pulp_labels',
84
+ :'pulp_last_updated' => :'pulp_last_updated',
85
+ :'no_content_change_since' => :'no_content_change_since',
86
86
  :'repository_version' => :'repository_version',
87
87
  :'remote' => :'remote',
88
88
  :'distributions' => :'distributions',
@@ -100,18 +100,18 @@ module PulpContainerClient
100
100
  # Attribute type mapping.
101
101
  def self.openapi_types
102
102
  {
103
- :'no_content_change_since' => :'String',
104
- :'base_path' => :'String',
103
+ :'pulp_labels' => :'Hash<String, String>',
105
104
  :'hidden' => :'Boolean',
106
- :'pulp_last_updated' => :'Time',
107
105
  :'pulp_href' => :'String',
108
- :'prn' => :'String',
109
- :'content_guard' => :'String',
110
106
  :'content_guard_prn' => :'String',
111
- :'name' => :'String',
107
+ :'content_guard' => :'String',
112
108
  :'repository' => :'String',
109
+ :'name' => :'String',
110
+ :'prn' => :'String',
111
+ :'base_path' => :'String',
113
112
  :'pulp_created' => :'Time',
114
- :'pulp_labels' => :'Hash<String, String>',
113
+ :'pulp_last_updated' => :'Time',
114
+ :'no_content_change_since' => :'String',
115
115
  :'repository_version' => :'String',
116
116
  :'remote' => :'String',
117
117
  :'distributions' => :'Array<String>',
@@ -145,14 +145,10 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'no_content_change_since')
149
- self.no_content_change_since = attributes[:'no_content_change_since']
150
- end
151
-
152
- if attributes.key?(:'base_path')
153
- self.base_path = attributes[:'base_path']
154
- else
155
- self.base_path = nil
148
+ if attributes.key?(:'pulp_labels')
149
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
150
+ self.pulp_labels = value
151
+ end
156
152
  end
157
153
 
158
154
  if attributes.key?(:'hidden')
@@ -161,24 +157,20 @@ module PulpContainerClient
161
157
  self.hidden = false
162
158
  end
163
159
 
164
- if attributes.key?(:'pulp_last_updated')
165
- self.pulp_last_updated = attributes[:'pulp_last_updated']
166
- end
167
-
168
160
  if attributes.key?(:'pulp_href')
169
161
  self.pulp_href = attributes[:'pulp_href']
170
162
  end
171
163
 
172
- if attributes.key?(:'prn')
173
- self.prn = attributes[:'prn']
164
+ if attributes.key?(:'content_guard_prn')
165
+ self.content_guard_prn = attributes[:'content_guard_prn']
174
166
  end
175
167
 
176
168
  if attributes.key?(:'content_guard')
177
169
  self.content_guard = attributes[:'content_guard']
178
170
  end
179
171
 
180
- if attributes.key?(:'content_guard_prn')
181
- self.content_guard_prn = attributes[:'content_guard_prn']
172
+ if attributes.key?(:'repository')
173
+ self.repository = attributes[:'repository']
182
174
  end
183
175
 
184
176
  if attributes.key?(:'name')
@@ -187,18 +179,26 @@ module PulpContainerClient
187
179
  self.name = nil
188
180
  end
189
181
 
190
- if attributes.key?(:'repository')
191
- self.repository = attributes[:'repository']
182
+ if attributes.key?(:'prn')
183
+ self.prn = attributes[:'prn']
184
+ end
185
+
186
+ if attributes.key?(:'base_path')
187
+ self.base_path = attributes[:'base_path']
188
+ else
189
+ self.base_path = nil
192
190
  end
193
191
 
194
192
  if attributes.key?(:'pulp_created')
195
193
  self.pulp_created = attributes[:'pulp_created']
196
194
  end
197
195
 
198
- if attributes.key?(:'pulp_labels')
199
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
200
- self.pulp_labels = value
201
- end
196
+ if attributes.key?(:'pulp_last_updated')
197
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
198
+ end
199
+
200
+ if attributes.key?(:'no_content_change_since')
201
+ self.no_content_change_since = attributes[:'no_content_change_since']
202
202
  end
203
203
 
204
204
  if attributes.key?(:'repository_version')
@@ -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 @base_path.nil?
239
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
240
- end
241
-
242
238
  if @name.nil?
243
239
  invalid_properties.push('invalid value for "name", name cannot be nil.')
244
240
  end
245
241
 
242
+ if @base_path.nil?
243
+ invalid_properties.push('invalid value for "base_path", base_path 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 @base_path.nil?
258
257
  return false if @name.nil?
258
+ return false if @base_path.nil?
259
259
  return false if @remote.nil?
260
260
  true
261
261
  end
@@ -265,18 +265,18 @@ module PulpContainerClient
265
265
  def ==(o)
266
266
  return true if self.equal?(o)
267
267
  self.class == o.class &&
268
- no_content_change_since == o.no_content_change_since &&
269
- base_path == o.base_path &&
268
+ pulp_labels == o.pulp_labels &&
270
269
  hidden == o.hidden &&
271
- pulp_last_updated == o.pulp_last_updated &&
272
270
  pulp_href == o.pulp_href &&
273
- prn == o.prn &&
274
- content_guard == o.content_guard &&
275
271
  content_guard_prn == o.content_guard_prn &&
276
- name == o.name &&
272
+ content_guard == o.content_guard &&
277
273
  repository == o.repository &&
274
+ name == o.name &&
275
+ prn == o.prn &&
276
+ base_path == o.base_path &&
278
277
  pulp_created == o.pulp_created &&
279
- pulp_labels == o.pulp_labels &&
278
+ pulp_last_updated == o.pulp_last_updated &&
279
+ no_content_change_since == o.no_content_change_since &&
280
280
  repository_version == o.repository_version &&
281
281
  remote == o.remote &&
282
282
  distributions == o.distributions &&
@@ -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
- [no_content_change_since, base_path, hidden, pulp_last_updated, pulp_href, prn, content_guard, content_guard_prn, name, repository, pulp_created, pulp_labels, repository_version, remote, distributions, namespace, private, description].hash
297
+ [pulp_labels, hidden, pulp_href, content_guard_prn, content_guard, repository, name, prn, base_path, pulp_created, pulp_last_updated, no_content_change_since, repository_version, remote, distributions, namespace, private, description].hash
298
298
  end
299
299
 
300
300
  # Builds the object from hash
@@ -16,32 +16,32 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- # A unique name for this repository.
20
- attr_accessor :name
21
-
22
- # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
23
- attr_accessor :retain_checkpoints
24
-
25
19
  # A reference to an associated signing service.
26
20
  attr_accessor :manifest_signing_service
27
21
 
28
22
  attr_accessor :pulp_labels
29
23
 
30
- # An optional description.
31
- attr_accessor :description
32
-
33
24
  # Retain X versions of the repository. Default is null which retains all versions.
34
25
  attr_accessor :retain_repo_versions
35
26
 
27
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
28
+ attr_accessor :retain_checkpoints
29
+
30
+ # A unique name for this repository.
31
+ attr_accessor :name
32
+
33
+ # An optional description.
34
+ attr_accessor :description
35
+
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'name' => :'name',
40
- :'retain_checkpoints' => :'retain_checkpoints',
41
39
  :'manifest_signing_service' => :'manifest_signing_service',
42
40
  :'pulp_labels' => :'pulp_labels',
43
- :'description' => :'description',
44
- :'retain_repo_versions' => :'retain_repo_versions'
41
+ :'retain_repo_versions' => :'retain_repo_versions',
42
+ :'retain_checkpoints' => :'retain_checkpoints',
43
+ :'name' => :'name',
44
+ :'description' => :'description'
45
45
  }
46
46
  end
47
47
 
@@ -53,22 +53,22 @@ module PulpContainerClient
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
- :'name' => :'String',
57
- :'retain_checkpoints' => :'Integer',
58
56
  :'manifest_signing_service' => :'String',
59
57
  :'pulp_labels' => :'Hash<String, String>',
60
- :'description' => :'String',
61
- :'retain_repo_versions' => :'Integer'
58
+ :'retain_repo_versions' => :'Integer',
59
+ :'retain_checkpoints' => :'Integer',
60
+ :'name' => :'String',
61
+ :'description' => :'String'
62
62
  }
63
63
  end
64
64
 
65
65
  # List of attributes with nullable: true
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
- :'retain_checkpoints',
69
68
  :'manifest_signing_service',
70
- :'description',
71
- :'retain_repo_versions'
69
+ :'retain_repo_versions',
70
+ :'retain_checkpoints',
71
+ :'description'
72
72
  ])
73
73
  end
74
74
 
@@ -87,16 +87,6 @@ module PulpContainerClient
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
- if attributes.key?(:'name')
91
- self.name = attributes[:'name']
92
- else
93
- self.name = nil
94
- end
95
-
96
- if attributes.key?(:'retain_checkpoints')
97
- self.retain_checkpoints = attributes[:'retain_checkpoints']
98
- end
99
-
100
90
  if attributes.key?(:'manifest_signing_service')
101
91
  self.manifest_signing_service = attributes[:'manifest_signing_service']
102
92
  end
@@ -107,13 +97,23 @@ module PulpContainerClient
107
97
  end
108
98
  end
109
99
 
110
- if attributes.key?(:'description')
111
- self.description = attributes[:'description']
112
- end
113
-
114
100
  if attributes.key?(:'retain_repo_versions')
115
101
  self.retain_repo_versions = attributes[:'retain_repo_versions']
116
102
  end
103
+
104
+ if attributes.key?(:'retain_checkpoints')
105
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
106
+ end
107
+
108
+ if attributes.key?(:'name')
109
+ self.name = attributes[:'name']
110
+ else
111
+ self.name = nil
112
+ end
113
+
114
+ if attributes.key?(:'description')
115
+ self.description = attributes[:'description']
116
+ end
117
117
  end
118
118
 
119
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,6 +121,14 @@ 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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
+ end
127
+
128
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
129
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
130
+ end
131
+
124
132
  if @name.nil?
125
133
  invalid_properties.push('invalid value for "name", name cannot be nil.')
126
134
  end
@@ -129,18 +137,10 @@ module PulpContainerClient
129
137
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
130
138
  end
131
139
 
132
- if !@retain_checkpoints.nil? && @retain_checkpoints < 1
133
- invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
134
- end
135
-
136
140
  if !@description.nil? && @description.to_s.length < 1
137
141
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
138
142
  end
139
143
 
140
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
142
- end
143
-
144
144
  invalid_properties
145
145
  end
146
146
 
@@ -148,26 +148,22 @@ 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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
151
153
  return false if @name.nil?
152
154
  return false if @name.to_s.length < 1
153
- return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
154
155
  return false if !@description.nil? && @description.to_s.length < 1
155
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
156
156
  true
157
157
  end
158
158
 
159
159
  # Custom attribute writer method with validation
160
- # @param [Object] name Value to be assigned
161
- def name=(name)
162
- if name.nil?
163
- fail ArgumentError, 'name cannot be nil'
164
- end
165
-
166
- if name.to_s.length < 1
167
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
160
+ # @param [Object] retain_repo_versions Value to be assigned
161
+ def retain_repo_versions=(retain_repo_versions)
162
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
163
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
168
164
  end
169
165
 
170
- @name = name
166
+ @retain_repo_versions = retain_repo_versions
171
167
  end
172
168
 
173
169
  # Custom attribute writer method with validation
@@ -181,23 +177,27 @@ module PulpContainerClient
181
177
  end
182
178
 
183
179
  # 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.'
180
+ # @param [Object] name Value to be assigned
181
+ def name=(name)
182
+ if name.nil?
183
+ fail ArgumentError, 'name cannot be nil'
188
184
  end
189
185
 
190
- @description = description
186
+ if name.to_s.length < 1
187
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
188
+ end
189
+
190
+ @name = name
191
191
  end
192
192
 
193
193
  # Custom attribute writer method with validation
194
- # @param [Object] retain_repo_versions Value to be assigned
195
- def retain_repo_versions=(retain_repo_versions)
196
- if !retain_repo_versions.nil? && retain_repo_versions < 1
197
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
194
+ # @param [Object] description Value to be assigned
195
+ def description=(description)
196
+ if !description.nil? && description.to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
198
198
  end
199
199
 
200
- @retain_repo_versions = retain_repo_versions
200
+ @description = description
201
201
  end
202
202
 
203
203
  # Checks equality by comparing each attribute.
@@ -205,12 +205,12 @@ module PulpContainerClient
205
205
  def ==(o)
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
- name == o.name &&
209
- retain_checkpoints == o.retain_checkpoints &&
210
208
  manifest_signing_service == o.manifest_signing_service &&
211
209
  pulp_labels == o.pulp_labels &&
212
- description == o.description &&
213
- retain_repo_versions == o.retain_repo_versions
210
+ retain_repo_versions == o.retain_repo_versions &&
211
+ retain_checkpoints == o.retain_checkpoints &&
212
+ name == o.name &&
213
+ description == o.description
214
214
  end
215
215
 
216
216
  # @see the `==` method
@@ -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
- [name, retain_checkpoints, manifest_signing_service, pulp_labels, description, retain_repo_versions].hash
225
+ [manifest_signing_service, pulp_labels, retain_repo_versions, retain_checkpoints, name, description].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash