pulp_container_client 2.15.0.dev1669346419 → 2.15.0.dev1669519344

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