pulp_container_client 2.25.1 → 2.26.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 (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +4 -4
  5. data/docs/ContainerContainerDistributionResponse.md +12 -12
  6. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
  9. data/docs/ContainerContainerPushRepository.md +5 -5
  10. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  11. data/docs/ContainerContainerRemoteResponse.md +1 -1
  12. data/docs/ContainerManifestResponse.md +2 -0
  13. data/docs/ContainerManifestSignatureResponse.md +2 -0
  14. data/docs/ContainerTagResponse.md +2 -0
  15. data/docs/ContentBlobsApi.md +20 -8
  16. data/docs/ContentManifestsApi.md +20 -8
  17. data/docs/ContentSignaturesApi.md +20 -8
  18. data/docs/ContentTagsApi.md +20 -8
  19. data/docs/DistributionsContainerApi.md +74 -34
  20. data/docs/DistributionsPullThroughApi.md +74 -34
  21. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  22. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  23. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  24. data/docs/PulpContainerNamespacesApi.md +40 -16
  25. data/docs/RemotesContainerApi.md +72 -32
  26. data/docs/RemotesPullThroughApi.md +72 -32
  27. data/docs/RepositoriesContainerApi.md +138 -64
  28. data/docs/RepositoriesContainerPushApi.md +80 -36
  29. data/docs/RepositoriesContainerPushVersionsApi.md +22 -10
  30. data/docs/RepositoriesContainerVersionsApi.md +22 -10
  31. data/docs/RepositoryVersionResponse.md +3 -1
  32. data/docs/TokenApi.md +14 -5
  33. data/lib/pulp_container_client/api/content_blobs_api.rb +12 -0
  34. data/lib/pulp_container_client/api/content_manifests_api.rb +12 -0
  35. data/lib/pulp_container_client/api/content_signatures_api.rb +12 -0
  36. data/lib/pulp_container_client/api/content_tags_api.rb +12 -0
  37. data/lib/pulp_container_client/api/distributions_container_api.rb +36 -0
  38. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +36 -0
  39. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
  40. data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
  41. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
  42. data/lib/pulp_container_client/api/repositories_container_api.rb +63 -0
  43. data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
  44. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +15 -3
  45. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -3
  46. data/lib/pulp_container_client/api/token_api.rb +9 -0
  47. data/lib/pulp_container_client/models/container_blob_response.rb +10 -1
  48. data/lib/pulp_container_client/models/container_container_distribution.rb +47 -47
  49. data/lib/pulp_container_client/models/container_container_distribution_response.rb +62 -62
  50. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +47 -47
  51. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +62 -62
  52. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +0 -15
  53. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +0 -15
  54. data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -57
  55. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +59 -74
  56. data/lib/pulp_container_client/models/container_container_remote.rb +0 -15
  57. data/lib/pulp_container_client/models/container_container_remote_response.rb +0 -15
  58. data/lib/pulp_container_client/models/container_container_repository.rb +0 -15
  59. data/lib/pulp_container_client/models/container_container_repository_response.rb +0 -15
  60. data/lib/pulp_container_client/models/container_manifest_response.rb +10 -1
  61. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +10 -1
  62. data/lib/pulp_container_client/models/container_tag_response.rb +10 -1
  63. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +0 -2
  64. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +0 -2
  65. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +0 -2
  66. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +0 -2
  67. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +0 -2
  68. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +0 -2
  69. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +0 -2
  70. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +0 -2
  71. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +0 -2
  72. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +0 -2
  73. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +0 -2
  74. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +0 -2
  75. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
  76. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +40 -40
  77. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +0 -15
  78. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -53
  79. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +0 -15
  80. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +0 -15
  81. data/lib/pulp_container_client/models/repository_version_response.rb +13 -4
  82. data/lib/pulp_container_client/version.rb +1 -1
  83. data/spec/api/content_blobs_api_spec.rb +4 -0
  84. data/spec/api/content_manifests_api_spec.rb +4 -0
  85. data/spec/api/content_signatures_api_spec.rb +4 -0
  86. data/spec/api/content_tags_api_spec.rb +4 -0
  87. data/spec/api/distributions_container_api_spec.rb +12 -0
  88. data/spec/api/distributions_pull_through_api_spec.rb +12 -0
  89. data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
  90. data/spec/api/remotes_container_api_spec.rb +12 -0
  91. data/spec/api/remotes_pull_through_api_spec.rb +12 -0
  92. data/spec/api/repositories_container_api_spec.rb +21 -0
  93. data/spec/api/repositories_container_push_api_spec.rb +13 -0
  94. data/spec/api/repositories_container_push_versions_api_spec.rb +5 -1
  95. data/spec/api/repositories_container_versions_api_spec.rb +5 -1
  96. data/spec/api/token_api_spec.rb +3 -0
  97. data/spec/models/container_blob_response_spec.rb +6 -0
  98. data/spec/models/container_container_distribution_response_spec.rb +9 -9
  99. data/spec/models/container_container_distribution_spec.rb +5 -5
  100. data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
  101. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  102. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  103. data/spec/models/container_container_push_repository_spec.rb +4 -4
  104. data/spec/models/container_manifest_response_spec.rb +6 -0
  105. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  106. data/spec/models/container_tag_response_spec.rb +6 -0
  107. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  108. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  109. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  110. data/spec/models/repository_version_response_spec.rb +6 -0
  111. metadata +59 -59
@@ -16,20 +16,20 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
+ # A unique name. Ex, `rawhide` and `stable`.
20
+ attr_accessor :name
21
+
19
22
  # An optional content-guard. If none is specified, a default one will be used.
20
23
  attr_accessor :content_guard
21
24
 
25
+ # The latest RepositoryVersion for this Repository will be served.
26
+ attr_accessor :repository
27
+
22
28
  attr_accessor :pulp_labels
23
29
 
24
30
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
31
  attr_accessor :base_path
26
32
 
27
- # The latest RepositoryVersion for this Repository will be served.
28
- attr_accessor :repository
29
-
30
- # A unique name. Ex, `rawhide` and `stable`.
31
- attr_accessor :name
32
-
33
33
  # Whether this distribution should be shown in the content app.
34
34
  attr_accessor :hidden
35
35
 
@@ -45,11 +45,11 @@ module PulpContainerClient
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
+ :'name' => :'name',
48
49
  :'content_guard' => :'content_guard',
50
+ :'repository' => :'repository',
49
51
  :'pulp_labels' => :'pulp_labels',
50
52
  :'base_path' => :'base_path',
51
- :'repository' => :'repository',
52
- :'name' => :'name',
53
53
  :'hidden' => :'hidden',
54
54
  :'repository_version' => :'repository_version',
55
55
  :'private' => :'private',
@@ -65,11 +65,11 @@ module PulpContainerClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
+ :'name' => :'String',
68
69
  :'content_guard' => :'String',
70
+ :'repository' => :'String',
69
71
  :'pulp_labels' => :'Hash<String, String>',
70
72
  :'base_path' => :'String',
71
- :'repository' => :'String',
72
- :'name' => :'String',
73
73
  :'hidden' => :'Boolean',
74
74
  :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
@@ -101,10 +101,18 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
+ if attributes.key?(:'name')
105
+ self.name = attributes[:'name']
106
+ end
107
+
104
108
  if attributes.key?(:'content_guard')
105
109
  self.content_guard = attributes[:'content_guard']
106
110
  end
107
111
 
112
+ if attributes.key?(:'repository')
113
+ self.repository = attributes[:'repository']
114
+ end
115
+
108
116
  if attributes.key?(:'pulp_labels')
109
117
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
118
  self.pulp_labels = value
@@ -115,14 +123,6 @@ module PulpContainerClient
115
123
  self.base_path = attributes[:'base_path']
116
124
  end
117
125
 
118
- if attributes.key?(:'repository')
119
- self.repository = attributes[:'repository']
120
- end
121
-
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
124
- end
125
-
126
126
  if attributes.key?(:'hidden')
127
127
  self.hidden = attributes[:'hidden']
128
128
  else
@@ -147,14 +147,14 @@ module PulpContainerClient
147
147
  def list_invalid_properties
148
148
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
149
149
  invalid_properties = Array.new
150
- if !@base_path.nil? && @base_path.to_s.length < 1
151
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
152
- end
153
-
154
150
  if !@name.nil? && @name.to_s.length < 1
155
151
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
156
152
  end
157
153
 
154
+ if !@base_path.nil? && @base_path.to_s.length < 1
155
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
156
+ end
157
+
158
158
  if !@description.nil? && @description.to_s.length < 1
159
159
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
160
160
  end
@@ -166,26 +166,12 @@ module PulpContainerClient
166
166
  # @return true if the model is valid
167
167
  def valid?
168
168
  warn '[DEPRECATED] the `valid?` method is obsolete'
169
- return false if !@base_path.nil? && @base_path.to_s.length < 1
170
169
  return false if !@name.nil? && @name.to_s.length < 1
170
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
171
171
  return false if !@description.nil? && @description.to_s.length < 1
172
172
  true
173
173
  end
174
174
 
175
- # Custom attribute writer method with validation
176
- # @param [Object] base_path Value to be assigned
177
- def base_path=(base_path)
178
- if base_path.nil?
179
- fail ArgumentError, 'base_path cannot be nil'
180
- end
181
-
182
- if base_path.to_s.length < 1
183
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
184
- end
185
-
186
- @base_path = base_path
187
- end
188
-
189
175
  # Custom attribute writer method with validation
190
176
  # @param [Object] name Value to be assigned
191
177
  def name=(name)
@@ -200,6 +186,20 @@ module PulpContainerClient
200
186
  @name = name
201
187
  end
202
188
 
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] base_path Value to be assigned
191
+ def base_path=(base_path)
192
+ if base_path.nil?
193
+ fail ArgumentError, 'base_path cannot be nil'
194
+ end
195
+
196
+ if base_path.to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
198
+ end
199
+
200
+ @base_path = base_path
201
+ end
202
+
203
203
  # Custom attribute writer method with validation
204
204
  # @param [Object] description Value to be assigned
205
205
  def description=(description)
@@ -215,11 +215,11 @@ module PulpContainerClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
+ name == o.name &&
218
219
  content_guard == o.content_guard &&
220
+ repository == o.repository &&
219
221
  pulp_labels == o.pulp_labels &&
220
222
  base_path == o.base_path &&
221
- repository == o.repository &&
222
- name == o.name &&
223
223
  hidden == o.hidden &&
224
224
  repository_version == o.repository_version &&
225
225
  private == o.private &&
@@ -235,7 +235,7 @@ module PulpContainerClient
235
235
  # Calculates hash code according to all attributes.
236
236
  # @return [Integer] Hash code
237
237
  def hash
238
- [content_guard, pulp_labels, base_path, repository, name, hidden, repository_version, private, description].hash
238
+ [name, content_guard, repository, pulp_labels, base_path, hidden, repository_version, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash
@@ -16,20 +16,20 @@ 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
+
19
22
  # An optional content-guard. If none is specified, a default one will be used.
20
23
  attr_accessor :content_guard
21
24
 
25
+ # The latest RepositoryVersion for this Repository will be served.
26
+ attr_accessor :repository
27
+
22
28
  attr_accessor :pulp_labels
23
29
 
24
30
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
31
  attr_accessor :base_path
26
32
 
27
- # The latest RepositoryVersion for this Repository will be served.
28
- attr_accessor :repository
29
-
30
- # A unique name. Ex, `rawhide` and `stable`.
31
- attr_accessor :name
32
-
33
33
  # Whether this distribution should be shown in the content app.
34
34
  attr_accessor :hidden
35
35
 
@@ -48,11 +48,11 @@ 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',
51
52
  :'content_guard' => :'content_guard',
53
+ :'repository' => :'repository',
52
54
  :'pulp_labels' => :'pulp_labels',
53
55
  :'base_path' => :'base_path',
54
- :'repository' => :'repository',
55
- :'name' => :'name',
56
56
  :'hidden' => :'hidden',
57
57
  :'remote' => :'remote',
58
58
  :'distributions' => :'distributions',
@@ -69,11 +69,11 @@ module PulpContainerClient
69
69
  # Attribute type mapping.
70
70
  def self.openapi_types
71
71
  {
72
+ :'name' => :'String',
72
73
  :'content_guard' => :'String',
74
+ :'repository' => :'String',
73
75
  :'pulp_labels' => :'Hash<String, String>',
74
76
  :'base_path' => :'String',
75
- :'repository' => :'String',
76
- :'name' => :'String',
77
77
  :'hidden' => :'Boolean',
78
78
  :'remote' => :'String',
79
79
  :'distributions' => :'Array<String>',
@@ -105,10 +105,18 @@ 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
+
108
112
  if attributes.key?(:'content_guard')
109
113
  self.content_guard = attributes[:'content_guard']
110
114
  end
111
115
 
116
+ if attributes.key?(:'repository')
117
+ self.repository = attributes[:'repository']
118
+ end
119
+
112
120
  if attributes.key?(:'pulp_labels')
113
121
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
122
  self.pulp_labels = value
@@ -119,14 +127,6 @@ module PulpContainerClient
119
127
  self.base_path = attributes[:'base_path']
120
128
  end
121
129
 
122
- if attributes.key?(:'repository')
123
- self.repository = attributes[:'repository']
124
- end
125
-
126
- if attributes.key?(:'name')
127
- self.name = attributes[:'name']
128
- end
129
-
130
130
  if attributes.key?(:'hidden')
131
131
  self.hidden = attributes[:'hidden']
132
132
  else
@@ -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 !@base_path.nil? && @base_path.to_s.length < 1
161
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
162
- end
163
-
164
160
  if !@name.nil? && @name.to_s.length < 1
165
161
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
166
162
  end
167
163
 
164
+ if !@base_path.nil? && @base_path.to_s.length < 1
165
+ invalid_properties.push('invalid value for "base_path", 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 !@base_path.nil? && @base_path.to_s.length < 1
180
179
  return false if !@name.nil? && @name.to_s.length < 1
180
+ return false if !@base_path.nil? && @base_path.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] base_path Value to be assigned
187
- def base_path=(base_path)
188
- if base_path.nil?
189
- fail ArgumentError, 'base_path cannot be nil'
190
- end
191
-
192
- if base_path.to_s.length < 1
193
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
194
- end
195
-
196
- @base_path = base_path
197
- end
198
-
199
185
  # Custom attribute writer method with validation
200
186
  # @param [Object] name Value to be assigned
201
187
  def name=(name)
@@ -210,6 +196,20 @@ module PulpContainerClient
210
196
  @name = name
211
197
  end
212
198
 
199
+ # Custom attribute writer method with validation
200
+ # @param [Object] base_path Value to be assigned
201
+ def base_path=(base_path)
202
+ if base_path.nil?
203
+ fail ArgumentError, 'base_path cannot be nil'
204
+ end
205
+
206
+ if base_path.to_s.length < 1
207
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
208
+ end
209
+
210
+ @base_path = base_path
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,11 +225,11 @@ module PulpContainerClient
225
225
  def ==(o)
226
226
  return true if self.equal?(o)
227
227
  self.class == o.class &&
228
+ name == o.name &&
228
229
  content_guard == o.content_guard &&
230
+ repository == o.repository &&
229
231
  pulp_labels == o.pulp_labels &&
230
232
  base_path == o.base_path &&
231
- repository == o.repository &&
232
- name == o.name &&
233
233
  hidden == o.hidden &&
234
234
  remote == o.remote &&
235
235
  distributions == o.distributions &&
@@ -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
- [content_guard, pulp_labels, base_path, repository, name, hidden, remote, distributions, private, description].hash
249
+ [name, content_guard, repository, pulp_labels, base_path, hidden, remote, distributions, private, description].hash
250
250
  end
251
251
 
252
252
  # Builds the object from hash
@@ -352,10 +352,6 @@ module PulpContainerClient
352
352
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
353
353
  end
354
354
 
355
- if !@download_concurrency.nil? && @download_concurrency < 1
356
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
357
- end
358
-
359
355
  if !@total_timeout.nil? && @total_timeout < 0.0
360
356
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
361
357
  end
@@ -389,7 +385,6 @@ module PulpContainerClient
389
385
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
390
386
  return false if !@username.nil? && @username.to_s.length < 1
391
387
  return false if !@password.nil? && @password.to_s.length < 1
392
- return false if !@download_concurrency.nil? && @download_concurrency < 1
393
388
  return false if !@total_timeout.nil? && @total_timeout < 0.0
394
389
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
395
390
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -505,16 +500,6 @@ module PulpContainerClient
505
500
  @password = password
506
501
  end
507
502
 
508
- # Custom attribute writer method with validation
509
- # @param [Object] download_concurrency Value to be assigned
510
- def download_concurrency=(download_concurrency)
511
- if !download_concurrency.nil? && download_concurrency < 1
512
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
513
- end
514
-
515
- @download_concurrency = download_concurrency
516
- end
517
-
518
503
  # Custom attribute writer method with validation
519
504
  # @param [Object] total_timeout Value to be assigned
520
505
  def total_timeout=(total_timeout)
@@ -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
19
+ # A unique name for this repository.
20
+ attr_accessor :name
20
21
 
21
- # Retain X versions of the repository. Default is null which retains all versions.
22
- attr_accessor :retain_repo_versions
22
+ attr_accessor :pulp_labels
23
23
 
24
24
  # A reference to an associated signing service.
25
25
  attr_accessor :manifest_signing_service
26
26
 
27
+ # Retain X versions of the repository. Default is null which retains all versions.
28
+ attr_accessor :retain_repo_versions
29
+
27
30
  # An optional description.
28
31
  attr_accessor :description
29
32
 
30
- # A unique name for this repository.
31
- attr_accessor :name
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
+ :'name' => :'name',
36
37
  :'pulp_labels' => :'pulp_labels',
37
- :'retain_repo_versions' => :'retain_repo_versions',
38
38
  :'manifest_signing_service' => :'manifest_signing_service',
39
- :'description' => :'description',
40
- :'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
+ :'name' => :'String',
52
53
  :'pulp_labels' => :'Hash<String, String>',
53
- :'retain_repo_versions' => :'Integer',
54
54
  :'manifest_signing_service' => :'String',
55
- :'description' => :'String',
56
- :'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
- :'retain_repo_versions',
64
63
  :'manifest_signing_service',
65
- :'description',
64
+ :'retain_repo_versions',
65
+ :'description'
66
66
  ])
