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