pulp_container_client 2.15.7 → 2.16.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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -36
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +9 -9
  5. data/docs/ContainerContainerPushRepository.md +7 -7
  6. data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
  7. data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
  8. data/docs/ContentBlobsApi.md +1 -3
  9. data/docs/ContentManifestsApi.md +1 -3
  10. data/docs/ContentSignaturesApi.md +1 -11
  11. data/docs/ContentTagsApi.md +1 -3
  12. data/docs/DistributionsContainerApi.md +10 -136
  13. data/docs/IndexDynamicApi.md +50 -0
  14. data/docs/IndexStaticApi.md +50 -0
  15. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  16. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  17. data/docs/PulpContainerNamespacesApi.md +9 -23
  18. data/docs/RemotesContainerApi.md +9 -135
  19. data/docs/RepositoriesContainerApi.md +11 -137
  20. data/docs/RepositoriesContainerPushApi.md +10 -24
  21. data/docs/RepositoriesContainerPushVersionsApi.md +1 -3
  22. data/docs/RepositoriesContainerVersionsApi.md +1 -3
  23. data/docs/TokenApi.md +1 -1
  24. data/lib/pulp_container_client/api/content_blobs_api.rb +0 -3
  25. data/lib/pulp_container_client/api/content_manifests_api.rb +0 -3
  26. data/lib/pulp_container_client/api/content_signatures_api.rb +0 -15
  27. data/lib/pulp_container_client/api/content_tags_api.rb +0 -3
  28. data/lib/pulp_container_client/api/distributions_container_api.rb +0 -163
  29. data/lib/pulp_container_client/api/index_dynamic_api.rb +74 -0
  30. data/lib/pulp_container_client/api/index_static_api.rb +74 -0
  31. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +0 -23
  32. data/lib/pulp_container_client/api/remotes_container_api.rb +0 -163
  33. data/lib/pulp_container_client/api/repositories_container_api.rb +2 -165
  34. data/lib/pulp_container_client/api/repositories_container_push_api.rb +0 -23
  35. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +0 -3
  36. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +0 -3
  37. data/lib/pulp_container_client/configuration.rb +3 -3
  38. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
  39. data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -43
  40. data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
  41. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +54 -54
  42. data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +0 -10
  43. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -44
  44. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
  45. data/lib/pulp_container_client/version.rb +1 -1
  46. data/lib/pulp_container_client.rb +2 -4
  47. data/spec/api/content_blobs_api_spec.rb +0 -1
  48. data/spec/api/content_manifests_api_spec.rb +0 -1
  49. data/spec/api/content_signatures_api_spec.rb +0 -5
  50. data/spec/api/content_tags_api_spec.rb +0 -1
  51. data/spec/api/distributions_container_api_spec.rb +0 -35
  52. data/spec/{models/set_label_spec.rb → api/index_dynamic_api_spec.rb} +11 -13
  53. data/spec/{models/unset_label_spec.rb → api/index_static_api_spec.rb} +12 -8
  54. data/spec/api/pulp_container_namespaces_api_spec.rb +0 -9
  55. data/spec/api/remotes_container_api_spec.rb +0 -35
  56. data/spec/api/repositories_container_api_spec.rb +1 -36
  57. data/spec/api/repositories_container_push_api_spec.rb +0 -9
  58. data/spec/api/repositories_container_push_versions_api_spec.rb +0 -1
  59. data/spec/api/repositories_container_versions_api_spec.rb +0 -1
  60. data/spec/configuration_spec.rb +3 -3
  61. data/spec/models/container_container_distribution_response_spec.rb +8 -8
  62. data/spec/models/container_container_distribution_spec.rb +6 -6
  63. data/spec/models/container_container_push_repository_response_spec.rb +8 -8
  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_push_repository_spec.rb +5 -5
  67. metadata +71 -79
  68. data/docs/SetLabel.md +0 -19
  69. data/docs/SetLabelResponse.md +0 -19
  70. data/docs/UnsetLabel.md +0 -17
  71. data/docs/UnsetLabelResponse.md +0 -19
  72. data/lib/pulp_container_client/models/set_label.rb +0 -252
  73. data/lib/pulp_container_client/models/set_label_response.rb +0 -243
  74. data/lib/pulp_container_client/models/unset_label.rb +0 -242
  75. data/lib/pulp_container_client/models/unset_label_response.rb +0 -242
  76. data/spec/models/set_label_response_spec.rb +0 -47
  77. data/spec/models/unset_label_response_spec.rb +0 -47
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
20
-
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
23
-
24
18
  # Whether this distribution should be shown in the content app.
25
19
  attr_accessor :hidden
26
20
 
21
+ attr_accessor :pulp_labels
22
+
27
23
  # The latest RepositoryVersion for this Repository will be served.
28
24
  attr_accessor :repository
29
25
 
30
- attr_accessor :pulp_labels
26
+ # An optional content-guard. If none is specified, a default one will be used.
27
+ attr_accessor :content_guard
31
28
 
32
29
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
30
  attr_accessor :base_path
34
31
 
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'name' => :'name',
48
- :'content_guard' => :'content_guard',
49
47
  :'hidden' => :'hidden',
50
- :'repository' => :'repository',
51
48
  :'pulp_labels' => :'pulp_labels',
49
+ :'repository' => :'repository',
50
+ :'content_guard' => :'content_guard',
52
51
  :'base_path' => :'base_path',
52
+ :'name' => :'name',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'name' => :'String',
63
- :'content_guard' => :'String',
64
62
  :'hidden' => :'Boolean',
65
- :'repository' => :'String',
66
63
  :'pulp_labels' => :'Hash<String, String>',
64
+ :'repository' => :'String',
65
+ :'content_guard' => :'String',
67
66
  :'base_path' => :'String',
67
+ :'name' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,34 +95,34 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'name')
99
- self.name = attributes[:'name']
100
- end
101
-
102
- if attributes.key?(:'content_guard')
103
- self.content_guard = attributes[:'content_guard']
104
- end
105
-
106
98
  if attributes.key?(:'hidden')
107
99
  self.hidden = attributes[:'hidden']
108
100
  else
109
101
  self.hidden = false
110
102
  end
111
103
 
112
- if attributes.key?(:'repository')
113
- self.repository = attributes[:'repository']
114
- end
115
-
116
104
  if attributes.key?(:'pulp_labels')
117
105
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
106
  self.pulp_labels = value
119
107
  end
120
108
  end
121
109
 
110
+ if attributes.key?(:'repository')
111
+ self.repository = attributes[:'repository']
112
+ end
113
+
114
+ if attributes.key?(:'content_guard')
115
+ self.content_guard = attributes[:'content_guard']
116
+ end
117
+
122
118
  if attributes.key?(:'base_path')
123
119
  self.base_path = attributes[:'base_path']
124
120
  end
125
121
 
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
+ end
125
+
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -140,14 +140,6 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if @name.nil?
144
- invalid_properties.push('invalid value for "name", name cannot be nil.')
145
- end
146
-
147
- if @name.to_s.length < 1
148
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
- end
150
-
151
143
  if @base_path.nil?
152
144
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
153
145
  end
@@ -156,6 +148,14 @@ module PulpContainerClient
156
148
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
157
149
  end
158
150
 
151
+ if @name.nil?
152
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
153
+ end
154
+
155
+ if @name.to_s.length < 1
156
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
157
+ end
158
+
159
159
  if !@description.nil? && @description.to_s.length < 1
160
160
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
161
161
  end
@@ -166,28 +166,14 @@ module PulpContainerClient
166
166
  # Check to see if the all the properties in the model are valid
167
167
  # @return true if the model is valid
168
168
  def valid?
169
- return false if @name.nil?
170
- return false if @name.to_s.length < 1
171
169
  return false if @base_path.nil?
172
170
  return false if @base_path.to_s.length < 1
171
+ return false if @name.nil?
172
+ return false if @name.to_s.length < 1
173
173
  return false if !@description.nil? && @description.to_s.length < 1
174
174
  true
175
175
  end
176
176
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] name Value to be assigned
179
- def name=(name)
180
- if name.nil?
181
- fail ArgumentError, 'name cannot be nil'
182
- end
183
-
184
- if name.to_s.length < 1
185
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
186
- end
187
-
188
- @name = name
189
- end
190
-
191
177
  # Custom attribute writer method with validation
192
178
  # @param [Object] base_path Value to be assigned
193
179
  def base_path=(base_path)
@@ -202,6 +188,20 @@ module PulpContainerClient
202
188
  @base_path = base_path
203
189
  end