67
67
  end
68
68
 
@@ -81,26 +81,26 @@ 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
+
84
88
  if attributes.key?(:'pulp_labels')
85
89
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
86
90
  self.pulp_labels = value
87
91
  end
88
92
  end
89
93
 
90
- if attributes.key?(:'retain_repo_versions')
91
- self.retain_repo_versions = attributes[:'retain_repo_versions']
92
- end
93
-
94
94
  if attributes.key?(:'manifest_signing_service')
95
95
  self.manifest_signing_service = attributes[:'manifest_signing_service']
96
96
  end
97
97
 
98
- if attributes.key?(:'description')
99
- self.description = attributes[:'description']
98
+ if attributes.key?(:'retain_repo_versions')
99
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
100
100
  end
101
101
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
102
+ if attributes.key?(:'description')
103
+ self.description = attributes[:'description']
104
104
  end
105
105
  end
106
106
 
@@ -109,18 +109,14 @@ module PulpContainerClient
109
109
  def list_invalid_properties
110
110
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
111
111
  invalid_properties = Array.new
112
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
113
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
112
+ if !@name.nil? && @name.to_s.length < 1
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
116
  if !@description.nil? && @description.to_s.length < 1
117
117
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
118
118
  end
119
119
 
120
- if !@name.nil? && @name.to_s.length < 1
121
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
122
- end
123
-
124
120
  invalid_properties
