pulp_container_client 2.19.11 → 2.19.13

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 +9 -9
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -9
  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 +29 -29
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +29 -29
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +39 -39
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +35 -35
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +29 -29
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +29 -29
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +8 -8
  23. data/spec/models/container_container_distribution_spec.rb +6 -6
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_push_repository_response_spec.rb +8 -8
  27. data/spec/models/container_container_push_repository_spec.rb +3 -3
  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 +3 -3
  31. metadata +61 -61
@@ -15,16 +15,10 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistribution
18
- attr_accessor :pulp_labels
19
-
20
- # An optional content-guard. If none is specified, a default one will be used.
21
- attr_accessor :content_guard
22
-
23
18
  # Whether this distribution should be shown in the content app.
24
19
  attr_accessor :hidden
25
20
 
26
- # The latest RepositoryVersion for this Repository will be served.
27
- attr_accessor :repository
21
+ attr_accessor :pulp_labels
28
22
 
29
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\")
30
24
  attr_accessor :base_path
@@ -32,6 +26,12 @@ module PulpContainerClient
32
26
  # A unique name. Ex, `rawhide` and `stable`.
33
27
  attr_accessor :name
34
28
 
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
31
+
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
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
- :'pulp_labels' => :'pulp_labels',
51
- :'content_guard' => :'content_guard',
52
50
  :'hidden' => :'hidden',
53
- :'repository' => :'repository',
51
+ :'pulp_labels' => :'pulp_labels',
54
52
  :'base_path' => :'base_path',
55
53
  :'name' => :'name',
54
+ :'content_guard' => :'content_guard',
55
+ :'repository' => :'repository',
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
- :'pulp_labels' => :'Hash<String, String>',
67
- :'content_guard' => :'String',
68
66
  :'hidden' => :'Boolean',
69
- :'repository' => :'String',
67
+ :'pulp_labels' => :'Hash<String, String>',
70
68
  :'base_path' => :'String',
71
69
  :'name' => :'String',
70
+ :'content_guard' => :'String',
71
+ :'repository' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,24 +99,16 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'pulp_labels')
103
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
- self.pulp_labels = value
105
- end
106
- end
107
-
108
- if attributes.key?(:'content_guard')
109
- self.content_guard = attributes[:'content_guard']
110
- end
111
-
112
102
  if attributes.key?(:'hidden')
113
103
  self.hidden = attributes[:'hidden']
114
104
  else
115
105
  self.hidden = false
116
106
  end
117
107
 
118
- if attributes.key?(:'repository')
119
- self.repository = attributes[:'repository']
108
+ if attributes.key?(:'pulp_labels')
109
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
+ self.pulp_labels = value
111
+ end
120
112
  end
121
113
 
122
114
  if attributes.key?(:'base_path')
@@ -127,6 +119,14 @@ module PulpContainerClient
127
119
  self.name = attributes[:'name']
128
120
  end
129
121
 
122
+ if attributes.key?(:'content_guard')
123
+ self.content_guard = attributes[:'content_guard']
124
+ end
125
+
126
+ if attributes.key?(:'repository')
127
+ self.repository = attributes[:'repository']
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
- pulp_labels == o.pulp_labels &&
236
- content_guard == o.content_guard &&
237
235
  hidden == o.hidden &&
238
- repository == o.repository &&
236
+ pulp_labels == o.pulp_labels &&
239
237
  base_path == o.base_path &&
240
238
  name == o.name &&
239
+ content_guard == o.content_guard &&
240
+ repository == o.repository &&
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
- [pulp_labels, content_guard, hidden, repository, base_path, name, remote, distributions, private, description].hash
256
+ [hidden, pulp_labels, base_path, name, content_guard, repository, remote, distributions, private, description].hash
257
257
  end
258
258
 
259
259
  # Builds the object from hash
@@ -15,19 +15,10 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistributionResponse
18
- attr_accessor :pulp_labels
19
-
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
22
-
23
- # An optional content-guard. If none is specified, a default one will be used.
24
- attr_accessor :content_guard
25
-
26
18
  # Whether this distribution should be shown in the content app.
27
19
  attr_accessor :hidden
28
20
 
29
- # The latest RepositoryVersion for this Repository will be served.
30
- attr_accessor :repository
21
+ attr_accessor :pulp_labels
31
22
 
