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