pulp_container_client 2.22.6 → 2.22.7

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