pulp_container_client 2.23.0 → 2.24.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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  13. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +60 -60
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +70 -70
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +60 -60
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +41 -41
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +62 -62
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +51 -51
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +51 -51
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  25. data/spec/models/container_container_distribution_spec.rb +5 -5
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  28. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  29. data/spec/models/container_container_push_repository_spec.rb +5 -5
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  33. metadata +2 -2
@@ -16,36 +16,36 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
19
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
20
- attr_accessor :base_path
21
-
22
19
  attr_accessor :pulp_labels
23
20
 
24
- # A unique name. Ex, `rawhide` and `stable`.
25
- attr_accessor :name
26
-
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
- # The Pulp Resource Name (PRN).
31
- attr_accessor :prn
21
+ # The latest RepositoryVersion for this Repository will be served.
22
+ attr_accessor :repository
32
23
 
33
- attr_accessor :pulp_href
24
+ # Timestamp of creation.
25
+ attr_accessor :pulp_created
34
26
 
35
27
  # An optional content-guard. If none is specified, a default one will be used.
36
28
  attr_accessor :content_guard
37
29
 
30
+ # The Pulp Resource Name (PRN).
31
+ attr_accessor :prn
32
+
38
33
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
39
34
  attr_accessor :no_content_change_since
40
35
 
36
+ # Whether this distribution should be shown in the content app.
37
+ attr_accessor :hidden
38
+
39
+ attr_accessor :pulp_href
40
+
41
+ # A unique name. Ex, `rawhide` and `stable`.
42
+ attr_accessor :name
43
+
41
44
  # 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.
42
45
  attr_accessor :pulp_last_updated
43
46
 
44
- # Timestamp of creation.
45
- attr_accessor :pulp_created
46
-
47
- # The latest RepositoryVersion for this Repository will be served.
48
- attr_accessor :repository
47
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
48
+ attr_accessor :base_path
49
49
 
50
50
  # Remote that can be used to fetch content when using pull-through caching.
51
51
  attr_accessor :remote
@@ -65,17 +65,17 @@ module PulpContainerClient
65
65
  # Attribute mapping from ruby-style variable name to JSON key.
66
66
  def self.attribute_map
67
67
  {
68
- :'base_path' => :'base_path',
69
68
  :'pulp_labels' => :'pulp_labels',
70
- :'name' => :'name',
71
- :'hidden' => :'hidden',
72
- :'prn' => :'prn',
73
- :'pulp_href' => :'pulp_href',
69
+ :'repository' => :'repository',
70
+ :'pulp_created' => :'pulp_created',
74
71
  :'content_guard' => :'content_guard',
72
+ :'prn' => :'prn',
75
73
  :'no_content_change_since' => :'no_content_change_since',
74
+ :'hidden' => :'hidden',
75
+ :'pulp_href' => :'pulp_href',
76
+ :'name' => :'name',
76
77
  :'pulp_last_updated' => :'pulp_last_updated',
77
- :'pulp_created' => :'pulp_created',
78
- :'repository' => :'repository',
78
+ :'base_path' => :'base_path',
79
79
  :'remote' => :'remote',
80
80
  :'distributions' => :'distributions',
81
81
  :'namespace' => :'namespace',
@@ -92,17 +92,17 @@ module PulpContainerClient
92
92
  # Attribute type mapping.
93
93
  def self.openapi_types
94
94
  {
95
- :'base_path' => :'String',
96
95
  :'pulp_labels' => :'Hash<String, String>',
97
- :'name' => :'String',
98
- :'hidden' => :'Boolean',
99
- :'prn' => :'String',
100
- :'pulp_href' => :'String',
96
+ :'repository' => :'String',
97
+ :'pulp_created' => :'Time',
101
98
  :'content_guard' => :'String',
99
+ :'prn' => :'String',
102
100
  :'no_content_change_since' => :'String',
101
+ :'hidden' => :'Boolean',
102
+ :'pulp_href' => :'String',
103
+ :'name' => :'String',
103
104
  :'pulp_last_updated' => :'Time',
104
- :'pulp_created' => :'Time',
105
- :'repository' => :'String',
105
+ :'base_path' => :'String',
106
106
  :'remote' => :'String',
107
107
  :'distributions' => :'Array<String>',
108
108
  :'namespace' => :'String',
@@ -134,56 +134,56 @@ module PulpContainerClient
134
134
  h[k.to_sym] = v
135
135
  }
136
136
 
137
- if attributes.key?(:'base_path')
138
- self.base_path = attributes[:'base_path']
139
- else
140
- self.base_path = nil
141
- end
142
-
143
137
  if attributes.key?(:'pulp_labels')
144
138
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
145
139
  self.pulp_labels = value
146
140
  end
147
141
  end
148
142
 
149
- if attributes.key?(:'name')
150
- self.name = attributes[:'name']
151
- else
152
- self.name = nil
143
+ if attributes.key?(:'repository')
144
+ self.repository = attributes[:'repository']
153
145
  end
154
146
 
155
- if attributes.key?(:'hidden')
156
- self.hidden = attributes[:'hidden']
157
- else
158
- self.hidden = false
147
+ if attributes.key?(:'pulp_created')
148
+ self.pulp_created = attributes[:'pulp_created']
149
+ end
150
+
151
+ if attributes.key?(:'content_guard')
152
+ self.content_guard = attributes[:'content_guard']
159
153
  end
160
154
 
161
155
  if attributes.key?(:'prn')
162
156
  self.prn = attributes[:'prn']
163
157
  end
164
158
 
165
- if attributes.key?(:'pulp_href')
166
- self.pulp_href = attributes[:'pulp_href']
159
+ if attributes.key?(:'no_content_change_since')
160
+ self.no_content_change_since = attributes[:'no_content_change_since']
167
161
  end
168
162
 
169
- if attributes.key?(:'content_guard')
170
- self.content_guard = attributes[:'content_guard']
163
+ if attributes.key?(:'hidden')
164
+ self.hidden = attributes[:'hidden']
165
+ else
166
+ self.hidden = false
171
167
  end
172
168
 
173
- if attributes.key?(:'no_content_change_since')
174
- self.no_content_change_since = attributes[:'no_content_change_since']
169
+ if attributes.key?(:'pulp_href')
170
+ self.pulp_href = attributes[:'pulp_href']
175
171
  end
176
172
 
177
- if attributes.key?(:'pulp_last_updated')
178
- self.pulp_last_updated = attributes[:'pulp_last_updated']
173
+ if attributes.key?(:'name')
174
+ self.name = attributes[:'name']
175
+ else
176
+ self.name = nil
179
177
  end
180
178
 
181
- if attributes.key?(:'pulp_created')
182
- self.pulp_created = attributes[:'pulp_created']
179
+ if attributes.key?(:'pulp_last_updated')
180
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
183
181
  end
184
182
 
185
- if attributes.key?(:'repository')
186
- self.repository = attributes[:'repository']
183
+ if attributes.key?(:'base_path')
184
+ self.base_path = attributes[:'base_path']
185
+ else
186
+ self.base_path = nil
187
187
  end
188
188
 
189
189
  if attributes.key?(:'remote')
@@ -216,14 +216,14 @@ module PulpContainerClient
216
216
  def list_invalid_properties
217
217
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
218
218
  invalid_properties = Array.new
219
- if @base_path.nil?
220
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
221
- end
222
-
223
219
  if @name.nil?
224
220
  invalid_properties.push('invalid value for "name", name cannot be nil.')
225
221
  end
226
222
 
223
+ if @base_path.nil?
224
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
225
+ end
226
+
227
227
  if @remote.nil?
228
228
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
229
229
  end
@@ -235,8 +235,8 @@ module PulpContainerClient
235
235
  # @return true if the model is valid
236
236
  def valid?
237
237
  warn '[DEPRECATED] the `valid?` method is obsolete'
238
- return false if @base_path.nil?
239
238
  return false if @name.nil?
239
+ return false if @base_path.nil?
240
240
  return false if @remote.nil?
241
241
  true
242
242
  end
@@ -246,17 +246,17 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
- base_path == o.base_path &&
250
249
  pulp_labels == o.pulp_labels &&
251
- name == o.name &&
252
- hidden == o.hidden &&
253
- prn == o.prn &&
254
- pulp_href == o.pulp_href &&
250
+ repository == o.repository &&
251
+ pulp_created == o.pulp_created &&
255
252
  content_guard == o.content_guard &&
253
+ prn == o.prn &&
256
254
  no_content_change_since == o.no_content_change_since &&
255
+ hidden == o.hidden &&
256
+ pulp_href == o.pulp_href &&
257
+ name == o.name &&
257
258
  pulp_last_updated == o.pulp_last_updated &&
258
- pulp_created == o.pulp_created &&
259
- repository == o.repository &&
259
+ base_path == o.base_path &&
260
260
  remote == o.remote &&
261
261
  distributions == o.distributions &&
262
262
  namespace == o.namespace &&
@@ -273,7 +273,7 @@ module PulpContainerClient
273
273
  # Calculates hash code according to all attributes.
274
274
  # @return [Integer] Hash code
275
275
  def hash
276
- [base_path, pulp_labels, name, hidden, prn, pulp_href, content_guard, no_content_change_since, pulp_last_updated, pulp_created, repository, remote, distributions, namespace, private, description].hash
276
+ [pulp_labels, repository, pulp_created, content_guard, prn, no_content_change_since, hidden, pulp_href, name, pulp_last_updated, base_path, remote, distributions, namespace, private, description].hash
277
277
  end
278
278
 
279
279
  # Builds the object from hash
@@ -16,12 +16,6 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- # Retain X versions of the repository. Default is null which retains all versions.
20
- attr_accessor :retain_repo_versions
21
-
22
- # A reference to an associated signing service.
23
- attr_accessor :manifest_signing_service
24
-
25
19
  attr_accessor :pulp_labels
26
20
 
27
21
  # An optional description.
@@ -30,14 +24,20 @@ module PulpContainerClient
30
24
  # A unique name for this repository.
31
25
  attr_accessor :name
32
26
 
27
+ # Retain X versions of the repository. Default is null which retains all versions.
28
+ attr_accessor :retain_repo_versions
29
+
30
+ # A reference to an associated signing service.
31
+ attr_accessor :manifest_signing_service
32
+
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'retain_repo_versions' => :'retain_repo_versions',
37
- :'manifest_signing_service' => :'manifest_signing_service',
38
36
  :'pulp_labels' => :'pulp_labels',
39
37
  :'description' => :'description',
40
- :'name' => :'name'
38
+ :'name' => :'name',
39
+ :'retain_repo_versions' => :'retain_repo_versions',
40
+ :'manifest_signing_service' => :'manifest_signing_service'
41
41
  }