204
190
 
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] name Value to be assigned
193
+ def name=(name)
194
+ if name.nil?
195
+ fail ArgumentError, 'name cannot be nil'
196
+ end
197
+
198
+ if name.to_s.length < 1
199
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
200
+ end
201
+
202
+ @name = name
203
+ end
204
+
205
205
  # Custom attribute writer method with validation
206
206
  # @param [Object] description Value to be assigned
207
207
  def description=(description)
@@ -217,12 +217,12 @@ module PulpContainerClient
217
217
  def ==(o)
218
218
  return true if self.equal?(o)
219
219
  self.class == o.class &&
220
- name == o.name &&
221
- content_guard == o.content_guard &&
222
220
  hidden == o.hidden &&
223
- repository == o.repository &&
224
221
  pulp_labels == o.pulp_labels &&
222
+ repository == o.repository &&
223
+ content_guard == o.content_guard &&
225
224
  base_path == o.base_path &&
225
+ name == o.name &&
226
226
  repository_version == o.repository_version &&
227
227
  private == o.private &&
228
228
  description == o.description
@@ -237,7 +237,7 @@ module PulpContainerClient
237
237
  # Calculates hash code according to all attributes.
238
238
  # @return [Integer] Hash code
239
239
  def hash
240
- [name, content_guard, hidden, repository, pulp_labels, base_path, repository_version, private, description].hash
240
+ [hidden, pulp_labels, repository, content_guard, base_path, name, repository_version, private, description].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash
@@ -15,28 +15,28 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
20
-
21
- attr_accessor :pulp_href
22
-
23
18
  # Timestamp of creation.
24
19
  attr_accessor :pulp_created
25
20
 
26
- # An optional content-guard. If none is specified, a default one will be used.
27
- attr_accessor :content_guard
28
-
29
21
  # Whether this distribution should be shown in the content app.
30
22
  attr_accessor :hidden
31
23
 
24
+ attr_accessor :pulp_labels
25
+
32
26
  # The latest RepositoryVersion for this Repository will be served.
33
27
  attr_accessor :repository
34
28
 
35
- attr_accessor :pulp_labels
29
+ attr_accessor :pulp_href
30
+
31
+ # An optional content-guard. If none is specified, a default one will be used.
32
+ attr_accessor :content_guard
36
33
 
37
34
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
38
35
  attr_accessor :base_path
39
36
 
37
+ # A unique name. Ex, `rawhide` and `stable`.
38
+ attr_accessor :name
39
+
40
40
  # RepositoryVersion to be served
41
41
  attr_accessor :repository_version
42
42
 
@@ -55,14 +55,14 @@ module PulpContainerClient
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
58
- :'name' => :'name',
59
- :'pulp_href' => :'pulp_href',
60
58
  :'pulp_created' => :'pulp_created',
61
- :'content_guard' => :'content_guard',
62
59
  :'hidden' => :'hidden',
63
- :'repository' => :'repository',
64
60
  :'pulp_labels' => :'pulp_labels',
61
+ :'repository' => :'repository',
62
+ :'pulp_href' => :'pulp_href',
63
+ :'content_guard' => :'content_guard',
65
64
  :'base_path' => :'base_path',
65
+ :'name' => :'name',
66
66
  :'repository_version' => :'repository_version',
67
67
  :'registry_path' => :'registry_path',
68
68
  :'namespace' => :'namespace',
@@ -74,14 +74,14 @@ module PulpContainerClient
74
74
  # Attribute type mapping.
75
75
  def self.openapi_types
76
76
  {
77
- :'name' => :'String',
78
- :'pulp_href' => :'String',
79
77
  :'pulp_created' => :'DateTime',
80
- :'content_guard' => :'String',
81
78
  :'hidden' => :'Boolean',
82
- :'repository' => :'String',
83
79
  :'pulp_labels' => :'Hash<String, String>',
80
+ :'repository' => :'String',
81
+ :'pulp_href' => :'String',
82
+ :'content_guard' => :'String',
84
83
  :'base_path' => :'String',
84
+ :'name' => :'String',
85
85
  :'repository_version' => :'String',
86
86
  :'registry_path' => :'String',
87
87
  :'namespace' => :'String',
@@ -114,42 +114,42 @@ module PulpContainerClient
114
114
  h[k.to_sym] = v
115
115
  }
