pulp_container_client 2.16.8 → 2.16.10

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