pulp_container_client 2.14.0.dev1659931276 → 2.14.0.dev1660189480

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.

Potentially problematic release.


This version of pulp_container_client might be problematic. Click here for more details.

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