pulp_container_client 2.22.11 → 2.22.13

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