pulp_container_client 2.24.1 → 2.24.3

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