pulp_container_client 2.20.2 → 2.20.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +13 -13
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +13 -13
  7. data/docs/ContainerContainerPushRepository.md +3 -3
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +3 -3
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +50 -50
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +54 -54
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +50 -50
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +54 -54
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +16 -16
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +41 -41
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +41 -41
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +16 -16
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +9 -9
  23. data/spec/models/container_container_distribution_spec.rb +4 -4
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  26. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  27. data/spec/models/container_container_push_repository_spec.rb +4 -4
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  31. metadata +61 -61
@@ -18,6 +18,9 @@ module PulpContainerClient
18
18
  # A unique name for this repository.
19
19
  attr_accessor :name
20
20
 
21
+ # A reference to an associated signing service.
22
+ attr_accessor :manifest_signing_service
23
+
21
24
  attr_accessor :pulp_labels
22
25
 
23
26
  # Retain X versions of the repository. Default is null which retains all versions.
@@ -26,17 +29,14 @@ module PulpContainerClient
26
29
  # An optional description.
27
30
  attr_accessor :description
28
31
 
29
- # A reference to an associated signing service.
30
- attr_accessor :manifest_signing_service
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'name' => :'name',
36
+ :'manifest_signing_service' => :'manifest_signing_service',
36
37
  :'pulp_labels' => :'pulp_labels',
37
38
  :'retain_repo_versions' => :'retain_repo_versions',
38
- :'description' => :'description',
39
- :'manifest_signing_service' => :'manifest_signing_service'
39
+ :'description' => :'description'
40
40
  }
41
41
  end
42
42
 
@@ -44,19 +44,19 @@ module PulpContainerClient
44
44
  def self.openapi_types
45
45
  {
46
46
  :'name' => :'String',
47
+ :'manifest_signing_service' => :'String',
47
48
  :'pulp_labels' => :'Hash<String, String>',
48
49
  :'retain_repo_versions' => :'Integer',
49
- :'description' => :'String',
50
- :'manifest_signing_service' => :'String'
50
+ :'description' => :'String'
51
51
  }
52
52
  end
53
53
 
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
+ :'manifest_signing_service',
57
58
  :'retain_repo_versions',
58
- :'description',
59
- :'manifest_signing_service'
59
+ :'description'
60
60
  ])
61
61
  end
62
62
 
@@ -79,6 +79,10 @@ module PulpContainerClient
79
79
  self.name = attributes[:'name']
80
80
  end
81
81
 
82
+ if attributes.key?(:'manifest_signing_service')
83
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
84
+ end
85
+
82
86
  if attributes.key?(:'pulp_labels')
83
87
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
88
  self.pulp_labels = value
@@ -92,10 +96,6 @@ module PulpContainerClient
92
96
  if attributes.key?(:'description')
93
97
  self.description = attributes[:'description']
94
98
  end
95
-
96
- if attributes.key?(:'manifest_signing_service')
97
- self.manifest_signing_service = attributes[:'manifest_signing_service']
98
- end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -171,10 +171,10 @@ module PulpContainerClient
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
173
  name == o.name &&
174
+ manifest_signing_service == o.manifest_signing_service &&
174
175
  pulp_labels == o.pulp_labels &&
175
176
  retain_repo_versions == o.retain_repo_versions &&
176
- description == o.description &&
177
- manifest_signing_service == o.manifest_signing_service
177
+ description == o.description
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -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
- [name, pulp_labels, retain_repo_versions, description, manifest_signing_service].hash
189
+ [name, manifest_signing_service, pulp_labels, retain_repo_versions, description].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,70 +15,70 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :versions_href
19
-
20
- attr_accessor :pulp_href
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
21
20
 
22
21
  # A unique name for this repository.
23
22
  attr_accessor :name
24
23
 
25
- attr_accessor :pulp_labels
24
+ # A reference to an associated signing service.
25
+ attr_accessor :manifest_signing_service
26
26
 
27
- # Retain X versions of the repository. Default is null which retains all versions.
28
- attr_accessor :retain_repo_versions
27
+ attr_accessor :versions_href
29
28
 
30
29
  # 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.
31
30
  attr_accessor :pulp_last_updated
32
31
 
33
- # An optional description.
34
- attr_accessor :description
32
+ attr_accessor :pulp_labels
35
33
 
36
- # Timestamp of creation.
37
- attr_accessor :pulp_created
34
+ # Retain X versions of the repository. Default is null which retains all versions.
35
+ attr_accessor :retain_repo_versions
36
+
37
+ attr_accessor :pulp_href
38
38
 
39
39
  attr_accessor :latest_version_href
40
40
 
41
- # A reference to an associated signing service.
42
- attr_accessor :manifest_signing_service
41
+ # An optional description.
42
+ attr_accessor :description
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'versions_href' => :'versions_href',
48
- :'pulp_href' => :'pulp_href',
47
+ :'pulp_created' => :'pulp_created',
49
48
  :'name' => :'name',
49
+ :'manifest_signing_service' => :'manifest_signing_service',
50
+ :'versions_href' => :'versions_href',
51
+ :'pulp_last_updated' => :'pulp_last_updated',
50
52
  :'pulp_labels' => :'pulp_labels',
51
53
  :'retain_repo_versions' => :'retain_repo_versions',
52
- :'pulp_last_updated' => :'pulp_last_updated',
53
- :'description' => :'description',
54
- :'pulp_created' => :'pulp_created',
54
+ :'pulp_href' => :'pulp_href',
55
55
  :'latest_version_href' => :'latest_version_href',
56
- :'manifest_signing_service' => :'manifest_signing_service'
56
+ :'description' => :'description'
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'versions_href' => :'String',
64
- :'pulp_href' => :'String',
63
+ :'pulp_created' => :'DateTime',
65
64
  :'name' => :'String',
65
+ :'manifest_signing_service' => :'String',
66
+ :'versions_href' => :'String',
67
+ :'pulp_last_updated' => :'DateTime',
66
68
  :'pulp_labels' => :'Hash<String, String>',
67
69
  :'retain_repo_versions' => :'Integer',
68
- :'pulp_last_updated' => :'DateTime',
69
- :'description' => :'String',
70
- :'pulp_created' => :'DateTime',
70
+ :'pulp_href' => :'String',
71
71
  :'latest_version_href' => :'String',
72
- :'manifest_signing_service' => :'String'
72
+ :'description' => :'String'
73
73
  }
74
74
  end
75
75
 
76
76
  # List of attributes with nullable: true
77
77
  def self.openapi_nullable
78
78
  Set.new([
79
+ :'manifest_signing_service',
79
80
  :'retain_repo_versions',
80
- :'description',
81
- :'manifest_signing_service'
81
+ :'description'
82
82
  ])
83
83
  end
84
84
 
@@ -97,46 +97,46 @@ module PulpContainerClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
- if attributes.key?(:'versions_href')
101
- self.versions_href = attributes[:'versions_href']
102
- end
103
-
104
- if attributes.key?(:'pulp_href')
105
- self.pulp_href = attributes[:'pulp_href']
100
+ if attributes.key?(:'pulp_created')
101
+ self.pulp_created = attributes[:'pulp_created']
106
102
  end
107
103
 
108
104
  if attributes.key?(:'name')
109
105
  self.name = attributes[:'name']
110
106
  end
111
107
 
112
- if attributes.key?(:'pulp_labels')
113
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
- self.pulp_labels = value
115
- end
108
+ if attributes.key?(:'manifest_signing_service')
109
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
116
110
  end
117
111
 
118
- if attributes.key?(:'retain_repo_versions')
119
- self.retain_repo_versions = attributes[:'retain_repo_versions']
112
+ if attributes.key?(:'versions_href')
113
+ self.versions_href = attributes[:'versions_href']
120
114
  end
121
115
 
122
116
  if attributes.key?(:'pulp_last_updated')
123
117
  self.pulp_last_updated = attributes[:'pulp_last_updated']
124
118
  end
125
119
 
126
- if attributes.key?(:'description')
127
- self.description = attributes[:'description']
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
128
124
  end
129
125
 
130
- if attributes.key?(:'pulp_created')
131
- self.pulp_created = attributes[:'pulp_created']
126
+ if attributes.key?(:'retain_repo_versions')
127
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
128
+ end
129
+
130
+ if attributes.key?(:'pulp_href')
131
+ self.pulp_href = attributes[:'pulp_href']
132
132
  end
133
133
 
134
134
  if attributes.key?(:'latest_version_href')
135
135
  self.latest_version_href = attributes[:'latest_version_href']
136
136
  end
137
137
 
138
- if attributes.key?(:'manifest_signing_service')
139
- self.manifest_signing_service = attributes[:'manifest_signing_service']
138
+ if attributes.key?(:'description')
139
+ self.description = attributes[:'description']
140
140
  end
141
141
  end
142
142
 
@@ -178,16 +178,16 @@ module PulpContainerClient
178
178
  def ==(o)
179
179
  return true if self.equal?(o)
180
180
  self.class == o.class &&
181
- versions_href == o.versions_href &&
182
- pulp_href == o.pulp_href &&
181
+ pulp_created == o.pulp_created &&
183
182
  name == o.name &&
183
+ manifest_signing_service == o.manifest_signing_service &&
184
+ versions_href == o.versions_href &&
185
+ pulp_last_updated == o.pulp_last_updated &&
184
186
  pulp_labels == o.pulp_labels &&
185
187
  retain_repo_versions == o.retain_repo_versions &&
186
- pulp_last_updated == o.pulp_last_updated &&
187
- description == o.description &&
188
- pulp_created == o.pulp_created &&
188
+ pulp_href == o.pulp_href &&
189
189
  latest_version_href == o.latest_version_href &&
190
- manifest_signing_service == o.manifest_signing_service
190
+ description == o.description
191
191
  end
192
192
 
193
193
  # @see the `==` method
@@ -199,7 +199,7 @@ module PulpContainerClient
199
199
  # Calculates hash code according to all attributes.
200
200
  # @return [Integer] Hash code
201
201
  def hash
202
- [versions_href, pulp_href, name, pulp_labels, retain_repo_versions, pulp_last_updated, description, pulp_created, latest_version_href, manifest_signing_service].hash
202
+ [pulp_created, name, manifest_signing_service, versions_href, pulp_last_updated, pulp_labels, retain_repo_versions, pulp_href, latest_version_href, description].hash
203
203
  end
204
204
 
205
205
  # Builds the object from hash
@@ -18,20 +18,20 @@ module PulpContainerClient
18
18
  # Whether this distribution should be shown in the content app.
19
19
  attr_accessor :hidden
20
20
 
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
23
-
24
- # A unique name. Ex, `rawhide` and `stable`.
25
- attr_accessor :name
26
-
27
- attr_accessor :pulp_labels
28
-
29
21
  # The latest RepositoryVersion for this Repository will be served.
30
22
  attr_accessor :repository
31
23
 
32
24
  # 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
25
  attr_accessor :base_path
34
26
 
27
+ attr_accessor :pulp_labels
28
+
29
+ # A unique name. Ex, `rawhide` and `stable`.
30
+ attr_accessor :name
31
+
32
+ # An optional content-guard. If none is specified, a default one will be used.
33
+ attr_accessor :content_guard
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -45,11 +45,11 @@ module PulpContainerClient
45
45
  def self.attribute_map
46
46
  {
47
47
  :'hidden' => :'hidden',
48
- :'content_guard' => :'content_guard',
49
- :'name' => :'name',
50
- :'pulp_labels' => :'pulp_labels',
51
48
  :'repository' => :'repository',
52
49
  :'base_path' => :'base_path',
50
+ :'pulp_labels' => :'pulp_labels',
51
+ :'name' => :'name',
52
+ :'content_guard' => :'content_guard',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -60,11 +60,11 @@ module PulpContainerClient
60
60
  def self.openapi_types
61
61
  {
62
62
  :'hidden' => :'Boolean',
63
- :'content_guard' => :'String',
64
- :'name' => :'String',
65
- :'pulp_labels' => :'Hash<String, String>',
66
63
  :'repository' => :'String',
67
64
  :'base_path' => :'String',
65
+ :'pulp_labels' => :'Hash<String, String>',
66
+ :'name' => :'String',
67
+ :'content_guard' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -101,12 +101,12 @@ module PulpContainerClient
101
101
  self.hidden = false
102
102
  end
103
103
 
104
- if attributes.key?(:'content_guard')
105
- self.content_guard = attributes[:'content_guard']
104
+ if attributes.key?(:'repository')
105
+ self.repository = attributes[:'repository']
106
106
  end
107
107
 
108
- if attributes.key?(:'name')
109
- self.name = attributes[:'name']
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
110
110
  end
111
111
 
112
112
  if attributes.key?(:'pulp_labels')
@@ -115,12 +115,12 @@ module PulpContainerClient
115
115
  end
116
116
  end
117
117
 
118
- if attributes.key?(:'repository')
119
- self.repository = attributes[:'repository']
118
+ if attributes.key?(:'name')
119
+ self.name = attributes[:'name']
120
120
  end
121
121
 
122
- if attributes.key?(:'base_path')
123
- self.base_path = attributes[:'base_path']
122
+ if attributes.key?(:'content_guard')
123
+ self.content_guard = attributes[:'content_guard']
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)
@@ -200,11 +200,11 @@ module PulpContainerClient
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
202
  hidden == o.hidden &&
203
- content_guard == o.content_guard &&
204
- name == o.name &&
205
- pulp_labels == o.pulp_labels &&
206
203
  repository == o.repository &&
207
204
  base_path == o.base_path &&
205
+ pulp_labels == o.pulp_labels &&
206
+ name == o.name &&
207
+ content_guard == o.content_guard &&
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
- [hidden, content_guard, name, pulp_labels, repository, base_path, repository_version, private, description].hash
222
+ [hidden, repository, base_path, pulp_labels, name, content_guard, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -18,20 +18,20 @@ module PulpContainerClient
18
18
  # Whether this distribution should be shown in the content app.
19
19
  attr_accessor :hidden
20
20
 
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
23
-
24
- # A unique name. Ex, `rawhide` and `stable`.
25
- attr_accessor :name
26
-
27
- attr_accessor :pulp_labels
28
-
29
21
  # The latest RepositoryVersion for this Repository will be served.
30
22
  attr_accessor :repository
31
23
 
32
24
  # 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
25
  attr_accessor :base_path
34
26
 
27
+ attr_accessor :pulp_labels
28
+
29
+ # A unique name. Ex, `rawhide` and `stable`.
30
+ attr_accessor :name
31
+
32
+ # An optional content-guard. If none is specified, a default one will be used.
33
+ attr_accessor :content_guard
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -48,11 +48,11 @@ module PulpContainerClient
48
48
  def self.attribute_map
49
49
  {
50
50
  :'hidden' => :'hidden',
51
- :'content_guard' => :'content_guard',
52
- :'name' => :'name',
53
- :'pulp_labels' => :'pulp_labels',
54
51
  :'repository' => :'repository',
55
52
  :'base_path' => :'base_path',
53
+ :'pulp_labels' => :'pulp_labels',
54
+ :'name' => :'name',
55
+ :'content_guard' => :'content_guard',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -64,11 +64,11 @@ module PulpContainerClient
64
64
  def self.openapi_types
65
65
  {
66
66
  :'hidden' => :'Boolean',
67
- :'content_guard' => :'String',
68
- :'name' => :'String',
69
- :'pulp_labels' => :'Hash<String, String>',
70
67
  :'repository' => :'String',
71
68
  :'base_path' => :'String',
69
+ :'pulp_labels' => :'Hash<String, String>',
70
+ :'name' => :'String',
71
+ :'content_guard' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -105,12 +105,12 @@ module PulpContainerClient
105
105
  self.hidden = false
106
106
  end
107
107
 
108
- if attributes.key?(:'content_guard')
109
- self.content_guard = attributes[:'content_guard']
108
+ if attributes.key?(:'repository')
109
+ self.repository = attributes[:'repository']
110
110
  end
111
111
 
112
- if attributes.key?(:'name')
113
- self.name = attributes[:'name']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
114
114
  end
115
115
 
116
116
  if attributes.key?(:'pulp_labels')
@@ -119,12 +119,12 @@ module PulpContainerClient
119
119
  end
120
120
  end
121
121
 
122
- if attributes.key?(:'repository')
123
- self.repository = attributes[:'repository']
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
124
  end
125
125
 
126
- if attributes.key?(:'base_path')
127
- self.base_path = attributes[:'base_path']
126
+ if attributes.key?(:'content_guard')
127
+ self.content_guard = attributes[:'content_guard']
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)
@@ -210,11 +210,11 @@ module PulpContainerClient
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
212
  hidden == o.hidden &&
213
- content_guard == o.content_guard &&
214
- name == o.name &&
215
- pulp_labels == o.pulp_labels &&
216
213
  repository == o.repository &&
217
214
  base_path == o.base_path &&
215
+ pulp_labels == o.pulp_labels &&
216
+ name == o.name &&
217
+ content_guard == o.content_guard &&
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
- [hidden, content_guard, name, pulp_labels, repository, base_path, remote, distributions, private, description].hash
233
+ [hidden, repository, base_path, pulp_labels, name, content_guard, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash