pulp_container_client 2.27.7 → 2.27.8

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