pulp_container_client 2.19.12 → 2.19.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 +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +8 -8
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +8 -8
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  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 +42 -42
  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 +42 -42
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +58 -58
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +64 -64
  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 +49 -49
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  23. data/spec/models/container_container_distribution_spec.rb +5 -5
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  26. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  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 +58 -58
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # A unique name for this repository.
19
- attr_accessor :name
20
-
21
- # A reference to an associated signing service.
22
- attr_accessor :manifest_signing_service
18
+ attr_accessor :pulp_labels
23
19
 
24
20
  # An optional description.
25
21
  attr_accessor :description
26
22
 
27
- attr_accessor :pulp_labels
28
-
29
23
  # Retain X versions of the repository. Default is null which retains all versions.
30
24
  attr_accessor :retain_repo_versions
31
25
 
26
+ # A unique name for this repository.
27
+ attr_accessor :name
28
+
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
- :'name' => :'name',
36
- :'manifest_signing_service' => :'manifest_signing_service',
37
- :'description' => :'description',
38
35
  :'pulp_labels' => :'pulp_labels',
39
- :'retain_repo_versions' => :'retain_repo_versions'
36
+ :'description' => :'description',
37
+ :'retain_repo_versions' => :'retain_repo_versions',
38
+ :'name' => :'name',
39
+ :'manifest_signing_service' => :'manifest_signing_service'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'name' => :'String',
47
- :'manifest_signing_service' => :'String',
48
- :'description' => :'String',
49
46
  :'pulp_labels' => :'Hash<String, String>',
50
- :'retain_repo_versions' => :'Integer'
47
+ :'description' => :'String',
48
+ :'retain_repo_versions' => :'Integer',
49
+ :'name' => :'String',
50
+ :'manifest_signing_service' => :'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',
58
57
  :'description',
59
- :'retain_repo_versions'
58
+ :'retain_repo_versions',
59
+ :'manifest_signing_service'
60
60
  ])
61
61
  end
62
62
 
@@ -75,41 +75,33 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'name')
79
- self.name = attributes[:'name']
80
- end
81
-
82
- if attributes.key?(:'manifest_signing_service')
83
- self.manifest_signing_service = attributes[:'manifest_signing_service']
84
- end
85
-
86
- if attributes.key?(:'description')
87
- self.description = attributes[:'description']
88
- end
89
-
90
78
  if attributes.key?(:'pulp_labels')
91
79
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
80
  self.pulp_labels = value
93
81
  end
94
82
  end
95
83
 
84
+ if attributes.key?(:'description')
85
+ self.description = attributes[:'description']
86
+ end
87
+
96
88
  if attributes.key?(:'retain_repo_versions')
97
89
  self.retain_repo_versions = attributes[:'retain_repo_versions']
98
90
  end
91
+
92
+ if attributes.key?(:'name')
93
+ self.name = attributes[:'name']
94
+ 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?
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if @name.nil?
106
- invalid_properties.push('invalid value for "name", name cannot be nil.')
107
- end
108
-
109
- if @name.to_s.length < 1
110
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
111
- end
112
-
113
105
  if !@description.nil? && @description.to_s.length < 1
114
106
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
115
107
  end
@@ -118,33 +110,27 @@ module PulpContainerClient
118
110
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
119
111
  end
120
112
 
113
+ if @name.nil?
114
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
115
+ end
116
+
117
+ if @name.to_s.length < 1
118
+ invalid_properties.push('invalid value for "name", 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 @name.nil?
128
- return false if @name.to_s.length < 1
129
127
  return false if !@description.nil? && @description.to_s.length < 1
130
128
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
+ return false if @name.nil?
130
+ return false if @name.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
134
- # Custom attribute writer method with validation
135
- # @param [Object] name Value to be assigned
136
- def name=(name)
137
- if name.nil?
138
- fail ArgumentError, 'name cannot be nil'
139
- end
140
-
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
146
- end
147
-
148
134
  # Custom attribute writer method with validation
149
135
  # @param [Object] description Value to be assigned
150
136
  def description=(description)
@@ -165,16 +151,30 @@ module PulpContainerClient
165
151
  @retain_repo_versions = retain_repo_versions
166
152
  end
167
153
 
154
+ # 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.'
163
+ end
164
+
165
+ @name = name
166
+ end
167
+
168
168
  # Checks equality by comparing each attribute.
169
169
  # @param [Object] Object to be compared
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
- name == o.name &&
174
- manifest_signing_service == o.manifest_signing_service &&
175
- description == o.description &&
176
173
  pulp_labels == o.pulp_labels &&
177
- retain_repo_versions == o.retain_repo_versions
174
+ description == o.description &&
175
+ retain_repo_versions == o.retain_repo_versions &&
176
+ name == o.name &&
177
+ manifest_signing_service == o.manifest_signing_service
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, manifest_signing_service, description, pulp_labels, retain_repo_versions].hash
189
+ [pulp_labels, description, retain_repo_versions, name, manifest_signing_service].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 :latest_version_href
19
-
20
- # A unique name for this repository.
21
- attr_accessor :name
22
-
23
- # A reference to an associated signing service.
24
- attr_accessor :manifest_signing_service
18
+ attr_accessor :pulp_labels
25
19
 
26
20
  # An optional description.
27
21
  attr_accessor :description
28
22
 
29
- attr_accessor :versions_href
30
-
31
- attr_accessor :pulp_labels
23
+ # Retain X versions of the repository. Default is null which retains all versions.
24
+ attr_accessor :retain_repo_versions
32
25
 
33
26
  attr_accessor :pulp_href
34
27
 
35
- # 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.
36
- attr_accessor :pulp_last_updated
28
+ attr_accessor :latest_version_href
37
29
 
38
- # Retain X versions of the repository. Default is null which retains all versions.
39
- attr_accessor :retain_repo_versions
30
+ attr_accessor :versions_href
31
+
32
+ # A unique name for this repository.
33
+ attr_accessor :name
34
+
35
+ # A reference to an associated signing service.
36
+ attr_accessor :manifest_signing_service
40
37
 
41
38
  # Timestamp of creation.
42
39
  attr_accessor :pulp_created
43
40
 
41
+ # 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.
42
+ attr_accessor :pulp_last_updated
43
+
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
+ :'description' => :'description',
49
+ :'retain_repo_versions' => :'retain_repo_versions',
50
+ :'pulp_href' => :'pulp_href',
47
51
  :'latest_version_href' => :'latest_version_href',
52
+ :'versions_href' => :'versions_href',
48
53
  :'name' => :'name',
49
54
  :'manifest_signing_service' => :'manifest_signing_service',
50
- :'description' => :'description',
51
- :'versions_href' => :'versions_href',
52
- :'pulp_labels' => :'pulp_labels',
53
- :'pulp_href' => :'pulp_href',
54
- :'pulp_last_updated' => :'pulp_last_updated',
55
- :'retain_repo_versions' => :'retain_repo_versions',
56
- :'pulp_created' => :'pulp_created'
55
+ :'pulp_created' => :'pulp_created',
56
+ :'pulp_last_updated' => :'pulp_last_updated'
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
+ :'pulp_labels' => :'Hash<String, String>',
64
+ :'description' => :'String',
65
+ :'retain_repo_versions' => :'Integer',
66
+ :'pulp_href' => :'String',
63
67
  :'latest_version_href' => :'String',
68
+ :'versions_href' => :'String',
64
69
  :'name' => :'String',
65
70
  :'manifest_signing_service' => :'String',
66
- :'description' => :'String',
67
- :'versions_href' => :'String',
68
- :'pulp_labels' => :'Hash<String, String>',
69
- :'pulp_href' => :'String',
70
- :'pulp_last_updated' => :'DateTime',
71
- :'retain_repo_versions' => :'Integer',
72
- :'pulp_created' => :'DateTime'
71
+ :'pulp_created' => :'DateTime',
72
+ :'pulp_last_updated' => :'DateTime'
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',
80
79
  :'description',
81
80
  :'retain_repo_versions',
81
+ :'manifest_signing_service',
82
82
  ])
83
83
  end
84
84
 
@@ -97,69 +97,69 @@ module PulpContainerClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
- if attributes.key?(:'latest_version_href')
101
- self.latest_version_href = attributes[:'latest_version_href']
102
- end
103
-
104
- if attributes.key?(:'name')
105
- self.name = attributes[:'name']
106
- end
107
-
108
- if attributes.key?(:'manifest_signing_service')
109
- self.manifest_signing_service = attributes[:'manifest_signing_service']
100
+ if attributes.key?(:'pulp_labels')
101
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
102
+ self.pulp_labels = value
103
+ end
110
104
  end
111
105
 
112
106
  if attributes.key?(:'description')
113
107
  self.description = attributes[:'description']
114
108
  end
115
109
 
116
- if attributes.key?(:'versions_href')
117
- self.versions_href = attributes[:'versions_href']
118
- end
119
-
120
- if attributes.key?(:'pulp_labels')
121
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
- self.pulp_labels = value
123
- end
110
+ if attributes.key?(:'retain_repo_versions')
111
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
124
112
  end
125
113
 
126
114
  if attributes.key?(:'pulp_href')
127
115
  self.pulp_href = attributes[:'pulp_href']
128
116
  end
129
117
 
130
- if attributes.key?(:'pulp_last_updated')
131
- self.pulp_last_updated = attributes[:'pulp_last_updated']
118
+ if attributes.key?(:'latest_version_href')
119
+ self.latest_version_href = attributes[:'latest_version_href']
132
120
  end
133
121
 
134
- if attributes.key?(:'retain_repo_versions')
135
- self.retain_repo_versions = attributes[:'retain_repo_versions']
122
+ if attributes.key?(:'versions_href')
123
+ self.versions_href = attributes[:'versions_href']
124
+ end
125
+
126
+ if attributes.key?(:'name')
127
+ self.name = attributes[:'name']
128
+ end
129
+
130
+ if attributes.key?(:'manifest_signing_service')
131
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
136
132
  end
137
133
 
138
134
  if attributes.key?(:'pulp_created')
139
135
  self.pulp_created = attributes[:'pulp_created']
140
136
  end
137
+
138
+ if attributes.key?(:'pulp_last_updated')
139
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
140
+ end
141
141
  end
142
142
 
143
143
  # Show invalid properties with the reasons. Usually used together with valid?
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
- if @name.nil?
148
- invalid_properties.push('invalid value for "name", name cannot be nil.')
149
- end
150
-
151
147
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
148
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
153
149
  end
154
150
 
151
+ if @name.nil?
152
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
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 @name.nil?
162
161
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
162
+ return false if @name.nil?
163
163
  true
164
164
  end
165
165
 
@@ -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
+ pulp_labels == o.pulp_labels &&
182
+ description == o.description &&
183
+ retain_repo_versions == o.retain_repo_versions &&
184
+ pulp_href == o.pulp_href &&
181
185
  latest_version_href == o.latest_version_href &&
186
+ versions_href == o.versions_href &&
182
187
  name == o.name &&
183
188
  manifest_signing_service == o.manifest_signing_service &&
184
- description == o.description &&
185
- versions_href == o.versions_href &&
186
- pulp_labels == o.pulp_labels &&
187
- pulp_href == o.pulp_href &&
188
- pulp_last_updated == o.pulp_last_updated &&
189
- retain_repo_versions == o.retain_repo_versions &&
190
- pulp_created == o.pulp_created
189
+ pulp_created == o.pulp_created &&
190
+ pulp_last_updated == o.pulp_last_updated
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
- [latest_version_href, name, manifest_signing_service, description, versions_href, pulp_labels, pulp_href, pulp_last_updated, retain_repo_versions, pulp_created].hash
202
+ [pulp_labels, description, retain_repo_versions, pulp_href, latest_version_href, versions_href, name, manifest_signing_service, pulp_created, pulp_last_updated].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
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
23
-
24
- # The latest RepositoryVersion for this Repository will be served.
25
- attr_accessor :repository
21
+ attr_accessor :pulp_labels
26
22
 
27
23
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
24
  attr_accessor :base_path
29
25
 
30
- attr_accessor :pulp_labels
26
+ # A unique name. Ex, `rawhide` and `stable`.
27
+ attr_accessor :name
31
28
 
32
29
  # An optional content-guard. If none is specified, a default one will be used.
33
30
  attr_accessor :content_guard
34
31
 
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
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
- :'name' => :'name',
49
- :'repository' => :'repository',
50
- :'base_path' => :'base_path',
51
48
  :'pulp_labels' => :'pulp_labels',
49
+ :'base_path' => :'base_path',
50
+ :'name' => :'name',
52
51
  :'content_guard' => :'content_guard',
52
+ :'repository' => :'repository',
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
- :'name' => :'String',
64
- :'repository' => :'String',
65
- :'base_path' => :'String',
66
63
  :'pulp_labels' => :'Hash<String, String>',
64
+ :'base_path' => :'String',
65
+ :'name' => :'String',
67
66
  :'content_guard' => :'String',
67
+ :'repository' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -101,28 +101,28 @@ module PulpContainerClient
101
101
  self.hidden = false
102
102
  end
103
103
 
104
- if attributes.key?(:'name')
105
- self.name = attributes[:'name']
106
- end
107
-
108
- if attributes.key?(:'repository')
109
- self.repository = attributes[:'repository']
104
+ if attributes.key?(:'pulp_labels')
105
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
106
+ self.pulp_labels = value
107
+ end
110
108
  end
111
109
 
112
110
  if attributes.key?(:'base_path')
113
111
  self.base_path = attributes[:'base_path']
114
112
  end
115
113
 
116
- if attributes.key?(:'pulp_labels')
117
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
- self.pulp_labels = value
119
- end
114
+ if attributes.key?(:'name')
115
+ self.name = attributes[:'name']
120
116
  end
121
117
 
122
118
  if attributes.key?(:'content_guard')
123
119
  self.content_guard = attributes[:'content_guard']
124
120
  end
125
121
 
122
+ if attributes.key?(:'repository')
123
+ self.repository = attributes[:'repository']
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 !@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
- name == o.name &&
204
- repository == o.repository &&
205
- base_path == o.base_path &&
206
203
  pulp_labels == o.pulp_labels &&
204
+ base_path == o.base_path &&
205
+ name == o.name &&
207
206
  content_guard == o.content_guard &&
207
+ repository == o.repository &&
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, name, repository, base_path, pulp_labels, content_guard, repository_version, private, description].hash
222
+ [hidden, pulp_labels, base_path, name, content_guard, repository, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash