pulp_container_client 2.19.2 → 2.19.3

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 +11 -11
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +11 -11
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  11. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +34 -34
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +48 -48
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +34 -34
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +48 -48
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -52
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +34 -34
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +34 -34
  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 +8 -8
  23. data/spec/models/container_container_distribution_spec.rb +6 -6
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  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 +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 +5 -5
  31. metadata +64 -64
@@ -15,10 +15,16 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
18
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
+ attr_accessor :base_path
20
20
 
21
- attr_accessor :pulp_labels
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
23
+
24
+ attr_accessor :pulp_href
25
+
26
+ # An optional content-guard. If none is specified, a default one will be used.
27
+ attr_accessor :content_guard
22
28
 
23
29
  # The latest RepositoryVersion for this Repository will be served.
24
30
  attr_accessor :repository
@@ -26,16 +32,10 @@ module PulpContainerClient
26
32
  # Timestamp of creation.
27
33
  attr_accessor :pulp_created
28
34
 
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
- attr_accessor :pulp_href
33
-
34
- # A unique name. Ex, `rawhide` and `stable`.
35
- attr_accessor :name
35
+ # Whether this distribution should be shown in the content app.
36
+ attr_accessor :hidden
36
37
 
37
- # An optional content-guard. If none is specified, a default one will be used.
38
- attr_accessor :content_guard
38
+ attr_accessor :pulp_labels
39
39
 
40
40
  # RepositoryVersion to be served
41
41
  attr_accessor :repository_version
@@ -58,14 +58,14 @@ module PulpContainerClient
58
58
  # Attribute mapping from ruby-style variable name to JSON key.
59
59
  def self.attribute_map
