pulp_container_client 2.11.0.dev1640833910 → 2.11.0.dev1641179522

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_container_client might be problematic. Click here for more details.

@@ -15,42 +15,42 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ # 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.
19
+ attr_accessor :retain_repo_versions
20
+
21
+ attr_accessor :pulp_labels
22
+
18
23
  # An optional description.
19
24
  attr_accessor :description
20
25
 
21
26
  # A unique name for this repository.
22
27
  attr_accessor :name
23
28
 
24
- # 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.
25
- attr_accessor :retain_repo_versions
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
- :'name' => :'name',
34
32
  :'retain_repo_versions' => :'retain_repo_versions',
35
- :'pulp_labels' => :'pulp_labels'
33
+ :'pulp_labels' => :'pulp_labels',
34
+ :'description' => :'description',
35
+ :'name' => :'name'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'description' => :'String',
43
- :'name' => :'String',
44
42
  :'retain_repo_versions' => :'Integer',
45
- :'pulp_labels' => :'Object'
43
+ :'pulp_labels' => :'Object',
44
+ :'description' => :'String',
45
+ :'name' => :'String'
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
- :'description',
53
52
  :'retain_repo_versions',
53
+ :'description',
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?(:'name')
77
- self.name = attributes[:'name']
78
- end
79
-
80
72
  if attributes.key?(:'retain_repo_versions')
81
73
  self.retain_repo_versions = attributes[:'retain_repo_versions']
82
74
  end
@@ -84,12 +76,24 @@ module PulpContainerClient
84
76
  if attributes.key?(:'pulp_labels')
85
77
  self.pulp_labels = attributes[:'pulp_labels']
86
78
  end
79
+
80
+ if attributes.key?(:'description')
81
+ self.description = attributes[:'description']
82
+ end
83
+
84
+ if attributes.key?(:'name')
85
+ self.name = attributes[:'name']
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
94
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
95
+ end
96
+
93
97
  if !@description.nil? && @description.to_s.length < 1
94
98
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
95
99
  end
@@ -102,23 +106,29 @@ module PulpContainerClient
102
106
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
103
107
  end
104
108
 
105
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
106
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater 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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
115
116
  return false if !@description.nil? && @description.to_s.length < 1
116
117
  return false if @name.nil?
117
118
  return false if @name.to_s.length < 1
118
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
119
119
  true
120
120
  end
121
121
 
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] retain_repo_versions Value to be assigned
124
+ def retain_repo_versions=(retain_repo_versions)
125
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
126
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
127
+ end
128
+
129
+ @retain_repo_versions = retain_repo_versions
130
+ end
131
+
122
132
  # Custom attribute writer method with validation
123
133
  # @param [Object] description Value to be assigned
124
134
  def description=(description)
@@ -143,25 +153,15 @@ module PulpContainerClient
143
153
  @name = name
144
154
  end
145
155
 
146
- # Custom attribute writer method with validation
147
- # @param [Object] retain_repo_versions Value to be assigned
148
- def retain_repo_versions=(retain_repo_versions)
149
- if !retain_repo_versions.nil? && retain_repo_versions < 1
150
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
151
- end
152
-
153
- @retain_repo_versions = retain_repo_versions
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
- name == o.name &&
163
161
  retain_repo_versions == o.retain_repo_versions &&
164
- pulp_labels == o.pulp_labels
162
+ pulp_labels == o.pulp_labels &&
163
+ description == o.description &&
164
+ name == o.name
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, name, retain_repo_versions, pulp_labels].hash
176
+ [retain_repo_versions, pulp_labels, description, name].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
18
+ # 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.
19
+ attr_accessor :retain_repo_versions
19
20
 
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
21
+ attr_accessor :versions_href
22
+
23
+ attr_accessor :pulp_labels
22
24
 
23
25
  # An optional description.
24
26
  attr_accessor :description
25
27
 
26
- attr_accessor :pulp_href
27
-
28
28
  # A unique name for this repository.
29
29
  attr_accessor :name
30
30
 
31
- # 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.
32
- attr_accessor :retain_repo_versions
31
+ attr_accessor :latest_version_href
33
32
 
34
- attr_accessor :versions_href
33
+ # Timestamp of creation.
34
+ attr_accessor :pulp_created
35
35
 
36
- attr_accessor :pulp_labels
36
+ attr_accessor :pulp_href
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'latest_version_href' => :'latest_version_href',
42
- :'pulp_created' => :'pulp_created',
43
- :'description' => :'description',
44
- :'pulp_href' => :'pulp_href',
45
- :'name' => :'name',
46
41
  :'retain_repo_versions' => :'retain_repo_versions',
47
42
  :'versions_href' => :'versions_href',
48
- :'pulp_labels' => :'pulp_labels'
43
+ :'pulp_labels' => :'pulp_labels',
44
+ :'description' => :'description',
45
+ :'name' => :'name',
46
+ :'latest_version_href' => :'latest_version_href',
47
+ :'pulp_created' => :'pulp_created',
48
+ :'pulp_href' => :'pulp_href'
49
49
  }
50
50
  end
51
51
 
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'latest_version_href' => :'String',
56
- :'pulp_created' => :'DateTime',
57
- :'description' => :'String',
58
- :'pulp_href' => :'String',
59
- :'name' => :'String',
60
55
  :'retain_repo_versions' => :'Integer',
61
56
  :'versions_href' => :'String',
62
- :'pulp_labels' => :'Object'
57
+ :'pulp_labels' => :'Object',
58
+ :'description' => :'String',
59
+ :'name' => :'String',
60
+ :'latest_version_href' => :'String',
61
+ :'pulp_created' => :'DateTime',
62
+ :'pulp_href' => :'String'
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
- :'description',
70
69
  :'retain_repo_versions',
70
+ :'description',
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?(:'retain_repo_versions')
90
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
91
  end
92
92
 
93
- if attributes.key?(:'pulp_created')
94
- self.pulp_created = attributes[:'pulp_created']
93
+ if attributes.key?(:'versions_href')
94
+ self.versions_href = attributes[:'versions_href']
95
95
  end
96
96
 
97
- if attributes.key?(:'description')
98
- self.description = attributes[:'description']
97
+ if attributes.key?(:'pulp_labels')
98
+ self.pulp_labels = attributes[:'pulp_labels']
99
99
  end
100
100
 
101
- if attributes.key?(:'pulp_href')
102
- self.pulp_href = attributes[:'pulp_href']
101
+ if attributes.key?(:'description')
102
+ self.description = attributes[:'description']
103
103
  end
104
104
 
105
105
  if attributes.key?(:'name')
106
106
  self.name = attributes[:'name']
107
107
  end
108
108
 
109
- if attributes.key?(:'retain_repo_versions')
110
- self.retain_repo_versions = attributes[:'retain_repo_versions']
109
+ if attributes.key?(:'latest_version_href')
110
+ self.latest_version_href = attributes[:'latest_version_href']
111
111
  end
112
112
 
113
- if attributes.key?(:'versions_href')
114
- self.versions_href = attributes[:'versions_href']
113
+ if attributes.key?(:'pulp_created')
114
+ self.pulp_created = attributes[:'pulp_created']
115
115
  end
116
116
 
117
- if attributes.key?(:'pulp_labels')
118
- self.pulp_labels = attributes[:'pulp_labels']
117
+ if attributes.key?(:'pulp_href')
118
+ self.pulp_href = attributes[:'pulp_href']
119
119
  end
120
120
  end
121
121
 
@@ -123,22 +123,22 @@ module PulpContainerClient
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if @name.nil?
127
- invalid_properties.push('invalid value for "name", name cannot be nil.')
128
- end
129
-
130
126
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
127
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
132
128
  end
133
129
 
130
+ if @name.nil?
131
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
132
+ end
133
+
134
134
  invalid_properties
135
135
  end
136
136
 
137
137
  # Check to see if the all the properties in the model are valid
138
138
  # @return true if the model is valid
139
139
  def valid?
140
- return false if @name.nil?
141
140
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ return false if @name.nil?
142
142
  true
143
143
  end
144
144
 
@@ -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
- latest_version_href == o.latest_version_href &&
161
- pulp_created == o.pulp_created &&
162
- description == o.description &&
163
- pulp_href == o.pulp_href &&
164
- name == o.name &&
165
160
  retain_repo_versions == o.retain_repo_versions &&
166
161
  versions_href == o.versions_href &&
167
- pulp_labels == o.pulp_labels
162
+ pulp_labels == o.pulp_labels &&
163
+ description == o.description &&
164
+ name == o.name &&
165
+ latest_version_href == o.latest_version_href &&
166
+ pulp_created == o.pulp_created &&
167
+ pulp_href == o.pulp_href
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, pulp_created, description, pulp_href, name, retain_repo_versions, versions_href, pulp_labels].hash
179
+ [retain_repo_versions, versions_href, pulp_labels, description, name, latest_version_href, pulp_created, pulp_href].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -15,8 +15,7 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
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\")
19
- attr_accessor :base_path
18
+ attr_accessor :pulp_labels
20
19
 
21
20
  # An optional content-guard. If none is specified, a default one will be used.
22
21
  attr_accessor :content_guard
@@ -24,11 +23,12 @@ module PulpContainerClient
24
23
  # A unique name. Ex, `rawhide` and `stable`.
25
24
  attr_accessor :name
26
25
 
27
- attr_accessor :pulp_labels
28
-
29
26
  # The latest RepositoryVersion for this Repository will be served.
30
27
  attr_accessor :repository
31
28
 
29
+ # 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
+ attr_accessor :base_path
31
+
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
34
34
 
@@ -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
- :'base_path' => :'base_path',
44
+ :'pulp_labels' => :'pulp_labels',
45
45
  :'content_guard' => :'content_guard',
46
46
  :'name' => :'name',
47
- :'pulp_labels' => :'pulp_labels',
48
47
  :'repository' => :'repository',
48
+ :'base_path' => :'base_path',
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
- :'base_path' => :'String',
58
+ :'pulp_labels' => :'Object',
59
59
  :'content_guard' => :'String',