125
121
  end
126
122
 
@@ -128,20 +124,23 @@ module PulpContainerClient
128
124
  # @return true if the model is valid
129
125
  def valid?
130
126
  warn '[DEPRECATED] the `valid?` method is obsolete'
131
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
132
- return false if !@description.nil? && @description.to_s.length < 1
133
127
  return false if !@name.nil? && @name.to_s.length < 1
128
+ return false if !@description.nil? && @description.to_s.length < 1
134
129
  true
135
130
  end
136
131
 
137
132
  # Custom attribute writer method with validation
138
- # @param [Object] retain_repo_versions Value to be assigned
139
- def retain_repo_versions=(retain_repo_versions)
140
- if !retain_repo_versions.nil? && retain_repo_versions < 1
141
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
133
+ # @param [Object] name Value to be assigned
134
+ def name=(name)
135
+ if name.nil?
136
+ fail ArgumentError, 'name cannot be nil'
137
+ end
138
+
139
+ if name.to_s.length < 1
140
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
142
141
  end
143
142
 
144
- @retain_repo_versions = retain_repo_versions
143
+ @name = name
145
144
  end
146
145
 
147
146
  # Custom attribute writer method with validation
@@ -154,30 +153,16 @@ module PulpContainerClient
154
153
  @description = description
