pulp_container_client 2.29.1 → 2.29.2

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