60
60
  {
61
- :'hidden' => :'hidden',
62
- :'pulp_labels' => :'pulp_labels',
63
- :'repository' => :'repository',
64
- :'pulp_created' => :'pulp_created',
65
61
  :'base_path' => :'base_path',
66
- :'pulp_href' => :'pulp_href',
67
62
  :'name' => :'name',
63
+ :'pulp_href' => :'pulp_href',
68
64
  :'content_guard' => :'content_guard',
65
+ :'repository' => :'repository',
66
+ :'pulp_created' => :'pulp_created',
67
+ :'hidden' => :'hidden',
68
+ :'pulp_labels' => :'pulp_labels',
69
69
  :'repository_version' => :'repository_version',
70
70
  :'registry_path' => :'registry_path',
71
71
  :'remote' => :'remote',
@@ -78,14 +78,14 @@ module PulpContainerClient
78
78
  # Attribute type mapping.
79
79
  def self.openapi_types
80
80
  {
81
- :'hidden' => :'Boolean',
82
- :'pulp_labels' => :'Hash<String, String>',
83
- :'repository' => :'String',
84
- :'pulp_created' => :'DateTime',
85
81
  :'base_path' => :'String',
86
- :'pulp_href' => :'String',
87
82
  :'name' => :'String',
83
+ :'pulp_href' => :'String',
88
84
  :'content_guard' => :'String',
85
+ :'repository' => :'String',
86
+ :'pulp_created' => :'DateTime',
87
+ :'hidden' => :'Boolean',
88
+ :'pulp_labels' => :'Hash<String, String>',
89
89
  :'repository_version' => :'String',
90
90
  :'registry_path' => :'String',
91
91
  :'remote' => :'String',
@@ -119,40 +119,40 @@ module PulpContainerClient
119
119
  h[k.to_sym] = v
120
120
  }
121
121
 
122
- if attributes.key?(:'hidden')
123
- self.hidden = attributes[:'hidden']
124
- else
125
- self.hidden = false
122
+ if attributes.key?(:'base_path')
123
+ self.base_path = attributes[:'base_path']
126
124
  end
127
125
 
128
- if attributes.key?(:'pulp_labels')
129
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
130
- self.pulp_labels = value
131
- end
126
+ if attributes.key?(:'name')
127
+ self.name = attributes[:'name']
132
128
  end
133
129
 
134
- if attributes.key?(:'repository')
135
- self.repository = attributes[:'repository']
130
+ if attributes.key?(:'pulp_href')
131
+ self.pulp_href = attributes[:'pulp_href']
136
132
  end
137
133
 
138
- if attributes.key?(:'pulp_created')
139
- self.pulp_created = attributes[:'pulp_created']
134
+ if attributes.key?(:'content_guard')
135
+ self.content_guard = attributes[:'content_guard']
140
136
  end
141
137
 
142
- if attributes.key?(:'base_path')
143
- self.base_path = attributes[:'base_path']
138
+ if attributes.key?(:'repository')
139
+ self.repository = attributes[:'repository']
144
140
  end
145
141
 
146
- if attributes.key?(:'pulp_href')
147
- self.pulp_href = attributes[:'pulp_href']
142
+ if attributes.key?(:'pulp_created')
143
+ self.pulp_created = attributes[:'pulp_created']
148
144
  end
149
145
 
150
- if attributes.key?(:'name')
151
- self.name = attributes[:'name']
146
+ if attributes.key?(:'hidden')
147
+ self.hidden = attributes[:'hidden']
148
+ else
149
+ self.hidden = false
152
150
  end
153
151
 
154
- if attributes.key?(:'content_guard')
155
- self.content_guard = attributes[:'content_guard']
152
+ if attributes.key?(:'pulp_labels')
153
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
154
+ self.pulp_labels = value
155
+ end
156
156
  end
157
157
 
158
158
  if attributes.key?(:'repository_version')
@@ -208,14 +208,14 @@ module PulpContainerClient
208
208
  def ==(o)
209
209
  return true if self.equal?(o)
210
210
  self.class == o.class &&
211
- hidden == o.hidden &&
212
- pulp_labels == o.pulp_labels &&
213
- repository == o.repository &&
214
- pulp_created == o.pulp_created &&
215
211
  base_path == o.base_path &&
216
- pulp_href == o.pulp_href &&
217
212
  name == o.name &&
213
+ pulp_href == o.pulp_href &&
218
214
  content_guard == o.content_guard &&
215
+ repository == o.repository &&
216
+ pulp_created == o.pulp_created &&
217
+ hidden == o.hidden &&
218
+ pulp_labels == o.pulp_labels &&
219
219
  repository_version == o.repository_version &&
220
220
  registry_path == o.registry_path &&
221
221
  remote == o.remote &&
@@ -233,7 +233,7 @@ module PulpContainerClient
233
233
  # Calculates hash code according to all attributes.
234
234
  # @return [Integer] Hash code
235
235
  def hash
236
- [hidden, pulp_labels, repository, pulp_created, base_path, pulp_href, name, content_guard, repository_version, registry_path, remote, namespace, private, description].hash
236
+ [base_path, name, pulp_href, content_guard, repository, pulp_created, hidden, pulp_labels, repository_version, registry_path, remote, namespace, private, description].hash
237
237
  end
238
238
 
239
239
  # Builds the object from hash
@@ -15,14 +15,6 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistribution
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
20
-
21
- attr_accessor :pulp_labels
22
-
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
18
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
19
  attr_accessor :base_path
28
20
 
@@ -32,6 +24,14 @@ module PulpContainerClient
32
24
  # An optional content-guard. If none is specified, a default one will be used.
33
25
  attr_accessor :content_guard
34
26
 
27
+ # The latest RepositoryVersion for this Repository will be served.
28
+ attr_accessor :repository
29
+
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
32
+
33
+ attr_accessor :pulp_labels
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -47,12 +47,12 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'hidden' => :'hidden',
51
- :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
53
50
  :'base_path' => :'base_path',
54
51
  :'name' => :'name',
55
52
  :'content_guard' => :'content_guard',
53
+ :'repository' => :'repository',
54
+ :'hidden' => :'hidden',
55
+ :'pulp_labels' => :'pulp_labels',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -63,12 +63,12 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'hidden' => :'Boolean',
67
- :'pulp_labels' => :'Hash<String, String>',
68
- :'repository' => :'String',
69
66
  :'base_path' => :'String',
70
67
  :'name' => :'String',
71
68
  :'content_guard' => :'String',
69
+ :'repository' => :'String',
70
+ :'hidden' => :'Boolean',
71
+ :'pulp_labels' => :'Hash<String, String>',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,22 +99,6 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'hidden')
103
- self.hidden = attributes[:'hidden']
104
- else
105
- self.hidden = false
106
- end
107
-
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
112
- end
113
-
114
- if attributes.key?(:'repository')
115
- self.repository = attributes[:'repository']
116
- end
117
-
118
102
  if attributes.key?(:'base_path')
119
103
  self.base_path = attributes[:'base_path']
120
104
  end
@@ -127,6 +111,22 @@ module PulpContainerClient
127
111
  self.content_guard = attributes[:'content_guard']
128
112
  end
129
113
 
114
+ if attributes.key?(:'repository')
115
+ self.repository = attributes[:'repository']
116
+ end
117
+
118
+ if attributes.key?(:'hidden')
119
+ self.hidden = attributes[:'hidden']
120
+ else
121
+ self.hidden = false
122
+ end
123
+
124
+ if attributes.key?(:'pulp_labels')
125
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
+ self.pulp_labels = value
127
+ end
128
+ end
129
+
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -232,12 +232,12 @@ module PulpContainerClient
232
232
  def ==(o)
233
233
  return true if self.equal?(o)
234
234
  self.class == o.class &&
235
- hidden == o.hidden &&
236
- pulp_labels == o.pulp_labels &&
237
- repository == o.repository &&
238
235
  base_path == o.base_path &&
239
236
  name == o.name &&
240
237
  content_guard == o.content_guard &&
238
+ repository == o.repository &&
239
+ hidden == o.hidden &&
240
+ pulp_labels == o.pulp_labels &&
241
241
  remote == o.remote &&
242
242
  distributions == o.distributions &&
243
243
  private == o.private &&
@@ -253,7 +253,7 @@ module PulpContainerClient
253
253
  # Calculates hash code according to all attributes.
254
254
  # @return [Integer] Hash code
255
255
  def hash
256
- [hidden, pulp_labels, repository, base_path, name, content_guard, remote, distributions, private, description].hash
256
+ [base_path, name, content_guard, repository, hidden, pulp_labels, remote, distributions, private, description].hash
257
257
  end
258
258
 
259
259
  # Builds the object from hash
@@ -15,10 +15,16 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistributionResponse
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
18
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
+ attr_accessor :base_path
20
20
 
21
- attr_accessor :pulp_labels
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
23
+
24
+ attr_accessor :pulp_href
25
+
26
+ # An optional content-guard. If none is specified, a default one will be used.
27
+ attr_accessor :content_guard
22
28
 
23
29
  # The latest RepositoryVersion for this Repository will be served.
24
30
  attr_accessor :repository
@@ -26,16 +32,10 @@ module PulpContainerClient
26
32
  # Timestamp of creation.
27
33
  attr_accessor :pulp_created
28
34
 
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
- attr_accessor :pulp_href
33
-
34
- # A unique name. Ex, `rawhide` and `stable`.
35
- attr_accessor :name
35
+ # Whether this distribution should be shown in the content app.
36
+ attr_accessor :hidden
36
37
 
37
- # An optional content-guard. If none is specified, a default one will be used.
38
- attr_accessor :content_guard
38
+ attr_accessor :pulp_labels
39
39
 
40
40
  # Remote that can be used to fetch content when using pull-through caching.
41
41
  attr_accessor :remote
@@ -55,14 +55,14 @@ module PulpContainerClient
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
58
- :'hidden' => :'hidden',
59
- :'pulp_labels' => :'pulp_labels',
60
- :'repository' => :'repository',
61
- :'pulp_created' => :'pulp_created',
62
58
  :'base_path' => :'base_path',
63
- :'pulp_href' => :'pulp_href',
64
59
  :'name' => :'name',
60
+ :'pulp_href' => :'pulp_href',
65
61
  :'content_guard' => :'content_guard',
62
+ :'repository' => :'repository',
63
+ :'pulp_created' => :'pulp_created',
64
+ :'hidden' => :'hidden',
65
+ :'pulp_labels' => :'pulp_labels',
66
66
  :'remote' => :'remote',
67
67
  :'distributions' => :'distributions',
68
68
  :'namespace' => :'namespace',
@@ -74,14 +74,14 @@ module PulpContainerClient
74
74
  # Attribute type mapping.
75
75
  def self.openapi_types
76
76
  {
77
- :'hidden' => :'Boolean',
78
- :'pulp_labels' => :'Hash<String, String>',
79
- :'repository' => :'String',
80
- :'pulp_created' => :'DateTime',
81
77
  :'base_path' => :'String',
82
- :'pulp_href' => :'String',
83
78
  :'name' => :'String',
79
+ :'pulp_href' => :'String',
84
80
  :'content_guard' => :'String',
81
+ :'repository' => :'String',
82
+ :'pulp_created' => :'DateTime',
83
+ :'hidden' => :'Boolean',
84
+ :'pulp_labels' => :'Hash<String, String>',
85
85
  :'remote' => :'String',
86
86
  :'distributions' => :'Array<String>',
87
87
  :'namespace' => :'String',
@@ -113,40 +113,40 @@ module PulpContainerClient
113
113
  h[k.to_sym] = v
114
114
  }
115
115
 
116
- if attributes.key?(:'hidden')
117
- self.hidden = attributes[:'hidden']
118
- else
119
- self.hidden = false
116
+ if attributes.key?(:'base_path')
117
+ self.base_path = attributes[:'base_path']
120
118
  end
121
119
 
122
- if attributes.key?(:'pulp_labels')
123
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
124
- self.pulp_labels = value
125
- end
120
+ if attributes.key?(:'name')
121
+ self.name = attributes[:'name']
126
122
  end
127
123
 
128
- if attributes.key?(:'repository')
129
- self.repository = attributes[:'repository']
124
+ if attributes.key?(:'pulp_href')
125
+ self.pulp_href = attributes[:'pulp_href']
130
126
  end
131
127
 
132
- if attributes.key?(:'pulp_created')
133
- self.pulp_created = attributes[:'pulp_created']
128
+ if attributes.key?(:'content_guard')
129
+ self.content_guard = attributes[:'content_guard']
134
130
  end
135
131
 
136
- if attributes.key?(:'base_path')
137
- self.base_path = attributes[:'base_path']
132
+ if attributes.key?(:'repository')
133
+ self.repository = attributes[:'repository']
138
134
  end
139
135
 
140
- if attributes.key?(:'pulp_href')
141
- self.pulp_href = attributes[:'pulp_href']
136
+ if attributes.key?(:'pulp_created')
137
+ self.pulp_created = attributes[:'pulp_created']
142
138
  end
143
139
 
144
- if attributes.key?(:'name')
145
- self.name = attributes[:'name']
140
+ if attributes.key?(:'hidden')
141
+ self.hidden = attributes[:'hidden']
142
+ else
143
+ self.hidden = false
146
144
  end
147
145
 
148
- if attributes.key?(:'content_guard')
149
- self.content_guard = attributes[:'content_guard']
146
+ if attributes.key?(:'pulp_labels')
147
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
148
+ self.pulp_labels = value
149
+ end
150
150
  end
151
151
 
152
152
  if attributes.key?(:'remote')
@@ -205,14 +205,14 @@ module PulpContainerClient
205
205
  def ==(o)
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
- hidden == o.hidden &&
209
- pulp_labels == o.pulp_labels &&
210
- repository == o.repository &&
211
- pulp_created == o.pulp_created &&
212
208
  base_path == o.base_path &&
213
- pulp_href == o.pulp_href &&
214
209
  name == o.name &&
210
+ pulp_href == o.pulp_href &&
215
211
  content_guard == o.content_guard &&
212
+ repository == o.repository &&
213
+ pulp_created == o.pulp_created &&
214
+ hidden == o.hidden &&
215
+ pulp_labels == o.pulp_labels &&
216
216
  remote == o.remote &&
217
217
  distributions == o.distributions &&
218
218
  namespace == o.namespace &&
@@ -229,7 +229,7 @@ module PulpContainerClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [hidden, pulp_labels, repository, pulp_created, base_path, pulp_href, name, content_guard, remote, distributions, namespace, private, description].hash
232
+ [base_path, name, pulp_href, content_guard, repository, pulp_created, hidden, pulp_labels, remote, distributions, namespace, private, description].hash
233
233
  end
234
234
 
235
235
  # 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 ContainerContainerPushRepository
18
+ # Retain X versions of the repository. Default is null which retains all versions.
19
+ attr_accessor :retain_repo_versions
20
+
18
21
  # A reference to an associated signing service.
19
22
  attr_accessor :manifest_signing_service
20
23
 
21
- attr_accessor :pulp_labels
24
+ # A unique name for this repository.
25
+ attr_accessor :name
22
26
 
23
27
  # An optional description.
24
28
  attr_accessor :description
25
29
 
26
- # Retain X versions of the repository. Default is null which retains all versions.
27
- attr_accessor :retain_repo_versions
28
-
29
- # A unique name for this repository.
30
- attr_accessor :name
30
+ attr_accessor :pulp_labels
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',
35
36
  :'manifest_signing_service' => :'manifest_signing_service',
36
- :'pulp_labels' => :'pulp_labels',
37
+ :'name' => :'name',
37
38
  :'description' => :'description',
38
- :'retain_repo_versions' => :'retain_repo_versions',
39
- :'name' => :'name'
39
+ :'pulp_labels' => :'pulp_labels'
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',
46
47
  :'manifest_signing_service' => :'String',
47
- :'pulp_labels' => :'Hash<String, String>',
48
+ :'name' => :'String',
48
49
  :'description' => :'String',
49
- :'retain_repo_versions' => :'Integer',
50
- :'name' => :'String'
50
+ :'pulp_labels' => :'Hash<String, 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
+ :'retain_repo_versions',
57
58
  :'manifest_signing_service',
58
59
  :'description',
59
- :'retain_repo_versions',
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?(:'retain_repo_versions')
79
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
80
+ end
81
+
78
82
  if attributes.key?(:'manifest_signing_service')
79
83
  self.manifest_signing_service = attributes[:'manifest_signing_service']
80
84
  end
81
85
 
82
- if attributes.key?(:'pulp_labels')
83
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
- self.pulp_labels = value
85
- end
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
86
88
  end
87
89
 
88
90
  if attributes.key?(:'description')
89
91
  self.description = attributes[:'description']
90
92
  end
91
93
 
92
- if attributes.key?(:'retain_repo_versions')
93
- self.retain_repo_versions = attributes[:'retain_repo_versions']
94
- end
95
-
96
- if attributes.key?(:'name')
97
- self.name = attributes[:'name']
94
+ if attributes.key?(:'pulp_labels')
95
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
+ self.pulp_labels = value
97
+ end
98
98
  end
99
99
  end
100
100
 
@@ -102,10 +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
105
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
107
  end
@@ -118,29 +114,23 @@ module PulpContainerClient
118
114
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
119
115
  end
120
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
127
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
128
  return false if @name.nil?
130
129
  return false if @name.to_s.length < 1
130
+ return false if !@description.nil? && @description.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
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.'
139
- end
140
-
141
- @description = description
142
- end
143
-
144
134
  # Custom attribute writer method with validation
145
135
  # @param [Object] retain_repo_versions Value to be assigned
146
136
  def retain_repo_versions=(retain_repo_versions)
@@ -165,16 +155,26 @@ module PulpContainerClient
165
155
  @name = name
166
156
  end
167
157
 
158
+ # Custom attribute writer method with validation
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
+ end
164
+
165
+ @description = description
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
+ retain_repo_versions == o.retain_repo_versions &&
173
174
  manifest_signing_service == o.manifest_signing_service &&
174
- pulp_labels == o.pulp_labels &&
175
+ name == o.name &&
175
176
  description == o.description &&
176
- retain_repo_versions == o.retain_repo_versions &&
177
- name == o.name
177
+ pulp_labels == o.pulp_labels
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
- [manifest_signing_service, pulp_labels, description, retain_repo_versions, name].hash
189
+ [retain_repo_versions, manifest_signing_service, name, description, pulp_labels].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash