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