pulp_container_client 2.25.0 → 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 (112) 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 +8 -8
  5. data/docs/ContainerContainerDistributionResponse.md +16 -16
  6. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
  9. data/docs/ContainerContainerPushRepository.md +7 -7
  10. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  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 +72 -32
  20. data/docs/DistributionsPullThroughApi.md +72 -32
  21. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  22. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  23. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  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 +34 -34
  49. data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
  50. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +34 -34
  51. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
  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 +33 -48
  55. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -81
  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 +32 -32
  76. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +32 -32
  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 +31 -46
  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/pulp_container_client.gemspec +0 -1
  84. data/spec/api/content_blobs_api_spec.rb +4 -0
  85. data/spec/api/content_manifests_api_spec.rb +4 -0
  86. data/spec/api/content_signatures_api_spec.rb +4 -0
  87. data/spec/api/content_tags_api_spec.rb +4 -0
  88. data/spec/api/distributions_container_api_spec.rb +12 -0
  89. data/spec/api/distributions_pull_through_api_spec.rb +12 -0
  90. data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
  91. data/spec/api/remotes_container_api_spec.rb +12 -0
  92. data/spec/api/remotes_pull_through_api_spec.rb +12 -0
  93. data/spec/api/repositories_container_api_spec.rb +21 -0
  94. data/spec/api/repositories_container_push_api_spec.rb +13 -0
  95. data/spec/api/repositories_container_push_versions_api_spec.rb +5 -1
  96. data/spec/api/repositories_container_versions_api_spec.rb +5 -1
  97. data/spec/api/token_api_spec.rb +3 -0
  98. data/spec/models/container_blob_response_spec.rb +6 -0
  99. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  100. data/spec/models/container_container_distribution_spec.rb +4 -4
  101. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  102. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  103. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  104. data/spec/models/container_container_push_repository_spec.rb +5 -5
  105. data/spec/models/container_manifest_response_spec.rb +6 -0
  106. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  107. data/spec/models/container_tag_response_spec.rb +6 -0
  108. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  109. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  110. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  111. data/spec/models/repository_version_response_spec.rb +6 -0
  112. metadata +62 -82
@@ -16,36 +16,36 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
19
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
20
- attr_accessor :no_content_change_since
19
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
20
+ attr_accessor :pulp_last_updated
21
21
 
22
- attr_accessor :pulp_href
22
+ # A unique name. Ex, `rawhide` and `stable`.
23
+ attr_accessor :name
23
24
 
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
25
+ # An optional content-guard. If none is specified, a default one will be used.
26
+ attr_accessor :content_guard
26
27
 
27
28
  # The latest RepositoryVersion for this Repository will be served.
28
29
  attr_accessor :repository
29
30
 
30
- # The Pulp Resource Name (PRN).
31
- attr_accessor :prn
31
+ attr_accessor :pulp_labels
32
32
 
33
- # An optional content-guard. If none is specified, a default one will be used.
34
- attr_accessor :content_guard
33
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
34
+ attr_accessor :base_path
35
35
 
36
- # Whether this distribution should be shown in the content app.
37
- attr_accessor :hidden
36
+ # Timestamp of creation.
37
+ attr_accessor :pulp_created
38
38
 
39
- # A unique name. Ex, `rawhide` and `stable`.
40
- attr_accessor :name
39
+ # The Pulp Resource Name (PRN).
40
+ attr_accessor :prn
41
41
 
42
- # 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.
43
- attr_accessor :pulp_last_updated
42
+ attr_accessor :pulp_href
44
43
 
45
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
46
- attr_accessor :base_path
44
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
45
+ attr_accessor :no_content_change_since
47
46
 
48
- attr_accessor :pulp_labels
47
+ # Whether this distribution should be shown in the content app.
48
+ attr_accessor :hidden
49
49
 
50
50
  # Remote that can be used to fetch content when using pull-through caching.
51
51
  attr_accessor :remote
@@ -65,17 +65,17 @@ module PulpContainerClient
65
65
  # Attribute mapping from ruby-style variable name to JSON key.
66
66
  def self.attribute_map
67
67
  {
68
- :'no_content_change_since' => :'no_content_change_since',
69
- :'pulp_href' => :'pulp_href',
70
- :'pulp_created' => :'pulp_created',
68
+ :'pulp_last_updated' => :'pulp_last_updated',
69
+ :'name' => :'name',
70
+ :'content_guard' => :'content_guard',
71
71
  :'repository' => :'repository',
72
+ :'pulp_labels' => :'pulp_labels',
73
+ :'base_path' => :'base_path',
74
+ :'pulp_created' => :'pulp_created',
72
75
  :'prn' => :'prn',
73
- :'content_guard' => :'content_guard',
76
+ :'pulp_href' => :'pulp_href',
77
+ :'no_content_change_since' => :'no_content_change_since',
74
78
  :'hidden' => :'hidden',
75
- :'name' => :'name',
76
- :'pulp_last_updated' => :'pulp_last_updated',
77
- :'base_path' => :'base_path',
78
- :'pulp_labels' => :'pulp_labels',
79
79
  :'remote' => :'remote',
80
80
  :'distributions' => :'distributions',
81
81
  :'namespace' => :'namespace',
@@ -92,17 +92,17 @@ module PulpContainerClient
92
92
  # Attribute type mapping.
93
93
  def self.openapi_types
94
94
  {
95
- :'no_content_change_since' => :'String',
96
- :'pulp_href' => :'String',
97
- :'pulp_created' => :'Time',
95
+ :'pulp_last_updated' => :'Time',
96
+ :'name' => :'String',
97
+ :'content_guard' => :'String',
98
98
  :'repository' => :'String',
99
+ :'pulp_labels' => :'Hash<String, String>',
100
+ :'base_path' => :'String',
101
+ :'pulp_created' => :'Time',
99
102
  :'prn' => :'String',
100
- :'content_guard' => :'String',
103
+ :'pulp_href' => :'String',
104
+ :'no_content_change_since' => :'String',
101
105
  :'hidden' => :'Boolean',
102
- :'name' => :'String',
103
- :'pulp_last_updated' => :'Time',
104
- :'base_path' => :'String',
105
- :'pulp_labels' => :'Hash<String, String>',
106
106
  :'remote' => :'String',
107
107
  :'distributions' => :'Array<String>',
108
108
  :'namespace' => :'String',
@@ -134,56 +134,56 @@ module PulpContainerClient
134
134
  h[k.to_sym] = v
135
135
  }
136
136
 
137
- if attributes.key?(:'no_content_change_since')
138
- self.no_content_change_since = attributes[:'no_content_change_since']
137
+ if attributes.key?(:'pulp_last_updated')
138
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
139
139
  end
140
140
 
141
- if attributes.key?(:'pulp_href')
142
- self.pulp_href = attributes[:'pulp_href']
141
+ if attributes.key?(:'name')
142
+ self.name = attributes[:'name']
143
+ else
144
+ self.name = nil
143
145
  end
144
146
 
145
- if attributes.key?(:'pulp_created')
146
- self.pulp_created = attributes[:'pulp_created']
147
+ if attributes.key?(:'content_guard')
148
+ self.content_guard = attributes[:'content_guard']
147
149
  end
148
150
 
149
151
  if attributes.key?(:'repository')
150
152
  self.repository = attributes[:'repository']
151
153
  end
152
154
 
153
- if attributes.key?(:'prn')
154
- self.prn = attributes[:'prn']
155
+ if attributes.key?(:'pulp_labels')
156
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
157
+ self.pulp_labels = value
158
+ end
155
159
  end
156
160
 
157
- if attributes.key?(:'content_guard')
158
- self.content_guard = attributes[:'content_guard']
161
+ if attributes.key?(:'base_path')
162
+ self.base_path = attributes[:'base_path']
163
+ else
164
+ self.base_path = nil
159
165
  end
160
166
 
161
- if attributes.key?(:'hidden')
162
- self.hidden = attributes[:'hidden']
163
- else
164
- self.hidden = false
167
+ if attributes.key?(:'pulp_created')
168
+ self.pulp_created = attributes[:'pulp_created']
165
169
  end
166
170
 
167
- if attributes.key?(:'name')
168
- self.name = attributes[:'name']
169
- else
170
- self.name = nil
171
+ if attributes.key?(:'prn')
172
+ self.prn = attributes[:'prn']
171
173
  end
172
174
 
173
- if attributes.key?(:'pulp_last_updated')
174
- self.pulp_last_updated = attributes[:'pulp_last_updated']
175
+ if attributes.key?(:'pulp_href')
176
+ self.pulp_href = attributes[:'pulp_href']
175
177
  end
176
178
 
177
- if attributes.key?(:'base_path')
178
- self.base_path = attributes[:'base_path']
179
- else
180
- self.base_path = nil
179
+ if attributes.key?(:'no_content_change_since')
180
+ self.no_content_change_since = attributes[:'no_content_change_since']
181
181
  end
182
182
 
183
- if attributes.key?(:'pulp_labels')
184
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
185
- self.pulp_labels = value
186
- end
183
+ if attributes.key?(:'hidden')
184
+ self.hidden = attributes[:'hidden']
185
+ else
186
+ self.hidden = false
187
187
  end
188
188
 
189
189
  if attributes.key?(:'remote')
@@ -246,17 +246,17 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
- no_content_change_since == o.no_content_change_since &&
250
- pulp_href == o.pulp_href &&
251
- pulp_created == o.pulp_created &&
249
+ pulp_last_updated == o.pulp_last_updated &&
250
+ name == o.name &&
251
+ content_guard == o.content_guard &&
252
252
  repository == o.repository &&
253
+ pulp_labels == o.pulp_labels &&
254
+ base_path == o.base_path &&
255
+ pulp_created == o.pulp_created &&
253
256
  prn == o.prn &&
254
- content_guard == o.content_guard &&
257
+ pulp_href == o.pulp_href &&
258
+ no_content_change_since == o.no_content_change_since &&
255
259
  hidden == o.hidden &&
256
- name == o.name &&
257
- pulp_last_updated == o.pulp_last_updated &&
258
- base_path == o.base_path &&
259
- pulp_labels == o.pulp_labels &&
260
260
  remote == o.remote &&
261
261
  distributions == o.distributions &&
262
262
  namespace == o.namespace &&
@@ -273,7 +273,7 @@ module PulpContainerClient
273
273
  # Calculates hash code according to all attributes.
274
274
  # @return [Integer] Hash code
275
275
  def hash
276
- [no_content_change_since, pulp_href, pulp_created, repository, prn, content_guard, hidden, name, pulp_last_updated, base_path, pulp_labels, remote, distributions, namespace, private, description].hash
276
+ [pulp_last_updated, name, content_guard, repository, pulp_labels, base_path, pulp_created, prn, pulp_href, no_content_change_since, hidden, remote, distributions, namespace, private, description].hash
277
277
  end
278
278
 
279
279
  # Builds the object from hash
@@ -364,10 +364,6 @@ module PulpContainerClient
364
364
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
365
365
  end
366
366
 
367
- if !@download_concurrency.nil? && @download_concurrency < 1
368
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
369
- end
370
-
371
367
  if !@total_timeout.nil? && @total_timeout < 0.0
372
368
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
373
369
  end
@@ -403,7 +399,6 @@ module PulpContainerClient
403
399
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
404
400
  return false if !@username.nil? && @username.to_s.length < 1
405
401
  return false if !@password.nil? && @password.to_s.length < 1
406
- return false if !@download_concurrency.nil? && @download_concurrency < 1
407
402
  return false if !@total_timeout.nil? && @total_timeout < 0.0
408
403
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
409
404
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -519,16 +514,6 @@ module PulpContainerClient
519
514
  @password = password
520
515
  end
521
516
 
522
- # Custom attribute writer method with validation
523
- # @param [Object] download_concurrency Value to be assigned
524
- def download_concurrency=(download_concurrency)
525
- if !download_concurrency.nil? && download_concurrency < 1
526
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
527
- end
528
-
529
- @download_concurrency = download_concurrency
530
- end
531
-
532
517
  # Custom attribute writer method with validation
533
518
  # @param [Object] total_timeout Value to be assigned
534
519
  def total_timeout=(total_timeout)
@@ -320,10 +320,6 @@ module PulpContainerClient
320
320
  invalid_properties.push('invalid value for "url", url cannot be nil.')
321
321
  end
322
322
 
323
- if !@download_concurrency.nil? && @download_concurrency < 1
324
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
325
- end
326
-
327
323
  if !@total_timeout.nil? && @total_timeout < 0.0
328
324
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
329
325
  end
@@ -349,7 +345,6 @@ module PulpContainerClient
349
345
  warn '[DEPRECATED] the `valid?` method is obsolete'
350
346
  return false if @name.nil?
351
347
  return false if @url.nil?
352
- return false if !@download_concurrency.nil? && @download_concurrency < 1
353
348
  return false if !@total_timeout.nil? && @total_timeout < 0.0
354
349
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
355
350
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -357,16 +352,6 @@ module PulpContainerClient
357
352
  true
358
353
  end
359
354
 
360
- # Custom attribute writer method with validation
361
- # @param [Object] download_concurrency Value to be assigned
362
- def download_concurrency=(download_concurrency)
363
- if !download_concurrency.nil? && download_concurrency < 1
364
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
365
- end
366
-
367
- @download_concurrency = download_concurrency
368
- end
369
-
370
355
  # Custom attribute writer method with validation
371
356
  # @param [Object] total_timeout Value to be assigned
372
357
  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 ContainerContainerPushRepository
19
- # Retain X versions of the repository. Default is null which retains all versions.
20
- attr_accessor :retain_repo_versions
19
+ # A unique name for this repository.
20
+ attr_accessor :name
21
+
22
+ attr_accessor :pulp_labels
21
23
 
22
24
  # A reference to an associated signing service.
23
25
  attr_accessor :manifest_signing_service
24
26
 
25
- # A unique name for this repository.
26
- attr_accessor :name
27
+ # Retain X versions of the repository. Default is null which retains all versions.
28
+ attr_accessor :retain_repo_versions
27
29
 
28
30
  # An optional description.
29
31
  attr_accessor :description
30
32
 
31
- attr_accessor :pulp_labels
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'retain_repo_versions' => :'retain_repo_versions',
37
- :'manifest_signing_service' => :'manifest_signing_service',
38
36
  :'name' => :'name',
39
- :'description' => :'description',
40
- :'pulp_labels' => :'pulp_labels'
37
+ :'pulp_labels' => :'pulp_labels',
38
+ :'manifest_signing_service' => :'manifest_signing_service',
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
- :'retain_repo_versions' => :'Integer',
53
- :'manifest_signing_service' => :'String',
54
52
  :'name' => :'String',
55
- :'description' => :'String',
56
- :'pulp_labels' => :'Hash<String, String>'
53
+ :'pulp_labels' => :'Hash<String, String>',
54
+ :'manifest_signing_service' => :'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,29 +81,29 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'retain_repo_versions')
85
- self.retain_repo_versions = attributes[:'retain_repo_versions']
86
- end
87
-
88
- if attributes.key?(:'manifest_signing_service')
89
- self.manifest_signing_service = attributes[:'manifest_signing_service']
90
- end
91
-
92
84
  if attributes.key?(:'name')
93
85
  self.name = attributes[:'name']
94
86
  else
95
87
  self.name = nil
96
88
  end
97
89
 
98
- if attributes.key?(:'description')
99
- self.description = attributes[:'description']
100
- end
101
-
102
90
  if attributes.key?(:'pulp_labels')
103
91
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
92
  self.pulp_labels = value
105
93
  end
106
94
  end
95
+
96
+ if attributes.key?(:'manifest_signing_service')
97
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
115
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater 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
@@ -134,23 +130,12 @@ module PulpContainerClient
134
130
  # @return true if the model is valid
135
131
  def valid?
136
132
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
138
133
  return false if @name.nil?
139
134
  return false if @name.to_s.length < 1
140
135
  return false if !@description.nil? && @description.to_s.length < 1
141
136
  true
142
137
  end
143
138
 
144
- # Custom attribute writer method with validation
145
- # @param [Object] retain_repo_versions Value to be assigned
146
- def retain_repo_versions=(retain_repo_versions)
147
- if !retain_repo_versions.nil? && retain_repo_versions < 1
148
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
149
- end
150
-
151
- @retain_repo_versions = retain_repo_versions
152
- end
153
-
154
139
  # Custom attribute writer method with validation
155
140
  # @param [Object] name Value to be assigned
156
141
  def name=(name)
@@ -180,11 +165,11 @@ module PulpContainerClient
180
165
  def ==(o)
181
166
  return true if self.equal?(o)
182
167
  self.class == o.class &&
183
- retain_repo_versions == o.retain_repo_versions &&
184
- manifest_signing_service == o.manifest_signing_service &&
185
168
  name == o.name &&
186
- description == o.description &&
187
- pulp_labels == o.pulp_labels
169
+ pulp_labels == o.pulp_labels &&
170
+ manifest_signing_service == o.manifest_signing_service &&
171
+ retain_repo_versions == o.retain_repo_versions &&
172
+ description == o.description
188
173
  end
189
174
 
190
175
  # @see the `==` method
@@ -196,7 +181,7 @@ module PulpContainerClient
196
181
  # Calculates hash code according to all attributes.
197
182
  # @return [Integer] Hash code
198
183
  def hash
199
- [retain_repo_versions, manifest_signing_service, name, description, pulp_labels].hash
184
+ [name, pulp_labels, manifest_signing_service, retain_repo_versions, description].hash
200
185
  end
201
186
 
202
187
  # Builds the object from hash