42
42
  end
43
43
 
@@ -49,20 +49,20 @@ module PulpContainerClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'retain_repo_versions' => :'Integer',
53
- :'manifest_signing_service' => :'String',
54
52
  :'pulp_labels' => :'Hash<String, String>',
55
53
  :'description' => :'String',
56
- :'name' => :'String'
54
+ :'name' => :'String',
55
+ :'retain_repo_versions' => :'Integer',
56
+ :'manifest_signing_service' => :'String'
57
57
  }
58
58
  end
59
59
 
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
- :'retain_repo_versions',
64
- :'manifest_signing_service',
65
63
  :'description',
64
+ :'retain_repo_versions',
65
+ :'manifest_signing_service'
66
66
  ])
67
67
  end
68
68
 
@@ -81,14 +81,6 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'retain_repo_versions')
85
- self.retain_repo_versions = attributes[:'retain_repo_versions']
86
- end
87
-
88
- if attributes.key?(:'manifest_signing_service')
89
- self.manifest_signing_service = attributes[:'manifest_signing_service']
90
- end
91
-
92
84
  if attributes.key?(:'pulp_labels')
93
85
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
94
86
  self.pulp_labels = value
@@ -104,6 +96,14 @@ module PulpContainerClient
104
96
  else
105
97
  self.name = nil
106
98
  end
99
+
100
+ if attributes.key?(:'retain_repo_versions')
101
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
102
+ end
103
+
104
+ if attributes.key?(:'manifest_signing_service')
105
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
106
+ end
107
107
  end
108
108
 
109
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,10 +111,6 @@ module PulpContainerClient
111
111
  def list_invalid_properties
112
112
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
113
  invalid_properties = Array.new
114
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
115
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
116
- end
117
-
118
114
  if !@description.nil? && @description.to_s.length < 1
119
115
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
120
116
  end
@@ -127,6 +123,10 @@ module PulpContainerClient
127
123
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
128
124
  end
129
125
 
126
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
+ end
129
+
130
130
  invalid_properties
131
131
  end
132
132
 
@@ -134,23 +134,13 @@ module PulpContainerClient
134
134
  # @return true if the model is valid
135
135
  def valid?
136
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
138
137
  return false if !@description.nil? && @description.to_s.length < 1
139
138
  return false if @name.nil?
140
139
  return false if @name.to_s.length < 1
140
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
141
  true
142
142
  end
143
143
 
144
- # Custom attribute writer method with validation
145
- # @param [Object] retain_repo_versions Value to be assigned
146
- def retain_repo_versions=(retain_repo_versions)
147
- if !retain_repo_versions.nil? && retain_repo_versions < 1
148
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
149
- end
150
-
151
- @retain_repo_versions = retain_repo_versions
152
- end
153
-
154
144
  # Custom attribute writer method with validation
155
145
  # @param [Object] description Value to be assigned
156
146
  def description=(description)
@@ -175,16 +165,26 @@ module PulpContainerClient
175
165
  @name = name
176
166
  end
177
167
 
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] retain_repo_versions Value to be assigned
170
+ def retain_repo_versions=(retain_repo_versions)
171
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
172
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
173
+ end
174
+
175
+ @retain_repo_versions = retain_repo_versions
176
+ end
177
+
178
178
  # Checks equality by comparing each attribute.
179
179
  # @param [Object] Object to be compared
180
180
  def ==(o)
181
181
  return true if self.equal?(o)
182
182
  self.class == o.class &&
183
- retain_repo_versions == o.retain_repo_versions &&
184
- manifest_signing_service == o.manifest_signing_service &&
185
183
  pulp_labels == o.pulp_labels &&
186
184
  description == o.description &&
187
- name == o.name
185
+ name == o.name &&
186
+ retain_repo_versions == o.retain_repo_versions &&
187
+ manifest_signing_service == o.manifest_signing_service
188
188
  end
189
189
 
190
190
  # @see the `==` method
@@ -196,7 +196,7 @@ module PulpContainerClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [retain_repo_versions, manifest_signing_service, pulp_labels, description, name].hash
199
+ [pulp_labels, description, name, retain_repo_versions, manifest_signing_service].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash
@@ -16,49 +16,49 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- # Retain X versions of the repository. Default is null which retains all versions.
20
- attr_accessor :retain_repo_versions
21
-
22
- # A reference to an associated signing service.
23
- attr_accessor :manifest_signing_service
19
+ attr_accessor :pulp_labels
24
20
 
25
- attr_accessor :versions_href
21
+ # Timestamp of creation.
22
+ attr_accessor :pulp_created
26
23
 
27
- attr_accessor :pulp_labels
24
+ # The Pulp Resource Name (PRN).
25
+ attr_accessor :prn
28
26
 
29
27
  # An optional description.
30
28
  attr_accessor :description
31
29
 
32
30
  attr_accessor :latest_version_href
33
31
 
34
- # The Pulp Resource Name (PRN).
35
- attr_accessor :prn
32
+ attr_accessor :versions_href
36
33
 
37
34
  attr_accessor :pulp_href
38
35
 
36
+ # A unique name for this repository.
37
+ attr_accessor :name
38
+
39
+ # Retain X versions of the repository. Default is null which retains all versions.
40
+ attr_accessor :retain_repo_versions
41
+
39
42
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
40
43
  attr_accessor :pulp_last_updated
41
44
 
42
- # Timestamp of creation.
43
- attr_accessor :pulp_created
44
-
45
- # A unique name for this repository.
46
- attr_accessor :name
45
+ # A reference to an associated signing service.
46
+ attr_accessor :manifest_signing_service
47
47
 
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'retain_repo_versions' => :'retain_repo_versions',
52
- :'manifest_signing_service' => :'manifest_signing_service',
53
- :'versions_href' => :'versions_href',
54
51
  :'pulp_labels' => :'pulp_labels',
52
+ :'pulp_created' => :'pulp_created',
53
+ :'prn' => :'prn',
55
54
  :'description' => :'description',
56
55
  :'latest_version_href' => :'latest_version_href',
57
- :'prn' => :'prn',
56
+ :'versions_href' => :'versions_href',
58
57
  :'pulp_href' => :'pulp_href',
58
+ :'name' => :'name',
59
+ :'retain_repo_versions' => :'retain_repo_versions',
59
60
  :'pulp_last_updated' => :'pulp_last_updated',
60
- :'pulp_created' => :'pulp_created',
61
- :'name' => :'name'
61
+ :'manifest_signing_service' => :'manifest_signing_service'
62
62
  }
63
63
  end
64
64
 
@@ -70,26 +70,26 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'retain_repo_versions' => :'Integer',
74
- :'manifest_signing_service' => :'String',
75
- :'versions_href' => :'String',
76
73
  :'pulp_labels' => :'Hash<String, String>',
74
+ :'pulp_created' => :'Time',
75
+ :'prn' => :'String',
77
76
  :'description' => :'String',
78
77
  :'latest_version_href' => :'String',
79
- :'prn' => :'String',
78
+ :'versions_href' => :'String',
80
79
  :'pulp_href' => :'String',
80
+ :'name' => :'String',
81
+ :'retain_repo_versions' => :'Integer',
81
82
  :'pulp_last_updated' => :'Time',
82
- :'pulp_created' => :'Time',
83
- :'name' => :'String'
83
+ :'manifest_signing_service' => :'String'
84
84
  }
85
85
  end
86
86
 
87
87
  # List of attributes with nullable: true
88
88
  def self.openapi_nullable