155
154
  end
156
155
 
157
- # Custom attribute writer method with validation
158
- # @param [Object] name Value to be assigned
159
- def name=(name)
160
- if name.nil?
161
- fail ArgumentError, 'name cannot be nil'
162
- end
163
-
164
- if name.to_s.length < 1
165
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
166
- end
167
-
168
- @name = name
169
- end
170
-
171
156
  # Checks equality by comparing each attribute.
172
157
  # @param [Object] Object to be compared
173
158
  def ==(o)
174
159
  return true if self.equal?(o)
175
160
  self.class == o.class &&
161
+ name == o.name &&
176
162
  pulp_labels == o.pulp_labels &&
177
- retain_repo_versions == o.retain_repo_versions &&
178
163
  manifest_signing_service == o.manifest_signing_service &&
179
- description == o.description &&
180
- name == o.name
164
+ retain_repo_versions == o.retain_repo_versions &&
165
+ description == o.description
181
166
  end
182
167
 
183
168
  # @see the `==` method
@@ -189,7 +174,7 @@ module PulpContainerClient
189
174
  # Calculates hash code according to all attributes.
190
175
  # @return [Integer] Hash code
191
176
  def hash
192
- [pulp_labels, retain_repo_versions, manifest_signing_service, description, name].hash
177
+ [name, pulp_labels, manifest_signing_service, retain_repo_versions, description].hash
193
178
  end
