pulp_container_client 2.27.12 → 2.28.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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerNamespace.md +3 -1
  6. data/docs/ContainerContainerNamespaceResponse.md +3 -1
  7. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  9. data/docs/ContainerContainerPushRepository.md +4 -4
  10. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  11. data/docs/ContainerContainerRemote.md +6 -2
  12. data/docs/ContainerContainerRemoteResponse.md +4 -4
  13. data/docs/ContainerManifestSignatureResponse.md +2 -0
  14. data/docs/ContentSignaturesApi.md +2 -2
  15. data/docs/DistributionsContainerApi.md +2 -2
  16. data/docs/DistributionsPullThroughApi.md +12 -12
  17. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  18. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  19. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  20. data/docs/PatchedcontainerContainerRemote.md +6 -2
  21. data/docs/PulpContainerNamespacesApi.md +2 -2
  22. data/lib/pulp_container_client/api/content_signatures_api.rb +3 -3
  23. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +8 -4
  24. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
  25. data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
  26. data/lib/pulp_container_client/models/container_container_distribution_response.rb +76 -76
  27. data/lib/pulp_container_client/models/container_container_namespace.rb +15 -4
  28. data/lib/pulp_container_client/models/container_container_namespace_response.rb +15 -4
  29. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +55 -55
  30. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +76 -76
  31. data/lib/pulp_container_client/models/container_container_push_repository.rb +35 -35
  32. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -66
  33. data/lib/pulp_container_client/models/container_container_remote.rb +29 -3
  34. data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -19
  35. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +14 -1
  36. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +47 -47
  37. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
  38. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
  39. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +29 -3
  40. data/lib/pulp_container_client/version.rb +1 -1
  41. data/spec/api/content_signatures_api_spec.rb +1 -1
  42. data/spec/api/distributions_pull_through_api_spec.rb +4 -2
  43. data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
  44. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  45. data/spec/models/container_container_distribution_spec.rb +6 -6
  46. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  47. data/spec/models/container_container_namespace_spec.rb +6 -0
  48. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  49. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  50. data/spec/models/container_container_push_repository_response_spec.rb +12 -12
  51. data/spec/models/container_container_push_repository_spec.rb +4 -4
  52. data/spec/models/container_container_remote_response_spec.rb +2 -2
  53. data/spec/models/container_container_remote_spec.rb +12 -0
  54. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  55. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  56. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  57. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  58. data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
  59. metadata +62 -62
@@ -16,42 +16,42 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class ContainerContainerDistributionResponse
19
- attr_accessor :pulp_href
20
-
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
23
-
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
26
-
27
19
  # Whether this distribution should be shown in the content app.
28
20
  attr_accessor :hidden
29
21
 
22
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
+ attr_accessor :base_path
24
+
30
25
  # The Pulp Resource Name (PRN).
31
26
  attr_accessor :prn
32
27
 
33
- # The Pulp Resource Name (PRN) of the associated optional content guard.
34
- attr_accessor :content_guard_prn
28
+ # 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.
29
+ attr_accessor :pulp_last_updated
30
+
31
+ attr_accessor :pulp_labels
32
+
33
+ attr_accessor :pulp_href
35
34
 
36
35
  # A unique name. Ex, `rawhide` and `stable`.
37
36
  attr_accessor :name
38
37
 
39
- attr_accessor :pulp_labels
40
-
41
38
  # The latest RepositoryVersion for this Repository will be served.
42
39
  attr_accessor :repository
43
40
 
44
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
45
- attr_accessor :base_path
41
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
42
+ attr_accessor :no_content_change_since
43
+
44
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
45
+ attr_accessor :content_guard_prn
46
46
 
47
47
  # RepositoryVersion to be served
48
48
  attr_accessor :repository_version
49
49
 
50
- # 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.
51
- attr_accessor :pulp_last_updated
50
+ # Timestamp of creation.
51
+ attr_accessor :pulp_created
52
52
 
