pulp_container_client 2.15.3 → 2.16.0

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