194
179
 
195
180
  # Builds the object from hash
@@ -371,10 +371,6 @@ module PulpContainerClient
371
371
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
372
372
  end
373
373
 
374
- if !@download_concurrency.nil? && @download_concurrency < 1
375
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
376
- end
377
-
378
374
  if !@total_timeout.nil? && @total_timeout < 0.0
379
375
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
380
376
  end
@@ -416,7 +412,6 @@ module PulpContainerClient
416
412
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
417
413
  return false if !@username.nil? && @username.to_s.length < 1
418
414
  return false if !@password.nil? && @password.to_s.length < 1
419
- return false if !@download_concurrency.nil? && @download_concurrency < 1
420
415
  return false if !@total_timeout.nil? && @total_timeout < 0.0
421
416
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
422
417
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -534,16 +529,6 @@ module PulpContainerClient
534
529
  @password = password
535
530
  end
536
531
 
537
- # Custom attribute writer method with validation
538
- # @param [Object] download_concurrency Value to be assigned
539
- def download_concurrency=(download_concurrency)
540
- if !download_concurrency.nil? && download_concurrency < 1
541
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
542
- end
543
-
544
- @download_concurrency = download_concurrency
545
- end
546
-
547
532
  # Custom attribute writer method with validation
548
533
  # @param [Object] total_timeout Value to be assigned
549
534
  def total_timeout=(total_timeout)
@@ -127,10 +127,6 @@ 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
-
134
130
  invalid_properties
135
131
  end
136
132
 
@@ -140,7 +136,6 @@ module PulpContainerClient
140
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
141
137
  return false if !@name.nil? && @name.to_s.length < 1
142
138
  return false if !@description.nil? && @description.to_s.length < 1
143
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
144
139
  true
145
140
  end
146
141
 
@@ -168,16 +163,6 @@ module PulpContainerClient
168
163
  @description = description
169
164
  end
170
165
 
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
-
181
166
  # Checks equality by comparing each attribute.
182
167
  # @param [Object] Object to be compared
183
168
  def ==(o)