89
89
  Set.new([
90
- :'retain_repo_versions',
91
- :'manifest_signing_service',
92
90
  :'description',
91
+ :'retain_repo_versions',
92
+ :'manifest_signing_service'
93
93
  ])
94
94
  end
95
95
 
@@ -108,24 +108,20 @@ module PulpContainerClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'retain_repo_versions')
112
- self.retain_repo_versions = attributes[:'retain_repo_versions']
113
- end
114
-
115
- if attributes.key?(:'manifest_signing_service')
116
- self.manifest_signing_service = attributes[:'manifest_signing_service']
117
- end
118
-
119
- if attributes.key?(:'versions_href')
120
- self.versions_href = attributes[:'versions_href']
121
- end
122
-
123
111
  if attributes.key?(:'pulp_labels')
124
112
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
125
113
  self.pulp_labels = value
126
114
  end
127
115
  end
128
116
 
117
+ if attributes.key?(:'pulp_created')
118
+ self.pulp_created = attributes[:'pulp_created']
119
+ end
120
+
121
+ if attributes.key?(:'prn')
122
+ self.prn = attributes[:'prn']
123
+ end
124
+
129
125
  if attributes.key?(:'description')
130
126
  self.description = attributes[:'description']
131
127
  end
@@ -134,27 +130,31 @@ module PulpContainerClient
134
130
  self.latest_version_href = attributes[:'latest_version_href']
135
131
  end
136
132
 
137
- if attributes.key?(:'prn')
138
- self.prn = attributes[:'prn']
133
+ if attributes.key?(:'versions_href')
134
+ self.versions_href = attributes[:'versions_href']
139
135
  end
140
136
 
141
137
  if attributes.key?(:'pulp_href')
142
138
  self.pulp_href = attributes[:'pulp_href']
143
139
  end
144
140
 
145
- if attributes.key?(:'pulp_last_updated')
146
- self.pulp_last_updated = attributes[:'pulp_last_updated']
147
- end
148
-
149
- if attributes.key?(:'pulp_created')
150
- self.pulp_created = attributes[:'pulp_created']
151
- end
152
-
153
141
  if attributes.key?(:'name')
154
142
  self.name = attributes[:'name']
155
143
  else
156
144
  self.name = nil
157
145
  end
146
+
147
+ if attributes.key?(:'retain_repo_versions')
148
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
149
+ end
150
+
151
+ if attributes.key?(:'pulp_last_updated')
152
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
153
+ end
154
+
155
+ if attributes.key?(:'manifest_signing_service')
156
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
157
+ end
158
158
  end
159
159
 
160
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,14 +162,14 @@ module PulpContainerClient
162
162
  def list_invalid_properties
163
163
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
164
164
  invalid_properties = Array.new
165
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
166
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
167
- end
168
-
169
165
  if @name.nil?
170
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
171
167
  end
172
168
 
169
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
+ end
172
+
173
173
  invalid_properties
174
174
  end
175
175
 
@@ -177,8 +177,8 @@ module PulpContainerClient
177
177
  # @return true if the model is valid
178
178
  def valid?
179
179
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
181
180
  return false if @name.nil?
181
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
182
182
  true
183
183
  end
184
184
 
@@ -197,17 +197,17 @@ module PulpContainerClient
197
197
  def ==(o)
198
198
  return true if self.equal?(o)
199
199
  self.class == o.class &&
200
- retain_repo_versions == o.retain_repo_versions &&
201
- manifest_signing_service == o.manifest_signing_service &&
202
- versions_href == o.versions_href &&
203
200
  pulp_labels == o.pulp_labels &&
201
+ pulp_created == o.pulp_created &&
202
+ prn == o.prn &&
204
203
  description == o.description &&
205
204
  latest_version_href == o.latest_version_href &&
206
- prn == o.prn &&
205
+ versions_href == o.versions_href &&
207
206
  pulp_href == o.pulp_href &&
207
+ name == o.name &&
208
+ retain_repo_versions == o.retain_repo_versions &&
208
209
  pulp_last_updated == o.pulp_last_updated &&
209
- pulp_created == o.pulp_created &&
210
- name == o.name
210
+ manifest_signing_service == o.manifest_signing_service
211
211
  end
212
212
 
213
213
  # @see the `==` method
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [retain_repo_versions, manifest_signing_service, versions_href, pulp_labels, description, latest_version_href, prn, pulp_href, pulp_last_updated, pulp_created, name].hash
222
+ [pulp_labels, pulp_created, prn, description, latest_version_href, versions_href, pulp_href, name, retain_repo_versions, pulp_last_updated, manifest_signing_service].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash