pulp_container_client 2.20.7 → 2.20.9

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