pulp_container_client 2.15.2 → 2.15.3

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 (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -25
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +11 -11
  5. data/docs/ContainerContainerPushRepository.md +6 -6
  6. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  7. data/docs/ContentBlobsApi.md +3 -1
  8. data/docs/ContentManifestsApi.md +3 -1
  9. data/docs/ContentSignaturesApi.md +11 -1
  10. data/docs/ContentTagsApi.md +3 -1
  11. data/docs/DistributionsContainerApi.md +136 -10
  12. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  13. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  14. data/docs/PulpContainerNamespacesApi.md +23 -9
  15. data/docs/RemotesContainerApi.md +135 -9
  16. data/docs/RepositoriesContainerApi.md +136 -10
  17. data/docs/RepositoriesContainerPushApi.md +24 -10
  18. data/docs/RepositoriesContainerPushVersionsApi.md +3 -1
  19. data/docs/RepositoriesContainerVersionsApi.md +3 -1
  20. data/docs/SetLabel.md +19 -0
  21. data/docs/SetLabelResponse.md +19 -0
  22. data/docs/TokenApi.md +1 -1
  23. data/docs/UnsetLabel.md +17 -0
  24. data/docs/UnsetLabelResponse.md +19 -0
  25. data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
  26. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
  27. data/lib/pulp_container_client/api/content_signatures_api.rb +15 -0
  28. data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
  29. data/lib/pulp_container_client/api/distributions_container_api.rb +163 -0
  30. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +23 -0
  31. data/lib/pulp_container_client/api/remotes_container_api.rb +163 -0
  32. data/lib/pulp_container_client/api/repositories_container_api.rb +163 -0
  33. data/lib/pulp_container_client/api/repositories_container_push_api.rb +23 -0
  34. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +3 -0
  35. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -0
  36. data/lib/pulp_container_client/configuration.rb +2 -2
  37. data/lib/pulp_container_client/models/container_container_distribution.rb +62 -62
  38. data/lib/pulp_container_client/models/container_container_distribution_response.rb +50 -50
  39. data/lib/pulp_container_client/models/container_container_push_repository.rb +41 -41
  40. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
  41. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +53 -53
  42. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
  43. data/lib/pulp_container_client/models/set_label.rb +252 -0
  44. data/lib/pulp_container_client/models/set_label_response.rb +243 -0
  45. data/lib/pulp_container_client/models/unset_label.rb +242 -0
  46. data/lib/pulp_container_client/models/unset_label_response.rb +242 -0
  47. data/lib/pulp_container_client/version.rb +1 -1
  48. data/lib/pulp_container_client.rb +4 -0
  49. data/spec/api/content_blobs_api_spec.rb +1 -0
  50. data/spec/api/content_manifests_api_spec.rb +1 -0
  51. data/spec/api/content_signatures_api_spec.rb +5 -0
  52. data/spec/api/content_tags_api_spec.rb +1 -0
  53. data/spec/api/distributions_container_api_spec.rb +35 -0
  54. data/spec/api/pulp_container_namespaces_api_spec.rb +9 -0
  55. data/spec/api/remotes_container_api_spec.rb +35 -0
  56. data/spec/api/repositories_container_api_spec.rb +35 -0
  57. data/spec/api/repositories_container_push_api_spec.rb +9 -0
  58. data/spec/api/repositories_container_push_versions_api_spec.rb +1 -0
  59. data/spec/api/repositories_container_versions_api_spec.rb +1 -0
  60. data/spec/configuration_spec.rb +3 -3
  61. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  62. data/spec/models/container_container_distribution_spec.rb +6 -6
  63. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  64. data/spec/models/container_container_push_repository_spec.rb +5 -5
  65. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  66. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  67. data/spec/models/set_label_response_spec.rb +47 -0
  68. data/spec/models/set_label_spec.rb +47 -0
  69. data/spec/models/unset_label_response_spec.rb +47 -0
  70. data/spec/models/unset_label_spec.rb +41 -0
  71. metadata +63 -47
@@ -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
-
21
- attr_accessor :pulp_labels
22
-
23
18
  # A reference to an associated signing service.
24
19
  attr_accessor :manifest_signing_service
25
20
 
26
- # A unique name for this repository.
27
- attr_accessor :name
21
+ # An optional description.
22
+ attr_accessor :description
23
+
24
+ attr_accessor :pulp_href
28
25
 
29
26
  attr_accessor :versions_href
30
27
 
31
- attr_accessor :latest_version_href
28
+ # Retain X versions of the repository. Default is null which retains all versions.
29
+ attr_accessor :retain_repo_versions
32
30
 
33
- attr_accessor :pulp_href
31
+ attr_accessor :pulp_labels
34
32
 
35
33
  # Timestamp of creation.
36
34
  attr_accessor :pulp_created
37
35
 
38
- # An optional description.
39
- attr_accessor :description
36
+ attr_accessor :latest_version_href
37
+
38
+ # A unique name for this repository.
39
+ attr_accessor :name
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',
45
- :'pulp_labels' => :'pulp_labels',
46
44
  :'manifest_signing_service' => :'manifest_signing_service',
47
- :'name' => :'name',
48
- :'versions_href' => :'versions_href',
49
- :'latest_version_href' => :'latest_version_href',
45
+ :'description' => :'description',
50
46
  :'pulp_href' => :'pulp_href',
47
+ :'versions_href' => :'versions_href',
48
+ :'retain_repo_versions' => :'retain_repo_versions',
49
+ :'pulp_labels' => :'pulp_labels',
51
50
  :'pulp_created' => :'pulp_created',
52
- :'description' => :'description'
51
+ :'latest_version_href' => :'latest_version_href',
52
+ :'name' => :'name'
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',
60
- :'pulp_labels' => :'Hash<String, String>',
61
59
  :'manifest_signing_service' => :'String',
62
- :'name' => :'String',
63
- :'versions_href' => :'String',
64
- :'latest_version_href' => :'String',
60
+ :'description' => :'String',
65
61
  :'pulp_href' => :'String',
62
+ :'versions_href' => :'String',
63
+ :'retain_repo_versions' => :'Integer',
64
+ :'pulp_labels' => :'Hash<String, String>',
66
65
  :'pulp_created' => :'DateTime',
67
- :'description' => :'String'
66
+ :'latest_version_href' => :'String',
67
+ :'name' => :'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',
75
74
  :'manifest_signing_service',
76
- :'description'
75
+ :'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?(:'retain_repo_versions')
96
- self.retain_repo_versions = attributes[:'retain_repo_versions']
97
- end
98
-
99
- if attributes.key?(:'pulp_labels')
100
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
101
- self.pulp_labels = value
102
- end
103
- end
104
-
105
95
  if attributes.key?(:'manifest_signing_service')
106
96
  self.manifest_signing_service = attributes[:'manifest_signing_service']
107
97
  end
108
98
 
109
- if attributes.key?(:'name')
110
- self.name = attributes[:'name']
99
+ if attributes.key?(:'description')
100
+ self.description = attributes[:'description']
101
+ end
102
+
103
+ if attributes.key?(:'pulp_href')
104
+ self.pulp_href = attributes[:'pulp_href']
111
105
  end
112
106
 
113
107
  if attributes.key?(:'versions_href')
114
108
  self.versions_href = attributes[:'versions_href']
115
109
  end
116
110
 
117
- if attributes.key?(:'latest_version_href')
118
- self.latest_version_href = attributes[:'latest_version_href']
111
+ if attributes.key?(:'retain_repo_versions')
112
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
119
113
  end
120
114
 
121
- if attributes.key?(:'pulp_href')
122
- self.pulp_href = attributes[:'pulp_href']
115
+ if attributes.key?(:'pulp_labels')
116
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
117
+ self.pulp_labels = value
118
+ end
123
119
  end
124
120
 
125
121
  if attributes.key?(:'pulp_created')
126
122
  self.pulp_created = attributes[:'pulp_created']
127
123
  end
128
124
 
129
- if attributes.key?(:'description')
130
- self.description = attributes[:'description']
125
+ if attributes.key?(:'latest_version_href')
126
+ self.latest_version_href = attributes[:'latest_version_href']
127
+ end
128
+
129
+ if attributes.key?(:'name')
130
+ self.name = attributes[:'name']
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 &&
173
- pulp_labels == o.pulp_labels &&
174
172
  manifest_signing_service == o.manifest_signing_service &&
175
- name == o.name &&
176
- versions_href == o.versions_href &&
177
- latest_version_href == o.latest_version_href &&
173
+ description == o.description &&
178
174
  pulp_href == o.pulp_href &&
175
+ versions_href == o.versions_href &&
176
+ retain_repo_versions == o.retain_repo_versions &&
177
+ pulp_labels == o.pulp_labels &&
179
178
  pulp_created == o.pulp_created &&
180
- description == o.description
179
+ latest_version_href == o.latest_version_href &&
180
+ name == o.name
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
- [retain_repo_versions, pulp_labels, manifest_signing_service, name, versions_href, latest_version_href, pulp_href, pulp_created, description].hash
192
+ [manifest_signing_service, description, pulp_href, versions_href, retain_repo_versions, pulp_labels, pulp_created, latest_version_href, name].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- attr_accessor :pulp_labels
18
+ # Whether this distribution should be shown in the content app.
19
+ attr_accessor :hidden
20
+
21
+ # The latest RepositoryVersion for this Repository will be served.
22
+ attr_accessor :repository
23
+
24
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
+ attr_accessor :base_path
19
26
 
20
27
  # An optional content-guard. If none is specified, a default one will be used.
21
28
  attr_accessor :content_guard
22
29
 
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
30
+ attr_accessor :pulp_labels
25
31
 
26
32
  # A unique name. Ex, `rawhide` and `stable`.
27
33
  attr_accessor :name
28
34
 
29
- # Whether this distribution should be shown in the content app.
30
- attr_accessor :hidden
31
-
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\")
33
- attr_accessor :base_path
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
- :'pulp_labels' => :'pulp_labels',
48
- :'content_guard' => :'content_guard',
49
- :'repository' => :'repository',
50
- :'name' => :'name',
51
47
  :'hidden' => :'hidden',
48
+ :'repository' => :'repository',
52
49
  :'base_path' => :'base_path',
50
+ :'content_guard' => :'content_guard',
51
+ :'pulp_labels' => :'pulp_labels',
52
+ :'name' => :'name',
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
- :'pulp_labels' => :'Hash<String, String>',
63
- :'content_guard' => :'String',
64
- :'repository' => :'String',
65
- :'name' => :'String',
66
62
  :'hidden' => :'Boolean',
63
+ :'repository' => :'String',
67
64
  :'base_path' => :'String',
65
+ :'content_guard' => :'String',
66
+ :'pulp_labels' => :'Hash<String, String>',
67
+ :'name' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,32 +95,32 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'pulp_labels')
99
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
- self.pulp_labels = value
101
- end
102
- end
103
-
104
- if attributes.key?(:'content_guard')
105
- self.content_guard = attributes[:'content_guard']
98
+ if attributes.key?(:'hidden')
99
+ self.hidden = attributes[:'hidden']
100
+ else
101
+ self.hidden = false
106
102
  end
107
103
 
108
104
  if attributes.key?(:'repository')
109
105
  self.repository = attributes[:'repository']
110
106
  end
111
107
 
112
- if attributes.key?(:'name')
113
- self.name = attributes[:'name']
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
114
110
  end
115
111
 
116
- if attributes.key?(:'hidden')
117
- self.hidden = attributes[:'hidden']
118
- else
119
- self.hidden = false
112
+ if attributes.key?(:'content_guard')
113
+ self.content_guard = attributes[:'content_guard']
120
114
  end
121
115
 
122
- if attributes.key?(:'base_path')
123
- self.base_path = attributes[:'base_path']
116
+ if attributes.key?(:'pulp_labels')
117
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
+ self.pulp_labels = value
119
+ end
120
+ end
121
+
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
124
  end
125
125
 
126
126
  if attributes.key?(:'repository_version')
@@ -140,14 +140,14 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if !@name.nil? && @name.to_s.length < 1
144
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
145
- end
146
-
147
143
  if !@base_path.nil? && @base_path.to_s.length < 1
148
144
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
149
145
  end
150
146
 
147
+ if !@name.nil? && @name.to_s.length < 1
148
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
+ end
150
+
151
151
  if !@description.nil? && @description.to_s.length < 1
152
152
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
153
153
  end
@@ -158,22 +158,12 @@ module PulpContainerClient
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? && @name.to_s.length < 1
162
161
  return false if !@base_path.nil? && @base_path.to_s.length < 1
162
+ return false if !@name.nil? && @name.to_s.length < 1
163
163
  return false if !@description.nil? && @description.to_s.length < 1
164
164
  true
165
165
  end
166
166
 
167
- # Custom attribute writer method with validation
168
- # @param [Object] name Value to be assigned
169
- def name=(name)
170
- if !name.nil? && name.to_s.length < 1
171
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
172
- end
173
-
174
- @name = name
175
- end
176
-
177
167
  # Custom attribute writer method with validation
178
168
  # @param [Object] base_path Value to be assigned
179
169
  def base_path=(base_path)
@@ -184,6 +174,16 @@ module PulpContainerClient
184
174
  @base_path = base_path
185
175
  end
186
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] name Value to be assigned
179
+ def name=(name)
180
+ if !name.nil? && name.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @name = name
185
+ end
186
+
187
187
  # Custom attribute writer method with validation
188
188
  # @param [Object] description Value to be assigned
189
189
  def description=(description)
@@ -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
- pulp_labels == o.pulp_labels &&
203
- content_guard == o.content_guard &&
204
- repository == o.repository &&
205
- name == o.name &&
206
202
  hidden == o.hidden &&
203
+ repository == o.repository &&
207
204
  base_path == o.base_path &&
205
+ content_guard == o.content_guard &&
206
+ pulp_labels == o.pulp_labels &&
207
+ name == o.name &&
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
- [pulp_labels, content_guard, repository, name, hidden, base_path, repository_version, private, description].hash
222
+ [hidden, repository, base_path, content_guard, pulp_labels, name, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # 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
+ # A reference to an associated signing service.
19
+ attr_accessor :manifest_signing_service
20
+
21
+ # An optional description.
22
+ attr_accessor :description
23
+
18
24
  # Retain X versions of the repository. Default is null which retains all versions.
19
25
  attr_accessor :retain_repo_versions
20
26
 
21
27
  attr_accessor :pulp_labels
22
28
 
23
- # A reference to an associated signing service.
24
- attr_accessor :manifest_signing_service
25
-
26
29
  # A unique name for this repository.
27
30
  attr_accessor :name
28
31
 
29
- # An optional description.
30
- attr_accessor :description
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'manifest_signing_service' => :'manifest_signing_service',
36
+ :'description' => :'description',
35
37
  :'retain_repo_versions' => :'retain_repo_versions',
36
38
  :'pulp_labels' => :'pulp_labels',
37
- :'manifest_signing_service' => :'manifest_signing_service',
38
- :'name' => :'name',
39
- :'description' => :'description'
39
+ :'name' => :'name'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'manifest_signing_service' => :'String',
47
+ :'description' => :'String',
46
48
  :'retain_repo_versions' => :'Integer',
47
49
  :'pulp_labels' => :'Hash<String, String>',
48
- :'manifest_signing_service' => :'String',
49
- :'name' => :'String',
50
- :'description' => :'String'
50
+ :'name' => :'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',
58
57
  :'manifest_signing_service',
59
- :'description'
58
+ :'description',
59
+ :'retain_repo_versions',
60
60
  ])
61
61
  end
62
62
 
@@ -75,6 +75,14 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'manifest_signing_service')
79
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
80
+ end
81
+
82
+ if attributes.key?(:'description')
83
+ self.description = attributes[:'description']
84
+ end
85
+
78
86
  if attributes.key?(:'retain_repo_versions')
79
87
  self.retain_repo_versions = attributes[:'retain_repo_versions']
80
88
  end
@@ -85,23 +93,19 @@ module PulpContainerClient
85
93
  end
86
94
  end
87
95
 
88
- if attributes.key?(:'manifest_signing_service')
89
- self.manifest_signing_service = attributes[:'manifest_signing_service']
90
- end
91
-
92
96
  if attributes.key?(:'name')
93
97
  self.name = attributes[:'name']
94
98
  end
95
-
96
- if attributes.key?(:'description')
97
- self.description = attributes[:'description']
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 !@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
+
105
109
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
106
110
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
111
  end
@@ -110,22 +114,28 @@ module PulpContainerClient
110
114
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
111
115
  end
112
116
 
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
123
124
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
124
125
  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
+
129
139
  # Custom attribute writer method with validation
130
140
  # @param [Object] retain_repo_versions Value to be assigned
131
141
  def retain_repo_versions=(retain_repo_versions)
@@ -146,26 +156,16 @@ module PulpContainerClient
146
156
  @name = name
147
157
  end
148
158
 
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
+ manifest_signing_service == o.manifest_signing_service &&
165
+ description == o.description &&
164
166
  retain_repo_versions == o.retain_repo_versions &&
165
167
  pulp_labels == o.pulp_labels &&
166
- manifest_signing_service == o.manifest_signing_service &&
167
- name == o.name &&
168
- description == o.description
168
+ name == o.name
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
- [retain_repo_versions, pulp_labels, manifest_signing_service, name, description].hash
180
+ [manifest_signing_service, description, retain_repo_versions, pulp_labels, name].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash