pulp_container_client 2.23.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 (55) 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 +4 -4
  5. data/docs/ContainerContainerDistributionResponse.md +10 -10
  6. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  8. data/docs/ContainerContainerPushRepository.md +6 -6
  9. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  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/PatchedcontainerContainerDistribution.md +4 -4
  18. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  19. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  20. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -3
  21. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -3
  22. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -3
  23. data/lib/pulp_container_client/api/content_tags_api.rb +6 -3
  24. data/lib/pulp_container_client/models/container_blob_response.rb +13 -1
  25. data/lib/pulp_container_client/models/container_container_distribution.rb +24 -24
  26. data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -47
  27. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +24 -24
  28. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +47 -47
  29. data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -44
  30. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +62 -62
  31. data/lib/pulp_container_client/models/container_manifest_response.rb +13 -1
  32. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +13 -1
  33. data/lib/pulp_container_client/models/container_tag_response.rb +13 -1
  34. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +24 -24
  35. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +24 -24
  36. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
  37. data/lib/pulp_container_client/version.rb +1 -1
  38. data/spec/api/content_blobs_api_spec.rb +2 -1
  39. data/spec/api/content_manifests_api_spec.rb +2 -1
  40. data/spec/api/content_signatures_api_spec.rb +2 -1
  41. data/spec/api/content_tags_api_spec.rb +2 -1
  42. data/spec/models/container_blob_response_spec.rb +6 -0
  43. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  44. data/spec/models/container_container_distribution_spec.rb +4 -4
  45. data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
  46. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  47. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  48. data/spec/models/container_container_push_repository_spec.rb +4 -4
  49. data/spec/models/container_manifest_response_spec.rb +6 -0
  50. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  51. data/spec/models/container_tag_response_spec.rb +6 -0
  52. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  53. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  54. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  55. 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
- # Retain X versions of the repository. Default is null which retains all versions.
20
- attr_accessor :retain_repo_versions
21
-
22
19
  # A reference to an associated signing service.
23
20
  attr_accessor :manifest_signing_service
24
21
 
25
- attr_accessor :versions_href
26
-
27
- attr_accessor :pulp_labels
28
-
29
- # An optional description.
30
- attr_accessor :description
31
-
32
- attr_accessor :latest_version_href
33
-
34
22
  # The Pulp Resource Name (PRN).
35
23
  attr_accessor :prn
36
24
 
37
25
  attr_accessor :pulp_href
38
26
 
27
+ # Retain X versions of the repository. Default is null which retains all versions.
28
+ attr_accessor :retain_repo_versions
29
+
39
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.
40
31
  attr_accessor :pulp_last_updated
41
32
 
42
- # Timestamp of creation.
43
- attr_accessor :pulp_created
44
-
45
33
  # A unique name for this repository.
46
34
  attr_accessor :name
47
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
+
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'retain_repo_versions' => :'retain_repo_versions',
52
51
  :'manifest_signing_service' => :'manifest_signing_service',
53
- :'versions_href' => :'versions_href',
54
- :'pulp_labels' => :'pulp_labels',
55
- :'description' => :'description',
56
- :'latest_version_href' => :'latest_version_href',
57
52
  :'prn' => :'prn',
58
53
  :'pulp_href' => :'pulp_href',
54
+ :'retain_repo_versions' => :'retain_repo_versions',
59
55
  :'pulp_last_updated' => :'pulp_last_updated',
60
- :'pulp_created' => :'pulp_created',
61
- :'name' => :'name'
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,25 +70,25 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'retain_repo_versions' => :'Integer',
74
73
  :'manifest_signing_service' => :'String',
75
- :'versions_href' => :'String',
76
- :'pulp_labels' => :'Hash<String, String>',
77
- :'description' => :'String',
78
- :'latest_version_href' => :'String',
79
74
  :'prn' => :'String',
80
75
  :'pulp_href' => :'String',
76
+ :'retain_repo_versions' => :'Integer',
81
77
  :'pulp_last_updated' => :'Time',
82
- :'pulp_created' => :'Time',
83
- :'name' => :'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
- :'retain_repo_versions',
91
90
  :'manifest_signing_service',
91
+ :'retain_repo_versions',
92
92
  :'description',
93
93
  ])
94
94
  end
@@ -108,53 +108,53 @@ module PulpContainerClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'retain_repo_versions')
112
- self.retain_repo_versions = attributes[:'retain_repo_versions']
113
- end
114
-
115
111
  if attributes.key?(:'manifest_signing_service')
116
112
  self.manifest_signing_service = attributes[:'manifest_signing_service']
117
113
  end
118
114
 
119
- if attributes.key?(:'versions_href')
120
- self.versions_href = attributes[:'versions_href']
115
+ if attributes.key?(:'prn')
116
+ self.prn = attributes[:'prn']
121
117
  end
122
118
 
123
- if attributes.key?(:'pulp_labels')
124
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
125
- self.pulp_labels = value
126
- end
119
+ if attributes.key?(:'pulp_href')
120
+ self.pulp_href = attributes[:'pulp_href']
127
121
  end
128
122
 
129
- if attributes.key?(:'description')
130
- self.description = attributes[:'description']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
125
+ end
126
+
127
+ if attributes.key?(:'pulp_last_updated')
128
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
129
+ end
130
+
131
+ if attributes.key?(:'name')
132
+ self.name = attributes[:'name']
133
+ else
134
+ self.name = nil
131
135
  end
132
136
 
133
137
  if attributes.key?(:'latest_version_href')
134
138
  self.latest_version_href = attributes[:'latest_version_href']
135
139
  end
136
140
 
137
- if attributes.key?(:'prn')
138
- self.prn = attributes[:'prn']
141
+ if attributes.key?(:'versions_href')
142
+ self.versions_href = attributes[:'versions_href']
139
143
  end
140
144
 
141
- if attributes.key?(:'pulp_href')
142
- self.pulp_href = attributes[:'pulp_href']
145
+ if attributes.key?(:'description')
146
+ self.description = attributes[:'description']
143
147
  end
144
148
 
145
- if attributes.key?(:'pulp_last_updated')
146
- self.pulp_last_updated = attributes[:'pulp_last_updated']
149
+ if attributes.key?(:'pulp_labels')
150
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
151
+ self.pulp_labels = value
152
+ end
147
153
  end
148
154
 
149
155
  if attributes.key?(:'pulp_created')
150
156
  self.pulp_created = attributes[:'pulp_created']
151
157
  end
152
-
153
- if attributes.key?(:'name')
154
- self.name = attributes[:'name']
155
- else
156
- self.name = nil
157
- end
158
158
  end
159
159
 
160
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -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
- retain_repo_versions == o.retain_repo_versions &&
201
200
  manifest_signing_service == o.manifest_signing_service &&
202
- versions_href == o.versions_href &&
203
- pulp_labels == o.pulp_labels &&
204
- description == o.description &&
205
- latest_version_href == o.latest_version_href &&
206
201
  prn == o.prn &&
207
202
  pulp_href == o.pulp_href &&
203
+ retain_repo_versions == o.retain_repo_versions &&
208
204
  pulp_last_updated == o.pulp_last_updated &&
209
- pulp_created == o.pulp_created &&
210
- name == o.name
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
- [retain_repo_versions, manifest_signing_service, versions_href, pulp_labels, description, latest_version_href, prn, pulp_href, pulp_last_updated, pulp_created, name].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,20 +16,20 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
+ # Whether this distribution should be shown in the content app.
20
+ attr_accessor :hidden
21
+
19
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\")
20
23
  attr_accessor :base_path
21
24
 
22
- attr_accessor :pulp_labels
23
-
24
25
  # A unique name. Ex, `rawhide` and `stable`.
25
26
  attr_accessor :name
26
27
 
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
28
  # An optional content-guard. If none is specified, a default one will be used.
31
29
  attr_accessor :content_guard
32
30
 
31
+ attr_accessor :pulp_labels
32
+
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
@@ -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
+ :'hidden' => :'hidden',
48
49
  :'base_path' => :'base_path',
49
- :'pulp_labels' => :'pulp_labels',
50
50
  :'name' => :'name',
51
- :'hidden' => :'hidden',
52
51
  :'content_guard' => :'content_guard',
52
+ :'pulp_labels' => :'pulp_labels',
53
53
  :'repository' => :'repository',
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
+ :'hidden' => :'Boolean',
68
69
  :'base_path' => :'String',
69
- :'pulp_labels' => :'Hash<String, String>',
70
70
  :'name' => :'String',
71
- :'hidden' => :'Boolean',
72
71
  :'content_guard' => :'String',
72
+ :'pulp_labels' => :'Hash<String, String>',
73
73
  :'repository' => :'String',
74
74
  :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
@@ -101,30 +101,30 @@ 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']
104
+ if attributes.key?(:'hidden')
105
+ self.hidden = attributes[:'hidden']
106
+ else
107
+ self.hidden = false
106
108
  end
107
109
 
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
110
+ if attributes.key?(:'base_path')
111
+ self.base_path = attributes[:'base_path']
112
112
  end
113
113
 
114
114
  if attributes.key?(:'name')
115
115
  self.name = attributes[:'name']
116
116
  end
117
117
 
118
- if attributes.key?(:'hidden')
119
- self.hidden = attributes[:'hidden']
120
- else
121
- self.hidden = false
122
- end
123
-
124
118
  if attributes.key?(:'content_guard')
125
119
  self.content_guard = attributes[:'content_guard']
126
120
  end
127
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
128
  if attributes.key?(:'repository')
129
129
  self.repository = attributes[:'repository']
130
130
  end
@@ -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
+ hidden == o.hidden &&
218
219
  base_path == o.base_path &&
219
- pulp_labels == o.pulp_labels &&
220
220
  name == o.name &&
221
- hidden == o.hidden &&
222
221
  content_guard == o.content_guard &&
222
+ pulp_labels == o.pulp_labels &&
223
223
  repository == o.repository &&
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
- [base_path, pulp_labels, name, hidden, content_guard, repository, 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
@@ -16,20 +16,20 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class PatchedcontainerContainerPullThroughDistribution
19
+ # Whether this distribution should be shown in the content app.
20
+ attr_accessor :hidden
21
+
19
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\")
20
23
  attr_accessor :base_path
21
24
 
22
- attr_accessor :pulp_labels
23
-
24
25
  # A unique name. Ex, `rawhide` and `stable`.
25
26
  attr_accessor :name
26
27
 
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
28
  # An optional content-guard. If none is specified, a default one will be used.
31
29
  attr_accessor :content_guard
32
30
 
31
+ attr_accessor :pulp_labels
32
+
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
@@ -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
+ :'hidden' => :'hidden',
51
52
  :'base_path' => :'base_path',
52
- :'pulp_labels' => :'pulp_labels',
53
53
  :'name' => :'name',
54
- :'hidden' => :'hidden',
55
54
  :'content_guard' => :'content_guard',
55
+ :'pulp_labels' => :'pulp_labels',
56
56
  :'repository' => :'repository',
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
+ :'hidden' => :'Boolean',
72
73
  :'base_path' => :'String',
73
- :'pulp_labels' => :'Hash<String, String>',
74
74
  :'name' => :'String',
75
- :'hidden' => :'Boolean',
76
75
  :'content_guard' => :'String',
76
+ :'pulp_labels' => :'Hash<String, String>',
77
77
  :'repository' => :'String',
78
78
  :'remote' => :'String',
79
79
  :'distributions' => :'Array<String>',
@@ -105,30 +105,30 @@ module PulpContainerClient
105
105
  h[k.to_sym] = v
106
106
  }
107
107
 
108
- if attributes.key?(:'base_path')
109
- self.base_path = attributes[:'base_path']
108
+ if attributes.key?(:'hidden')
109
+ self.hidden = attributes[:'hidden']
110
+ else
111
+ self.hidden = false
110
112
  end
111
113
 
112
- if attributes.key?(:'pulp_labels')
113
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
- self.pulp_labels = value
115
- end
114
+ if attributes.key?(:'base_path')
115
+ self.base_path = attributes[:'base_path']
116
116
  end
117
117
 
118
118
  if attributes.key?(:'name')
119
119
  self.name = attributes[:'name']
120
120
  end
121
121
 
122
- if attributes.key?(:'hidden')
123
- self.hidden = attributes[:'hidden']
124
- else
125
- self.hidden = false
126
- end
127
-
128
122
  if attributes.key?(:'content_guard')
129
123
  self.content_guard = attributes[:'content_guard']
130
124
  end
131
125
 
126
+ if attributes.key?(:'pulp_labels')
127
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
128
+ self.pulp_labels = value
129
+ end
130
+ end
131
+
132
132
  if attributes.key?(:'repository')
133
133
  self.repository = attributes[:'repository']
134
134
  end
@@ -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
+ hidden == o.hidden &&
228
229
  base_path == o.base_path &&
229
- pulp_labels == o.pulp_labels &&
230
230
  name == o.name &&
231
- hidden == o.hidden &&
232
231
  content_guard == o.content_guard &&
232
+ pulp_labels == o.pulp_labels &&
233
233
  repository == o.repository &&
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
- [base_path, pulp_labels, name, hidden, content_guard, repository, remote, distributions, private, description].hash
249
+ [hidden, base_path, name, content_guard, pulp_labels, repository, remote, distributions, private, description].hash
250
250
  end
251
251
 
252
252
  # Builds the object from hash