32
23
  attr_accessor :pulp_href
33
24
 
@@ -37,6 +28,15 @@ module PulpContainerClient
37
28
  # A unique name. Ex, `rawhide` and `stable`.
38
29
  attr_accessor :name
39
30
 
31
+ # An optional content-guard. If none is specified, a default one will be used.
32
+ attr_accessor :content_guard
33
+
34
+ # Timestamp of creation.
35
+ attr_accessor :pulp_created
36
+
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
40
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
41
  attr_accessor :pulp_last_updated
42
42
 
@@ -58,14 +58,14 @@ module PulpContainerClient
58
58
  # Attribute mapping from ruby-style variable name to JSON key.
59
59
  def self.attribute_map
60
60
  {
61
- :'pulp_labels' => :'pulp_labels',
62
- :'pulp_created' => :'pulp_created',
63
- :'content_guard' => :'content_guard',
64
61
  :'hidden' => :'hidden',
65
- :'repository' => :'repository',
62
+ :'pulp_labels' => :'pulp_labels',
66
63
  :'pulp_href' => :'pulp_href',
67
64
  :'base_path' => :'base_path',
68
65
  :'name' => :'name',
66
+ :'content_guard' => :'content_guard',
67
+ :'pulp_created' => :'pulp_created',
68
+ :'repository' => :'repository',
69
69
  :'pulp_last_updated' => :'pulp_last_updated',
70
70
  :'remote' => :'remote',
71
71
  :'distributions' => :'distributions',
@@ -78,14 +78,14 @@ module PulpContainerClient
78
78
  # Attribute type mapping.
79
79
  def self.openapi_types
80
80
  {
81
- :'pulp_labels' => :'Hash<String, String>',
82
- :'pulp_created' => :'DateTime',
83
- :'content_guard' => :'String',
84
81
  :'hidden' => :'Boolean',
85
- :'repository' => :'String',
82
+ :'pulp_labels' => :'Hash<String, String>',
86
83
  :'pulp_href' => :'String',
87
84
  :'base_path' => :'String',
88
85
  :'name' => :'String',
86
+ :'content_guard' => :'String',
87
+ :'pulp_created' => :'DateTime',
88
+ :'repository' => :'String',
89
89
  :'pulp_last_updated' => :'DateTime',
90
90
  :'remote' => :'String',
91
91
  :'distributions' => :'Array<String>',
@@ -118,28 +118,16 @@ module PulpContainerClient
118
118
  h[k.to_sym] = v
119
119
  }
120
120
 
121
- if attributes.key?(:'pulp_labels')
122
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
123
- self.pulp_labels = value
124
- end
125
- end
126
-
127
- if attributes.key?(:'pulp_created')
128
- self.pulp_created = attributes[:'pulp_created']
129
- end
130
-
131
- if attributes.key?(:'content_guard')
132
- self.content_guard = attributes[:'content_guard']
133
- end
134
-
135
121
  if attributes.key?(:'hidden')
136
122
  self.hidden = attributes[:'hidden']
137
123
  else
138
124
  self.hidden = false
139
125
  end
140
126
 
141
- if attributes.key?(:'repository')
142
- self.repository = attributes[:'repository']
127
+ if attributes.key?(:'pulp_labels')
128
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
129
+ self.pulp_labels = value
130
+ end
143
131
  end
144
132
 
145
133
  if attributes.key?(:'pulp_href')
@@ -154,6 +142,18 @@ module PulpContainerClient
154
142
  self.name = attributes[:'name']
155
143
  end
156
144
 
145
+ if attributes.key?(:'content_guard')
146
+ self.content_guard = attributes[:'content_guard']
147
+ end
148
+
149
+ if attributes.key?(:'pulp_created')
150
+ self.pulp_created = attributes[:'pulp_created']
151
+ end
152
+
153
+ if attributes.key?(:'repository')
154
+ self.repository = attributes[:'repository']
155
+ end
156
+
157
157
  if attributes.key?(:'pulp_last_updated')
158
158
  self.pulp_last_updated = attributes[:'pulp_last_updated']
159
159
  end
@@ -214,14 +214,14 @@ module PulpContainerClient
214
214
  def ==(o)
215
215
  return true if self.equal?(o)
216
216
  self.class == o.class &&
217
- pulp_labels == o.pulp_labels &&
218
- pulp_created == o.pulp_created &&
219
- content_guard == o.content_guard &&
220
217
  hidden == o.hidden &&
221
- repository == o.repository &&
218
+ pulp_labels == o.pulp_labels &&
222
219
  pulp_href == o.pulp_href &&
223
220
  base_path == o.base_path &&
224
221
  name == o.name &&
222
+ content_guard == o.content_guard &&
223
+ pulp_created == o.pulp_created &&
224
+ repository == o.repository &&
225
225
  pulp_last_updated == o.pulp_last_updated &&
226
226
  remote == o.remote &&
227
227
  distributions == o.distributions &&
@@ -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
- [pulp_labels, pulp_created, content_guard, hidden, repository, pulp_href, base_path, name, pulp_last_updated, remote, distributions, namespace, private, description].hash
242
+ [hidden, pulp_labels, pulp_href, base_path, name, content_guard, pulp_created, repository, pulp_last_updated, 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
- # A reference to an associated signing service.
21
- attr_accessor :manifest_signing_service
22
-
23
20
  # An optional description.
24
21
  attr_accessor :description
25
22
 
23
+ # Retain X versions of the repository. Default is null which retains all versions.
24
+ attr_accessor :retain_repo_versions
25
+
26
26
  # A unique name for this repository.
27
27
  attr_accessor :name
28
28
 
29
- # Retain X versions of the repository. Default is null which retains all versions.
30
- attr_accessor :retain_repo_versions
29
+ # A reference to an associated signing service.
30
+ attr_accessor :manifest_signing_service
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
- :'manifest_signing_service' => :'manifest_signing_service',
37
36
  :'description' => :'description',
37
+ :'retain_repo_versions' => :'retain_repo_versions',
38
38
  :'name' => :'name',
39
- :'retain_repo_versions' => :'retain_repo_versions'
39
+ :'manifest_signing_service' => :'manifest_signing_service'
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
- :'manifest_signing_service' => :'String',
48
47
  :'description' => :'String',
48
+ :'retain_repo_versions' => :'Integer',
49
49
  :'name' => :'String',
50
- :'retain_repo_versions' => :'Integer'
50
+ :'manifest_signing_service' => :'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
- :'manifest_signing_service',
58
57
  :'description',
59
- :'retain_repo_versions'
58
+ :'retain_repo_versions',
59
+ :'manifest_signing_service'
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?(:'manifest_signing_service')
85
- self.manifest_signing_service = attributes[:'manifest_signing_service']
86
- end
87
-
88
84
  if attributes.key?(:'description')
89
85
  self.description = attributes[:'description']
90
86
  end
91
87
 
88
+ if attributes.key?(:'retain_repo_versions')
89
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
90
+ end
91
+
92
92
  if attributes.key?(:'name')
93
93
  self.name = attributes[:'name']
94
94
  end
95
95
 
96
- if attributes.key?(:'retain_repo_versions')
97
- self.retain_repo_versions = attributes[:'retain_repo_versions']
96
+ if attributes.key?(:'manifest_signing_service')
97
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
98
98
  end
99
99
  end
100
100
 
@@ -106,6 +106,10 @@ module PulpContainerClient
106
106
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
107
107
  end
108
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
+
109
113
  if @name.nil?
110
114
  invalid_properties.push('invalid value for "name", name cannot be nil.')
111
115
  end
@@ -114,10 +118,6 @@ module PulpContainerClient
114
118
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
115
119
  end
116
120
 
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
 
@@ -125,9 +125,9 @@ module PulpContainerClient
125
125
  # @return true if the model is valid
126
126
  def valid?
127
127
  return false if !@description.nil? && @description.to_s.length < 1
128
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
129
  return false if @name.nil?
129
130
  return false if @name.to_s.length < 1
130
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
@@ -141,6 +141,16 @@ module PulpContainerClient
141
141
  @description = description
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
+
144
154
  # Custom attribute writer method with validation
145
155
  # @param [Object] name Value to be assigned
146
156
  def name=(name)
@@ -155,26 +165,16 @@ module PulpContainerClient
155
165
  @name = name
156
166
  end
157
167
 
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)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
173
  pulp_labels == o.pulp_labels &&
174
- manifest_signing_service == o.manifest_signing_service &&
175
174
  description == o.description &&
175
+ retain_repo_versions == o.retain_repo_versions &&
176
176
  name == o.name &&
177
- retain_repo_versions == o.retain_repo_versions
177
+ manifest_signing_service == o.manifest_signing_service
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, manifest_signing_service, description, name, retain_repo_versions].hash
189
+ [pulp_labels, description, retain_repo_versions, name, manifest_signing_service].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -17,43 +17,43 @@ module PulpContainerClient
17
17
  class ContainerContainerPushRepositoryResponse
18
18
  attr_accessor :pulp_labels
19
19
 
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
22
-
23
- attr_accessor :latest_version_href
24
-
25
- # A reference to an associated signing service.
26
- attr_accessor :manifest_signing_service
27
-
28
20
  # An optional description.
29
21
  attr_accessor :description
30
22
 
23
+ # Retain X versions of the repository. Default is null which retains all versions.
24
+ attr_accessor :retain_repo_versions
25
+
31
26
  attr_accessor :pulp_href
32
27
 
28
+ attr_accessor :latest_version_href
29
+
30
+ attr_accessor :versions_href
31
+
33
32
  # A unique name for this repository.
34
33
  attr_accessor :name
35
34
 
36
- # 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.
37
- attr_accessor :pulp_last_updated
35
+ # A reference to an associated signing service.
36
+ attr_accessor :manifest_signing_service
38
37
 
39
- attr_accessor :versions_href
38
+ # Timestamp of creation.
39
+ attr_accessor :pulp_created
40
40
 
41
- # Retain X versions of the repository. Default is null which retains all versions.
42
- attr_accessor :retain_repo_versions
41
+ # 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
+ attr_accessor :pulp_last_updated
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
47
  :'pulp_labels' => :'pulp_labels',
48
- :'pulp_created' => :'pulp_created',
49
- :'latest_version_href' => :'latest_version_href',
50
- :'manifest_signing_service' => :'manifest_signing_service',
51
48
  :'description' => :'description',
49
+ :'retain_repo_versions' => :'retain_repo_versions',
52
50
  :'pulp_href' => :'pulp_href',
53
- :'name' => :'name',
54
- :'pulp_last_updated' => :'pulp_last_updated',
51
+ :'latest_version_href' => :'latest_version_href',
55
52
  :'versions_href' => :'versions_href',
56
- :'retain_repo_versions' => :'retain_repo_versions'
53
+ :'name' => :'name',
54
+ :'manifest_signing_service' => :'manifest_signing_service',
55
+ :'pulp_created' => :'pulp_created',
56
+ :'pulp_last_updated' => :'pulp_last_updated'
57
57
  }
58
58
  end
59
59
 
@@ -61,24 +61,24 @@ module PulpContainerClient
61
61
  def self.openapi_types
62
62
  {
63
63
  :'pulp_labels' => :'Hash<String, String>',
64
- :'pulp_created' => :'DateTime',
65
- :'latest_version_href' => :'String',
66
- :'manifest_signing_service' => :'String',
67
64
  :'description' => :'String',
65
+ :'retain_repo_versions' => :'Integer',
68
66
  :'pulp_href' => :'String',
69
- :'name' => :'String',
70
- :'pulp_last_updated' => :'DateTime',
67
+ :'latest_version_href' => :'String',
71
68
  :'versions_href' => :'String',
72
- :'retain_repo_versions' => :'Integer'
69
+ :'name' => :'String',
70
+ :'manifest_signing_service' => :'String',
71
+ :'pulp_created' => :'DateTime',
72
+ :'pulp_last_updated' => :'DateTime'
73
73
  }
74
74
  end
75
75
 
76
76
  # List of attributes with nullable: true
77
77
  def self.openapi_nullable
78
78
  Set.new([
79
- :'manifest_signing_service',
80
79
  :'description',
81
- :'retain_repo_versions'
80
+ :'retain_repo_versions',
81
+ :'manifest_signing_service',
82
82
  ])
83
83
  end
84
84
 
@@ -103,40 +103,40 @@ module PulpContainerClient
103
103
  end
104
104
  end
105
105
 
106
- if attributes.key?(:'pulp_created')
107
- self.pulp_created = attributes[:'pulp_created']
106
+ if attributes.key?(:'description')
107
+ self.description = attributes[:'description']
108
108
  end
109
109
 
110
- if attributes.key?(:'latest_version_href')
111
- self.latest_version_href = attributes[:'latest_version_href']
110
+ if attributes.key?(:'retain_repo_versions')
111
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
112
112
  end
113
113
 
114
- if attributes.key?(:'manifest_signing_service')
115
- self.manifest_signing_service = attributes[:'manifest_signing_service']
114
+ if attributes.key?(:'pulp_href')
115
+ self.pulp_href = attributes[:'pulp_href']
116
116
  end
117
117
 
118
- if attributes.key?(:'description')
119
- self.description = attributes[:'description']
118
+ if attributes.key?(:'latest_version_href')
119
+ self.latest_version_href = attributes[:'latest_version_href']
120
120
  end
121
121
 
122
- if attributes.key?(:'pulp_href')
123
- self.pulp_href = attributes[:'pulp_href']
122
+ if attributes.key?(:'versions_href')
123
+ self.versions_href = attributes[:'versions_href']
124
124
  end
125
125
 
126
126
  if attributes.key?(:'name')
127
127
  self.name = attributes[:'name']
128
128
  end
129
129
 
130
- if attributes.key?(:'pulp_last_updated')
131
- self.pulp_last_updated = attributes[:'pulp_last_updated']
130
+ if attributes.key?(:'manifest_signing_service')
131
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
132
132
  end
133
133
 
134
- if attributes.key?(:'versions_href')
135
- self.versions_href = attributes[:'versions_href']
134
+ if attributes.key?(:'pulp_created')
135
+ self.pulp_created = attributes[:'pulp_created']
136
136
  end
137
137
 
138
- if attributes.key?(:'retain_repo_versions')
139
- self.retain_repo_versions = attributes[:'retain_repo_versions']
138
+ if attributes.key?(:'pulp_last_updated')
139
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
140
140
  end
141
141
  end
142
142
 
@@ -144,22 +144,22 @@ module PulpContainerClient
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
- if @name.nil?
148
- invalid_properties.push('invalid value for "name", name cannot be nil.')
149
- end
150
-
151
147
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
148
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
153
149
  end
154
150
 
151
+ if @name.nil?
152
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
153
+ end
154
+
155
155
  invalid_properties
156
156
  end
157
157
 
158
158
  # Check to see if the all the properties in the model are valid
159
159
  # @return true if the model is valid
160
160
  def valid?
161
- return false if @name.nil?
162
161
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
162
+ return false if @name.nil?
163
163
  true
164
164
  end
165
165
 
@@ -179,15 +179,15 @@ module PulpContainerClient
179
179
  return true if self.equal?(o)
180
180
  self.class == o.class &&
181
181
  pulp_labels == o.pulp_labels &&
182
- pulp_created == o.pulp_created &&
183
- latest_version_href == o.latest_version_href &&
184
- manifest_signing_service == o.manifest_signing_service &&
185
182
  description == o.description &&
183
+ retain_repo_versions == o.retain_repo_versions &&
186
184
  pulp_href == o.pulp_href &&
187
- name == o.name &&
188
- pulp_last_updated == o.pulp_last_updated &&
185
+ latest_version_href == o.latest_version_href &&
189
186
  versions_href == o.versions_href &&
190
- retain_repo_versions == o.retain_repo_versions
187
+ name == o.name &&
188
+ manifest_signing_service == o.manifest_signing_service &&
189
+ pulp_created == o.pulp_created &&
190
+ pulp_last_updated == o.pulp_last_updated
191
191
  end
192
192
 
193
193
  # @see the `==` method
@@ -199,7 +199,7 @@ module PulpContainerClient
199
199
  # Calculates hash code according to all attributes.
200
200
  # @return [Integer] Hash code
201
201
  def hash
202
- [pulp_labels, pulp_created, latest_version_href, manifest_signing_service, description, pulp_href, name, pulp_last_updated, versions_href, retain_repo_versions].hash
202
+ [pulp_labels, description, retain_repo_versions, pulp_href, latest_version_href, versions_href, name, manifest_signing_service, pulp_created, pulp_last_updated].hash
203
203
  end
204
204
 
205
205
  # Builds the object from hash