pulp_container_client 2.28.0 → 2.28.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 (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 +16 -16
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  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 +5 -5
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +77 -77
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +53 -53
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +77 -77
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +54 -54
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +70 -70
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -46
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +46 -46
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +52 -52
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +13 -13
  25. data/spec/models/container_container_distribution_spec.rb +5 -5
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
  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 +5 -5
  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 +5 -5
  33. metadata +59 -59
@@ -19,29 +19,29 @@ module PulpContainerClient
19
19
  # A reference to an associated signing service.
20
20
  attr_accessor :manifest_signing_service
21
21
 
22
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
23
+ attr_accessor :retain_checkpoints
24
+
22
25
  # Retain X versions of the repository. Default is null which retains all versions.
23
26
  attr_accessor :retain_repo_versions
24
27
 
28
+ # An optional description.
29
+ attr_accessor :description
30
+
25
31
  attr_accessor :pulp_labels
26
32
 
27
33
  # A unique name for this repository.
28
34
  attr_accessor :name
29
35
 
30
- # An optional description.
31
- attr_accessor :description
32
-
33
- # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
34
- attr_accessor :retain_checkpoints
35
-
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
39
  :'manifest_signing_service' => :'manifest_signing_service',
40
+ :'retain_checkpoints' => :'retain_checkpoints',
40
41
  :'retain_repo_versions' => :'retain_repo_versions',
41
- :'pulp_labels' => :'pulp_labels',
42
- :'name' => :'name',
43
42
  :'description' => :'description',
44
- :'retain_checkpoints' => :'retain_checkpoints'
43
+ :'pulp_labels' => :'pulp_labels',
44
+ :'name' => :'name'
45
45
  }
46
46
  end
47
47
 
@@ -54,11 +54,11 @@ module PulpContainerClient
54
54
  def self.openapi_types
55
55
  {
56
56
  :'manifest_signing_service' => :'String',
57
+ :'retain_checkpoints' => :'Integer',
57
58
  :'retain_repo_versions' => :'Integer',
58
- :'pulp_labels' => :'Hash<String, String>',
59
- :'name' => :'String',
60
59
  :'description' => :'String',
61
- :'retain_checkpoints' => :'Integer'
60
+ :'pulp_labels' => :'Hash<String, String>',
61
+ :'name' => :'String'
62
62
  }
63
63
  end
64
64
 
@@ -66,9 +66,9 @@ module PulpContainerClient
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
68
  :'manifest_signing_service',
69
+ :'retain_checkpoints',
69
70
  :'retain_repo_versions',
70
71
  :'description',
71
- :'retain_checkpoints'
72
72
  ])
73
73
  end
74
74
 
@@ -91,10 +91,18 @@ module PulpContainerClient
91
91
  self.manifest_signing_service = attributes[:'manifest_signing_service']
92
92
  end
93
93
 
94
+ if attributes.key?(:'retain_checkpoints')
95
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
96
+ end
97
+
94
98
  if attributes.key?(:'retain_repo_versions')
95
99
  self.retain_repo_versions = attributes[:'retain_repo_versions']
96
100
  end
97
101
 
102
+ if attributes.key?(:'description')
103
+ self.description = attributes[:'description']
104
+ end
105
+
98
106
  if attributes.key?(:'pulp_labels')
99
107
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
108
  self.pulp_labels = value
@@ -106,14 +114,6 @@ module PulpContainerClient
106
114
  else
107
115
  self.name = nil
108
116
  end
109
-
110
- if attributes.key?(:'description')
111
- self.description = attributes[:'description']
112
- end
113
-
114
- if attributes.key?(:'retain_checkpoints')
115
- self.retain_checkpoints = attributes[:'retain_checkpoints']
116
- end
117
117
  end
118
118
 
119
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,10 +121,18 @@ 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.')
126
+ end
127
+
124
128
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
129
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
130
  end
127
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
+
128
136
  if @name.nil?
129
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
130
138
  end
@@ -133,14 +141,6 @@ module PulpContainerClient
133
141
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
134
142
  end
135
143
 
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
- 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,36 +148,32 @@ 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
151
152
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
+ return false if !@description.nil? && @description.to_s.length < 1
152
154
  return false if @name.nil?
153
155
  return false if @name.to_s.length < 1
154
- return false if !@description.nil? && @description.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_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.'
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.'
164
164
  end
165
165
 
166
- @retain_repo_versions = retain_repo_versions
166
+ @retain_checkpoints = retain_checkpoints
167
167
  end
168
168
 
169
169
  # Custom attribute writer method with validation
170
- # @param [Object] name Value to be assigned
171
- def name=(name)
172
- if name.nil?
173
- fail ArgumentError, 'name cannot be nil'
174
- end
175
-
176
- if name.to_s.length < 1
177
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
170
+ # @param [Object] retain_repo_versions Value to be assigned
171
+ def retain_repo_versions=(retain_repo_versions)
172
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
173
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
178
174
  end
179
175
 
180
- @name = name
176
+ @retain_repo_versions = retain_repo_versions
181
177
  end
182
178
 
183
179
  # Custom attribute writer method with validation
@@ -191,13 +187,17 @@ module PulpContainerClient
191
187
  end
192
188
 
193
189
  # 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.'
190
+ # @param [Object] name Value to be assigned
191
+ def name=(name)
192
+ if name.nil?
193
+ fail ArgumentError, 'name cannot be nil'
198
194
  end
199
195
 
200
- @retain_checkpoints = retain_checkpoints
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
201
  end
202
202
 
203
203
  # Checks equality by comparing each attribute.
@@ -206,11 +206,11 @@ module PulpContainerClient
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
208
  manifest_signing_service == o.manifest_signing_service &&
209
+ retain_checkpoints == o.retain_checkpoints &&
209
210
  retain_repo_versions == o.retain_repo_versions &&
210
- pulp_labels == o.pulp_labels &&
211
- name == o.name &&
212
211
  description == o.description &&
213
- retain_checkpoints == o.retain_checkpoints
212
+ pulp_labels == o.pulp_labels &&
213
+ name == o.name
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_repo_versions, pulp_labels, name, description, retain_checkpoints].hash
225
+ [manifest_signing_service, retain_checkpoints, retain_repo_versions, description, pulp_labels, name].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -19,23 +19,21 @@ module PulpContainerClient
19
19
  # A reference to an associated signing service.
20
20
  attr_accessor :manifest_signing_service
21
21
 
22
- # The Pulp Resource Name (PRN).
23
- attr_accessor :prn
24
-
25
22
  # 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.
26
23
  attr_accessor :pulp_last_updated
27
24
 
28
- # Retain X versions of the repository. Default is null which retains all versions.
29
- attr_accessor :retain_repo_versions
30
-
31
- attr_accessor :pulp_labels
32
-
33
25
  attr_accessor :latest_version_href
34
26
 
35
27
  attr_accessor :pulp_href
36
28
 
37
- # A unique name for this repository.
38
- attr_accessor :name
29
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
30
+ attr_accessor :retain_checkpoints
31
+
32
+ # Retain X versions of the repository. Default is null which retains all versions.
33
+ attr_accessor :retain_repo_versions
34
+
35
+ # The Pulp Resource Name (PRN).
36
+ attr_accessor :prn
39
37
 
40
38
  # An optional description.
41
39
  attr_accessor :description
@@ -43,26 +41,28 @@ module PulpContainerClient
43
41
  # Timestamp of creation.
44
42
  attr_accessor :pulp_created
45
43
 
46
- attr_accessor :versions_href
44
+ attr_accessor :pulp_labels
47
45
 
48
- # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
49
- attr_accessor :retain_checkpoints
46
+ # A unique name for this repository.
47
+ attr_accessor :name
48
+
49
+ attr_accessor :versions_href
50
50
 
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
54
  :'manifest_signing_service' => :'manifest_signing_service',
55
- :'prn' => :'prn',
56
55
  :'pulp_last_updated' => :'pulp_last_updated',
57
- :'retain_repo_versions' => :'retain_repo_versions',
58
- :'pulp_labels' => :'pulp_labels',
59
56
  :'latest_version_href' => :'latest_version_href',
60
57
  :'pulp_href' => :'pulp_href',
61
- :'name' => :'name',
58
+ :'retain_checkpoints' => :'retain_checkpoints',
59
+ :'retain_repo_versions' => :'retain_repo_versions',
60
+ :'prn' => :'prn',
62
61
  :'description' => :'description',
63
62
  :'pulp_created' => :'pulp_created',
64
- :'versions_href' => :'versions_href',
65
- :'retain_checkpoints' => :'retain_checkpoints'
63
+ :'pulp_labels' => :'pulp_labels',
64
+ :'name' => :'name',
65
+ :'versions_href' => :'versions_href'
66
66
  }
67
67
  end
68
68
 
@@ -75,17 +75,17 @@ module PulpContainerClient
75
75
  def self.openapi_types
76
76
  {
77
77
  :'manifest_signing_service' => :'String',
78
- :'prn' => :'String',
79
78
  :'pulp_last_updated' => :'Time',
80
- :'retain_repo_versions' => :'Integer',
81
- :'pulp_labels' => :'Hash<String, String>',
82
79
  :'latest_version_href' => :'String',
83
80
  :'pulp_href' => :'String',
84
- :'name' => :'String',
81
+ :'retain_checkpoints' => :'Integer',
82
+ :'retain_repo_versions' => :'Integer',
83
+ :'prn' => :'String',
85
84
  :'description' => :'String',
86
85
  :'pulp_created' => :'Time',
87
- :'versions_href' => :'String',
88
- :'retain_checkpoints' => :'Integer'
86
+ :'pulp_labels' => :'Hash<String, String>',
87
+ :'name' => :'String',
88
+ :'versions_href' => :'String'
89
89
  }
90
90
  end
91
91
 
@@ -93,9 +93,9 @@ module PulpContainerClient
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
95
  :'manifest_signing_service',
96
+ :'retain_checkpoints',
96
97
  :'retain_repo_versions',
97
98
  :'description',
98
- :'retain_checkpoints'
99
99
  ])
100
100
  end
101
101
 
@@ -118,24 +118,10 @@ module PulpContainerClient
118
118
  self.manifest_signing_service = attributes[:'manifest_signing_service']
119
119
  end
120
120
 
121
- if attributes.key?(:'prn')
122
- self.prn = attributes[:'prn']
123
- end
124
-
125
121
  if attributes.key?(:'pulp_last_updated')
126
122
  self.pulp_last_updated = attributes[:'pulp_last_updated']
127
123
  end
128
124
 
129
- if attributes.key?(:'retain_repo_versions')
130
- self.retain_repo_versions = attributes[:'retain_repo_versions']
131
- end
132
-
133
- if attributes.key?(:'pulp_labels')
134
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
135
- self.pulp_labels = value
136
- end
137
- end
138
-
139
125
  if attributes.key?(:'latest_version_href')
140
126
  self.latest_version_href = attributes[:'latest_version_href']
141
127
  end
@@ -144,10 +130,16 @@ module PulpContainerClient
144
130
  self.pulp_href = attributes[:'pulp_href']
145
131
  end
146
132
 
147
- if attributes.key?(:'name')
148
- self.name = attributes[:'name']
149
- else
150
- self.name = nil
133
+ if attributes.key?(:'retain_checkpoints')
134
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
135
+ end
136
+
137
+ if attributes.key?(:'retain_repo_versions')
138
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
139
+ end
140
+
141
+ if attributes.key?(:'prn')
142
+ self.prn = attributes[:'prn']
151
143
  end
152
144
 
153
145
  if attributes.key?(:'description')
@@ -158,12 +150,20 @@ module PulpContainerClient
158
150
  self.pulp_created = attributes[:'pulp_created']
159
151
  end
160
152
 
161
- if attributes.key?(:'versions_href')
162
- self.versions_href = attributes[:'versions_href']
153
+ if attributes.key?(:'pulp_labels')
154
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
155
+ self.pulp_labels = value
156
+ end
163
157
  end
164
158
 