116
116
 
117
- if attributes.key?(:'name')
118
- self.name = attributes[:'name']
119
- end
120
-
121
- if attributes.key?(:'pulp_href')
122
- self.pulp_href = attributes[:'pulp_href']
123
- end
124
-
125
117
  if attributes.key?(:'pulp_created')
126
118
  self.pulp_created = attributes[:'pulp_created']
127
119
  end
128
120
 
129
- if attributes.key?(:'content_guard')
130
- self.content_guard = attributes[:'content_guard']
131
- end
132
-
133
121
  if attributes.key?(:'hidden')
134
122
  self.hidden = attributes[:'hidden']
135
123
  else
136
124
  self.hidden = false
137
125
  end
138
126
 
139
- if attributes.key?(:'repository')
140
- self.repository = attributes[:'repository']
141
- end
142
-
143
127
  if attributes.key?(:'pulp_labels')
144
128
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
145
129
  self.pulp_labels = value
146
130
  end
147
131
  end
148
132
 
133
+ if attributes.key?(:'repository')
134
+ self.repository = attributes[:'repository']
135
+ end
136
+
137
+ if attributes.key?(:'pulp_href')
138
+ self.pulp_href = attributes[:'pulp_href']
139
+ end
140
+
141
+ if attributes.key?(:'content_guard')
142
+ self.content_guard = attributes[:'content_guard']
143
+ end
144
+
149
145
  if attributes.key?(:'base_path')
150
146
  self.base_path = attributes[:'base_path']
151
147
  end
152
148
 
149
+ if attributes.key?(:'name')
150
+ self.name = attributes[:'name']
151
+ end
152
+
153
153
  if attributes.key?(:'repository_version')
154
154
  self.repository_version = attributes[:'repository_version']
155
155
  end
@@ -175,22 +175,22 @@ module PulpContainerClient
175
175
  # @return Array for valid properties with the reasons
176
176
  def list_invalid_properties
177
177
  invalid_properties = Array.new
178
- if @name.nil?
179
- invalid_properties.push('invalid value for "name", name cannot be nil.')
180
- end
181
-
182
178
  if @base_path.nil?
183
179
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
184
180
  end
185
181
 
182
+ if @name.nil?
183
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
184
+ end
185
+
186
186
  invalid_properties
187
187
  end
188
188
 
189
189
  # Check to see if the all the properties in the model are valid
190
190
  # @return true if the model is valid
191
191
  def valid?
192
- return false if @name.nil?
193
192
  return false if @base_path.nil?
193
+ return false if @name.nil?
194
194
  true
195
195
  end
196
196
 
@@ -199,14 +199,14 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- name == o.name &&
203
- pulp_href == o.pulp_href &&
204
202
  pulp_created == o.pulp_created &&
205
- content_guard == o.content_guard &&
206
203
  hidden == o.hidden &&
207
- repository == o.repository &&
208
204
  pulp_labels == o.pulp_labels &&
205
+ repository == o.repository &&
206
+ pulp_href == o.pulp_href &&
207
+ content_guard == o.content_guard &&
209
208
  base_path == o.base_path &&
209
+ name == o.name &&
210
210
  repository_version == o.repository_version &&
211
211
  registry_path == o.registry_path &&
212
212
  namespace == o.namespace &&
@@ -223,7 +223,7 @@ module PulpContainerClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [name, pulp_href, pulp_created, content_guard, hidden, repository, pulp_labels, base_path, repository_version, registry_path, namespace, private, description].hash
226
+ [pulp_created, hidden, pulp_labels, repository, pulp_href, content_guard, base_path, name, repository_version, registry_path, namespace, private, description].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # An optional description.
19
- attr_accessor :description
18
+ # A reference to an associated signing service.
19
+ attr_accessor :manifest_signing_service
20
+
21
+ attr_accessor :pulp_labels
20
22
 
21
23
  # Retain X versions of the repository. Default is null which retains all versions.
22
24
  attr_accessor :retain_repo_versions
23
25
 
24
- # A reference to an associated signing service.
25
- attr_accessor :manifest_signing_service
26
+ # An optional description.
27
+ attr_accessor :description
26
28
 
27
29
  # A unique name for this repository.
28
30
  attr_accessor :name
29
31
 
30
- attr_accessor :pulp_labels
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'description' => :'description',
36
- :'retain_repo_versions' => :'retain_repo_versions',
37
35
  :'manifest_signing_service' => :'manifest_signing_service',
38
- :'name' => :'name',
39
- :'pulp_labels' => :'pulp_labels'
36
+ :'pulp_labels' => :'pulp_labels',
37
+ :'retain_repo_versions' => :'retain_repo_versions',
38
+ :'description' => :'description',
39
+ :'name' => :'name'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'description' => :'String',
47
- :'retain_repo_versions' => :'Integer',
48
46
  :'manifest_signing_service' => :'String',
49
- :'name' => :'String',
50
- :'pulp_labels' => :'Hash<String, String>'
47
+ :'pulp_labels' => :'Hash<String, String>',
48
+ :'retain_repo_versions' => :'Integer',
49
+ :'description' => :'String',
50
+ :'name' => :'String'
51
51
  }
52
52
  end
53
53
 
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'description',
58
- :'retain_repo_versions',
59
57
  :'manifest_signing_service',
58
+ :'retain_repo_versions',
59
+ :'description',
60
60
  ])
61
61
  end
62
62
 
@@ -75,41 +75,41 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'description')
79
- self.description = attributes[:'description']
78
+ if attributes.key?(:'manifest_signing_service')
79
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
80
+ end
81
+
82
+ if attributes.key?(:'pulp_labels')
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
80
86
  end
81
87
 
82
88
  if attributes.key?(:'retain_repo_versions')
83
89
  self.retain_repo_versions = attributes[:'retain_repo_versions']
84
90
  end
85
91
 
86
- if attributes.key?(:'manifest_signing_service')
87
- self.manifest_signing_service = attributes[:'manifest_signing_service']
92
+ if attributes.key?(:'description')
93
+ self.description = attributes[:'description']
88
94
  end
89
95
 
90
96
  if attributes.key?(:'name')
91
97
  self.name = attributes[:'name']
92
98
  end
93
-
94
- if attributes.key?(:'pulp_labels')
95
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
- self.pulp_labels = value
97
- end
98
- end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if !@description.nil? && @description.to_s.length < 1
106
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
107
- end
108
-
109
105
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
107
  end
112
108
 
109
+ if !@description.nil? && @description.to_s.length < 1
110
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
111
+ end
112
+
113
113
  if @name.nil?
114
114
  invalid_properties.push('invalid value for "name", name cannot be nil.')
115
115
  end
@@ -124,23 +124,13 @@ module PulpContainerClient
124
124
  # Check to see if the all the properties in the model are valid
125
125
  # @return true if the model is valid
126
126
  def valid?
127
- return false if !@description.nil? && @description.to_s.length < 1
128
127
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
+ return false if !@description.nil? && @description.to_s.length < 1
129
129
  return false if @name.nil?
130
130
  return false if @name.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
134
- # Custom attribute writer method with validation
135
- # @param [Object] description Value to be assigned
136
- def description=(description)
137
- if !description.nil? && description.to_s.length < 1
138
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
139
- end
140
-
141
- @description = description
142
- end
143
-
144
134
  # Custom attribute writer method with validation
145
135
  # @param [Object] retain_repo_versions Value to be assigned
146
136
  def retain_repo_versions=(retain_repo_versions)
@@ -151,6 +141,16 @@ module PulpContainerClient
151
141
  @retain_repo_versions = retain_repo_versions
152
142
  end
153
143
 
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] description Value to be assigned
146
+ def description=(description)
147
+ if !description.nil? && description.to_s.length < 1
148
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
149
+ end
150
+
151
+ @description = description
152
+ end
153
+
154
154
  # Custom attribute writer method with validation
155
155
  # @param [Object] name Value to be assigned
156
156
  def name=(name)
@@ -170,11 +170,11 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
- description == o.description &&
174
- retain_repo_versions == o.retain_repo_versions &&
175
173
  manifest_signing_service == o.manifest_signing_service &&
176
- name == o.name &&
177
- pulp_labels == o.pulp_labels
174
+ pulp_labels == o.pulp_labels &&
175
+ retain_repo_versions == o.retain_repo_versions &&
176
+ description == o.description &&
177
+ name == o.name
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [description, retain_repo_versions, manifest_signing_service, name, pulp_labels].hash
189
+ [manifest_signing_service, pulp_labels, retain_repo_versions, description, name].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash