pulp_container_client 2.20.3 → 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 +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +6 -6
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  11. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  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 +47 -47
  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 +47 -47
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +50 -50
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
  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 +42 -42
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  23. data/spec/models/container_container_distribution_spec.rb +5 -5
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  26. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  27. data/spec/models/container_container_push_repository_spec.rb +5 -5
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  31. metadata +62 -62
@@ -15,12 +15,6 @@ 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
20
-
21
- # Retain X versions of the repository. Default is null which retains all versions.
22
- attr_accessor :retain_repo_versions
23
-
24
18
  # A unique name for this repository.
25
19
  attr_accessor :name
26
20
 
@@ -29,34 +23,40 @@ module PulpContainerClient
29
23
 
30
24
  attr_accessor :pulp_labels
31
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
+ attr_accessor :retain_repo_versions
28
+
29
+ # An optional description.
30
+ attr_accessor :description
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
- :'retain_repo_versions' => :'retain_repo_versions',
37
35
  :'name' => :'name',
38
36
  :'manifest_signing_service' => :'manifest_signing_service',
39
- :'pulp_labels' => :'pulp_labels'
37
+ :'pulp_labels' => :'pulp_labels',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
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
- :'retain_repo_versions' => :'Integer',
48
46
  :'name' => :'String',
49
47
  :'manifest_signing_service' => :'String',
50
- :'pulp_labels' => :'Hash<String, String>'
48
+ :'pulp_labels' => :'Hash<String, String>',
49
+ :'retain_repo_versions' => :'Integer',
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,14 +75,6 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'description')
79
- self.description = attributes[:'description']
80
- end
81
-
82
- if attributes.key?(:'retain_repo_versions')
83
- self.retain_repo_versions = attributes[:'retain_repo_versions']
84
- end
85
-
86
78
  if attributes.key?(:'name')
87
79
  self.name = attributes[:'name']
88
80
  end
@@ -96,20 +88,20 @@ module PulpContainerClient
96
88
  self.pulp_labels = value
97
89
  end
98
90
  end
91
+
92
+ if attributes.key?(:'retain_repo_versions')
93
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
94
+ end
95
+
96
+ if attributes.key?(:'description')
97
+ self.description = attributes[:'description']
98
+ end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
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
- retain_repo_versions == o.retain_repo_versions &&
175
173
  name == o.name &&
176
174
  manifest_signing_service == o.manifest_signing_service &&
177
- pulp_labels == o.pulp_labels
175
+ pulp_labels == o.pulp_labels &&
176
+ retain_repo_versions == o.retain_repo_versions &&
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, retain_repo_versions, name, manifest_signing_service, pulp_labels].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
@@ -18,42 +18,42 @@ module PulpContainerClient
18
18
  # Timestamp of creation.
19
19
  attr_accessor :pulp_created
20
20
 
21
- attr_accessor :latest_version_href
21
+ # A unique name for this repository.
22
+ attr_accessor :name
22
23
 
23
- # An optional description.
24
- attr_accessor :description
24
+ # A reference to an associated signing service.
25
+ attr_accessor :manifest_signing_service
26
+
27
+ attr_accessor :versions_href
25
28
 
26
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.
27
30
  attr_accessor :pulp_last_updated
28
31
 
29
- attr_accessor :versions_href
32
+ attr_accessor :pulp_labels
30
33
 
31
34
  # Retain X versions of the repository. Default is null which retains all versions.
32
35
  attr_accessor :retain_repo_versions
33
36
 
34
- # A unique name for this repository.
35
- attr_accessor :name
36
-
37
- # A reference to an associated signing service.
38
- attr_accessor :manifest_signing_service
39
-
40
37
  attr_accessor :pulp_href
41
38
 
42
- attr_accessor :pulp_labels
39
+ attr_accessor :latest_version_href
40
+
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
47
  :'pulp_created' => :'pulp_created',
48
- :'latest_version_href' => :'latest_version_href',
49
- :'description' => :'description',
50
- :'pulp_last_updated' => :'pulp_last_updated',
51
- :'versions_href' => :'versions_href',
52
- :'retain_repo_versions' => :'retain_repo_versions',
53
48
  :'name' => :'name',
54
49
  :'manifest_signing_service' => :'manifest_signing_service',
50
+ :'versions_href' => :'versions_href',
51
+ :'pulp_last_updated' => :'pulp_last_updated',
52
+ :'pulp_labels' => :'pulp_labels',
53
+ :'retain_repo_versions' => :'retain_repo_versions',
55
54
  :'pulp_href' => :'pulp_href',
56
- :'pulp_labels' => :'pulp_labels'
55
+ :'latest_version_href' => :'latest_version_href',
56
+ :'description' => :'description'
57
57
  }
58
58
  end
59
59
 
@@ -61,24 +61,24 @@ module PulpContainerClient
61
61
  def self.openapi_types
62
62
  {
63
63
  :'pulp_created' => :'DateTime',
64
- :'latest_version_href' => :'String',
65
- :'description' => :'String',
66
- :'pulp_last_updated' => :'DateTime',
67
- :'versions_href' => :'String',
68
- :'retain_repo_versions' => :'Integer',
69
64
  :'name' => :'String',
70
65
  :'manifest_signing_service' => :'String',
66
+ :'versions_href' => :'String',
67
+ :'pulp_last_updated' => :'DateTime',
68
+ :'pulp_labels' => :'Hash<String, String>',
69
+ :'retain_repo_versions' => :'Integer',
71
70
  :'pulp_href' => :'String',
72
- :'pulp_labels' => :'Hash<String, String>'
71
+ :'latest_version_href' => :'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
- :'description',
80
- :'retain_repo_versions',
81
79
  :'manifest_signing_service',
80
+ :'retain_repo_versions',
81
+ :'description'
82
82
  ])
83
83
  end
84
84
 
@@ -101,42 +101,42 @@ module PulpContainerClient
101
101
  self.pulp_created = attributes[:'pulp_created']
102
102
  end
103
103
 
104
- if attributes.key?(:'latest_version_href')
105
- self.latest_version_href = attributes[:'latest_version_href']
106
- end
107
-
108
- if attributes.key?(:'description')
109
- self.description = attributes[:'description']
104
+ if attributes.key?(:'name')
105
+ self.name = attributes[:'name']
110
106
  end
111
107
 
112
- if attributes.key?(:'pulp_last_updated')
113
- self.pulp_last_updated = attributes[:'pulp_last_updated']
108
+ if attributes.key?(:'manifest_signing_service')
109
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
114
110
  end
115
111
 
116
112
  if attributes.key?(:'versions_href')
117
113
  self.versions_href = attributes[:'versions_href']
118
114
  end
119
115
 
120
- if attributes.key?(:'retain_repo_versions')
121
- self.retain_repo_versions = attributes[:'retain_repo_versions']
116
+ if attributes.key?(:'pulp_last_updated')
117
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
122
118
  end
123
119
 
124
- if attributes.key?(:'name')
125
- self.name = attributes[:'name']
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
126
124
  end
127
125
 
128
- if attributes.key?(:'manifest_signing_service')
129
- self.manifest_signing_service = attributes[:'manifest_signing_service']
126
+ if attributes.key?(:'retain_repo_versions')
127
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
130
128
  end
131
129
 
132
130
  if attributes.key?(:'pulp_href')
133
131
  self.pulp_href = attributes[:'pulp_href']
134
132
  end
135
133
 
136
- if attributes.key?(:'pulp_labels')
137
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
138
- self.pulp_labels = value
139
- end
134
+ if attributes.key?(:'latest_version_href')
135
+ self.latest_version_href = attributes[:'latest_version_href']
136
+ end
137
+
138
+ if attributes.key?(:'description')
139
+ self.description = attributes[:'description']
140
140
  end
141
141
  end
142
142
 
@@ -144,22 +144,22 @@ module PulpContainerClient
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
148
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
149
- end
150
-
151
147
  if @name.nil?
152
148
  invalid_properties.push('invalid value for "name", name cannot be nil.')
153
149
  end
154
150
 
151
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
153
+ end
154
+
155
155
  invalid_properties
156
156
  end
157
157
 
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
162
161
  return false if @name.nil?
162
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
163
163
  true
164
164
  end
165
165
 
@@ -179,15 +179,15 @@ module PulpContainerClient
179
179
  return true if self.equal?(o)
180
180
  self.class == o.class &&
181
181
  pulp_created == o.pulp_created &&
182
- latest_version_href == o.latest_version_href &&
183
- description == o.description &&
184
- pulp_last_updated == o.pulp_last_updated &&
185
- versions_href == o.versions_href &&
186
- retain_repo_versions == o.retain_repo_versions &&
187
182
  name == o.name &&
188
183
  manifest_signing_service == o.manifest_signing_service &&
184
+ versions_href == o.versions_href &&
185
+ pulp_last_updated == o.pulp_last_updated &&
186
+ pulp_labels == o.pulp_labels &&
187
+ retain_repo_versions == o.retain_repo_versions &&
189
188
  pulp_href == o.pulp_href &&
190
- pulp_labels == o.pulp_labels
189
+ latest_version_href == o.latest_version_href &&
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
- [pulp_created, latest_version_href, description, pulp_last_updated, versions_href, retain_repo_versions, name, manifest_signing_service, pulp_href, pulp_labels].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
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
+ # Whether this distribution should be shown in the content app.
19
+ attr_accessor :hidden
20
+
18
21
  # The latest RepositoryVersion for this Repository will be served.
19
22
  attr_accessor :repository
20
23
 
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
23
-
24
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\")
25
25
  attr_accessor :base_path
26
26
 
27
- # An optional content-guard. If none is specified, a default one will be used.
28
- attr_accessor :content_guard
29
-
30
27
  attr_accessor :pulp_labels
31
28
 
32
- # Whether this distribution should be shown in the content app.
33
- attr_accessor :hidden
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
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
+ :'hidden' => :'hidden',
47
48
  :'repository' => :'repository',
48
- :'name' => :'name',
49
49
  :'base_path' => :'base_path',
50
- :'content_guard' => :'content_guard',
51
50
  :'pulp_labels' => :'pulp_labels',
52
- :'hidden' => :'hidden',
51
+ :'name' => :'name',
52
+ :'content_guard' => :'content_guard',
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
+ :'hidden' => :'Boolean',
62
63
  :'repository' => :'String',
63
- :'name' => :'String',
64
64
  :'base_path' => :'String',
65
- :'content_guard' => :'String',
66
65
  :'pulp_labels' => :'Hash<String, String>',
67
- :'hidden' => :'Boolean',
66
+ :'name' => :'String',
67
+ :'content_guard' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,32 +95,32 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'repository')
99
- self.repository = attributes[:'repository']
98
+ if attributes.key?(:'hidden')
99
+ self.hidden = attributes[:'hidden']
100
+ else
101
+ self.hidden = false
100
102
  end
101
103
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
104
+ if attributes.key?(:'repository')
105
+ self.repository = attributes[:'repository']
104
106
  end
105
107
 
106
108
  if attributes.key?(:'base_path')
107
109
  self.base_path = attributes[:'base_path']
108
110
  end
109
111
 
110
- if attributes.key?(:'content_guard')
111
- self.content_guard = attributes[:'content_guard']
112
- end
113
-
114
112
  if attributes.key?(:'pulp_labels')
115
113
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
114
  self.pulp_labels = value
117
115
  end
118
116
  end
119
117
 
120
- if attributes.key?(:'hidden')
121
- self.hidden = attributes[:'hidden']
122
- else
123
- self.hidden = false
118
+ if attributes.key?(:'name')
119
+ self.name = attributes[:'name']
120
+ end
121
+
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)
@@ -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
+ hidden == o.hidden &&
202
203
  repository == o.repository &&
203
- name == o.name &&
204
204
  base_path == o.base_path &&
205
- content_guard == o.content_guard &&
206
205
  pulp_labels == o.pulp_labels &&
207
- hidden == o.hidden &&
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
- [repository, name, base_path, content_guard, pulp_labels, hidden, 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