53
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
54
- attr_accessor :no_content_change_since
53
+ # An optional content-guard. If none is specified, a default one will be used.
54
+ attr_accessor :content_guard
55
55
 
56
56
  # The Registry hostname/name/ to use with docker pull command defined by this distribution.
57
57
  attr_accessor :registry_path
@@ -71,19 +71,19 @@ module PulpContainerClient
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
- :'pulp_href' => :'pulp_href',
75
- :'pulp_created' => :'pulp_created',
76
- :'content_guard' => :'content_guard',
77
74
  :'hidden' => :'hidden',
75
+ :'base_path' => :'base_path',
78
76
  :'prn' => :'prn',
79
- :'content_guard_prn' => :'content_guard_prn',
80
- :'name' => :'name',
77
+ :'pulp_last_updated' => :'pulp_last_updated',
81
78
  :'pulp_labels' => :'pulp_labels',
79
+ :'pulp_href' => :'pulp_href',
80
+ :'name' => :'name',
82
81
  :'repository' => :'repository',
83
- :'base_path' => :'base_path',
84
- :'repository_version' => :'repository_version',
85
- :'pulp_last_updated' => :'pulp_last_updated',
86
82
  :'no_content_change_since' => :'no_content_change_since',
83
+ :'content_guard_prn' => :'content_guard_prn',
84
+ :'repository_version' => :'repository_version',
85
+ :'pulp_created' => :'pulp_created',
86
+ :'content_guard' => :'content_guard',
87
87
  :'registry_path' => :'registry_path',
88
88
  :'remote' => :'remote',
89
89
  :'namespace' => :'namespace',
@@ -100,19 +100,19 @@ module PulpContainerClient
100
100
  # Attribute type mapping.
101
101
  def self.openapi_types
102
102
  {
103
- :'pulp_href' => :'String',
104
- :'pulp_created' => :'Time',
105
- :'content_guard' => :'String',
106
103
  :'hidden' => :'Boolean',
104
+ :'base_path' => :'String',
107
105
  :'prn' => :'String',
108
- :'content_guard_prn' => :'String',
109
- :'name' => :'String',
106
+ :'pulp_last_updated' => :'Time',
110
107
  :'pulp_labels' => :'Hash<String, String>',
108
+ :'pulp_href' => :'String',
109
+ :'name' => :'String',
111
110
  :'repository' => :'String',
112
- :'base_path' => :'String',
113
- :'repository_version' => :'String',
114
- :'pulp_last_updated' => :'Time',
115
111
  :'no_content_change_since' => :'String',
112
+ :'content_guard_prn' => :'String',
113
+ :'repository_version' => :'String',
114
+ :'pulp_created' => :'Time',
115
+ :'content_guard' => :'String',
116
116
  :'registry_path' => :'String',
117
117
  :'remote' => :'String',
118
118
  :'namespace' => :'String',
@@ -145,36 +145,24 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'pulp_href')
149
- self.pulp_href = attributes[:'pulp_href']
150
- end
151
-
152
- if attributes.key?(:'pulp_created')
153
- self.pulp_created = attributes[:'pulp_created']
154
- end
155
-
156
- if attributes.key?(:'content_guard')
157
- self.content_guard = attributes[:'content_guard']
158
- end
159
-
160
148
  if attributes.key?(:'hidden')
161
149
  self.hidden = attributes[:'hidden']
162
150
  else
163
151
  self.hidden = false
164
152
  end
165
153
 
166
- if attributes.key?(:'prn')
167
- self.prn = attributes[:'prn']
154
+ if attributes.key?(:'base_path')
155
+ self.base_path = attributes[:'base_path']
156
+ else
157
+ self.base_path = nil
168
158
  end
169
159
 
170
- if attributes.key?(:'content_guard_prn')
171
- self.content_guard_prn = attributes[:'content_guard_prn']
160
+ if attributes.key?(:'prn')
161
+ self.prn = attributes[:'prn']
172
162
  end
173
163
 
174
- if attributes.key?(:'name')
175
- self.name = attributes[:'name']
176
- else
177
- self.name = nil
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
178
166
  end
179
167
 
180
168
  if attributes.key?(:'pulp_labels')
@@ -183,26 +171,38 @@ module PulpContainerClient
183
171
  end
184
172
  end
185
173
 
174
+ if attributes.key?(:'pulp_href')
175
+ self.pulp_href = attributes[:'pulp_href']
176
+ end
177
+
178
+ if attributes.key?(:'name')
179
+ self.name = attributes[:'name']
180
+ else
181
+ self.name = nil
182
+ end
183
+
186
184
  if attributes.key?(:'repository')
187
185
  self.repository = attributes[:'repository']
188
186
  end
189
187
 
190
- if attributes.key?(:'base_path')
191
- self.base_path = attributes[:'base_path']
192
- else
193
- self.base_path = nil
188
+ if attributes.key?(:'no_content_change_since')
189
+ self.no_content_change_since = attributes[:'no_content_change_since']
190
+ end
191
+
192
+ if attributes.key?(:'content_guard_prn')
193
+ self.content_guard_prn = attributes[:'content_guard_prn']
194
194
  end
195
195
 
196
196
  if attributes.key?(:'repository_version')
197
197
  self.repository_version = attributes[:'repository_version']
198
198
  end
199
199
 
200
- if attributes.key?(:'pulp_last_updated')
201
- self.pulp_last_updated = attributes[:'pulp_last_updated']
200
+ if attributes.key?(:'pulp_created')
201
+ self.pulp_created = attributes[:'pulp_created']
202
202
  end
203
203
 
204
- if attributes.key?(:'no_content_change_since')
205
- self.no_content_change_since = attributes[:'no_content_change_since']
204
+ if attributes.key?(:'content_guard')
205
+ self.content_guard = attributes[:'content_guard']
206
206
  end
207
207
 
208
208
  if attributes.key?(:'registry_path')
@@ -231,14 +231,14 @@ module PulpContainerClient
231
231
  def list_invalid_properties
232
232
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
233
233
  invalid_properties = Array.new
234
- if @name.nil?
235
- invalid_properties.push('invalid value for "name", name cannot be nil.')
236
- end
237
-
238
234
  if @base_path.nil?
239
235
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
240
236
  end
241
237
 
238
+ if @name.nil?
239
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
240
+ end
241
+
242
242
  invalid_properties
243
243
  end
244
244
 
@@ -246,8 +246,8 @@ module PulpContainerClient
246
246
  # @return true if the model is valid
247
247
  def valid?
248
248
  warn '[DEPRECATED] the `valid?` method is obsolete'
249
- return false if @name.nil?
250
249
  return false if @base_path.nil?
250
+ return false if @name.nil?
251
251
  true
252
252
  end
253
253
 
@@ -256,19 +256,19 @@ module PulpContainerClient
256
256
  def ==(o)
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
- pulp_href == o.pulp_href &&
260
- pulp_created == o.pulp_created &&
261
- content_guard == o.content_guard &&
262
259
  hidden == o.hidden &&
260
+ base_path == o.base_path &&
263
261
  prn == o.prn &&
264
- content_guard_prn == o.content_guard_prn &&
265
- name == o.name &&
262
+ pulp_last_updated == o.pulp_last_updated &&
266
263
  pulp_labels == o.pulp_labels &&
264
+ pulp_href == o.pulp_href &&
265
+ name == o.name &&
267
266
  repository == o.repository &&
268
- base_path == o.base_path &&
269
- repository_version == o.repository_version &&
270
- pulp_last_updated == o.pulp_last_updated &&
271
267
  no_content_change_since == o.no_content_change_since &&
268
+ content_guard_prn == o.content_guard_prn &&
269
+ repository_version == o.repository_version &&
270
+ pulp_created == o.pulp_created &&
271
+ content_guard == o.content_guard &&
272
272
  registry_path == o.registry_path &&
273
273
  remote == o.remote &&
274
274
  namespace == o.namespace &&
@@ -285,7 +285,7 @@ module PulpContainerClient
285
285
  # Calculates hash code according to all attributes.
286
286
  # @return [Integer] Hash code
287
287
  def hash
288
- [pulp_href, pulp_created, content_guard, hidden, prn, content_guard_prn, name, pulp_labels, repository, base_path, repository_version, pulp_last_updated, no_content_change_since, registry_path, remote, namespace, private, description].hash
288
+ [hidden, base_path, prn, pulp_last_updated, pulp_labels, pulp_href, name, repository, no_content_change_since, content_guard_prn, repository_version, pulp_created, content_guard, registry_path, remote, namespace, private, description].hash
289
289
  end
290
290
 
291
291
  # Builds the object from hash
@@ -18,10 +18,13 @@ module PulpContainerClient
18
18
  class ContainerContainerNamespace
19
19
  attr_accessor :name
20
20
 
21
+ attr_accessor :pulp_labels
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
- :'name' => :'name'
26
+ :'name' => :'name',
27
+ :'pulp_labels' => :'pulp_labels'
25
28
  }
26
29
  end
27
30
 
@@ -33,7 +36,8 @@ module PulpContainerClient
33
36
  # Attribute type mapping.
34
37
  def self.openapi_types
35
38
  {
36
- :'name' => :'String'
39
+ :'name' => :'String',
40
+ :'pulp_labels' => :'Hash<String, String>'
37
41
  }
38
42
  end
39
43
 
@@ -63,6 +67,12 @@ module PulpContainerClient
63
67
  else
64
68
  self.name = nil
65
69
  end
70
+
71
+ if attributes.key?(:'pulp_labels')
72
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
73
+ self.pulp_labels = value
74
+ end
75
+ end
66
76
  end
67
77
 
68
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -109,7 +119,8 @@ module PulpContainerClient
109
119
  def ==(o)
110
120
  return true if self.equal?(o)
111
121
  self.class == o.class &&
112
- name == o.name
122
+ name == o.name &&
123
+ pulp_labels == o.pulp_labels
113
124
  end
114
125
 
115
126
  # @see the `==` method
@@ -121,7 +132,7 @@ module PulpContainerClient
121
132
  # Calculates hash code according to all attributes.
122
133
  # @return [Integer] Hash code
123
134
  def hash
124
- [name].hash
135
+ [name, pulp_labels].hash
125
136
  end
126
137
 
127
138
  # Builds the object from hash
@@ -29,6 +29,8 @@ module PulpContainerClient
29
29
 
30
30
  attr_accessor :name
31
31
 
32
+ attr_accessor :pulp_labels
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
@@ -36,7 +38,8 @@ module PulpContainerClient
36
38
  :'prn' => :'prn',
37
39
  :'pulp_created' => :'pulp_created',
38
40
  :'pulp_last_updated' => :'pulp_last_updated',
39
- :'name' => :'name'
41
+ :'name' => :'name',
42
+ :'pulp_labels' => :'pulp_labels'
40
43
  }
41
44
  end
42
45
 
@@ -52,7 +55,8 @@ module PulpContainerClient
52
55
  :'prn' => :'String',
53
56
  :'pulp_created' => :'Time',
54
57
  :'pulp_last_updated' => :'Time',
55
- :'name' => :'String'
58
+ :'name' => :'String',
59
+ :'pulp_labels' => :'Hash<String, String>'
56
60
  }
57
61
  end
58
62
 
@@ -98,6 +102,12 @@ module PulpContainerClient
98
102
  else
99
103
  self.name = nil
100
104
  end
105
+
106
+ if attributes.key?(:'pulp_labels')
107
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
108
+ self.pulp_labels = value
109
+ end
110
+ end
101
111
  end
102
112
 
103
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,7 +139,8 @@ module PulpContainerClient
129
139
  prn == o.prn &&
130
140
  pulp_created == o.pulp_created &&
131
141
  pulp_last_updated == o.pulp_last_updated &&
132
- name == o.name
142
+ name == o.name &&
143
+ pulp_labels == o.pulp_labels
133
144
  end
134
145
 
135
146
  # @see the `==` method
@@ -141,7 +152,7 @@ module PulpContainerClient
141
152
  # Calculates hash code according to all attributes.
142
153
  # @return [Integer] Hash code
143
154
  def hash
144
- [pulp_href, prn, pulp_created, pulp_last_updated, name].hash
155
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, pulp_labels].hash
145
156
  end
146
157
 
147
158
  # 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 ContainerContainerPullThroughDistribution
19
- # An optional content-guard. If none is specified, a default one will be used.
20
- attr_accessor :content_guard
21
-
22
19
  # Whether this distribution should be shown in the content app.
23
20
  attr_accessor :hidden
24
21
 
25
- # A unique name. Ex, `rawhide` and `stable`.
26
- attr_accessor :name
22
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
+ attr_accessor :base_path
27
24
 
28
25
  attr_accessor :pulp_labels
29
26
 
27
+ # A unique name. Ex, `rawhide` and `stable`.
28
+ attr_accessor :name
29
+
30
30
  # The latest RepositoryVersion for this Repository will be served.
31
31
  attr_accessor :repository
32
32
 
33
- # The registry path exposed by this pull-through distribution.
34
- attr_accessor :base_path
35
-
36
33
  # RepositoryVersion to be served
37
34
  attr_accessor :repository_version
38
35
 
36
+ # An optional content-guard. If none is specified, a default one will be used.
37
+ attr_accessor :content_guard
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
- :'content_guard' => :'content_guard',
55
54
  :'hidden' => :'hidden',
56
- :'name' => :'name',
55
+ :'base_path' => :'base_path',
57
56
  :'pulp_labels' => :'pulp_labels',
57
+ :'name' => :'name',
58
58
  :'repository' => :'repository',
59
- :'base_path' => :'base_path',
60
59
  :'repository_version' => :'repository_version',
60
+ :'content_guard' => :'content_guard',
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
- :'content_guard' => :'String',
77
76
  :'hidden' => :'Boolean',
78
- :'name' => :'String',
77
+ :'base_path' => :'String',
79
78
  :'pulp_labels' => :'Hash<String, String>',
79
+ :'name' => :'String',
80
80
  :'repository' => :'String',
81
- :'base_path' => :'String',
82
81
  :'repository_version' => :'String',
82
+ :'content_guard' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -111,20 +111,16 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
- if attributes.key?(:'content_guard')
115
- self.content_guard = attributes[:'content_guard']
116
- end
117
-
118
114
  if attributes.key?(:'hidden')
119
115
  self.hidden = attributes[:'hidden']
120
116
  else
121
117
  self.hidden = false
122
118
  end
123
119
 
124
- if attributes.key?(:'name')
125
- self.name = attributes[:'name']
120
+ if attributes.key?(:'base_path')
121
+ self.base_path = attributes[:'base_path']
126
122
  else
127
- self.name = nil
123
+ self.base_path = nil
128
124
  end
129
125
 
130
126
  if attributes.key?(:'pulp_labels')
@@ -133,20 +129,24 @@ module PulpContainerClient
133
129
  end
134
130
  end
135
131
 
136
- if attributes.key?(:'repository')
137
- self.repository = attributes[:'repository']
132
+ if attributes.key?(:'name')
133
+ self.name = attributes[:'name']
134
+ else
135
+ self.name = nil
138
136
  end
139
137
 
140
- if attributes.key?(:'base_path')
141
- self.base_path = attributes[:'base_path']
142
- else
143
- self.base_path = nil
138
+ if attributes.key?(:'repository')
139
+ self.repository = attributes[:'repository']
144
140
  end
145
141
 
146
142
  if attributes.key?(:'repository_version')
147
143
  self.repository_version = attributes[:'repository_version']
148
144
  end
149
145
 
146
+ if attributes.key?(:'content_guard')
147
+ self.content_guard = attributes[:'content_guard']
148
+ end
149
+
150
150
  if attributes.key?(:'remote')
151
151
  self.remote = attributes[:'remote']
152
152
  else
@@ -173,14 +173,6 @@ module PulpContainerClient
173
173
  def list_invalid_properties
174
174
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
175
175
  invalid_properties = Array.new
176
- if @name.nil?
177
- invalid_properties.push('invalid value for "name", name cannot be nil.')
178
- end
179
-
180
- if @name.to_s.length < 1
181
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
182
- end
183
-
184
176
  if @base_path.nil?
185
177
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
186
178
  end
@@ -189,6 +181,14 @@ module PulpContainerClient
189
181
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
190
182
  end
191
183
 
184
+ if @name.nil?
185
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
186
+ end
187
+
188
+ if @name.to_s.length < 1
189
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
190
+ end
191
+
192
192
  if @remote.nil?
193
193
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
194
194
  end
@@ -204,29 +204,15 @@ module PulpContainerClient
204
204
  # @return true if the model is valid
205
205
  def valid?
206
206
  warn '[DEPRECATED] the `valid?` method is obsolete'
207
- return false if @name.nil?
208
- return false if @name.to_s.length < 1
209
207
  return false if @base_path.nil?
210
208
  return false if @base_path.to_s.length < 1
209
+ return false if @name.nil?
210
+ return false if @name.to_s.length < 1
211
211
  return false if @remote.nil?
212
212
  return false if !@description.nil? && @description.to_s.length < 1
213
213
  true
214
214
  end
215
215
 
216
- # Custom attribute writer method with validation
217
- # @param [Object] name Value to be assigned
218
- def name=(name)
219
- if name.nil?
220
- fail ArgumentError, 'name cannot be nil'
221
- end
222
-
223
- if name.to_s.length < 1
224
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
225
- end
226
-
227
- @name = name
228
- end
229
-
230
216
  # Custom attribute writer method with validation
231
217
  # @param [Object] base_path Value to be assigned
232
218
  def base_path=(base_path)
@@ -241,6 +227,20 @@ module PulpContainerClient
241
227
  @base_path = base_path
242
228
  end
243
229
 
230
+ # Custom attribute writer method with validation
231
+ # @param [Object] name Value to be assigned
232
+ def name=(name)
233
+ if name.nil?
234
+ fail ArgumentError, 'name cannot be nil'
235
+ end
236
+
237
+ if name.to_s.length < 1
238
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
239
+ end
240
+
241
+ @name = name
242
+ end
243
+
244
244
  # Custom attribute writer method with validation
245
245
  # @param [Object] description Value to be assigned
246
246
  def description=(description)
@@ -256,13 +256,13 @@ module PulpContainerClient
256
256
  def ==(o)
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
- content_guard == o.content_guard &&
260
259
  hidden == o.hidden &&
261
- name == o.name &&
260
+ base_path == o.base_path &&
262
261
  pulp_labels == o.pulp_labels &&
262
+ name == o.name &&
263
263
  repository == o.repository &&
264
- base_path == o.base_path &&
265
264
  repository_version == o.repository_version &&
265
+ content_guard == o.content_guard &&
266
266
  remote == o.remote &&
267
267
  distributions == o.distributions &&
268
268
  private == o.private &&
@@ -278,7 +278,7 @@ module PulpContainerClient
278
278
  # Calculates hash code according to all attributes.
279
279
  # @return [Integer] Hash code
280
280
  def hash
281
- [content_guard, hidden, name, pulp_labels, repository, base_path, repository_version, remote, distributions, private, description].hash
281
+ [hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, remote, distributions, private, description].hash
282
282
  end
283
283
 
284
284
  # Builds the object from hash