pulp_container_client 2.19.10 → 2.19.12

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +13 -13
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +13 -13
  7. data/docs/ContainerContainerPushRepository.md +4 -4
  8. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  9. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  11. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +32 -32
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -47
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +32 -32
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +47 -47
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +32 -32
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +44 -44
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +32 -32
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +32 -32
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +32 -32
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +9 -9
  23. data/spec/models/container_container_distribution_spec.rb +6 -6
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  27. data/spec/models/container_container_push_repository_spec.rb +2 -2
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
  31. metadata +60 -60
@@ -15,30 +15,30 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
+ # Whether this distribution should be shown in the content app.
19
+ attr_accessor :hidden
20
+
18
21
  # A unique name. Ex, `rawhide` and `stable`.
19
22
  attr_accessor :name
20
23
 
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
24
+ # The latest RepositoryVersion for this Repository will be served.
25
+ attr_accessor :repository
23
26
 
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
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
26
29
 
27
30
  attr_accessor :pulp_labels
28
31
 
29
- # Whether this distribution should be shown in the content app.
30
- attr_accessor :hidden
32
+ attr_accessor :pulp_href
31
33
 
32
34
  # 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.
33
35
  attr_accessor :pulp_last_updated
34
36
 
35
- # The latest RepositoryVersion for this Repository will be served.
36
- attr_accessor :repository
37
-
38
- attr_accessor :pulp_href
37
+ # An optional content-guard. If none is specified, a default one will be used.
38
+ attr_accessor :content_guard
39
39
 
40
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
41
- attr_accessor :base_path
40
+ # Timestamp of creation.
41
+ attr_accessor :pulp_created
42
42
 
43
43
  # RepositoryVersion to be served
44
44
  attr_accessor :repository_version
@@ -61,15 +61,15 @@ module PulpContainerClient
61
61
  # Attribute mapping from ruby-style variable name to JSON key.
62
62
  def self.attribute_map
63
63
  {
64
- :'name' => :'name',
65
- :'pulp_created' => :'pulp_created',
66
- :'content_guard' => :'content_guard',
67
- :'pulp_labels' => :'pulp_labels',
68
64
  :'hidden' => :'hidden',
69
- :'pulp_last_updated' => :'pulp_last_updated',
65
+ :'name' => :'name',
70
66
  :'repository' => :'repository',
71
- :'pulp_href' => :'pulp_href',
72
67
  :'base_path' => :'base_path',
68
+ :'pulp_labels' => :'pulp_labels',
69
+ :'pulp_href' => :'pulp_href',
70
+ :'pulp_last_updated' => :'pulp_last_updated',
71
+ :'content_guard' => :'content_guard',
72
+ :'pulp_created' => :'pulp_created',
73
73
  :'repository_version' => :'repository_version',
74
74
  :'registry_path' => :'registry_path',
75
75
  :'remote' => :'remote',
@@ -82,15 +82,15 @@ module PulpContainerClient
82
82
  # Attribute type mapping.
83
83
  def self.openapi_types
84
84
  {
85
- :'name' => :'String',
86
- :'pulp_created' => :'DateTime',
87
- :'content_guard' => :'String',
88
- :'pulp_labels' => :'Hash<String, String>',
89
85
  :'hidden' => :'Boolean',
90
- :'pulp_last_updated' => :'DateTime',
86
+ :'name' => :'String',
91
87
  :'repository' => :'String',
92
- :'pulp_href' => :'String',
93
88
  :'base_path' => :'String',
89
+ :'pulp_labels' => :'Hash<String, String>',
90
+ :'pulp_href' => :'String',
91
+ :'pulp_last_updated' => :'DateTime',
92
+ :'content_guard' => :'String',
93
+ :'pulp_created' => :'DateTime',
94
94
  :'repository_version' => :'String',
95
95
  :'registry_path' => :'String',
96
96
  :'remote' => :'String',
@@ -124,16 +124,22 @@ module PulpContainerClient
124
124
  h[k.to_sym] = v
125
125
  }
126
126
 
127
+ if attributes.key?(:'hidden')
128
+ self.hidden = attributes[:'hidden']
129
+ else
130
+ self.hidden = false
131
+ end
132
+
127
133
  if attributes.key?(:'name')
128
134
  self.name = attributes[:'name']
129
135
  end
130
136
 
131
- if attributes.key?(:'pulp_created')
132
- self.pulp_created = attributes[:'pulp_created']
137
+ if attributes.key?(:'repository')
138
+ self.repository = attributes[:'repository']
133
139
  end
134
140
 
135
- if attributes.key?(:'content_guard')
136
- self.content_guard = attributes[:'content_guard']
141
+ if attributes.key?(:'base_path')
142
+ self.base_path = attributes[:'base_path']
137
143
  end
138
144
 
139
145
  if attributes.key?(:'pulp_labels')
@@ -142,26 +148,20 @@ module PulpContainerClient
142
148
  end
143
149
  end
144
150
 
145
- if attributes.key?(:'hidden')
146
- self.hidden = attributes[:'hidden']
147
- else
148
- self.hidden = false
151
+ if attributes.key?(:'pulp_href')
152
+ self.pulp_href = attributes[:'pulp_href']
149
153
  end
150
154
 
151
155
  if attributes.key?(:'pulp_last_updated')
152
156
  self.pulp_last_updated = attributes[:'pulp_last_updated']
153
157
  end
154
158
 
155
- if attributes.key?(:'repository')
156
- self.repository = attributes[:'repository']
157
- end
158
-
159
- if attributes.key?(:'pulp_href')
160
- self.pulp_href = attributes[:'pulp_href']
159
+ if attributes.key?(:'content_guard')
160
+ self.content_guard = attributes[:'content_guard']
161
161
  end
162
162
 
163
- if attributes.key?(:'base_path')
164
- self.base_path = attributes[:'base_path']
163
+ if attributes.key?(:'pulp_created')
164
+ self.pulp_created = attributes[:'pulp_created']
165
165
  end
166
166
 
167
167
  if attributes.key?(:'repository_version')
@@ -217,15 +217,15 @@ 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
- pulp_created == o.pulp_created &&
222
- content_guard == o.content_guard &&
223
- pulp_labels == o.pulp_labels &&
224
220
  hidden == o.hidden &&
225
- pulp_last_updated == o.pulp_last_updated &&
221
+ name == o.name &&
226
222
  repository == o.repository &&
227
- pulp_href == o.pulp_href &&
228
223
  base_path == o.base_path &&
224
+ pulp_labels == o.pulp_labels &&
225
+ pulp_href == o.pulp_href &&
226
+ pulp_last_updated == o.pulp_last_updated &&
227
+ content_guard == o.content_guard &&
228
+ pulp_created == o.pulp_created &&
229
229
  repository_version == o.repository_version &&
230
230
  registry_path == o.registry_path &&
231
231
  remote == o.remote &&
@@ -243,7 +243,7 @@ module PulpContainerClient
243
243
  # Calculates hash code according to all attributes.
244
244
  # @return [Integer] Hash code
245
245
  def hash
246
- [name, pulp_created, content_guard, pulp_labels, hidden, pulp_last_updated, repository, pulp_href, base_path, repository_version, registry_path, remote, namespace, private, description].hash
246
+ [hidden, name, repository, base_path, pulp_labels, pulp_href, pulp_last_updated, content_guard, pulp_created, repository_version, registry_path, remote, namespace, private, description].hash
247
247
  end
248
248
 
249
249
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistribution
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
- attr_accessor :pulp_labels
25
-
26
18
  # Whether this distribution should be shown in the content app.
27
19
  attr_accessor :hidden
28
20
 
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
23
+
29
24
  # The latest RepositoryVersion for this Repository will be served.
30
25
  attr_accessor :repository
31
26
 
32
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\")
33
28
  attr_accessor :base_path
34
29
 
30
+ attr_accessor :pulp_labels
31
+
32
+ # An optional content-guard. If none is specified, a default one will be used.
33
+ attr_accessor :content_guard
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -47,12 +47,12 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'name' => :'name',
51
- :'content_guard' => :'content_guard',
52
- :'pulp_labels' => :'pulp_labels',
53
50
  :'hidden' => :'hidden',
51
+ :'name' => :'name',
54
52
  :'repository' => :'repository',
55
53
  :'base_path' => :'base_path',
54
+ :'pulp_labels' => :'pulp_labels',
55
+ :'content_guard' => :'content_guard',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -63,12 +63,12 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'name' => :'String',
67
- :'content_guard' => :'String',
68
- :'pulp_labels' => :'Hash<String, String>',
69
66
  :'hidden' => :'Boolean',
67
+ :'name' => :'String',
70
68
  :'repository' => :'String',
71
69
  :'base_path' => :'String',
70
+ :'pulp_labels' => :'Hash<String, String>',
71
+ :'content_guard' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,26 +99,16 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
104
- end
105
-
106
- if attributes.key?(:'content_guard')
107
- self.content_guard = attributes[:'content_guard']
108
- end
109
-
110
- if attributes.key?(:'pulp_labels')
111
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
112
- self.pulp_labels = value
113
- end
114
- end
115
-
116
102
  if attributes.key?(:'hidden')
117
103
  self.hidden = attributes[:'hidden']
118
104
  else
119
105
  self.hidden = false
120
106
  end
121
107
 
108
+ if attributes.key?(:'name')
109
+ self.name = attributes[:'name']
110
+ end
111
+
122
112
  if attributes.key?(:'repository')
123
113
  self.repository = attributes[:'repository']
124
114
  end
@@ -127,6 +117,16 @@ module PulpContainerClient
127
117
  self.base_path = attributes[:'base_path']
128
118
  end
129
119
 
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
124
+ end
125
+
126
+ if attributes.key?(:'content_guard')
127
+ self.content_guard = attributes[:'content_guard']
128
+ end
129
+
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -232,12 +232,12 @@ module PulpContainerClient
232
232
  def ==(o)
233
233
  return true if self.equal?(o)
234
234
  self.class == o.class &&
235
- name == o.name &&
236
- content_guard == o.content_guard &&
237
- pulp_labels == o.pulp_labels &&
238
235
  hidden == o.hidden &&
236
+ name == o.name &&
239
237
  repository == o.repository &&
240
238
  base_path == o.base_path &&
239
+ pulp_labels == o.pulp_labels &&
240
+ content_guard == o.content_guard &&
241
241
  remote == o.remote &&
242
242
  distributions == o.distributions &&
243
243
  private == o.private &&
@@ -253,7 +253,7 @@ module PulpContainerClient
253
253
  # Calculates hash code according to all attributes.
254
254
  # @return [Integer] Hash code
255
255
  def hash
256
- [name, content_guard, pulp_labels, hidden, repository, base_path, remote, distributions, private, description].hash
256
+ [hidden, name, repository, base_path, pulp_labels, content_guard, remote, distributions, private, description].hash
257
257
  end
258
258
 
259
259
  # Builds the object from hash
@@ -15,30 +15,30 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistributionResponse
18
+ # Whether this distribution should be shown in the content app.
19
+ attr_accessor :hidden
20
+
18
21
  # A unique name. Ex, `rawhide` and `stable`.
19
22
  attr_accessor :name
20
23
 
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
24
+ # The latest RepositoryVersion for this Repository will be served.
25
+ attr_accessor :repository
23
26
 
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
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
26
29
 
27
30
  attr_accessor :pulp_labels
28
31
 
29
- # Whether this distribution should be shown in the content app.
30
- attr_accessor :hidden
32
+ attr_accessor :pulp_href
31
33
 
32
34
  # 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.
33
35
  attr_accessor :pulp_last_updated
34
36
 
35
- # The latest RepositoryVersion for this Repository will be served.
36
- attr_accessor :repository
37
-
38
- attr_accessor :pulp_href
37
+ # An optional content-guard. If none is specified, a default one will be used.
38
+ attr_accessor :content_guard
39
39
 
40
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
41
- attr_accessor :base_path
40
+ # Timestamp of creation.
41
+ attr_accessor :pulp_created
42
42
 
43
43
  # Remote that can be used to fetch content when using pull-through caching.
44
44
  attr_accessor :remote
@@ -58,15 +58,15 @@ module PulpContainerClient
58
58
  # Attribute mapping from ruby-style variable name to JSON key.
59
59
  def self.attribute_map
60
60
  {
61
- :'name' => :'name',
62
- :'pulp_created' => :'pulp_created',
63
- :'content_guard' => :'content_guard',
64
- :'pulp_labels' => :'pulp_labels',
65
61
  :'hidden' => :'hidden',
66
- :'pulp_last_updated' => :'pulp_last_updated',
62
+ :'name' => :'name',
67
63
  :'repository' => :'repository',
68
- :'pulp_href' => :'pulp_href',
69
64
  :'base_path' => :'base_path',
65
+ :'pulp_labels' => :'pulp_labels',
66
+ :'pulp_href' => :'pulp_href',
67
+ :'pulp_last_updated' => :'pulp_last_updated',
68
+ :'content_guard' => :'content_guard',
69
+ :'pulp_created' => :'pulp_created',
70
70
  :'remote' => :'remote',
71
71
  :'distributions' => :'distributions',
72
72
  :'namespace' => :'namespace',
@@ -78,15 +78,15 @@ module PulpContainerClient
78
78
  # Attribute type mapping.
79
79
  def self.openapi_types
80
80
  {
81
- :'name' => :'String',
82
- :'pulp_created' => :'DateTime',
83
- :'content_guard' => :'String',
84
- :'pulp_labels' => :'Hash<String, String>',
85
81
  :'hidden' => :'Boolean',
86
- :'pulp_last_updated' => :'DateTime',
82
+ :'name' => :'String',
87
83
  :'repository' => :'String',
88
- :'pulp_href' => :'String',
89
84
  :'base_path' => :'String',
85
+ :'pulp_labels' => :'Hash<String, String>',
86
+ :'pulp_href' => :'String',
87
+ :'pulp_last_updated' => :'DateTime',
88
+ :'content_guard' => :'String',
89
+ :'pulp_created' => :'DateTime',
90
90
  :'remote' => :'String',
91
91
  :'distributions' => :'Array<String>',
92
92
  :'namespace' => :'String',
@@ -118,16 +118,22 @@ module PulpContainerClient
118
118
  h[k.to_sym] = v
119
119
  }
120
120
 
121
+ if attributes.key?(:'hidden')
122
+ self.hidden = attributes[:'hidden']
123
+ else
124
+ self.hidden = false
125
+ end
126
+
121
127
  if attributes.key?(:'name')
122
128
  self.name = attributes[:'name']
123
129
  end
124
130
 
125
- if attributes.key?(:'pulp_created')
126
- self.pulp_created = attributes[:'pulp_created']
131
+ if attributes.key?(:'repository')
132
+ self.repository = attributes[:'repository']
127
133
  end
128
134
 
129
- if attributes.key?(:'content_guard')
130
- self.content_guard = attributes[:'content_guard']
135
+ if attributes.key?(:'base_path')
136
+ self.base_path = attributes[:'base_path']
131
137
  end
132
138
 
133
139
  if attributes.key?(:'pulp_labels')
@@ -136,26 +142,20 @@ module PulpContainerClient
136
142
  end
137
143
  end
138
144
 
139
- if attributes.key?(:'hidden')
140
- self.hidden = attributes[:'hidden']
141
- else
142
- self.hidden = false
145
+ if attributes.key?(:'pulp_href')
146
+ self.pulp_href = attributes[:'pulp_href']
143
147
  end
144
148
 
145
149
  if attributes.key?(:'pulp_last_updated')
146
150
  self.pulp_last_updated = attributes[:'pulp_last_updated']
147
151
  end
148
152
 
149
- if attributes.key?(:'repository')
150
- self.repository = attributes[:'repository']
151
- end
152
-
153
- if attributes.key?(:'pulp_href')
154
- self.pulp_href = attributes[:'pulp_href']
153
+ if attributes.key?(:'content_guard')
154
+ self.content_guard = attributes[:'content_guard']
155
155
  end
156
156
 
157
- if attributes.key?(:'base_path')
158
- self.base_path = attributes[:'base_path']
157
+ if attributes.key?(:'pulp_created')
158
+ self.pulp_created = attributes[:'pulp_created']
159
159
  end
160
160
 
161
161
  if attributes.key?(:'remote')
@@ -214,15 +214,15 @@ module PulpContainerClient
214
214
  def ==(o)
215
215
  return true if self.equal?(o)
216
216
  self.class == o.class &&
217
- name == o.name &&
218
- pulp_created == o.pulp_created &&
219
- content_guard == o.content_guard &&
220
- pulp_labels == o.pulp_labels &&
221
217
  hidden == o.hidden &&
222
- pulp_last_updated == o.pulp_last_updated &&
218
+ name == o.name &&
223
219
  repository == o.repository &&
224
- pulp_href == o.pulp_href &&
225
220
  base_path == o.base_path &&
221
+ pulp_labels == o.pulp_labels &&
222
+ pulp_href == o.pulp_href &&
223
+ pulp_last_updated == o.pulp_last_updated &&
224
+ content_guard == o.content_guard &&
225
+ pulp_created == o.pulp_created &&
226
226
  remote == o.remote &&
227
227
  distributions == o.distributions &&
228
228
  namespace == o.namespace &&
@@ -239,7 +239,7 @@ module PulpContainerClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [name, pulp_created, content_guard, pulp_labels, hidden, pulp_last_updated, repository, pulp_href, base_path, remote, distributions, namespace, private, description].hash
242
+ [hidden, name, repository, base_path, pulp_labels, pulp_href, pulp_last_updated, content_guard, pulp_created, remote, distributions, namespace, private, description].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -21,22 +21,22 @@ module PulpContainerClient
21
21
  # A reference to an associated signing service.
22
22
  attr_accessor :manifest_signing_service
23
23
 
24
- # Retain X versions of the repository. Default is null which retains all versions.
25
- attr_accessor :retain_repo_versions
24
+ # An optional description.
25
+ attr_accessor :description
26
26
 
27
27
  attr_accessor :pulp_labels
28
28
 
29
- # An optional description.
30
- attr_accessor :description
29
+ # Retain X versions of the repository. Default is null which retains all versions.
30
+ attr_accessor :retain_repo_versions
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'name' => :'name',
36
36
  :'manifest_signing_service' => :'manifest_signing_service',
37
- :'retain_repo_versions' => :'retain_repo_versions',
37
+ :'description' => :'description',
38
38
  :'pulp_labels' => :'pulp_labels',
39
- :'description' => :'description'
39
+ :'retain_repo_versions' => :'retain_repo_versions'
40
40
  }
41
41
  end
42
42
 
@@ -45,9 +45,9 @@ module PulpContainerClient
45
45
  {
46
46
  :'name' => :'String',
47
47
  :'manifest_signing_service' => :'String',
48
- :'retain_repo_versions' => :'Integer',
48
+ :'description' => :'String',
49
49
  :'pulp_labels' => :'Hash<String, String>',
50
- :'description' => :'String'
50
+ :'retain_repo_versions' => :'Integer'
51
51
  }
52
52
  end
53
53
 
@@ -55,8 +55,8 @@ module PulpContainerClient
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
57
  :'manifest_signing_service',
58
- :'retain_repo_versions',
59
- :'description'
58
+ :'description',
59
+ :'retain_repo_versions'
60
60
  ])
61
61
  end
62
62
 
@@ -83,8 +83,8 @@ module PulpContainerClient
83
83
  self.manifest_signing_service = attributes[:'manifest_signing_service']
84
84
  end
85
85
 
86
- if attributes.key?(:'retain_repo_versions')
87
- self.retain_repo_versions = attributes[:'retain_repo_versions']
86
+ if attributes.key?(:'description')
87
+ self.description = attributes[:'description']
88
88
  end
89
89
 
90
90
  if attributes.key?(:'pulp_labels')
@@ -93,8 +93,8 @@ module PulpContainerClient
93
93
  end
94
94
  end
95
95
 
96
- if attributes.key?(:'description')
97
- self.description = attributes[:'description']
96
+ if attributes.key?(:'retain_repo_versions')
97
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
98
98
  end
99
99
  end
100
100
 
@@ -110,14 +110,14 @@ module PulpContainerClient
110
110
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
111
111
  end
112
112
 
113
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
- end
116
-
117
113
  if !@description.nil? && @description.to_s.length < 1
118
114
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
115
  end
120
116
 
117
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
119
+ end
120
+
121
121
  invalid_properties
122
122
  end
123
123
 
@@ -126,8 +126,8 @@ module PulpContainerClient
126
126
  def valid?
127
127
  return false if @name.nil?
128
128
  return false if @name.to_s.length < 1
129
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
130
129
  return false if !@description.nil? && @description.to_s.length < 1
130
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
@@ -145,16 +145,6 @@ module PulpContainerClient
145
145
  @name = name
146
146
  end
147
147
 
148
- # Custom attribute writer method with validation
149
- # @param [Object] retain_repo_versions Value to be assigned
150
- def retain_repo_versions=(retain_repo_versions)
151
- if !retain_repo_versions.nil? && retain_repo_versions < 1
152
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
153
- end
154
-
155
- @retain_repo_versions = retain_repo_versions
156
- end
157
-
158
148
  # Custom attribute writer method with validation
159
149
  # @param [Object] description Value to be assigned
160
150
  def description=(description)
@@ -165,6 +155,16 @@ module PulpContainerClient
165
155
  @description = description
166
156
  end
167
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] retain_repo_versions Value to be assigned
160
+ def retain_repo_versions=(retain_repo_versions)
161
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
162
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
163
+ end
164
+
165
+ @retain_repo_versions = retain_repo_versions
166
+ end
167
+
168
168
  # Checks equality by comparing each attribute.
169
169
  # @param [Object] Object to be compared
170
170
  def ==(o)
@@ -172,9 +172,9 @@ module PulpContainerClient
172
172
  self.class == o.class &&
173
173
  name == o.name &&
174
174
  manifest_signing_service == o.manifest_signing_service &&
175
- retain_repo_versions == o.retain_repo_versions &&
175
+ description == o.description &&
176
176
  pulp_labels == o.pulp_labels &&
177
- description == o.description
177
+ retain_repo_versions == o.retain_repo_versions
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
- [name, manifest_signing_service, retain_repo_versions, pulp_labels, description].hash
189
+ [name, manifest_signing_service, description, pulp_labels, retain_repo_versions].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash