pulp_container_client 2.10.10 → 2.10.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,42 +15,42 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # An optional description.
19
- attr_accessor :description
20
-
21
- attr_accessor :pulp_labels
22
-
23
18
  # A unique name for this repository.
24
19
  attr_accessor :name
25
20
 
26
21
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
22
  attr_accessor :retain_repo_versions
28
23
 
24
+ # An optional description.
25
+ attr_accessor :description
26
+
27
+ attr_accessor :pulp_labels
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'description' => :'description',
33
- :'pulp_labels' => :'pulp_labels',
34
32
  :'name' => :'name',
35
- :'retain_repo_versions' => :'retain_repo_versions'
33
+ :'retain_repo_versions' => :'retain_repo_versions',
34
+ :'description' => :'description',
35
+ :'pulp_labels' => :'pulp_labels'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'description' => :'String',
43
- :'pulp_labels' => :'Object',
44
42
  :'name' => :'String',
45
- :'retain_repo_versions' => :'Integer'
43
+ :'retain_repo_versions' => :'Integer',
44
+ :'description' => :'String',
45
+ :'pulp_labels' => :'Object'
46
46
  }
47
47
  end
48
48
 
49
49
  # List of attributes with nullable: true
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
+ :'retain_repo_versions',
52
53
  :'description',
53
- :'retain_repo_versions'
54
54
  ])
55
55
  end
56
56
 
@@ -69,14 +69,6 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'description')
73
- self.description = attributes[:'description']
74
- end
75
-
76
- if attributes.key?(:'pulp_labels')
77
- self.pulp_labels = attributes[:'pulp_labels']
78
- end
79
-
80
72
  if attributes.key?(:'name')
81
73
  self.name = attributes[:'name']
82
74
  end
@@ -84,16 +76,20 @@ module PulpContainerClient
84
76
  if attributes.key?(:'retain_repo_versions')
85
77
  self.retain_repo_versions = attributes[:'retain_repo_versions']
86
78
  end
79
+
80
+ if attributes.key?(:'description')
81
+ self.description = attributes[:'description']
82
+ end
83
+
84
+ if attributes.key?(:'pulp_labels')
85
+ self.pulp_labels = attributes[:'pulp_labels']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
- if !@description.nil? && @description.to_s.length < 1
94
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
95
- end
96
-
97
93
  if @name.nil?
98
94
  invalid_properties.push('invalid value for "name", name cannot be nil.')
99
95
  end
@@ -106,29 +102,23 @@ module PulpContainerClient
106
102
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
103
  end
108
104
 
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
109
  invalid_properties
110
110
  end
111
111
 
112
112
  # Check to see if the all the properties in the model are valid
113
113
  # @return true if the model is valid
114
114
  def valid?
115
- return false if !@description.nil? && @description.to_s.length < 1
116
115
  return false if @name.nil?
117
116
  return false if @name.to_s.length < 1
118
117
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
+ return false if !@description.nil? && @description.to_s.length < 1
119
119
  true
120
120
  end
121
121
 
122
- # Custom attribute writer method with validation
123
- # @param [Object] description Value to be assigned
124
- def description=(description)
125
- if !description.nil? && description.to_s.length < 1
126
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
127
- end
128
-
129
- @description = description
130
- end
131
-
132
122
  # Custom attribute writer method with validation
133
123
  # @param [Object] name Value to be assigned
134
124
  def name=(name)
@@ -153,15 +143,25 @@ module PulpContainerClient
153
143
  @retain_repo_versions = retain_repo_versions
154
144
  end
155
145
 
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] description Value to be assigned
148
+ def description=(description)
149
+ if !description.nil? && description.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @description = description
154
+ end
155
+
156
156
  # Checks equality by comparing each attribute.
157
157
  # @param [Object] Object to be compared
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
- description == o.description &&
162
- pulp_labels == o.pulp_labels &&
163
161
  name == o.name &&
164
- retain_repo_versions == o.retain_repo_versions
162
+ retain_repo_versions == o.retain_repo_versions &&
163
+ description == o.description &&
164
+ pulp_labels == o.pulp_labels
165
165
  end
166
166
 
167
167
  # @see the `==` method
@@ -173,7 +173,7 @@ module PulpContainerClient
173
173
  # Calculates hash code according to all attributes.
174
174
  # @return [Integer] Hash code
175
175
  def hash
176
- [description, pulp_labels, name, retain_repo_versions].hash
176
+ [name, retain_repo_versions, description, pulp_labels].hash
177
177
  end
178
178
 
179
179
  # Builds the object from hash
@@ -15,59 +15,59 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :latest_version_href
19
-
20
- # An optional description.
21
- attr_accessor :description
22
-
23
- attr_accessor :pulp_labels
24
-
25
- attr_accessor :pulp_href
26
-
27
- attr_accessor :versions_href
28
-
29
18
  # Timestamp of creation.
30
19
  attr_accessor :pulp_created
31
20
 
32
21
  # A unique name for this repository.
33
22
  attr_accessor :name
34
23
 
24
+ attr_accessor :latest_version_href
25
+
35
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
36
27
  attr_accessor :retain_repo_versions
37
28
 
29
+ attr_accessor :pulp_href
30
+
31
+ # An optional description.
32
+ attr_accessor :description
33
+
34
+ attr_accessor :versions_href
35
+
36
+ attr_accessor :pulp_labels
37
+
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
+ :'pulp_created' => :'pulp_created',
42
+ :'name' => :'name',
41
43
  :'latest_version_href' => :'latest_version_href',
42
- :'description' => :'description',
43
- :'pulp_labels' => :'pulp_labels',
44
+ :'retain_repo_versions' => :'retain_repo_versions',
44
45
  :'pulp_href' => :'pulp_href',
46
+ :'description' => :'description',
45
47
  :'versions_href' => :'versions_href',
46
- :'pulp_created' => :'pulp_created',
47
- :'name' => :'name',
48
- :'retain_repo_versions' => :'retain_repo_versions'
48
+ :'pulp_labels' => :'pulp_labels'
49
49
  }
50
50
  end
51
51
 
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'pulp_created' => :'DateTime',
56
+ :'name' => :'String',
55
57
  :'latest_version_href' => :'String',
56
- :'description' => :'String',
57
- :'pulp_labels' => :'Object',
58
+ :'retain_repo_versions' => :'Integer',
58
59
  :'pulp_href' => :'String',
60
+ :'description' => :'String',
59
61
  :'versions_href' => :'String',
60
- :'pulp_created' => :'DateTime',
61
- :'name' => :'String',
62
- :'retain_repo_versions' => :'Integer'
62
+ :'pulp_labels' => :'Object'
63
63
  }
64
64
  end
65
65
 
66
66
  # List of attributes with nullable: true
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
+ :'retain_repo_versions',
69
70
  :'description',
70
- :'retain_repo_versions'
71
71
  ])
72
72
  end
73
73
 
@@ -86,36 +86,36 @@ module PulpContainerClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'latest_version_href')
90
- self.latest_version_href = attributes[:'latest_version_href']
89
+ if attributes.key?(:'pulp_created')
90
+ self.pulp_created = attributes[:'pulp_created']
91
91
  end
92
92
 
93
- if attributes.key?(:'description')
94
- self.description = attributes[:'description']
93
+ if attributes.key?(:'name')
94
+ self.name = attributes[:'name']
95
95
  end
96
96
 
97
- if attributes.key?(:'pulp_labels')
98
- self.pulp_labels = attributes[:'pulp_labels']
97
+ if attributes.key?(:'latest_version_href')
98
+ self.latest_version_href = attributes[:'latest_version_href']
99
99
  end
100
100
 
101
- if attributes.key?(:'pulp_href')
102
- self.pulp_href = attributes[:'pulp_href']
101
+ if attributes.key?(:'retain_repo_versions')
102
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
103
103
  end
104
104
 
105
- if attributes.key?(:'versions_href')
106
- self.versions_href = attributes[:'versions_href']
105
+ if attributes.key?(:'pulp_href')
106
+ self.pulp_href = attributes[:'pulp_href']
107
107
  end
108
108
 
109
- if attributes.key?(:'pulp_created')
110
- self.pulp_created = attributes[:'pulp_created']
109
+ if attributes.key?(:'description')
110
+ self.description = attributes[:'description']
111
111
  end
112
112
 
113
- if attributes.key?(:'name')
114
- self.name = attributes[:'name']
113
+ if attributes.key?(:'versions_href')
114
+ self.versions_href = attributes[:'versions_href']
115
115
  end
116
116
 
117
- if attributes.key?(:'retain_repo_versions')
118
- self.retain_repo_versions = attributes[:'retain_repo_versions']
117
+ if attributes.key?(:'pulp_labels')
118
+ self.pulp_labels = attributes[:'pulp_labels']
119
119
  end
120
120
  end
121
121
 
@@ -157,14 +157,14 @@ module PulpContainerClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
+ pulp_created == o.pulp_created &&
161
+ name == o.name &&
160
162
  latest_version_href == o.latest_version_href &&
161
- description == o.description &&
162
- pulp_labels == o.pulp_labels &&
163
+ retain_repo_versions == o.retain_repo_versions &&
163
164
  pulp_href == o.pulp_href &&
165
+ description == o.description &&
164
166
  versions_href == o.versions_href &&
165
- pulp_created == o.pulp_created &&
166
- name == o.name &&
167
- retain_repo_versions == o.retain_repo_versions
167
+ pulp_labels == o.pulp_labels
168
168
  end
169
169
 
170
170
  # @see the `==` method
@@ -176,7 +176,7 @@ module PulpContainerClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [latest_version_href, description, pulp_labels, pulp_href, versions_href, pulp_created, name, retain_repo_versions].hash
179
+ [pulp_created, name, latest_version_href, retain_repo_versions, pulp_href, description, versions_href, pulp_labels].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -15,19 +15,19 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- attr_accessor :pulp_labels
18
+ # An optional content-guard. If none is specified, a default one will be used.
19
+ attr_accessor :content_guard
19
20
 
20
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
21
- attr_accessor :base_path
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
22
23
 
23
24
  # The latest RepositoryVersion for this Repository will be served.
24
25
  attr_accessor :repository
25
26
 
26
- # An optional content-guard. If none is specified, a default one will be used.
27
- attr_accessor :content_guard
27
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
+ attr_accessor :base_path
28
29
 
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
30
+ attr_accessor :pulp_labels
31
31
 
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'pulp_labels' => :'pulp_labels',
45
- :'base_path' => :'base_path',
46
- :'repository' => :'repository',
47
44
  :'content_guard' => :'content_guard',
48
45
  :'name' => :'name',
46
+ :'repository' => :'repository',
47
+ :'base_path' => :'base_path',
48
+ :'pulp_labels' => :'pulp_labels',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'pulp_labels' => :'Object',
59
- :'base_path' => :'String',
60
- :'repository' => :'String',
61
58
  :'content_guard' => :'String',
62
59
  :'name' => :'String',
60
+ :'repository' => :'String',
61
+ :'base_path' => :'String',
62
+ :'pulp_labels' => :'Object',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,24 +90,24 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'pulp_labels')
94
- self.pulp_labels = attributes[:'pulp_labels']
93
+ if attributes.key?(:'content_guard')
94
+ self.content_guard = attributes[:'content_guard']
95
95
  end
96
96
 
97
- if attributes.key?(:'base_path')
98
- self.base_path = attributes[:'base_path']
97
+ if attributes.key?(:'name')
98
+ self.name = attributes[:'name']
99
99
  end
100
100
 
101
101
  if attributes.key?(:'repository')
102
102
  self.repository = attributes[:'repository']
103
103
  end
104
104
 
105
- if attributes.key?(:'content_guard')
106
- self.content_guard = attributes[:'content_guard']
105
+ if attributes.key?(:'base_path')
106
+ self.base_path = attributes[:'base_path']
107
107
  end
108
108
 
109
- if attributes.key?(:'name')
110
- self.name = attributes[:'name']
109
+ if attributes.key?(:'pulp_labels')
110
+ self.pulp_labels = attributes[:'pulp_labels']
111
111
  end
112
112
 
113
113
  if attributes.key?(:'repository_version')
@@ -127,14 +127,14 @@ module PulpContainerClient
127
127
  # @return Array for valid properties with the reasons
128
128
  def list_invalid_properties
129
129
  invalid_properties = Array.new
130
- if !@base_path.nil? && @base_path.to_s.length < 1
131
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
132
- end
133
-
134
130
  if !@name.nil? && @name.to_s.length < 1
135
131
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
136
132
  end
137
133
 
134
+ if !@base_path.nil? && @base_path.to_s.length < 1
135
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
136
+ end
137
+
138
138
  if !@description.nil? && @description.to_s.length < 1
139
139
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
140
140
  end
@@ -145,22 +145,12 @@ module PulpContainerClient
145
145
  # Check to see if the all the properties in the model are valid
146
146
  # @return true if the model is valid
147
147
  def valid?
148
- return false if !@base_path.nil? && @base_path.to_s.length < 1
149
148
  return false if !@name.nil? && @name.to_s.length < 1
149
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
150
150
  return false if !@description.nil? && @description.to_s.length < 1
151
151
  true
152
152
  end
153
153
 
154
- # Custom attribute writer method with validation
155
- # @param [Object] base_path Value to be assigned
156
- def base_path=(base_path)
157
- if !base_path.nil? && base_path.to_s.length < 1
158
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
159
- end
160
-
161
- @base_path = base_path
162
- end
163
-
164
154
  # Custom attribute writer method with validation
165
155
  # @param [Object] name Value to be assigned
166
156
  def name=(name)
@@ -171,6 +161,16 @@ module PulpContainerClient
171
161
  @name = name
172
162
  end
173
163
 
164
+ # Custom attribute writer method with validation
165
+ # @param [Object] base_path Value to be assigned
166
+ def base_path=(base_path)
167
+ if !base_path.nil? && base_path.to_s.length < 1
168
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
169
+ end
170
+
171
+ @base_path = base_path
172
+ end
173
+
174
174
  # Custom attribute writer method with validation
175
175
  # @param [Object] description Value to be assigned
176
176
  def description=(description)
@@ -186,11 +186,11 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- pulp_labels == o.pulp_labels &&
190
- base_path == o.base_path &&
191
- repository == o.repository &&
192
189
  content_guard == o.content_guard &&
193
190
  name == o.name &&
191
+ repository == o.repository &&
192
+ base_path == o.base_path &&
193
+ pulp_labels == o.pulp_labels &&
194
194
  repository_version == o.repository_version &&
195
195
  private == o.private &&
196
196
  description == o.description
@@ -205,7 +205,7 @@ module PulpContainerClient
205
205
  # Calculates hash code according to all attributes.
206
206
  # @return [Integer] Hash code
207
207
  def hash
208
- [pulp_labels, base_path, repository, content_guard, name, repository_version, private, description].hash
208
+ [content_guard, name, repository, base_path, pulp_labels, repository_version, private, description].hash
209
209
  end
210
210
 
211
211
  # Builds the object from hash
@@ -15,42 +15,42 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
- # An optional description.
19
- attr_accessor :description
20
-
21
- attr_accessor :pulp_labels
22
-
23
18
  # A unique name for this repository.
24
19
  attr_accessor :name
25
20
 
26
21
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
22
  attr_accessor :retain_repo_versions
28
23
 
24
+ # An optional description.
25
+ attr_accessor :description
26
+
27
+ attr_accessor :pulp_labels
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'description' => :'description',
33
- :'pulp_labels' => :'pulp_labels',
34
32
  :'name' => :'name',
35
- :'retain_repo_versions' => :'retain_repo_versions'
33
+ :'retain_repo_versions' => :'retain_repo_versions',
34
+ :'description' => :'description',
35
+ :'pulp_labels' => :'pulp_labels'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'description' => :'String',
43
- :'pulp_labels' => :'Object',
44
42
  :'name' => :'String',
45
- :'retain_repo_versions' => :'Integer'
43
+ :'retain_repo_versions' => :'Integer',
44
+ :'description' => :'String',
45
+ :'pulp_labels' => :'Object'
46
46
  }
47
47
  end
48
48
 
49
49
  # List of attributes with nullable: true
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
+ :'retain_repo_versions',
52
53
  :'description',
53
- :'retain_repo_versions'
54
54
  ])
55
55
  end
56
56
 
@@ -69,14 +69,6 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'description')
73
- self.description = attributes[:'description']
74
- end
75
-
76
- if attributes.key?(:'pulp_labels')
77
- self.pulp_labels = attributes[:'pulp_labels']
78
- end
79
-
80
72
  if attributes.key?(:'name')
81
73
  self.name = attributes[:'name']
82
74
  end
@@ -84,16 +76,20 @@ module PulpContainerClient
84
76
  if attributes.key?(:'retain_repo_versions')
85
77
  self.retain_repo_versions = attributes[:'retain_repo_versions']
86
78
  end
79
+
80
+ if attributes.key?(:'description')
81
+ self.description = attributes[:'description']
82
+ end
83
+
84
+ if attributes.key?(:'pulp_labels')
85
+ self.pulp_labels = attributes[:'pulp_labels']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
- if !@description.nil? && @description.to_s.length < 1
94
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
95
- end
96
-
97
93
  if !@name.nil? && @name.to_s.length < 1
98
94
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
99
95
  end
@@ -102,28 +98,22 @@ module PulpContainerClient
102
98
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
103
99
  end
104
100
 
101
+ if !@description.nil? && @description.to_s.length < 1
102
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
103
+ end
104
+
105
105
  invalid_properties
106
106
  end
107
107
 
108
108
  # Check to see if the all the properties in the model are valid
109
109
  # @return true if the model is valid
110
110
  def valid?
111
- return false if !@description.nil? && @description.to_s.length < 1
112
111
  return false if !@name.nil? && @name.to_s.length < 1
113
112
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
113
+ return false if !@description.nil? && @description.to_s.length < 1
114
114
  true
115
115
  end
116
116
 
117
- # Custom attribute writer method with validation
118
- # @param [Object] description Value to be assigned
119
- def description=(description)
120
- if !description.nil? && description.to_s.length < 1
121
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
122
- end
123
-
124
- @description = description
125
- end
126
-
127
117
  # Custom attribute writer method with validation
128
118
  # @param [Object] name Value to be assigned
129
119
  def name=(name)
@@ -144,15 +134,25 @@ module PulpContainerClient
144
134
  @retain_repo_versions = retain_repo_versions
145
135
  end
146
136
 
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] description Value to be assigned
139
+ def description=(description)
140
+ if !description.nil? && description.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @description = description
145
+ end
146
+
147
147
  # Checks equality by comparing each attribute.
148
148
  # @param [Object] Object to be compared
149
149
  def ==(o)
150
150
  return true if self.equal?(o)
151
151
  self.class == o.class &&
152
- description == o.description &&
153
- pulp_labels == o.pulp_labels &&
154
152
  name == o.name &&
155
- retain_repo_versions == o.retain_repo_versions
153
+ retain_repo_versions == o.retain_repo_versions &&
154
+ description == o.description &&
155
+ pulp_labels == o.pulp_labels
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module PulpContainerClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [description, pulp_labels, name, retain_repo_versions].hash
167
+ [name, retain_repo_versions, description, pulp_labels].hash
168
168
  end
169
169
 
170
170
  # 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.10.10'
14
+ VERSION = '2.10.12'
15
15
  end