pulp_container_client 2.15.0 → 2.15.1

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