165
- if attributes.key?(:'retain_checkpoints')
166
- self.retain_checkpoints = attributes[:'retain_checkpoints']
159
+ if attributes.key?(:'name')
160
+ self.name = attributes[:'name']
161
+ else
162
+ self.name = nil
163
+ end
164
+
165
+ if attributes.key?(:'versions_href')
166
+ self.versions_href = attributes[:'versions_href']
167
167
  end
168
168
  end
169
169
 
@@ -172,6 +172,10 @@ module PulpContainerClient
172
172
  def list_invalid_properties
173
173
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
174
174
  invalid_properties = Array.new
175
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
176
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
177
+ end
178
+
175
179
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
176
180
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
177
181
  end
@@ -180,10 +184,6 @@ module PulpContainerClient
180
184
  invalid_properties.push('invalid value for "name", name cannot be nil.')
181
185
  end
182
186
 
183
- if !@retain_checkpoints.nil? && @retain_checkpoints < 1
184
- invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
185
- end
186
-
187
187
  invalid_properties
188
188
  end
189
189
 
@@ -191,22 +191,12 @@ module PulpContainerClient
191
191
  # @return true if the model is valid
192
192
  def valid?
193
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
194
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
194
195
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
195
196
  return false if @name.nil?
196
- return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
197
197
  true
198
198
  end
199
199
 
200
- # Custom attribute writer method with validation
201
- # @param [Object] retain_repo_versions Value to be assigned
202
- def retain_repo_versions=(retain_repo_versions)
203
- if !retain_repo_versions.nil? && retain_repo_versions < 1
204
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
205
- end
206
-
207
- @retain_repo_versions = retain_repo_versions
208
- end
209
-
210
200
  # Custom attribute writer method with validation
211
201
  # @param [Object] retain_checkpoints Value to be assigned
212
202
  def retain_checkpoints=(retain_checkpoints)
@@ -217,23 +207,33 @@ module PulpContainerClient
217
207
  @retain_checkpoints = retain_checkpoints
218
208
  end
219
209
 
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] retain_repo_versions Value to be assigned
212
+ def retain_repo_versions=(retain_repo_versions)
213
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
214
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
215
+ end
216
+
217
+ @retain_repo_versions = retain_repo_versions
218
+ end
219
+
220
220
  # Checks equality by comparing each attribute.
221
221
  # @param [Object] Object to be compared
222
222
  def ==(o)
223
223
  return true if self.equal?(o)
224
224
  self.class == o.class &&
225
225
  manifest_signing_service == o.manifest_signing_service &&
226
- prn == o.prn &&
227
226
  pulp_last_updated == o.pulp_last_updated &&
228
- retain_repo_versions == o.retain_repo_versions &&
229
- pulp_labels == o.pulp_labels &&
230
227
  latest_version_href == o.latest_version_href &&
231
228
  pulp_href == o.pulp_href &&
232
- name == o.name &&
229
+ retain_checkpoints == o.retain_checkpoints &&
230
+ retain_repo_versions == o.retain_repo_versions &&
231
+ prn == o.prn &&
233
232
  description == o.description &&
234
233
  pulp_created == o.pulp_created &&
235
- versions_href == o.versions_href &&
236
- retain_checkpoints == o.retain_checkpoints
234
+ pulp_labels == o.pulp_labels &&
235
+ name == o.name &&
236
+ versions_href == o.versions_href
237
237
  end
238
238
 
239
239
  # @see the `==` method
@@ -245,7 +245,7 @@ module PulpContainerClient
245
245
  # Calculates hash code according to all attributes.
246
246
  # @return [Integer] Hash code
247
247
  def hash
248
- [manifest_signing_service, prn, pulp_last_updated, retain_repo_versions, pulp_labels, latest_version_href, pulp_href, name, description, pulp_created, versions_href, retain_checkpoints].hash
248
+ [manifest_signing_service, pulp_last_updated, latest_version_href, pulp_href, retain_checkpoints, retain_repo_versions, prn, description, pulp_created, pulp_labels, name, versions_href].hash
249
249
  end
250
250
 
251
251
  # Builds the object from hash