pulp_container_client 2.27.3 → 2.27.5

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