pulp_container_client 2.24.0 → 2.24.1

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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +8 -8
  5. data/docs/ContainerContainerDistributionResponse.md +14 -14
  6. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  8. data/docs/ContainerContainerPushRepository.md +8 -8
  9. data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
  10. data/docs/ContainerManifestResponse.md +2 -0
  11. data/docs/ContainerManifestSignatureResponse.md +2 -0
  12. data/docs/ContainerTagResponse.md +2 -0
  13. data/docs/ContentBlobsApi.md +4 -2
  14. data/docs/ContentManifestsApi.md +4 -2
  15. data/docs/ContentSignaturesApi.md +4 -2
  16. data/docs/ContentTagsApi.md +4 -2
  17. data/docs/DistributionsContainerApi.md +2 -2
  18. data/docs/DistributionsPullThroughApi.md +2 -2
  19. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  20. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  21. data/docs/PatchedcontainerContainerPushRepository.md +8 -8
  22. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -3
  23. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -3
  24. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -3
  25. data/lib/pulp_container_client/api/content_tags_api.rb +6 -3
  26. data/lib/pulp_container_client/models/container_blob_response.rb +13 -1
  27. data/lib/pulp_container_client/models/container_container_distribution.rb +65 -65
  28. data/lib/pulp_container_client/models/container_container_distribution_response.rb +73 -73
  29. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +65 -65
  30. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +73 -73
  31. data/lib/pulp_container_client/models/container_container_push_repository.rb +48 -48
  32. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +69 -69
  33. data/lib/pulp_container_client/models/container_manifest_response.rb +13 -1
  34. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +13 -1
  35. data/lib/pulp_container_client/models/container_tag_response.rb +13 -1
  36. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +58 -58
  37. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +58 -58
  38. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +48 -48
  39. data/lib/pulp_container_client/version.rb +1 -1
  40. data/spec/api/content_blobs_api_spec.rb +2 -1
  41. data/spec/api/content_manifests_api_spec.rb +2 -1
  42. data/spec/api/content_signatures_api_spec.rb +2 -1
  43. data/spec/api/content_tags_api_spec.rb +2 -1
  44. data/spec/models/container_blob_response_spec.rb +6 -0
  45. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  46. data/spec/models/container_container_distribution_spec.rb +6 -6
  47. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  48. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  49. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  50. data/spec/models/container_container_push_repository_spec.rb +4 -4
  51. data/spec/models/container_manifest_response_spec.rb +6 -0
  52. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  53. data/spec/models/container_tag_response_spec.rb +6 -0
  54. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  55. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  56. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  57. metadata +63 -63
@@ -16,49 +16,49 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- attr_accessor :pulp_labels
20
-
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
19
+ # A reference to an associated signing service.
20
+ attr_accessor :manifest_signing_service
23
21
 
24
22
  # The Pulp Resource Name (PRN).
25
23
  attr_accessor :prn
26
24
 
27
- # An optional description.
28
- attr_accessor :description
29
-
30
- attr_accessor :latest_version_href
31
-
32
- attr_accessor :versions_href
33
-
34
25
  attr_accessor :pulp_href
35
26
 
36
- # A unique name for this repository.
37
- attr_accessor :name
38
-
39
27
  # Retain X versions of the repository. Default is null which retains all versions.
40
28
  attr_accessor :retain_repo_versions
41
29
 
42
30
  # 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.
43
31
  attr_accessor :pulp_last_updated
44
32
 
45
- # A reference to an associated signing service.
46
- attr_accessor :manifest_signing_service
33
+ # A unique name for this repository.
34
+ attr_accessor :name
35
+
36
+ attr_accessor :latest_version_href
37
+
38
+ attr_accessor :versions_href
39
+
40
+ # An optional description.
41
+ attr_accessor :description
42
+
43
+ attr_accessor :pulp_labels
44
+
45
+ # Timestamp of creation.
46
+ attr_accessor :pulp_created
47
47
 
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'pulp_labels' => :'pulp_labels',
52
- :'pulp_created' => :'pulp_created',
51
+ :'manifest_signing_service' => :'manifest_signing_service',
53
52
  :'prn' => :'prn',
54
- :'description' => :'description',
55
- :'latest_version_href' => :'latest_version_href',
56
- :'versions_href' => :'versions_href',
57
53
  :'pulp_href' => :'pulp_href',
58
- :'name' => :'name',
59
54
  :'retain_repo_versions' => :'retain_repo_versions',
60
55
  :'pulp_last_updated' => :'pulp_last_updated',
61
- :'manifest_signing_service' => :'manifest_signing_service'
56
+ :'name' => :'name',
57
+ :'latest_version_href' => :'latest_version_href',
58
+ :'versions_href' => :'versions_href',
59
+ :'description' => :'description',
60
+ :'pulp_labels' => :'pulp_labels',
61
+ :'pulp_created' => :'pulp_created'
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
- :'pulp_labels' => :'Hash<String, String>',
74
- :'pulp_created' => :'Time',
73
+ :'manifest_signing_service' => :'String',
75
74
  :'prn' => :'String',
76
- :'description' => :'String',
77
- :'latest_version_href' => :'String',
78
- :'versions_href' => :'String',
79
75
  :'pulp_href' => :'String',
80
- :'name' => :'String',
81
76
  :'retain_repo_versions' => :'Integer',
82
77
  :'pulp_last_updated' => :'Time',
83
- :'manifest_signing_service' => :'String'
78
+ :'name' => :'String',
79
+ :'latest_version_href' => :'String',
80
+ :'versions_href' => :'String',
81
+ :'description' => :'String',
82
+ :'pulp_labels' => :'Hash<String, String>',
83
+ :'pulp_created' => :'Time'
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
- :'description',
90
+ :'manifest_signing_service',
91
91
  :'retain_repo_versions',
92
- :'manifest_signing_service'
92
+ :'description',
93
93
  ])
94
94
  end
95
95
 
@@ -108,34 +108,24 @@ module PulpContainerClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'pulp_labels')
112
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
113
- self.pulp_labels = value
114
- end
115
- end
116
-
117
- if attributes.key?(:'pulp_created')
118
- self.pulp_created = attributes[:'pulp_created']
111
+ if attributes.key?(:'manifest_signing_service')
112
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
119
113
  end
120
114
 
121
115
  if attributes.key?(:'prn')
122
116
  self.prn = attributes[:'prn']
123
117
  end
124
118
 
125
- if attributes.key?(:'description')
126
- self.description = attributes[:'description']
127
- end
128
-
129
- if attributes.key?(:'latest_version_href')
130
- self.latest_version_href = attributes[:'latest_version_href']
119
+ if attributes.key?(:'pulp_href')
120
+ self.pulp_href = attributes[:'pulp_href']
131
121
  end
132
122
 
133
- if attributes.key?(:'versions_href')
134
- self.versions_href = attributes[:'versions_href']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
135
125
  end
136
126
 
137
- if attributes.key?(:'pulp_href')
138
- self.pulp_href = attributes[:'pulp_href']
127
+ if attributes.key?(:'pulp_last_updated')
128
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
139
129
  end
140
130
 
141
131
  if attributes.key?(:'name')
@@ -144,16 +134,26 @@ module PulpContainerClient
144
134
  self.name = nil
145
135
  end
146
136
 
147
- if attributes.key?(:'retain_repo_versions')
148
- self.retain_repo_versions = attributes[:'retain_repo_versions']
137
+ if attributes.key?(:'latest_version_href')
138
+ self.latest_version_href = attributes[:'latest_version_href']
149
139
  end
150
140
 
151
- if attributes.key?(:'pulp_last_updated')
152
- self.pulp_last_updated = attributes[:'pulp_last_updated']
141
+ if attributes.key?(:'versions_href')
142
+ self.versions_href = attributes[:'versions_href']
153
143
  end
154
144
 
155
- if attributes.key?(:'manifest_signing_service')
156
- self.manifest_signing_service = attributes[:'manifest_signing_service']
145
+ if attributes.key?(:'description')
146
+ self.description = attributes[:'description']
147
+ end
148
+
149
+ if attributes.key?(:'pulp_labels')
150
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
151
+ self.pulp_labels = value
152
+ end
153
+ end
154
+
155
+ if attributes.key?(:'pulp_created')
156
+ self.pulp_created = attributes[:'pulp_created']
157
157
  end
