pulp_container_client 2.27.2 → 2.27.3

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 (44) 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 +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +54 -54
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +31 -31
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +54 -54
  16. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +15 -0
  17. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +15 -0
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +56 -41
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +72 -57
  20. data/lib/pulp_container_client/models/container_container_remote.rb +15 -0
  21. data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -0
  22. data/lib/pulp_container_client/models/container_container_repository.rb +15 -0
  23. data/lib/pulp_container_client/models/container_container_repository_response.rb +15 -0
  24. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +29 -29
  25. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +29 -29
  26. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +15 -0
  27. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +56 -41
  28. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +15 -0
  29. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +15 -0
  30. data/lib/pulp_container_client/models/set_label.rb +0 -11
  31. data/lib/pulp_container_client/models/set_label_response.rb +0 -21
  32. data/lib/pulp_container_client/models/unset_label.rb +0 -11
  33. data/lib/pulp_container_client/models/unset_label_response.rb +0 -21
  34. data/lib/pulp_container_client/version.rb +1 -1
  35. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  36. data/spec/models/container_container_distribution_spec.rb +5 -5
  37. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  38. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  39. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  40. data/spec/models/container_container_push_repository_spec.rb +5 -5
  41. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  42. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  43. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  44. metadata +59 -59
@@ -16,12 +16,6 @@ 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
- # Retain X versions of the repository. Default is null which retains all versions.
23
- attr_accessor :retain_repo_versions
24
-
25
19
  attr_accessor :pulp_labels
26
20
 
27
21
  # A reference to an associated signing service.
@@ -30,14 +24,20 @@ module PulpContainerClient
30
24
  # A unique name for this repository.
31
25
  attr_accessor :name
32
26
 
27
+ # Retain X versions of the repository. Default is null which retains all versions.
28
+ attr_accessor :retain_repo_versions
29
+
30
+ # An optional description.
31
+ attr_accessor :description
32
+
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'description' => :'description',
37
- :'retain_repo_versions' => :'retain_repo_versions',
38
36
  :'pulp_labels' => :'pulp_labels',
39
37
  :'manifest_signing_service' => :'manifest_signing_service',
40
- :'name' => :'name'
38
+ :'name' => :'name',
39
+ :'retain_repo_versions' => :'retain_repo_versions',
40
+ :'description' => :'description'
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
- :'description' => :'String',
53
- :'retain_repo_versions' => :'Integer',
54
52
  :'pulp_labels' => :'Hash<String, String>',
55
53
  :'manifest_signing_service' => :'String',
56
- :'name' => :'String'
54
+ :'name' => :'String',
55
+ :'retain_repo_versions' => :'Integer',
56
+ :'description' => :'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',
64
- :'retain_repo_versions',
65
63
  :'manifest_signing_service',
64
+ :'retain_repo_versions',
65
+ :'description'
66
66
  ])
67
67
  end
68
68
 
@@ -81,14 +81,6 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'description')
85
- self.description = attributes[:'description']
86
- end
87
-
88
- if attributes.key?(:'retain_repo_versions')
89
- self.retain_repo_versions = attributes[:'retain_repo_versions']
90
- end
91
-
92
84
  if attributes.key?(:'pulp_labels')
93
85
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
94
86
  self.pulp_labels = value
@@ -104,6 +96,14 @@ module PulpContainerClient
104
96
  else
105
97
  self.name = nil
106
98
  end
99
+
100
+ if attributes.key?(:'retain_repo_versions')
101
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
102
+ end
103
+
104
+ if attributes.key?(:'description')
105
+ self.description = attributes[:'description']
106
+ end
107
107
  end
108
108
 
109
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,10 +111,6 @@ 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.')
116
- end
117
-
118
114
  if @name.nil?
119
115
  invalid_properties.push('invalid value for "name", name cannot be nil.')
120
116
  end
@@ -123,6 +119,14 @@ module PulpContainerClient
123
119
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
124
120
  end
125
121
 
122
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
123
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
124
+ end
125
+
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
+ end
129
+
126
130
  invalid_properties
127
131
  end
128
132
 
@@ -130,22 +134,13 @@ module PulpContainerClient
130
134
  # @return true if the model is valid
131
135
  def valid?
132
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
133
- return false if !@description.nil? && @description.to_s.length < 1
134
137
  return false if @name.nil?
135
138
  return false if @name.to_s.length < 1
139
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
140
+ return false if !@description.nil? && @description.to_s.length < 1
136
141
  true
137
142
  end
138
143
 
139
- # Custom attribute writer method with validation
140
- # @param [Object] description Value to be assigned
141
- def description=(description)
142
- if !description.nil? && description.to_s.length < 1
143
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
144
- end
145
-
146
- @description = description
147
- end
148
-
149
144
  # Custom attribute writer method with validation
150
145
  # @param [Object] name Value to be assigned
151
146
  def name=(name)
@@ -160,16 +155,36 @@ module PulpContainerClient
160
155
  @name = name
161
156
  end
162
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] retain_repo_versions Value to be assigned
160
+ def retain_repo_versions=(retain_repo_versions)
161
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
162
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
163
+ end
164
+
165
+ @retain_repo_versions = retain_repo_versions
166
+ end
167
+
168
+ # Custom attribute writer method with validation
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
+ end
174
+
175
+ @description = description
176
+ end
177
+
163
178
  # Checks equality by comparing each attribute.
164
179
  # @param [Object] Object to be compared
165
180
  def ==(o)
166
181
  return true if self.equal?(o)
167
182
  self.class == o.class &&
168
- description == o.description &&
169
- retain_repo_versions == o.retain_repo_versions &&
170
183
  pulp_labels == o.pulp_labels &&
171
184
  manifest_signing_service == o.manifest_signing_service &&
172
- name == o.name
185
+ name == o.name &&
186
+ retain_repo_versions == o.retain_repo_versions &&
187
+ description == o.description
173
188
  end
174
189
 
175
190
  # @see the `==` method
@@ -181,7 +196,7 @@ module PulpContainerClient
181
196
  # Calculates hash code according to all attributes.
182
197
  # @return [Integer] Hash code
183
198
  def hash
184
- [description, retain_repo_versions, pulp_labels, manifest_signing_service, name].hash
199
+ [pulp_labels, manifest_signing_service, name, retain_repo_versions, description].hash
185
200
  end
186
201
 
187
202
  # Builds the object from hash
@@ -16,49 +16,49 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- # An optional description.
20
- attr_accessor :description
21
-
22
19
  # Timestamp of creation.
23
20
  attr_accessor :pulp_created
24
21
 
25
- # Retain X versions of the repository. Default is null which retains all versions.
26
- attr_accessor :retain_repo_versions
22
+ attr_accessor :pulp_labels
27
23
 
28
- # The Pulp Resource Name (PRN).
29
- attr_accessor :prn
24
+ attr_accessor :latest_version_href
30
25
 
31
26
  attr_accessor :versions_href
32
27
 
28
+ # The Pulp Resource Name (PRN).
29
+ attr_accessor :prn
30
+
33
31
  # 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.
34
32
  attr_accessor :pulp_last_updated
35
33
 
36
- attr_accessor :pulp_labels
37
-
38
- attr_accessor :pulp_href
39
-
40
- attr_accessor :latest_version_href
41
-
42
34
  # A reference to an associated signing service.
43
35
  attr_accessor :manifest_signing_service
44
36
 
37
+ attr_accessor :pulp_href
38
+
45
39
  # A unique name for this repository.
46
40
  attr_accessor :name
47
41
 
42
+ # Retain X versions of the repository. Default is null which retains all versions.
43
+ attr_accessor :retain_repo_versions
44
+
45
+ # An optional description.
46
+ attr_accessor :description
47
+
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'description' => :'description',
52
51
  :'pulp_created' => :'pulp_created',
53
- :'retain_repo_versions' => :'retain_repo_versions',
54
- :'prn' => :'prn',
55
- :'versions_href' => :'versions_href',
56
- :'pulp_last_updated' => :'pulp_last_updated',
57
52
  :'pulp_labels' => :'pulp_labels',
58
- :'pulp_href' => :'pulp_href',
59
53
  :'latest_version_href' => :'latest_version_href',
54
+ :'versions_href' => :'versions_href',
55
+ :'prn' => :'prn',
56
+ :'pulp_last_updated' => :'pulp_last_updated',
60
57
  :'manifest_signing_service' => :'manifest_signing_service',
61
- :'name' => :'name'
58
+ :'pulp_href' => :'pulp_href',
59
+ :'name' => :'name',
60
+ :'retain_repo_versions' => :'retain_repo_versions',
61
+ :'description' => :'description'
62
62
  }
63
63
  end
64
64
 
@@ -70,26 +70,26 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'description' => :'String',
74
73
  :'pulp_created' => :'Time',
75
- :'retain_repo_versions' => :'Integer',
76
- :'prn' => :'String',
77
- :'versions_href' => :'String',
78
- :'pulp_last_updated' => :'Time',
79
74
  :'pulp_labels' => :'Hash<String, String>',
80
- :'pulp_href' => :'String',
81
75
  :'latest_version_href' => :'String',
76
+ :'versions_href' => :'String',
77
+ :'prn' => :'String',
78
+ :'pulp_last_updated' => :'Time',
82
79
  :'manifest_signing_service' => :'String',
83
- :'name' => :'String'
80
+ :'pulp_href' => :'String',
81
+ :'name' => :'String',
82
+ :'retain_repo_versions' => :'Integer',
83
+ :'description' => :'String'
84
84
  }
85
85
  end
86
86
 
87
87
  # List of attributes with nullable: true
88
88
  def self.openapi_nullable
89
89
  Set.new([
90
- :'description',
91
- :'retain_repo_versions',
92
90
  :'manifest_signing_service',
91
+ :'retain_repo_versions',
92
+ :'description'
93
93
  ])
94
94
  end
95
95
 
@@ -108,53 +108,53 @@ module PulpContainerClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'description')
112
- self.description = attributes[:'description']
113
- end
114
-
115
111
  if attributes.key?(:'pulp_created')
116
112
  self.pulp_created = attributes[:'pulp_created']
117
113
  end
118
114
 
119
- if attributes.key?(:'retain_repo_versions')
120
- self.retain_repo_versions = attributes[:'retain_repo_versions']
115
+ if attributes.key?(:'pulp_labels')
116
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
117
+ self.pulp_labels = value
118
+ end
121
119
  end
122
120
 
123
- if attributes.key?(:'prn')
124
- self.prn = attributes[:'prn']
121
+ if attributes.key?(:'latest_version_href')
122
+ self.latest_version_href = attributes[:'latest_version_href']
125
123
  end
126
124
 
127
125
  if attributes.key?(:'versions_href')
128
126
  self.versions_href = attributes[:'versions_href']
129
127
  end
130
128
 
129
+ if attributes.key?(:'prn')
130
+ self.prn = attributes[:'prn']
131
+ end
132
+
131
133
  if attributes.key?(:'pulp_last_updated')
132
134
  self.pulp_last_updated = attributes[:'pulp_last_updated']
133
135
  end
134
136
 
135
- if attributes.key?(:'pulp_labels')
136
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
137
- self.pulp_labels = value
138
- end
137
+ if attributes.key?(:'manifest_signing_service')
138
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
139
139
  end
140
140
 
141
141
  if attributes.key?(:'pulp_href')
142
142
  self.pulp_href = attributes[:'pulp_href']
143
143
  end
144
144
 
145
- if attributes.key?(:'latest_version_href')
146
- self.latest_version_href = attributes[:'latest_version_href']
147
- end
148
-
149
- if attributes.key?(:'manifest_signing_service')
150
- self.manifest_signing_service = attributes[:'manifest_signing_service']
151
- end
152
-
153
145
  if attributes.key?(:'name')
154
146
  self.name = attributes[:'name']
155
147
  else
156
148
  self.name = nil
157
149
  end
150
+
151
+ if attributes.key?(:'retain_repo_versions')
152
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
153
+ end
154
+
155
+ if attributes.key?(:'description')
156
+ self.description = attributes[:'description']
157
+ end
158
158
  end
159
159
 
160
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,6 +166,10 @@ module PulpContainerClient
166
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
167
167
  end
168
168
 
169
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
+ end
172
+
169
173
  invalid_properties
170
174
  end
171
175
 
@@ -174,25 +178,36 @@ module PulpContainerClient
174
178
  def valid?
175
179
  warn '[DEPRECATED] the `valid?` method is obsolete'
176
180
  return false if @name.nil?
181
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
177
182
  true
178
183
  end
179
184
 
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] retain_repo_versions Value to be assigned
187
+ def retain_repo_versions=(retain_repo_versions)
188
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
189
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
190
+ end
191
+
192
+ @retain_repo_versions = retain_repo_versions
193
+ end
194
+
180
195
  # Checks equality by comparing each attribute.
181
196
  # @param [Object] Object to be compared
182
197
  def ==(o)
183
198
  return true if self.equal?(o)
184
199
  self.class == o.class &&
185
- description == o.description &&
186
200
  pulp_created == o.pulp_created &&
187
- retain_repo_versions == o.retain_repo_versions &&
188
- prn == o.prn &&
189
- versions_href == o.versions_href &&
190
- pulp_last_updated == o.pulp_last_updated &&
191
201
  pulp_labels == o.pulp_labels &&
192
- pulp_href == o.pulp_href &&
193
202
  latest_version_href == o.latest_version_href &&
203
+ versions_href == o.versions_href &&
204
+ prn == o.prn &&
205
+ pulp_last_updated == o.pulp_last_updated &&
194
206
  manifest_signing_service == o.manifest_signing_service &&
195
- name == o.name
207
+ pulp_href == o.pulp_href &&
208
+ name == o.name &&
209
+ retain_repo_versions == o.retain_repo_versions &&
210
+ description == o.description
196
211
  end
197
212
 
198
213
  # @see the `==` method
@@ -204,7 +219,7 @@ module PulpContainerClient
204
219
  # Calculates hash code according to all attributes.
205
220
  # @return [Integer] Hash code
206
221
  def hash
207
- [description, pulp_created, retain_repo_versions, prn, versions_href, pulp_last_updated, pulp_labels, pulp_href, latest_version_href, manifest_signing_service, name].hash
222
+ [pulp_created, pulp_labels, latest_version_href, versions_href, prn, pulp_last_updated, manifest_signing_service, pulp_href, name, retain_repo_versions, description].hash
208
223
  end
209
224
 
210
225
  # Builds the object from hash
@@ -401,6 +401,10 @@ module PulpContainerClient
401
401
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
402
402
  end
403
403
 
404
+ if !@download_concurrency.nil? && @download_concurrency < 1
405
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
406
+ end
407
+
404
408
  if @upstream_name.nil?
405
409
  invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
406
410
  end
@@ -436,6 +440,7 @@ module PulpContainerClient
436
440
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
437
441
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
438
442
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
443
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
439
444
  return false if @upstream_name.nil?
440
445
  return false if @upstream_name.to_s.length < 1
441
446
  return false if !@sigstore.nil? && @sigstore.to_s.length < 1
@@ -590,6 +595,16 @@ module PulpContainerClient
590
595
  @sock_read_timeout = sock_read_timeout
591
596
  end
592
597
 
598
+ # Custom attribute writer method with validation
599
+ # @param [Object] download_concurrency Value to be assigned
600
+ def download_concurrency=(download_concurrency)
601
+ if !download_concurrency.nil? && download_concurrency < 1
602
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
603
+ end
604
+
605
+ @download_concurrency = download_concurrency
606
+ end
607
+
593
608
  # Custom attribute writer method with validation
594
609
  # @param [Object] upstream_name Value to be assigned
595
610
  def upstream_name=(upstream_name)
@@ -357,6 +357,10 @@ module PulpContainerClient
357
357
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
358
358
  end
359
359
 
360
+ if !@download_concurrency.nil? && @download_concurrency < 1
361
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
362
+ end
363
+
360
364
  if @upstream_name.nil?
361
365
  invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
362
366
  end
@@ -374,6 +378,7 @@ module PulpContainerClient
374
378
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
375
379
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
376
380
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
381
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
377
382
  return false if @upstream_name.nil?
378
383
  true
379
384
  end
@@ -418,6 +423,16 @@ module PulpContainerClient
418
423
  @sock_read_timeout = sock_read_timeout
419
424
  end
420
425
 
426
+ # Custom attribute writer method with validation
427
+ # @param [Object] download_concurrency Value to be assigned
428
+ def download_concurrency=(download_concurrency)
429
+ if !download_concurrency.nil? && download_concurrency < 1
430
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
431
+ end
432
+
433
+ @download_concurrency = download_concurrency
434
+ end
435
+
421
436
  # Checks equality by comparing each attribute.
422
437
  # @param [Object] Object to be compared
423
438
  def ==(o)
@@ -133,6 +133,10 @@ module PulpContainerClient
133
133
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
134
134
  end
135
135
 
136
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
137
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
138
+ end
139
+
136
140
  invalid_properties
137
141
  end
138
142
 
@@ -143,6 +147,7 @@ module PulpContainerClient
143
147
  return false if @name.nil?
144
148
  return false if @name.to_s.length < 1
145
149
  return false if !@description.nil? && @description.to_s.length < 1
150
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
146
151
  true
147
152
  end
148
153
 
@@ -170,6 +175,16 @@ module PulpContainerClient
170
175
  @description = description
171
176
  end
172
177
 
178
+ # Custom attribute writer method with validation
179
+ # @param [Object] retain_repo_versions Value to be assigned
180
+ def retain_repo_versions=(retain_repo_versions)
181
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
182
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
183
+ end
184
+
185
+ @retain_repo_versions = retain_repo_versions
186
+ end
187
+
173
188
  # Checks equality by comparing each attribute.
174
189
  # @param [Object] Object to be compared
175
190
  def ==(o)
@@ -176,6 +176,10 @@ module PulpContainerClient
176
176
  invalid_properties.push('invalid value for "name", name cannot be nil.')
177
177
  end
178
178
 
179
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
180
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
181
+ end
182
+
179
183
  invalid_properties
180
184
  end
181
185
 
@@ -184,9 +188,20 @@ module PulpContainerClient
184
188
  def valid?
185
189
  warn '[DEPRECATED] the `valid?` method is obsolete'
186
190
  return false if @name.nil?
191
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
187
192
  true
188
193
  end
189
194
 
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] retain_repo_versions Value to be assigned
197
+ def retain_repo_versions=(retain_repo_versions)
198
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
199
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
200
+ end
201
+
202
+ @retain_repo_versions = retain_repo_versions
203
+ end
204
+
190
205
  # Checks equality by comparing each attribute.
191
206
  # @param [Object] Object to be compared
192
207
  def ==(o)