pulp_container_client 2.28.1 → 2.29.0

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