158
158
  end
159
159
 
@@ -162,14 +162,14 @@ module PulpContainerClient
162
162
  def list_invalid_properties
163
163
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
164
164
  invalid_properties = Array.new
165
- if @name.nil?
166
- invalid_properties.push('invalid value for "name", name cannot be nil.')
167
- end
168
-
169
165
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
166
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
167
  end
172
168
 
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
171
+ end
172
+
173
173
  invalid_properties
174
174
  end
175
175
 
@@ -177,8 +177,8 @@ module PulpContainerClient
177
177
  # @return true if the model is valid
178
178
  def valid?
179
179
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
- return false if @name.nil?
181
180
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
181
+ return false if @name.nil?
182
182
  true
183
183
  end
184
184
 
@@ -197,17 +197,17 @@ module PulpContainerClient
197
197
  def ==(o)
198
198
  return true if self.equal?(o)
199
199
  self.class == o.class &&
200
- pulp_labels == o.pulp_labels &&
201
- pulp_created == o.pulp_created &&
200
+ manifest_signing_service == o.manifest_signing_service &&
202
201
  prn == o.prn &&
203
- description == o.description &&
204
- latest_version_href == o.latest_version_href &&
205
- versions_href == o.versions_href &&
206
202
  pulp_href == o.pulp_href &&
207
- name == o.name &&
208
203
  retain_repo_versions == o.retain_repo_versions &&
209
204
  pulp_last_updated == o.pulp_last_updated &&
210
- manifest_signing_service == o.manifest_signing_service
205
+ name == o.name &&
206
+ latest_version_href == o.latest_version_href &&
207
+ versions_href == o.versions_href &&
208
+ description == o.description &&
209
+ pulp_labels == o.pulp_labels &&
210
+ pulp_created == o.pulp_created
211
211
  end
212
212
 
213
213
  # @see the `==` method
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [pulp_labels, pulp_created, prn, description, latest_version_href, versions_href, pulp_href, name, retain_repo_versions, pulp_last_updated, manifest_signing_service].hash
222
+ [manifest_signing_service, prn, pulp_href, retain_repo_versions, pulp_last_updated, name, latest_version_href, versions_href, description, pulp_labels, pulp_created].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpContainerClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # sha256 of the Manifest file
31
34
  attr_accessor :digest
32
35
 
@@ -76,6 +79,7 @@ module PulpContainerClient
76
79
  :'prn' => :'prn',
77
80
  :'pulp_created' => :'pulp_created',
78
81
  :'pulp_last_updated' => :'pulp_last_updated',
82
+ :'pulp_labels' => :'pulp_labels',
79
83
  :'digest' => :'digest',
80
84
  :'schema_version' => :'schema_version',
81
85
  :'media_type' => :'media_type',
@@ -105,6 +109,7 @@ module PulpContainerClient
105
109
  :'prn' => :'String',
106
110
  :'pulp_created' => :'Time',
107
111
  :'pulp_last_updated' => :'Time',
112
+ :'pulp_labels' => :'Hash<String, String>',
108
113
  :'digest' => :'String',
109
114
  :'schema_version' => :'Integer',
110
115
  :'media_type' => :'String',
@@ -159,6 +164,12 @@ module PulpContainerClient
159
164
  self.pulp_last_updated = attributes[:'pulp_last_updated']
160
165
  end
161
166
 
167
+ if attributes.key?(:'pulp_labels')
168
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
169
+ self.pulp_labels = value
170
+ end
171
+ end
172
+
162
173
  if attributes.key?(:'digest')
163
174
  self.digest = attributes[:'digest']
164
175
  else
@@ -283,6 +294,7 @@ module PulpContainerClient
283
294
  prn == o.prn &&
284
295
  pulp_created == o.pulp_created &&
285
296
  pulp_last_updated == o.pulp_last_updated &&
297
+ pulp_labels == o.pulp_labels &&
286
298
  digest == o.digest &&
287
299
  schema_version == o.schema_version &&
288
300
  media_type == o.media_type &&
@@ -308,7 +320,7 @@ module PulpContainerClient
308
320
  # Calculates hash code according to all attributes.
309
321
  # @return [Integer] Hash code
310
322
  def hash
311
- [pulp_href, prn, pulp_created, pulp_last_updated, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak, type, architecture, os, compressed_image_size].hash
323
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak, type, architecture, os, compressed_image_size].hash
312
324
  end
313
325
 
314
326
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpContainerClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # Signature name in the format of `digest_algo:manifest_digest@random_32_chars`
31
34
  attr_accessor :name
32
35
 
@@ -55,6 +58,7 @@ module PulpContainerClient
55
58
  :'prn' => :'prn',
56
59
  :'pulp_created' => :'pulp_created',
57
60
  :'pulp_last_updated' => :'pulp_last_updated',
61
+ :'pulp_labels' => :'pulp_labels',
58
62
  :'name' => :'name',
59
63
  :'digest' => :'digest',
60
64
  :'type' => :'type',
@@ -77,6 +81,7 @@ module PulpContainerClient
77
81
  :'prn' => :'String',
78
82
  :'pulp_created' => :'Time',
79
83
  :'pulp_last_updated' => :'Time',
84
+ :'pulp_labels' => :'Hash<String, String>',
80
85
  :'name' => :'String',
81
86
  :'digest' => :'String',
82
87
  :'type' => :'String',
@@ -124,6 +129,12 @@ module PulpContainerClient
124
129
  self.pulp_last_updated = attributes[:'pulp_last_updated']
125
130
  end
126
131
 
132
+ if attributes.key?(:'pulp_labels')
133
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
134
+ self.pulp_labels = value
135
+ end
136
+ end
137
+
127
138
  if attributes.key?(:'name')
128
139
  self.name = attributes[:'name']
129
140
  else
@@ -226,6 +237,7 @@ module PulpContainerClient
226
237
  prn == o.prn &&
227
238
  pulp_created == o.pulp_created &&
228
239
  pulp_last_updated == o.pulp_last_updated &&
240
+ pulp_labels == o.pulp_labels &&
229
241
  name == o.name &&
230
242
  digest == o.digest &&
231
243
  type == o.type &&
@@ -244,7 +256,7 @@ module PulpContainerClient
244
256
  # Calculates hash code according to all attributes.
245
257
  # @return [Integer] Hash code
246
258
  def hash
247
- [pulp_href, prn, pulp_created, pulp_last_updated, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
259
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
248
260
  end
249
261
 
250
262
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpContainerClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # Tag name
31
34
  attr_accessor :name
32
35
 
@@ -40,6 +43,7 @@ module PulpContainerClient
40
43
  :'prn' => :'prn',
41
44
  :'pulp_created' => :'pulp_created',
42
45
  :'pulp_last_updated' => :'pulp_last_updated',
46
+ :'pulp_labels' => :'pulp_labels',
43
47
  :'name' => :'name',
44
48
  :'tagged_manifest' => :'tagged_manifest'
45
49
  }
@@ -57,6 +61,7 @@ module PulpContainerClient
57
61
  :'prn' => :'String',
58
62
  :'pulp_created' => :'Time',
59
63
  :'pulp_last_updated' => :'Time',
64
+ :'pulp_labels' => :'Hash<String, String>',
60
65
  :'name' => :'String',
61
66
  :'tagged_manifest' => :'String'
62
67
  }
@@ -99,6 +104,12 @@ module PulpContainerClient
99
104
  self.pulp_last_updated = attributes[:'pulp_last_updated']
100
105
  end
101
106
 
107
+ if attributes.key?(:'pulp_labels')
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
111
+ end
112
+
102
113
  if attributes.key?(:'name')
103
114
  self.name = attributes[:'name']
104
115
  else
@@ -146,6 +157,7 @@ module PulpContainerClient
146
157
  prn == o.prn &&
147
158
  pulp_created == o.pulp_created &&
148
159
  pulp_last_updated == o.pulp_last_updated &&
160
+ pulp_labels == o.pulp_labels &&
149
161
  name == o.name &&
150
162
  tagged_manifest == o.tagged_manifest
151
163
  end
@@ -159,7 +171,7 @@ module PulpContainerClient
159
171
  # Calculates hash code according to all attributes.
160
172
  # @return [Integer] Hash code
161
173
  def hash
162
- [pulp_href, prn, pulp_created, pulp_last_updated, name, tagged_manifest].hash
174
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, tagged_manifest].hash
163
175
  end
164
176
 
165
177
  # Builds the object from hash
@@ -16,22 +16,22 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
- attr_accessor :pulp_labels
20
-
21
- # The latest RepositoryVersion for this Repository will be served.
22
- attr_accessor :repository
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
  # A unique name. Ex, `rawhide` and `stable`.
31
26
  attr_accessor :name
32
27
 
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
28
+ # An optional content-guard. If none is specified, a default one will be used.
29
+ attr_accessor :content_guard
30
+
31
+ attr_accessor :pulp_labels
32
+
33
+ # The latest RepositoryVersion for this Repository will be served.
34
+ attr_accessor :repository
35
35
 
36
36
  # RepositoryVersion to be served
37
37
  attr_accessor :repository_version
@@ -45,12 +45,12 @@ module PulpContainerClient
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'pulp_labels' => :'pulp_labels',
49
- :'repository' => :'repository',
50
- :'content_guard' => :'content_guard',
51
48
  :'hidden' => :'hidden',
52
- :'name' => :'name',
53
49
  :'base_path' => :'base_path',
50
+ :'name' => :'name',
51
+ :'content_guard' => :'content_guard',
52
+ :'pulp_labels' => :'pulp_labels',
53
+ :'repository' => :'repository',
54
54
  :'repository_version' => :'repository_version',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
@@ -65,12 +65,12 @@ module PulpContainerClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
- :'pulp_labels' => :'Hash<String, String>',
69
- :'repository' => :'String',
70
- :'content_guard' => :'String',
71
68
  :'hidden' => :'Boolean',
72
- :'name' => :'String',
73
69
  :'base_path' => :'String',
70
+ :'name' => :'String',
71
+ :'content_guard' => :'String',
72
+ :'pulp_labels' => :'Hash<String, String>',
73
+ :'repository' => :'String',
74
74
  :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
@@ -101,32 +101,32 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
- if attributes.key?(:'pulp_labels')
105
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
106
- self.pulp_labels = value
107
- end
108
- end
109
-
110
- if attributes.key?(:'repository')
111
- self.repository = attributes[:'repository']
112
- end
113
-
114
- if attributes.key?(:'content_guard')
115
- self.content_guard = attributes[:'content_guard']
116
- end
117
-
118
104
  if attributes.key?(:'hidden')
119
105
  self.hidden = attributes[:'hidden']
120
106
  else
121
107
  self.hidden = false
122
108
  end
123
109
 
110
+ if attributes.key?(:'base_path')
111
+ self.base_path = attributes[:'base_path']
112
+ end
113
+
124
114
  if attributes.key?(:'name')
125
115
  self.name = attributes[:'name']
126
116
  end
127
117
 
128
- if attributes.key?(:'base_path')
129
- self.base_path = attributes[:'base_path']
118
+ if attributes.key?(:'content_guard')
119
+ self.content_guard = attributes[:'content_guard']
120
+ end
121
+
122
+ if attributes.key?(:'pulp_labels')
123
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
124
+ self.pulp_labels = value
125
+ end
126
+ end
127
+
128
+ if attributes.key?(:'repository')
129
+ self.repository = attributes[:'repository']
130
130
  end
131
131
 
132
132
  if attributes.key?(:'repository_version')
@@ -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,12 +215,12 @@ module PulpContainerClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
- pulp_labels == o.pulp_labels &&
219
- repository == o.repository &&
220
- content_guard == o.content_guard &&
221
218
  hidden == o.hidden &&
222
- name == o.name &&
223
219
  base_path == o.base_path &&
220
+ name == o.name &&
221
+ content_guard == o.content_guard &&
222
+ pulp_labels == o.pulp_labels &&
223
+ repository == o.repository &&
224
224
  repository_version == o.repository_version &&
225
225
  private == o.private &&
226
226
  description == o.description
@@ -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
- [pulp_labels, repository, content_guard, hidden, name, base_path, repository_version, private, description].hash
238
+ [hidden, base_path, name, content_guard, pulp_labels, repository, repository_version, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash