pulp_container_client 2.19.13 → 2.19.15

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