pulp_container_client 2.27.3 → 2.27.4

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