60
60
  :'name' => :'String',
61
- :'pulp_labels' => :'Object',
62
61
  :'repository' => :'String',
62
+ :'base_path' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,8 +90,8 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'base_path')
94
- self.base_path = attributes[:'base_path']
93
+ if attributes.key?(:'pulp_labels')
94
+ self.pulp_labels = attributes[:'pulp_labels']
95
95
  end
96
96
 
97
97
  if attributes.key?(:'content_guard')
@@ -102,14 +102,14 @@ module PulpContainerClient
102
102
  self.name = attributes[:'name']
103
103
  end
104
104
 
105
- if attributes.key?(:'pulp_labels')
106
- self.pulp_labels = attributes[:'pulp_labels']
107
- end
108
-
109
105
  if attributes.key?(:'repository')
110
106
  self.repository = attributes[:'repository']
111
107
  end
112
108
 
109
+ if attributes.key?(:'base_path')
110
+ self.base_path = attributes[:'base_path']
111
+ end
112
+
113
113
  if attributes.key?(:'repository_version')
114
114
  self.repository_version = attributes[:'repository_version']
115
115
  end
@@ -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
- base_path == o.base_path &&
189
+ pulp_labels == o.pulp_labels &&
190
190
  content_guard == o.content_guard &&
191
191
  name == o.name &&
192
- pulp_labels == o.pulp_labels &&
193
192
  repository == o.repository &&
193
+ base_path == o.base_path &&
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
- [base_path, content_guard, name, pulp_labels, repository, repository_version, private, description].hash
208
+ [pulp_labels, content_guard, name, repository, base_path, 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
+ # 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.
19
+ attr_accessor :retain_repo_versions
20
+
21
+ attr_accessor :pulp_labels
22
+
18
23
  # An optional description.
19
24
  attr_accessor :description
20
25
 
21
26
  # A unique name for this repository.
22
27
  attr_accessor :name
23
28
 
24
- # 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.
25
- attr_accessor :retain_repo_versions
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
- :'name' => :'name',
34
32
  :'retain_repo_versions' => :'retain_repo_versions',
35
- :'pulp_labels' => :'pulp_labels'
33
+ :'pulp_labels' => :'pulp_labels',
34
+ :'description' => :'description',
35
+ :'name' => :'name'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'description' => :'String',
43
- :'name' => :'String',
44
42
  :'retain_repo_versions' => :'Integer',
45
- :'pulp_labels' => :'Object'
43
+ :'pulp_labels' => :'Object',
44
+ :'description' => :'String',
45
+ :'name' => :'String'
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
- :'description',
53
52
  :'retain_repo_versions',
53
+ :'description',
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?(:'name')
77
- self.name = attributes[:'name']
78
- end
79
-
80
72
  if attributes.key?(:'retain_repo_versions')
81
73
  self.retain_repo_versions = attributes[:'retain_repo_versions']
82
74
  end
@@ -84,12 +76,24 @@ module PulpContainerClient
84
76
  if attributes.key?(:'pulp_labels')
85
77
  self.pulp_labels = attributes[:'pulp_labels']
86
78
  end
79
+
80
+ if attributes.key?(:'description')
81
+ self.description = attributes[:'description']
82
+ end
83
+
84
+ if attributes.key?(:'name')
85
+ self.name = attributes[:'name']
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
94
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
95
+ end
96
+
93
97
  if !@description.nil? && @description.to_s.length < 1
94
98
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
95
99
  end
@@ -98,22 +102,28 @@ module PulpContainerClient
98
102
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
99
103
  end
100
104
 
101
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
102
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater 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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
111
112
  return false if !@description.nil? && @description.to_s.length < 1
112
113
  return false if !@name.nil? && @name.to_s.length < 1
113
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
114
  true
115
115
  end
116
116
 
117
+ # Custom attribute writer method with validation
118
+ # @param [Object] retain_repo_versions Value to be assigned
119
+ def retain_repo_versions=(retain_repo_versions)
120
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
121
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
122
+ end
123
+
124
+ @retain_repo_versions = retain_repo_versions
125
+ end
126
+
117
127
  # Custom attribute writer method with validation
118
128
  # @param [Object] description Value to be assigned
119
129
  def description=(description)
@@ -134,25 +144,15 @@ module PulpContainerClient
134
144
  @name = name
135
145
  end
136
146
 
137
- # Custom attribute writer method with validation
138
- # @param [Object] retain_repo_versions Value to be assigned
139
- def retain_repo_versions=(retain_repo_versions)
140
- if !retain_repo_versions.nil? && retain_repo_versions < 1
141
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
142
- end
143
-
144
- @retain_repo_versions = retain_repo_versions
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
- name == o.name &&
154
152
  retain_repo_versions == o.retain_repo_versions &&
155
- pulp_labels == o.pulp_labels
153
+ pulp_labels == o.pulp_labels &&
154
+ description == o.description &&
155
+ name == o.name
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, name, retain_repo_versions, pulp_labels].hash
167
+ [retain_repo_versions, pulp_labels, description, name].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash