pulp_container_client 2.26.9 → 2.26.10

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