pulp_container_client 2.29.2 → 2.30.0

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  7. data/docs/ContainerContainerPushRepository.md +6 -6
  8. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  13. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +58 -58
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +58 -58
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +54 -54
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +51 -51
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +51 -51
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +50 -50
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  25. data/spec/models/container_container_distribution_spec.rb +7 -7
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
  28. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  29. data/spec/models/container_container_push_repository_spec.rb +3 -3
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  33. metadata +1 -1
@@ -16,13 +16,13 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- # Retain X versions of the repository. Default is null which retains all versions.
20
- attr_accessor :retain_repo_versions
19
+ # An optional description.
20
+ attr_accessor :description
21
21
 
22
22
  attr_accessor :pulp_labels
23
23
 
24
- # A unique name for this repository.
25
- attr_accessor :name
24
+ # Retain X versions of the repository. Default is null which retains all versions.
25
+ attr_accessor :retain_repo_versions
26
26
 
27
27
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
28
28
  attr_accessor :retain_checkpoints
@@ -30,18 +30,18 @@ module PulpContainerClient
30
30
  # A reference to an associated signing service.
31
31
  attr_accessor :manifest_signing_service
32
32
 
33
- # An optional description.
34
- attr_accessor :description
33
+ # A unique name for this repository.
34
+ attr_accessor :name
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'retain_repo_versions' => :'retain_repo_versions',
39
+ :'description' => :'description',
40
40
  :'pulp_labels' => :'pulp_labels',
41
- :'name' => :'name',
41
+ :'retain_repo_versions' => :'retain_repo_versions',
42
42
  :'retain_checkpoints' => :'retain_checkpoints',
43
43
  :'manifest_signing_service' => :'manifest_signing_service',
44
- :'description' => :'description'
44
+ :'name' => :'name'
45
45
  }
46
46
  end
47
47
 
@@ -53,22 +53,22 @@ module PulpContainerClient
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
- :'retain_repo_versions' => :'Integer',
56
+ :'description' => :'String',
57
57
  :'pulp_labels' => :'Hash<String, String>',
58
- :'name' => :'String',
58
+ :'retain_repo_versions' => :'Integer',
59
59
  :'retain_checkpoints' => :'Integer',
60
60
  :'manifest_signing_service' => :'String',
61
- :'description' => :'String'
61
+ :'name' => :'String'
62
62
  }
63
63
  end
64
64
 
65
65
  # List of attributes with nullable: true
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
+ :'description',
68
69
  :'retain_repo_versions',
69
70
  :'retain_checkpoints',
70
71
  :'manifest_signing_service',
71
- :'description'
72
72
  ])
73
73
  end
74
74
 
@@ -87,8 +87,8 @@ module PulpContainerClient
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
- if attributes.key?(:'retain_repo_versions')
91
- self.retain_repo_versions = attributes[:'retain_repo_versions']
90
+ if attributes.key?(:'description')
91
+ self.description = attributes[:'description']
92
92
  end
93
93
 
94
94
  if attributes.key?(:'pulp_labels')
@@ -97,10 +97,8 @@ module PulpContainerClient
97
97
  end
98
98
  end
99
99
 
100
- if attributes.key?(:'name')
101
- self.name = attributes[:'name']
102
- else
103
- self.name = nil
100
+ if attributes.key?(:'retain_repo_versions')
101
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
104
102
  end
105
103
 
106
104
  if attributes.key?(:'retain_checkpoints')
@@ -111,8 +109,10 @@ module PulpContainerClient
111
109
  self.manifest_signing_service = attributes[:'manifest_signing_service']
112
110
  end
113
111
 
114
- if attributes.key?(:'description')
115
- self.description = attributes[:'description']
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
+ else
115
+ self.name = nil
116
116
  end
117
117
  end
118
118
 
@@ -121,10 +121,18 @@ module PulpContainerClient
121
121
  def list_invalid_properties
122
122
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
123
  invalid_properties = Array.new
124
+ if !@description.nil? && @description.to_s.length < 1
125
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
126
+ end
127
+
124
128
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
129
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
130
  end
127
131
 
132
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
133
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
134
+ end
135
+
128
136
  if @name.nil?
129
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
130
138
  end
@@ -133,14 +141,6 @@ module PulpContainerClient
133
141
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
134
142
  end
135
143
 
136
- if !@retain_checkpoints.nil? && @retain_checkpoints < 1
137
- invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
138
- end
139
-
140
- if !@description.nil? && @description.to_s.length < 1
141
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
142
- end
143
-
144
144
  invalid_properties
145
145
  end
146
146
 
@@ -148,36 +148,32 @@ module PulpContainerClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
151
+ return false if !@description.nil? && @description.to_s.length < 1
151
152
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
152
154
  return false if @name.nil?
153
155
  return false if @name.to_s.length < 1
154
- return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
155
- return false if !@description.nil? && @description.to_s.length < 1
156
156
  true
157
157
  end
158
158
 
159
159
  # Custom attribute writer method with validation
160
- # @param [Object] retain_repo_versions Value to be assigned
161
- def retain_repo_versions=(retain_repo_versions)
162
- if !retain_repo_versions.nil? && retain_repo_versions < 1
163
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
160
+ # @param [Object] description Value to be assigned
161
+ def description=(description)
162
+ if !description.nil? && description.to_s.length < 1
163
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
164
164
  end
165
165
 
166
- @retain_repo_versions = retain_repo_versions
166
+ @description = description
167
167
  end
168
168
 
169
169
  # Custom attribute writer method with validation
170
- # @param [Object] name Value to be assigned
171
- def name=(name)
172
- if name.nil?
173
- fail ArgumentError, 'name cannot be nil'
174
- end
175
-
176
- if name.to_s.length < 1
177
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
170
+ # @param [Object] retain_repo_versions Value to be assigned
171
+ def retain_repo_versions=(retain_repo_versions)
172
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
173
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
178
174
  end
179
175
 
180
- @name = name
176
+ @retain_repo_versions = retain_repo_versions
181
177
  end
182
178
 
183
179
  # Custom attribute writer method with validation
@@ -191,13 +187,17 @@ module PulpContainerClient
191
187
  end
192
188
 
193
189
  # Custom attribute writer method with validation
194
- # @param [Object] description Value to be assigned
195
- def description=(description)
196
- if !description.nil? && description.to_s.length < 1
197
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
190
+ # @param [Object] name Value to be assigned
191
+ def name=(name)
192
+ if name.nil?
193
+ fail ArgumentError, 'name cannot be nil'
198
194
  end
199
195
 
200
- @description = description
196
+ if name.to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
198
+ end
199
+
200
+ @name = name
201
201
  end
202
202
 
203
203
  # Checks equality by comparing each attribute.
@@ -205,12 +205,12 @@ module PulpContainerClient
205
205
  def ==(o)
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
- retain_repo_versions == o.retain_repo_versions &&
208
+ description == o.description &&
209
209
  pulp_labels == o.pulp_labels &&
210
- name == o.name &&
210
+ retain_repo_versions == o.retain_repo_versions &&
211
211
  retain_checkpoints == o.retain_checkpoints &&
212
212
  manifest_signing_service == o.manifest_signing_service &&
213
- description == o.description
213
+ name == o.name
214
214
  end
215
215
 
216
216
  # @see the `==` method
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [retain_repo_versions, pulp_labels, name, retain_checkpoints, manifest_signing_service, description].hash
225
+ [description, pulp_labels, retain_repo_versions, retain_checkpoints, manifest_signing_service, name].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -19,32 +19,32 @@ module PulpContainerClient
19
19
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
20
20
  attr_accessor :pulp_last_updated
21
21
 
22
- # Retain X versions of the repository. Default is null which retains all versions.
23
- attr_accessor :retain_repo_versions
22
+ attr_accessor :latest_version_href
23
+
24
+ # An optional description.
25
+ attr_accessor :description
26
+
27
+ attr_accessor :pulp_href
24
28
 
25
29
  attr_accessor :pulp_labels
26
30
 
27
- # A unique name for this repository.
28
- attr_accessor :name
31
+ # Retain X versions of the repository. Default is null which retains all versions.
32
+ attr_accessor :retain_repo_versions
29
33
 
30
34
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
35
  attr_accessor :retain_checkpoints
32
36
 
33
- attr_accessor :latest_version_href
34
-
35
- attr_accessor :pulp_href
36
-
37
37
  # A reference to an associated signing service.
38
38
  attr_accessor :manifest_signing_service
39
39
 
40
- # An optional description.
41
- attr_accessor :description
42
-
43
40
  attr_accessor :versions_href
44
41
 
45
42
  # Timestamp of creation.
46
43
  attr_accessor :pulp_created
47
44
 
45
+ # A unique name for this repository.
46
+ attr_accessor :name
47
+
48
48
  # The Pulp Resource Name (PRN).
49
49
  attr_accessor :prn
50
50
 
@@ -52,16 +52,16 @@ module PulpContainerClient
52
52
  def self.attribute_map
53
53
  {
54
54
  :'pulp_last_updated' => :'pulp_last_updated',
55
- :'retain_repo_versions' => :'retain_repo_versions',
56
- :'pulp_labels' => :'pulp_labels',
57
- :'name' => :'name',
58
- :'retain_checkpoints' => :'retain_checkpoints',
59
55
  :'latest_version_href' => :'latest_version_href',
56
+ :'description' => :'description',
60
57
  :'pulp_href' => :'pulp_href',
58
+ :'pulp_labels' => :'pulp_labels',
59
+ :'retain_repo_versions' => :'retain_repo_versions',
60
+ :'retain_checkpoints' => :'retain_checkpoints',
61
61
  :'manifest_signing_service' => :'manifest_signing_service',
62
- :'description' => :'description',
63
62
  :'versions_href' => :'versions_href',
64
63
  :'pulp_created' => :'pulp_created',
64
+ :'name' => :'name',
65
65
  :'prn' => :'prn'
66
66
  }
67
67
  end
@@ -75,16 +75,16 @@ module PulpContainerClient
75
75
  def self.openapi_types
76
76
  {
77
77
  :'pulp_last_updated' => :'Time',
78
- :'retain_repo_versions' => :'Integer',
79
- :'pulp_labels' => :'Hash<String, String>',
80
- :'name' => :'String',
81
- :'retain_checkpoints' => :'Integer',
82
78
  :'latest_version_href' => :'String',
79
+ :'description' => :'String',
83
80
  :'pulp_href' => :'String',
81
+ :'pulp_labels' => :'Hash<String, String>',
82
+ :'retain_repo_versions' => :'Integer',
83
+ :'retain_checkpoints' => :'Integer',
84
84
  :'manifest_signing_service' => :'String',
85
- :'description' => :'String',
86
85
  :'versions_href' => :'String',
87
86
  :'pulp_created' => :'Time',
87
+ :'name' => :'String',
88
88
  :'prn' => :'String'
89
89
  }
90
90
  end
@@ -92,10 +92,10 @@ module PulpContainerClient
92
92
  # List of attributes with nullable: true
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
+ :'description',
95
96
  :'retain_repo_versions',
96
97
  :'retain_checkpoints',
97
98
  :'manifest_signing_service',
98
- :'description',
99
99
  ])
100
100
  end
101
101
 
@@ -118,8 +118,16 @@ module PulpContainerClient
118
118
  self.pulp_last_updated = attributes[:'pulp_last_updated']
119
119
  end
120
120
 
121
- if attributes.key?(:'retain_repo_versions')
122
- self.retain_repo_versions = attributes[:'retain_repo_versions']
121
+ if attributes.key?(:'latest_version_href')
122
+ self.latest_version_href = attributes[:'latest_version_href']
123
+ end
124
+
125
+ if attributes.key?(:'description')
126
+ self.description = attributes[:'description']
127
+ end
128
+
129
+ if attributes.key?(:'pulp_href')
130
+ self.pulp_href = attributes[:'pulp_href']
123
131
  end
124
132
 
125
133
  if attributes.key?(:'pulp_labels')
@@ -128,32 +136,18 @@ module PulpContainerClient
128
136
  end
129
137
  end
130
138
 
131
- if attributes.key?(:'name')
132
- self.name = attributes[:'name']
133
- else
134
- self.name = nil
139
+ if attributes.key?(:'retain_repo_versions')
140
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
135
141
  end
136
142
 
137
143
  if attributes.key?(:'retain_checkpoints')
138
144
  self.retain_checkpoints = attributes[:'retain_checkpoints']
139
145
  end
140
146
 
141
- if attributes.key?(:'latest_version_href')
142
- self.latest_version_href = attributes[:'latest_version_href']
143
- end
144
-
145
- if attributes.key?(:'pulp_href')
146
- self.pulp_href = attributes[:'pulp_href']
147
- end
148
-
149
147
  if attributes.key?(:'manifest_signing_service')
150
148
  self.manifest_signing_service = attributes[:'manifest_signing_service']
151
149
  end
152
150
 
153
- if attributes.key?(:'description')
154
- self.description = attributes[:'description']
155
- end
156
-
157
151
  if attributes.key?(:'versions_href')
158
152
  self.versions_href = attributes[:'versions_href']
159
153
  end
@@ -162,6 +156,12 @@ module PulpContainerClient
162
156
  self.pulp_created = attributes[:'pulp_created']
163
157
  end
164
158
 
159
+ if attributes.key?(:'name')
160
+ self.name = attributes[:'name']
161
+ else
162
+ self.name = nil
163
+ end
164
+
165
165
  if attributes.key?(:'prn')
166
166
  self.prn = attributes[:'prn']
167
167
  end
@@ -176,14 +176,14 @@ module PulpContainerClient
176
176
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
177
177
  end
178
178
 
179
- if @name.nil?
180
- invalid_properties.push('invalid value for "name", name cannot be nil.')
181
- end
182
-
183
179
  if !@retain_checkpoints.nil? && @retain_checkpoints < 1
184
180
  invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
185
181
  end
186
182
 
183
+ if @name.nil?
184
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
185
+ end
186
+
187
187
  invalid_properties
188
188
  end
189
189
 
@@ -192,8 +192,8 @@ module PulpContainerClient
192
192
  def valid?
193
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
194
194
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
195
- return false if @name.nil?
196
195
  return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
196
+ return false if @name.nil?
197
197
  true
198
198
  end
199
199
 
@@ -223,16 +223,16 @@ module PulpContainerClient
223
223
  return true if self.equal?(o)
224
224
  self.class == o.class &&
225
225
  pulp_last_updated == o.pulp_last_updated &&
226
- retain_repo_versions == o.retain_repo_versions &&
227
- pulp_labels == o.pulp_labels &&
228
- name == o.name &&
229
- retain_checkpoints == o.retain_checkpoints &&
230
226
  latest_version_href == o.latest_version_href &&
227
+ description == o.description &&
231
228
  pulp_href == o.pulp_href &&
229
+ pulp_labels == o.pulp_labels &&
230
+ retain_repo_versions == o.retain_repo_versions &&
231
+ retain_checkpoints == o.retain_checkpoints &&
232
232
  manifest_signing_service == o.manifest_signing_service &&
233
- description == o.description &&
234
233
  versions_href == o.versions_href &&
235
234
  pulp_created == o.pulp_created &&
235
+ name == o.name &&
236
236
  prn == o.prn
237
237
  end
238
238
 
@@ -245,7 +245,7 @@ module PulpContainerClient
245
245
  # Calculates hash code according to all attributes.
246
246
  # @return [Integer] Hash code
247
247
  def hash
248
- [pulp_last_updated, retain_repo_versions, pulp_labels, name, retain_checkpoints, latest_version_href, pulp_href, manifest_signing_service, description, versions_href, pulp_created, prn].hash
248
+ [pulp_last_updated, latest_version_href, description, pulp_href, pulp_labels, retain_repo_versions, retain_checkpoints, manifest_signing_service, versions_href, pulp_created, name, prn].hash
249
249
  end
250
250
 
251
251
  # Builds the object from hash
@@ -16,26 +16,26 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
+ # An optional content-guard. If none is specified, a default one will be used.
20
+ attr_accessor :content_guard
21
+
22
+ # RepositoryVersion to be served
23
+ attr_accessor :repository_version
24
+
19
25
  # The latest RepositoryVersion for this Repository will be served.
20
26
  attr_accessor :repository
21
27
 
22
28
  # Whether this distribution should be shown in the content app.
23
29
  attr_accessor :hidden
24
30
 
31
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
32
+ attr_accessor :base_path
33
+
25
34
  attr_accessor :pulp_labels
26
35
 
27
36
  # A unique name. Ex, `rawhide` and `stable`.
28
37
  attr_accessor :name
29
38
 
30
- # An optional content-guard. If none is specified, a default one will be used.
31
- attr_accessor :content_guard
32
-
33
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
34
- attr_accessor :base_path
35
-
36
- # RepositoryVersion to be served
37
- attr_accessor :repository_version
38
-
39
39
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
40
40
  attr_accessor :private
41
41
 
@@ -45,13 +45,13 @@ module PulpContainerClient
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
+ :'content_guard' => :'content_guard',
49
+ :'repository_version' => :'repository_version',
48
50
  :'repository' => :'repository',
49
51
  :'hidden' => :'hidden',
52
+ :'base_path' => :'base_path',
50
53
  :'pulp_labels' => :'pulp_labels',
51
54
  :'name' => :'name',
52
- :'content_guard' => :'content_guard',
53
- :'base_path' => :'base_path',
54
- :'repository_version' => :'repository_version',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
57
57
  }
@@ -65,13 +65,13 @@ module PulpContainerClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
+ :'content_guard' => :'String',
69
+ :'repository_version' => :'String',
68
70
  :'repository' => :'String',
69
71
  :'hidden' => :'Boolean',
72
+ :'base_path' => :'String',
70
73
  :'pulp_labels' => :'Hash<String, String>',
71
74
  :'name' => :'String',
72
- :'content_guard' => :'String',
73
- :'base_path' => :'String',
74
- :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
77
77
  }
@@ -80,8 +80,8 @@ module PulpContainerClient
80
80
  # List of attributes with nullable: true
81
81
  def self.openapi_nullable
82
82
  Set.new([
83
- :'repository',
84
83
  :'repository_version',
84
+ :'repository',
85
85
  :'description'
86
86
  ])
87
87
  end
@@ -101,6 +101,14 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
+ if attributes.key?(:'content_guard')
105
+ self.content_guard = attributes[:'content_guard']
106
+ end
107
+
108
+ if attributes.key?(:'repository_version')
109
+ self.repository_version = attributes[:'repository_version']
110
+ end
111
+
104
112
  if attributes.key?(:'repository')
105
113
  self.repository = attributes[:'repository']
106
114
  end
@@ -111,6 +119,10 @@ module PulpContainerClient
111
119
  self.hidden = false
112
120
  end
113
121
 
122
+ if attributes.key?(:'base_path')
123
+ self.base_path = attributes[:'base_path']
124
+ end
125
+
114
126
  if attributes.key?(:'pulp_labels')
115
127
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
128
  self.pulp_labels = value
@@ -121,18 +133,6 @@ module PulpContainerClient
121
133
  self.name = attributes[:'name']
122
134
  end
123
135
 
124
- if attributes.key?(:'content_guard')
125
- self.content_guard = attributes[:'content_guard']
126
- end
127
-
128
- if attributes.key?(:'base_path')
129
- self.base_path = attributes[:'base_path']
130
- end
131
-
132
- if attributes.key?(:'repository_version')
133
- self.repository_version = attributes[:'repository_version']
134
- end
135
-
136
136
  if attributes.key?(:'private')
137
137
  self.private = attributes[:'private']
138
138
  end
@@ -147,14 +147,14 @@ module PulpContainerClient
147
147
  def list_invalid_properties
148
148
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
149
149
  invalid_properties = Array.new
150
- if !@name.nil? && @name.to_s.length < 1
151
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
152
- end
153
-
154
150
  if !@base_path.nil? && @base_path.to_s.length < 1
155
151
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
156
152
  end
157
153
 
154
+ if !@name.nil? && @name.to_s.length < 1
155
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
156
+ end
157
+
158
158
  if !@description.nil? && @description.to_s.length < 1
159
159
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
160
160
  end
@@ -166,26 +166,12 @@ module PulpContainerClient
166
166
  # @return true if the model is valid
167
167
  def valid?
168
168
  warn '[DEPRECATED] the `valid?` method is obsolete'
169
- return false if !@name.nil? && @name.to_s.length < 1
170
169
  return false if !@base_path.nil? && @base_path.to_s.length < 1
170
+ return false if !@name.nil? && @name.to_s.length < 1
171
171
  return false if !@description.nil? && @description.to_s.length < 1
172
172
  true
173
173
  end
174
174
 
175
- # Custom attribute writer method with validation
176
- # @param [Object] name Value to be assigned
177
- def name=(name)
178
- if name.nil?
179
- fail ArgumentError, 'name cannot be nil'
180
- end
181
-
182
- if name.to_s.length < 1
183
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
184
- end
185
-
186
- @name = name
187
- end
188
-
189
175
  # Custom attribute writer method with validation
190
176
  # @param [Object] base_path Value to be assigned
191
177
  def base_path=(base_path)
@@ -200,6 +186,20 @@ module PulpContainerClient
200
186
  @base_path = base_path
201
187
  end
202
188
 
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] name Value to be assigned
191
+ def name=(name)
192
+ if name.nil?
193
+ fail ArgumentError, 'name cannot be nil'
194
+ end
195
+
196
+ if name.to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
198
+ end
199
+
200
+ @name = name
201
+ end
202
+
203
203
  # Custom attribute writer method with validation
204
204
  # @param [Object] description Value to be assigned
205
205
  def description=(description)
@@ -215,13 +215,13 @@ module PulpContainerClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
+ content_guard == o.content_guard &&
219
+ repository_version == o.repository_version &&
218
220
  repository == o.repository &&
219
221
  hidden == o.hidden &&
222
+ base_path == o.base_path &&
220
223
  pulp_labels == o.pulp_labels &&
221
224
  name == o.name &&
222
- content_guard == o.content_guard &&
223
- base_path == o.base_path &&
224
- repository_version == o.repository_version &&
225
225
  private == o.private &&
226
226
  description == o.description
227
227
  end
@@ -235,7 +235,7 @@ module PulpContainerClient
235
235
  # Calculates hash code according to all attributes.
236
236
  # @return [Integer] Hash code
237
237
  def hash
238
- [repository, hidden, pulp_labels, name, content_guard, base_path, repository_version, private, description].hash
238
+ [content_guard, repository_version, repository, hidden, base_path, pulp_labels, name, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash