pulp_container_client 2.27.1 → 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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -7
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
  9. data/docs/ContentBlobsApi.md +6 -6
  10. data/docs/ContentManifestsApi.md +6 -6
  11. data/docs/ContentSignaturesApi.md +6 -6
  12. data/docs/ContentTagsApi.md +6 -6
  13. data/docs/DistributionsContainerApi.md +6 -6
  14. data/docs/DistributionsPullThroughApi.md +6 -6
  15. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  16. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  17. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  18. data/docs/RepositoriesContainerApi.md +2 -2
  19. data/docs/RepositoriesContainerPushApi.md +2 -2
  20. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -6
  21. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -6
  22. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -6
  23. data/lib/pulp_container_client/api/content_tags_api.rb +6 -6
  24. data/lib/pulp_container_client/api/distributions_container_api.rb +4 -4
  25. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -4
  26. data/lib/pulp_container_client/api/repositories_container_api.rb +2 -2
  27. data/lib/pulp_container_client/api/repositories_container_push_api.rb +2 -2
  28. data/lib/pulp_container_client/models/container_container_distribution.rb +64 -64
  29. data/lib/pulp_container_client/models/container_container_distribution_response.rb +70 -70
  30. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +64 -64
  31. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
  32. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +15 -0
  33. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +15 -0
  34. data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -27
  35. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +79 -64
  36. data/lib/pulp_container_client/models/container_container_remote.rb +15 -0
  37. data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -0
  38. data/lib/pulp_container_client/models/container_container_repository.rb +15 -0
  39. data/lib/pulp_container_client/models/container_container_repository_response.rb +15 -0
  40. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +58 -58
  41. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +58 -58
  42. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +15 -0
  43. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -25
  44. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +15 -0
  45. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +15 -0
  46. data/lib/pulp_container_client/models/set_label.rb +0 -11
  47. data/lib/pulp_container_client/models/set_label_response.rb +0 -21
  48. data/lib/pulp_container_client/models/unset_label.rb +0 -11
  49. data/lib/pulp_container_client/models/unset_label_response.rb +0 -21
  50. data/lib/pulp_container_client/version.rb +1 -1
  51. data/spec/api/content_blobs_api_spec.rb +3 -3
  52. data/spec/api/content_manifests_api_spec.rb +3 -3
  53. data/spec/api/content_signatures_api_spec.rb +3 -3
  54. data/spec/api/content_tags_api_spec.rb +3 -3
  55. data/spec/api/distributions_container_api_spec.rb +2 -2
  56. data/spec/api/distributions_pull_through_api_spec.rb +2 -2
  57. data/spec/api/repositories_container_api_spec.rb +1 -1
  58. data/spec/api/repositories_container_push_api_spec.rb +1 -1
  59. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  60. data/spec/models/container_container_distribution_spec.rb +6 -6
  61. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  62. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  63. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  64. data/spec/models/container_container_push_repository_spec.rb +5 -5
  65. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  66. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  67. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  68. metadata +59 -59
@@ -16,22 +16,22 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class PatchedcontainerContainerPullThroughDistribution
19
- # A unique name. Ex, `rawhide` and `stable`.
20
- attr_accessor :name
21
-
22
- # An optional content-guard. If none is specified, a default one will be used.
23
- attr_accessor :content_guard
19
+ attr_accessor :pulp_labels
24
20
 
25
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
26
- attr_accessor :base_path
21
+ # Whether this distribution should be shown in the content app.
22
+ attr_accessor :hidden
27
23
 
28
24
  # The latest RepositoryVersion for this Repository will be served.
29
25
  attr_accessor :repository
30
26
 
31
- attr_accessor :pulp_labels
27
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
+ attr_accessor :base_path
32
29
 
33
- # Whether this distribution should be shown in the content app.
34
- attr_accessor :hidden
30
+ # A unique name. Ex, `rawhide` and `stable`.
31
+ attr_accessor :name
32
+
33
+ # An optional content-guard. If none is specified, a default one will be used.
34
+ attr_accessor :content_guard
35
35
 
36
36
  # Remote that can be used to fetch content when using pull-through caching.
37
37
  attr_accessor :remote
@@ -48,12 +48,12 @@ module PulpContainerClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'name' => :'name',
52
- :'content_guard' => :'content_guard',
53
- :'base_path' => :'base_path',
54
- :'repository' => :'repository',
55
51
  :'pulp_labels' => :'pulp_labels',
56
52
  :'hidden' => :'hidden',
53
+ :'repository' => :'repository',
54
+ :'base_path' => :'base_path',
55
+ :'name' => :'name',
56
+ :'content_guard' => :'content_guard',
57
57
  :'remote' => :'remote',
58
58
  :'distributions' => :'distributions',
59
59
  :'private' => :'private',
@@ -69,12 +69,12 @@ module PulpContainerClient
69
69
  # Attribute type mapping.
70
70
  def self.openapi_types
71
71
  {
72
- :'name' => :'String',
73
- :'content_guard' => :'String',
74
- :'base_path' => :'String',
75
- :'repository' => :'String',
76
72
  :'pulp_labels' => :'Hash<String, String>',
77
73
  :'hidden' => :'Boolean',
74
+ :'repository' => :'String',
75
+ :'base_path' => :'String',
76
+ :'name' => :'String',
77
+ :'content_guard' => :'String',
78
78
  :'remote' => :'String',
79
79
  :'distributions' => :'Array<String>',
80
80
  :'private' => :'Boolean',
@@ -105,22 +105,6 @@ module PulpContainerClient
105
105
  h[k.to_sym] = v
106
106
  }
107
107
 
108
- if attributes.key?(:'name')
109
- self.name = attributes[:'name']
110
- end
111
-
112
- if attributes.key?(:'content_guard')
113
- self.content_guard = attributes[:'content_guard']
114
- end
115
-
116
- if attributes.key?(:'base_path')
117
- self.base_path = attributes[:'base_path']
118
- end
119
-
120
- if attributes.key?(:'repository')
121
- self.repository = attributes[:'repository']
122
- end
123
-
124
108
  if attributes.key?(:'pulp_labels')
125
109
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
110
  self.pulp_labels = value
@@ -133,6 +117,22 @@ module PulpContainerClient
133
117
  self.hidden = false
134
118
  end
135
119
 
120
+ if attributes.key?(:'repository')
121
+ self.repository = attributes[:'repository']
122
+ end
123
+
124
+ if attributes.key?(:'base_path')
125
+ self.base_path = attributes[:'base_path']
126
+ end
127
+
128
+ if attributes.key?(:'name')
129
+ self.name = attributes[:'name']
130
+ end
131
+
132
+ if attributes.key?(:'content_guard')
133
+ self.content_guard = attributes[:'content_guard']
134
+ end
135
+
136
136
  if attributes.key?(:'remote')
137
137
  self.remote = attributes[:'remote']
138
138
  end
@@ -157,14 +157,14 @@ module PulpContainerClient
157
157
  def list_invalid_properties
158
158
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
159
159
  invalid_properties = Array.new
160
- if !@name.nil? && @name.to_s.length < 1
161
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
162
- end
163
-
164
160
  if !@base_path.nil? && @base_path.to_s.length < 1
165
161
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
166
162
  end
167
163
 
164
+ if !@name.nil? && @name.to_s.length < 1
165
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
166
+ end
167
+
168
168
  if !@description.nil? && @description.to_s.length < 1
169
169
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
170
170
  end
@@ -176,26 +176,12 @@ module PulpContainerClient
176
176
  # @return true if the model is valid
177
177
  def valid?
178
178
  warn '[DEPRECATED] the `valid?` method is obsolete'
179
- return false if !@name.nil? && @name.to_s.length < 1
180
179
  return false if !@base_path.nil? && @base_path.to_s.length < 1
180
+ return false if !@name.nil? && @name.to_s.length < 1
181
181
  return false if !@description.nil? && @description.to_s.length < 1
182
182
  true
183
183
  end
184
184
 
185
- # Custom attribute writer method with validation
186
- # @param [Object] name Value to be assigned
187
- def name=(name)
188
- if name.nil?
189
- fail ArgumentError, 'name cannot be nil'
190
- end
191
-
192
- if name.to_s.length < 1
193
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
194
- end
195
-
196
- @name = name
197
- end
198
-
199
185
  # Custom attribute writer method with validation
200
186
  # @param [Object] base_path Value to be assigned
201
187
  def base_path=(base_path)
@@ -210,6 +196,20 @@ module PulpContainerClient
210
196
  @base_path = base_path
211
197
  end
212
198
 
199
+ # Custom attribute writer method with validation
200
+ # @param [Object] name Value to be assigned
201
+ def name=(name)
202
+ if name.nil?
203
+ fail ArgumentError, 'name cannot be nil'
204
+ end
205
+
206
+ if name.to_s.length < 1
207
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
208
+ end
209
+
210
+ @name = name
211
+ end
212
+
213
213
  # Custom attribute writer method with validation
214
214
  # @param [Object] description Value to be assigned
215
215
  def description=(description)
@@ -225,12 +225,12 @@ module PulpContainerClient
225
225
  def ==(o)
226
226
  return true if self.equal?(o)
227
227
  self.class == o.class &&
228
- name == o.name &&
229
- content_guard == o.content_guard &&
230
- base_path == o.base_path &&
231
- repository == o.repository &&
232
228
  pulp_labels == o.pulp_labels &&
233
229
  hidden == o.hidden &&
230
+ repository == o.repository &&
231
+ base_path == o.base_path &&
232
+ name == o.name &&
233
+ content_guard == o.content_guard &&
234
234
  remote == o.remote &&
235
235
  distributions == o.distributions &&
236
236
  private == o.private &&
@@ -246,7 +246,7 @@ module PulpContainerClient
246
246
  # Calculates hash code according to all attributes.
247
247
  # @return [Integer] Hash code
248
248
  def hash
249
- [name, content_guard, base_path, repository, pulp_labels, hidden, remote, distributions, private, description].hash
249
+ [pulp_labels, hidden, repository, base_path, name, content_guard, remote, distributions, private, description].hash
250
250
  end
251
251
 
252
252
  # Builds the object from hash
@@ -368,6 +368,10 @@ module PulpContainerClient
368
368
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
369
369
  end
370
370
 
371
+ if !@download_concurrency.nil? && @download_concurrency < 1
372
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
373
+ end
374
+
371
375
  invalid_properties
372
376
  end
373
377
 
@@ -389,6 +393,7 @@ module PulpContainerClient
389
393
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
390
394
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
391
395
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
396
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
392
397
  true
393
398
  end
394
399
 
@@ -540,6 +545,16 @@ module PulpContainerClient
540
545
  @sock_read_timeout = sock_read_timeout
541
546
  end
542
547
 
548
+ # Custom attribute writer method with validation
549
+ # @param [Object] download_concurrency Value to be assigned
550
+ def download_concurrency=(download_concurrency)
551
+ if !download_concurrency.nil? && download_concurrency < 1
552
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
553
+ end
554
+
555
+ @download_concurrency = download_concurrency
556
+ end
557
+
543
558
  # Checks equality by comparing each attribute.
544
559
  # @param [Object] Object to be compared
545
560
  def ==(o)
@@ -16,28 +16,28 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class PatchedcontainerContainerPushRepository
19
+ attr_accessor :pulp_labels
20
+
21
+ # A reference to an associated signing service.
22
+ attr_accessor :manifest_signing_service
23
+
19
24
  # A unique name for this repository.
20
25
  attr_accessor :name
21
26
 
22
- attr_accessor :pulp_labels
23
-
24
27
  # Retain X versions of the repository. Default is null which retains all versions.
25
28
  attr_accessor :retain_repo_versions
26
29
 
27
30
  # An optional description.
28
31
  attr_accessor :description
29
32
 
30
- # A reference to an associated signing service.
31
- attr_accessor :manifest_signing_service
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'name' => :'name',
37
36
  :'pulp_labels' => :'pulp_labels',
37
+ :'manifest_signing_service' => :'manifest_signing_service',
38
+ :'name' => :'name',
38
39
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'description' => :'description',
40
- :'manifest_signing_service' => :'manifest_signing_service'
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
- :'name' => :'String',
53
52
  :'pulp_labels' => :'Hash<String, String>',
53
+ :'manifest_signing_service' => :'String',
54
+ :'name' => :'String',
54
55
  :'retain_repo_versions' => :'Integer',
55
- :'description' => :'String',
56
- :'manifest_signing_service' => :'String'
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
+ :'manifest_signing_service',
63
64
  :'retain_repo_versions',
64
- :'description',
65
- :'manifest_signing_service'
65
+ :'description'
66
66
  ])
67
67
  end
68
68
 
@@ -81,16 +81,20 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'name')
85
- self.name = attributes[:'name']
86
- end
87
-
88
84
  if attributes.key?(:'pulp_labels')
89
85
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
90
86
  self.pulp_labels = value
91
87
  end
92
88
  end
93
89
 
90
+ if attributes.key?(:'manifest_signing_service')
91
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
92
+ end
93
+
94
+ if attributes.key?(:'name')
95
+ self.name = attributes[:'name']
96
+ end
97
+
94
98
  if attributes.key?(:'retain_repo_versions')
95
99
  self.retain_repo_versions = attributes[:'retain_repo_versions']
96
100
  end
@@ -98,10 +102,6 @@ module PulpContainerClient
98
102
  if attributes.key?(:'description')
99
103
  self.description = attributes[:'description']
100
104
  end
101
-
102
- if attributes.key?(:'manifest_signing_service')
103
- self.manifest_signing_service = attributes[:'manifest_signing_service']
104
- end
105
105
  end
106
106
 
107
107
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -113,6 +113,10 @@ module PulpContainerClient
113
113
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
114
114
  end
115
115
 
116
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
117
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
118
+ end
119
+
116
120
  if !@description.nil? && @description.to_s.length < 1
117
121
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
118
122
  end
@@ -125,6 +129,7 @@ module PulpContainerClient
125
129
  def valid?
126
130
  warn '[DEPRECATED] the `valid?` method is obsolete'
127
131
  return false if !@name.nil? && @name.to_s.length < 1
132
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
133
  return false if !@description.nil? && @description.to_s.length < 1
129
134
  true
130
135
  end
@@ -143,6 +148,16 @@ module PulpContainerClient
143
148
  @name = name
144
149
  end
145
150
 
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] retain_repo_versions Value to be assigned
153
+ def retain_repo_versions=(retain_repo_versions)
154
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
155
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
156
+ end
157
+
158
+ @retain_repo_versions = retain_repo_versions
159
+ end
160
+
146
161
  # Custom attribute writer method with validation
147
162
  # @param [Object] description Value to be assigned
148
163
  def description=(description)
@@ -158,11 +173,11 @@ module PulpContainerClient
158
173
  def ==(o)
159
174
  return true if self.equal?(o)
160
175
  self.class == o.class &&
161
- name == o.name &&
162
176
  pulp_labels == o.pulp_labels &&
177
+ manifest_signing_service == o.manifest_signing_service &&
178
+ name == o.name &&
163
179
  retain_repo_versions == o.retain_repo_versions &&
164
- description == o.description &&
165
- manifest_signing_service == o.manifest_signing_service
180
+ description == o.description
166
181
  end
167
182
 
168
183
  # @see the `==` method
@@ -174,7 +189,7 @@ module PulpContainerClient
174
189
  # Calculates hash code according to all attributes.
175
190
  # @return [Integer] Hash code
176
191
  def hash
177
- [name, pulp_labels, retain_repo_versions, description, manifest_signing_service].hash
192
+ [pulp_labels, manifest_signing_service, name, retain_repo_versions, description].hash
178
193
  end
179
194
 
180
195
  # Builds the object from hash
@@ -387,6 +387,10 @@ module PulpContainerClient
387
387
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
388
388
  end
389
389
 
390
+ if !@download_concurrency.nil? && @download_concurrency < 1
391
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
392
+ end
393
+
390
394
  if !@upstream_name.nil? && @upstream_name.to_s.length < 1
391
395
  invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
392
396
  end
@@ -416,6 +420,7 @@ module PulpContainerClient
416
420
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
417
421
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
418
422
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
423
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
419
424
  return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
420
425
  return false if !@sigstore.nil? && @sigstore.to_s.length < 1
421
426
  true
@@ -569,6 +574,16 @@ module PulpContainerClient
569
574
  @sock_read_timeout = sock_read_timeout
570
575
  end
571
576
 
577
+ # Custom attribute writer method with validation
578
+ # @param [Object] download_concurrency Value to be assigned
579
+ def download_concurrency=(download_concurrency)
580
+ if !download_concurrency.nil? && download_concurrency < 1
581
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
582
+ end
583
+
584
+ @download_concurrency = download_concurrency
585
+ end
586
+
572
587
  # Custom attribute writer method with validation
573
588
  # @param [Object] upstream_name Value to be assigned
574
589
  def upstream_name=(upstream_name)
@@ -127,6 +127,10 @@ module PulpContainerClient
127
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
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
132
+ end
133
+
130
134
  invalid_properties
131
135
  end
132
136
 
@@ -136,6 +140,7 @@ module PulpContainerClient
136
140
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
141
  return false if !@name.nil? && @name.to_s.length < 1
138
142
  return false if !@description.nil? && @description.to_s.length < 1
143
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
139
144
  true
140
145
  end
141
146
 
@@ -163,6 +168,16 @@ module PulpContainerClient
163
168
  @description = description
164
169
  end
165
170
 
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] retain_repo_versions Value to be assigned
173
+ def retain_repo_versions=(retain_repo_versions)
174
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
175
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
176
+ end
177
+
178
+ @retain_repo_versions = retain_repo_versions
179
+ end
180
+
166
181
  # Checks equality by comparing each attribute.
167
182
  # @param [Object] Object to be compared
168
183
  def ==(o)
@@ -89,11 +89,6 @@ module PulpContainerClient
89
89
  invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
90
90
  end
91
91
 
92
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
93
- if @key !~ pattern
94
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
95
- end
96
-
97
92
  invalid_properties
98
93
  end
99
94
 
@@ -103,7 +98,6 @@ module PulpContainerClient
103
98
  warn '[DEPRECATED] the `valid?` method is obsolete'
104
99
  return false if @key.nil?
105
100
  return false if @key.to_s.length < 1
106
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
107
101
  true
108
102
  end
109
103
 
@@ -118,11 +112,6 @@ module PulpContainerClient
118
112
  fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
119
113
  end
120
114
 
121
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
122
- if key !~ pattern
123
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
124
- end
125
-
126
115
  @key = key
127
116
  end
128
117
 
@@ -85,11 +85,6 @@ module PulpContainerClient
85
85
  invalid_properties.push('invalid value for "key", key cannot be nil.')
86
86
  end
87
87
 
88
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
89
- if @key !~ pattern
90
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
91
- end
92
-
93
88
  invalid_properties
94
89
  end
95
90
 
@@ -98,25 +93,9 @@ module PulpContainerClient
98
93
  def valid?
99
94
  warn '[DEPRECATED] the `valid?` method is obsolete'
100
95
  return false if @key.nil?
101
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
102
96
  true
103
97
  end
104
98
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] key Value to be assigned
107
- def key=(key)
108
- if key.nil?
109
- fail ArgumentError, 'key cannot be nil'
110
- end
111
-
112
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
113
- if key !~ pattern
114
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
115
- end
116
-
117
- @key = key
118
- end
119
-
120
99
  # Checks equality by comparing each attribute.
121
100
  # @param [Object] Object to be compared
122
101
  def ==(o)
@@ -78,11 +78,6 @@ module PulpContainerClient
78
78
  invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
79
79
  end
80
80
 
81
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
82
- if @key !~ pattern
83
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
84
- end
85
-
86
81
  invalid_properties
87
82
  end
88
83
 
@@ -92,7 +87,6 @@ module PulpContainerClient
92
87
  warn '[DEPRECATED] the `valid?` method is obsolete'
93
88
  return false if @key.nil?
94
89
  return false if @key.to_s.length < 1
95
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
96
90
  true
97
91
  end
98
92
 
@@ -107,11 +101,6 @@ module PulpContainerClient
107
101
  fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
108
102
  end
109
103
 
110
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
111
- if key !~ pattern
112
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
113
- end
114
-
115
104
  @key = key
116
105
  end
117
106
 
@@ -82,11 +82,6 @@ module PulpContainerClient
82
82
  invalid_properties.push('invalid value for "key", key cannot be nil.')
83
83
  end
84
84
 
85
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
86
- if @key !~ pattern
87
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
88
- end
89
-
90
85
  invalid_properties
91
86
  end
92
87
 
@@ -95,25 +90,9 @@ module PulpContainerClient
95
90
  def valid?
96
91
  warn '[DEPRECATED] the `valid?` method is obsolete'
97
92
  return false if @key.nil?
98
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
99
93
  true
100
94
  end
101
95
 
102
- # Custom attribute writer method with validation
103
- # @param [Object] key Value to be assigned
104
- def key=(key)
105
- if key.nil?
106
- fail ArgumentError, 'key cannot be nil'
107
- end
108
-
109
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
110
- if key !~ pattern
111
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
112
- end
113
-
114
- @key = key
115
- end
116
-
117
96
  # Checks equality by comparing each attribute.
118
97
  # @param [Object] Object to be compared
119
98
  def ==(o)
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.27.1'
14
+ VERSION = '2.27.3'
15
15
  end
@@ -48,9 +48,9 @@ describe 'ContentBlobsApi' do
48
48
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
49
49
  # @option opts [String] :pulp_label_select Filter labels by search string
50
50
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
51
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
52
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
53
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
51
+ # @option opts [String] :repository_version
52
+ # @option opts [String] :repository_version_added
53
+ # @option opts [String] :repository_version_removed
54
54
  # @option opts [Array<String>] :fields A list of fields to include in the response.
55
55
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
56
56
  # @return [PaginatedcontainerBlobResponseList]
@@ -51,9 +51,9 @@ describe 'ContentManifestsApi' do
51
51
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
52
52
  # @option opts [String] :pulp_label_select Filter labels by search string
53
53
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
54
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
55
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
56
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
54
+ # @option opts [String] :repository_version
55
+ # @option opts [String] :repository_version_added
56
+ # @option opts [String] :repository_version_removed
57
57
  # @option opts [Array<String>] :fields A list of fields to include in the response.
58
58
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
59
59
  # @return [PaginatedcontainerManifestResponseList]
@@ -60,9 +60,9 @@ describe 'ContentSignaturesApi' do
60
60
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
61
61
  # @option opts [String] :pulp_label_select Filter labels by search string
62
62
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
63
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
64
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
65
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
63
+ # @option opts [String] :repository_version
64
+ # @option opts [String] :repository_version_added
65
+ # @option opts [String] :repository_version_removed
66
66
  # @option opts [Array<String>] :fields A list of fields to include in the response.
67
67
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
68
68
  # @return [PaginatedcontainerManifestSignatureResponseList]
@@ -50,9 +50,9 @@ describe 'ContentTagsApi' do
50
50
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
51
51
  # @option opts [String] :pulp_label_select Filter labels by search string
52
52
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
53
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
54
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
55
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
53
+ # @option opts [String] :repository_version
54
+ # @option opts [String] :repository_version_added
55
+ # @option opts [String] :repository_version_removed
56
56
  # @option opts [Array<String>] :fields A list of fields to include in the response.
57
57
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
58
58
  # @return [PaginatedcontainerTagResponseList]