pulp_container_client 2.19.2 → 2.19.3

Sign up to get free protection for your applications and to get access to all the features.
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 +11 -11
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +11 -11
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  11. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +34 -34
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +48 -48
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +34 -34
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +48 -48
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -52
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +34 -34
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +34 -34
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
  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 +9 -9
  27. data/spec/models/container_container_push_repository_spec.rb +5 -5
  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 +5 -5
  31. metadata +64 -64
@@ -15,65 +15,65 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
+ # Retain X versions of the repository. Default is null which retains all versions.
19
+ attr_accessor :retain_repo_versions
20
+
18
21
  # A reference to an associated signing service.
19
22
  attr_accessor :manifest_signing_service
20
23
 
21
- attr_accessor :pulp_labels
24
+ # A unique name for this repository.
25
+ attr_accessor :name
22
26
 
23
- # An optional description.
24
- attr_accessor :description
27
+ attr_accessor :latest_version_href
28
+
29
+ attr_accessor :pulp_href
25
30
 
26
31
  attr_accessor :versions_href
27
32
 
33
+ # An optional description.
34
+ attr_accessor :description
35
+
28
36
  # Timestamp of creation.
29
37
  attr_accessor :pulp_created
30
38
 
31
- attr_accessor :latest_version_href
32
-
33
- # Retain X versions of the repository. Default is null which retains all versions.
34
- attr_accessor :retain_repo_versions
35
-
36
- attr_accessor :pulp_href
37
-
38
- # A unique name for this repository.
39
- attr_accessor :name
39
+ attr_accessor :pulp_labels
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'retain_repo_versions' => :'retain_repo_versions',
44
45
  :'manifest_signing_service' => :'manifest_signing_service',
45
- :'pulp_labels' => :'pulp_labels',
46
- :'description' => :'description',
47
- :'versions_href' => :'versions_href',
48
- :'pulp_created' => :'pulp_created',
46
+ :'name' => :'name',
49
47
  :'latest_version_href' => :'latest_version_href',
50
- :'retain_repo_versions' => :'retain_repo_versions',
51
48
  :'pulp_href' => :'pulp_href',
52
- :'name' => :'name'
49
+ :'versions_href' => :'versions_href',
50
+ :'description' => :'description',
51
+ :'pulp_created' => :'pulp_created',
52
+ :'pulp_labels' => :'pulp_labels'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
+ :'retain_repo_versions' => :'Integer',
59
60
  :'manifest_signing_service' => :'String',
60
- :'pulp_labels' => :'Hash<String, String>',
61
- :'description' => :'String',
62
- :'versions_href' => :'String',
63
- :'pulp_created' => :'DateTime',
61
+ :'name' => :'String',
64
62
  :'latest_version_href' => :'String',
65
- :'retain_repo_versions' => :'Integer',
66
63
  :'pulp_href' => :'String',
67
- :'name' => :'String'
64
+ :'versions_href' => :'String',
65
+ :'description' => :'String',
66
+ :'pulp_created' => :'DateTime',
67
+ :'pulp_labels' => :'Hash<String, String>'
68
68
  }
69
69
  end
70
70
 
71
71
  # List of attributes with nullable: true
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
+ :'retain_repo_versions',
74
75
  :'manifest_signing_service',
75
76
  :'description',
76
- :'retain_repo_versions',
77
77
  ])
78
78
  end
79
79
 
@@ -92,42 +92,42 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'manifest_signing_service')
96
- self.manifest_signing_service = attributes[:'manifest_signing_service']
95
+ if attributes.key?(:'retain_repo_versions')
96
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
97
97
  end
98
98
 
99
- if attributes.key?(:'pulp_labels')
100
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
101
- self.pulp_labels = value
102
- end
99
+ if attributes.key?(:'manifest_signing_service')
100
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
103
101
  end
104
102
 
105
- if attributes.key?(:'description')
106
- self.description = attributes[:'description']
103
+ if attributes.key?(:'name')
104
+ self.name = attributes[:'name']
107
105
  end
108
106
 
109
- if attributes.key?(:'versions_href')
110
- self.versions_href = attributes[:'versions_href']
107
+ if attributes.key?(:'latest_version_href')
108
+ self.latest_version_href = attributes[:'latest_version_href']
111
109
  end
112
110
 
113
- if attributes.key?(:'pulp_created')
114
- self.pulp_created = attributes[:'pulp_created']
111
+ if attributes.key?(:'pulp_href')
112
+ self.pulp_href = attributes[:'pulp_href']
115
113
  end
116
114
 
117
- if attributes.key?(:'latest_version_href')
118
- self.latest_version_href = attributes[:'latest_version_href']
115
+ if attributes.key?(:'versions_href')
116
+ self.versions_href = attributes[:'versions_href']
119
117
  end
120
118
 
121
- if attributes.key?(:'retain_repo_versions')
122
- self.retain_repo_versions = attributes[:'retain_repo_versions']
119
+ if attributes.key?(:'description')
120
+ self.description = attributes[:'description']
123
121
  end
124
122
 
125
- if attributes.key?(:'pulp_href')
126
- self.pulp_href = attributes[:'pulp_href']
123
+ if attributes.key?(:'pulp_created')
124
+ self.pulp_created = attributes[:'pulp_created']
127
125
  end
128
126
 
129
- if attributes.key?(:'name')
130
- self.name = attributes[:'name']
127
+ if attributes.key?(:'pulp_labels')
128
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
129
+ self.pulp_labels = value
130
+ end
131
131
  end
132
132
  end
133
133
 
@@ -169,15 +169,15 @@ module PulpContainerClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
+ retain_repo_versions == o.retain_repo_versions &&
172
173
  manifest_signing_service == o.manifest_signing_service &&
173
- pulp_labels == o.pulp_labels &&
174
- description == o.description &&
175
- versions_href == o.versions_href &&
176
- pulp_created == o.pulp_created &&
174
+ name == o.name &&
177
175
  latest_version_href == o.latest_version_href &&
178
- retain_repo_versions == o.retain_repo_versions &&
179
176
  pulp_href == o.pulp_href &&
180
- name == o.name
177
+ versions_href == o.versions_href &&
178
+ description == o.description &&
179
+ pulp_created == o.pulp_created &&
180
+ pulp_labels == o.pulp_labels
181
181
  end
182
182
 
183
183
  # @see the `==` method
@@ -189,7 +189,7 @@ module PulpContainerClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [manifest_signing_service, pulp_labels, description, versions_href, pulp_created, latest_version_href, retain_repo_versions, pulp_href, name].hash
192
+ [retain_repo_versions, manifest_signing_service, name, latest_version_href, pulp_href, versions_href, description, pulp_created, pulp_labels].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -15,14 +15,6 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
20
-
21
- attr_accessor :pulp_labels
22
-
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
18
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
19
  attr_accessor :base_path
28
20
 
@@ -32,6 +24,14 @@ module PulpContainerClient
32
24
  # An optional content-guard. If none is specified, a default one will be used.
33
25
  attr_accessor :content_guard
34
26
 
27
+ # The latest RepositoryVersion for this Repository will be served.
28
+ attr_accessor :repository
29
+
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
32
+
33
+ attr_accessor :pulp_labels
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'hidden' => :'hidden',
48
- :'pulp_labels' => :'pulp_labels',
49
- :'repository' => :'repository',
50
47
  :'base_path' => :'base_path',
51
48
  :'name' => :'name',
52
49
  :'content_guard' => :'content_guard',
50
+ :'repository' => :'repository',
51
+ :'hidden' => :'hidden',
52
+ :'pulp_labels' => :'pulp_labels',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'hidden' => :'Boolean',
63
- :'pulp_labels' => :'Hash<String, String>',
64
- :'repository' => :'String',
65
62
  :'base_path' => :'String',
66
63
  :'name' => :'String',
67
64
  :'content_guard' => :'String',
65
+ :'repository' => :'String',
66
+ :'hidden' => :'Boolean',
67
+ :'pulp_labels' => :'Hash<String, String>',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,22 +95,6 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'hidden')
99
- self.hidden = attributes[:'hidden']
100
- else
101
- self.hidden = false
102
- end
103
-
104
- if attributes.key?(:'pulp_labels')
105
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
106
- self.pulp_labels = value
107
- end
108
- end
109
-
110
- if attributes.key?(:'repository')
111
- self.repository = attributes[:'repository']
112
- end
113
-
114
98
  if attributes.key?(:'base_path')
115
99
  self.base_path = attributes[:'base_path']
116
100
  end
@@ -123,6 +107,22 @@ module PulpContainerClient
123
107
  self.content_guard = attributes[:'content_guard']
124
108
  end
125
109
 
110
+ if attributes.key?(:'repository')
111
+ self.repository = attributes[:'repository']
112
+ end
113
+
114
+ if attributes.key?(:'hidden')
115
+ self.hidden = attributes[:'hidden']
116
+ else
117
+ self.hidden = false
118
+ end
119
+
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
124
+ end
125
+
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -199,12 +199,12 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- hidden == o.hidden &&
203
- pulp_labels == o.pulp_labels &&
204
- repository == o.repository &&
205
202
  base_path == o.base_path &&
206
203
  name == o.name &&
207
204
  content_guard == o.content_guard &&
205
+ repository == o.repository &&
206
+ hidden == o.hidden &&
207
+ pulp_labels == o.pulp_labels &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
210
210
  description == o.description
@@ -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
- [hidden, pulp_labels, repository, base_path, name, content_guard, repository_version, private, description].hash
222
+ [base_path, name, content_guard, repository, hidden, pulp_labels, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,14 +15,6 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class PatchedcontainerContainerPullThroughDistribution
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
20
-
21
- attr_accessor :pulp_labels
22
-
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
18
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
19
  attr_accessor :base_path
28
20
 
@@ -32,6 +24,14 @@ module PulpContainerClient
32
24
  # An optional content-guard. If none is specified, a default one will be used.
33
25
  attr_accessor :content_guard
34
26
 
27
+ # The latest RepositoryVersion for this Repository will be served.
28
+ attr_accessor :repository
29
+
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
32
+
33
+ attr_accessor :pulp_labels
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
- :'hidden' => :'hidden',
51
- :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
53
50
  :'base_path' => :'base_path',
54
51
  :'name' => :'name',
55
52
  :'content_guard' => :'content_guard',
53
+ :'repository' => :'repository',
54
+ :'hidden' => :'hidden',
55
+ :'pulp_labels' => :'pulp_labels',
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
- :'hidden' => :'Boolean',
67
- :'pulp_labels' => :'Hash<String, String>',
68
- :'repository' => :'String',
69
66
  :'base_path' => :'String',
70
67
  :'name' => :'String',
71
68
  :'content_guard' => :'String',
69
+ :'repository' => :'String',
70
+ :'hidden' => :'Boolean',
71
+ :'pulp_labels' => :'Hash<String, String>',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,22 +99,6 @@ 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
106
- end
107
-
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
112
- end
113
-
114
- if attributes.key?(:'repository')
115
- self.repository = attributes[:'repository']
116
- end
117
-
118
102
  if attributes.key?(:'base_path')
119
103
  self.base_path = attributes[:'base_path']
120
104
  end
@@ -127,6 +111,22 @@ module PulpContainerClient
127
111
  self.content_guard = attributes[:'content_guard']
128
112
  end
129
113
 
114
+ if attributes.key?(:'repository')
115
+ self.repository = attributes[:'repository']
116
+ end
117
+
118
+ if attributes.key?(:'hidden')
119
+ self.hidden = attributes[:'hidden']
120
+ else
121
+ self.hidden = false
122
+ end
123
+
124
+ if attributes.key?(:'pulp_labels')
125
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
+ self.pulp_labels = value
127
+ end
128
+ end
129
+
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -209,12 +209,12 @@ module PulpContainerClient
209
209
  def ==(o)
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
- hidden == o.hidden &&
213
- pulp_labels == o.pulp_labels &&
214
- repository == o.repository &&
215
212
  base_path == o.base_path &&
216
213
  name == o.name &&
217
214
  content_guard == o.content_guard &&
215
+ repository == o.repository &&
216
+ hidden == o.hidden &&
217
+ pulp_labels == o.pulp_labels &&
218
218
  remote == o.remote &&
219
219
  distributions == o.distributions &&
220
220
  private == o.private &&
@@ -230,7 +230,7 @@ module PulpContainerClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [hidden, pulp_labels, repository, base_path, name, content_guard, remote, distributions, private, description].hash
233
+ [base_path, name, content_guard, repository, hidden, pulp_labels, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
+ # Retain X versions of the repository. Default is null which retains all versions.
19
+ attr_accessor :retain_repo_versions
20
+
18
21
  # A reference to an associated signing service.
19
22
  attr_accessor :manifest_signing_service
20
23
 
21
- attr_accessor :pulp_labels
24
+ # A unique name for this repository.
25
+ attr_accessor :name
22
26
 
23
27
  # An optional description.
24
28
  attr_accessor :description
25
29
 
26
- # Retain X versions of the repository. Default is null which retains all versions.
27
- attr_accessor :retain_repo_versions
28
-
29
- # A unique name for this repository.
30
- attr_accessor :name
30
+ attr_accessor :pulp_labels
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'retain_repo_versions' => :'retain_repo_versions',
35
36
  :'manifest_signing_service' => :'manifest_signing_service',
36
- :'pulp_labels' => :'pulp_labels',
37
+ :'name' => :'name',
37
38
  :'description' => :'description',
38
- :'retain_repo_versions' => :'retain_repo_versions',
39
- :'name' => :'name'
39
+ :'pulp_labels' => :'pulp_labels'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'retain_repo_versions' => :'Integer',
46
47
  :'manifest_signing_service' => :'String',
47
- :'pulp_labels' => :'Hash<String, String>',
48
+ :'name' => :'String',
48
49
  :'description' => :'String',
49
- :'retain_repo_versions' => :'Integer',
50
- :'name' => :'String'
50
+ :'pulp_labels' => :'Hash<String, 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
+ :'retain_repo_versions',
57
58
  :'manifest_signing_service',
58
59
  :'description',
59
- :'retain_repo_versions',
60
60
  ])
61
61
  end
62
62
 
@@ -75,26 +75,26 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'retain_repo_versions')
79
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
80
+ end
81
+
78
82
  if attributes.key?(:'manifest_signing_service')
79
83
  self.manifest_signing_service = attributes[:'manifest_signing_service']
80
84
  end
81
85
 
82
- if attributes.key?(:'pulp_labels')
83
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
- self.pulp_labels = value
85
- end
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
86
88
  end
87
89
 
88
90
  if attributes.key?(:'description')
89
91
  self.description = attributes[:'description']
90
92
  end
91
93
 
92
- if attributes.key?(:'retain_repo_versions')
93
- self.retain_repo_versions = attributes[:'retain_repo_versions']
94
- end
95
-
96
- if attributes.key?(:'name')
97
- self.name = attributes[:'name']
94
+ if attributes.key?(:'pulp_labels')
95
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
+ self.pulp_labels = value
97
+ end
98
98
  end
99
99
  end
100
100
 
@@ -102,10 +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
105
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
107
  end
@@ -114,28 +110,22 @@ module PulpContainerClient
114
110
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
115
111
  end
116
112
 
113
+ if !@description.nil? && @description.to_s.length < 1
114
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
115
+ end
116
+
117
117
  invalid_properties
118
118
  end
119
119
 
120
120
  # Check to see if the all the properties in the model are valid
121
121
  # @return true if the model is valid
122
122
  def valid?
123
- return false if !@description.nil? && @description.to_s.length < 1
124
123
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
124
  return false if !@name.nil? && @name.to_s.length < 1
125
+ return false if !@description.nil? && @description.to_s.length < 1
126
126
  true
127
127
  end
128
128
 
129
- # Custom attribute writer method with validation
130
- # @param [Object] description Value to be assigned
131
- def description=(description)
132
- if !description.nil? && description.to_s.length < 1
133
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
134
- end
135
-
136
- @description = description
137
- end
138
-
139
129
  # Custom attribute writer method with validation
140
130
  # @param [Object] retain_repo_versions Value to be assigned
141
131
  def retain_repo_versions=(retain_repo_versions)
@@ -156,16 +146,26 @@ module PulpContainerClient
156
146
  @name = name
157
147
  end
158
148
 
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] description Value to be assigned
151
+ def description=(description)
152
+ if !description.nil? && description.to_s.length < 1
153
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
154
+ end
155
+
156
+ @description = description
157
+ end
158
+
159
159
  # Checks equality by comparing each attribute.
160
160
  # @param [Object] Object to be compared
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
+ retain_repo_versions == o.retain_repo_versions &&
164
165
  manifest_signing_service == o.manifest_signing_service &&
165
- pulp_labels == o.pulp_labels &&
166
+ name == o.name &&
166
167
  description == o.description &&
167
- retain_repo_versions == o.retain_repo_versions &&
168
- name == o.name
168
+ pulp_labels == o.pulp_labels
169
169
  end
170
170
 
171
171
  # @see the `==` method
@@ -177,7 +177,7 @@ module PulpContainerClient
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [manifest_signing_service, pulp_labels, description, retain_repo_versions, name].hash
180
+ [retain_repo_versions, manifest_signing_service, name, description, pulp_labels].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.19.2'
14
+ VERSION = '2.19.3'
15
15
  end