pulp_container_client 2.27.8 → 2.27.9

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