pulp_container_client 2.22.9 → 2.22.10

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