pulp_deb_client 2.20.1 → 2.20.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentGenericContentsApi.md +8 -8
  4. data/docs/ContentInstallerFileIndicesApi.md +8 -8
  5. data/docs/ContentInstallerPackagesApi.md +8 -8
  6. data/docs/ContentPackageIndicesApi.md +8 -8
  7. data/docs/ContentPackageReleaseComponentsApi.md +10 -10
  8. data/docs/ContentPackagesApi.md +8 -8
  9. data/docs/ContentReleaseArchitecturesApi.md +9 -9
  10. data/docs/ContentReleaseComponentsApi.md +9 -9
  11. data/docs/ContentReleaseFilesApi.md +8 -8
  12. data/docs/ContentReleasesApi.md +8 -8
  13. data/docs/DebAptDistribution.md +1 -1
  14. data/docs/DebAptDistributionResponse.md +1 -1
  15. data/docs/DebAptRemote.md +1 -1
  16. data/docs/DebAptRemoteResponse.md +3 -1
  17. data/docs/DebAptRemoteResponseHiddenFields.md +19 -0
  18. data/docs/DebAptRepository.md +2 -2
  19. data/docs/DebAptRepositoryResponse.md +2 -2
  20. data/docs/DebInstallerFileIndex.md +0 -2
  21. data/docs/DebInstallerFileIndexResponse.md +0 -2
  22. data/docs/DebPackageIndex.md +0 -2
  23. data/docs/DebPackageIndexResponse.md +0 -2
  24. data/docs/DistributionsAptApi.md +16 -12
  25. data/docs/PatcheddebAptDistribution.md +1 -1
  26. data/docs/PatcheddebAptRemote.md +1 -1
  27. data/docs/PatcheddebAptRepository.md +2 -2
  28. data/docs/PublicationsAptApi.md +10 -10
  29. data/docs/PublicationsVerbatimApi.md +10 -10
  30. data/docs/RemotesAptApi.md +12 -12
  31. data/docs/RepositoriesAptApi.md +27 -11
  32. data/docs/RepositoriesAptVersionsApi.md +12 -12
  33. data/docs/RepositoryAddRemoveContent.md +2 -2
  34. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +13 -13
  35. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +13 -13
  36. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +13 -13
  37. data/lib/pulp_deb_client/api/content_package_indices_api.rb +13 -13
  38. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +13 -13
  39. data/lib/pulp_deb_client/api/content_packages_api.rb +13 -13
  40. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +13 -13
  41. data/lib/pulp_deb_client/api/content_release_components_api.rb +13 -13
  42. data/lib/pulp_deb_client/api/content_release_files_api.rb +13 -13
  43. data/lib/pulp_deb_client/api/content_releases_api.rb +13 -13
  44. data/lib/pulp_deb_client/api/distributions_apt_api.rb +23 -17
  45. data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -15
  46. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -15
  47. data/lib/pulp_deb_client/api/remotes_apt_api.rb +17 -17
  48. data/lib/pulp_deb_client/api/repositories_apt_api.rb +39 -15
  49. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +17 -17
  50. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +4 -2
  51. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +4 -2
  52. data/lib/pulp_deb_client/models/deb_apt_remote.rb +4 -2
  53. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +17 -3
  54. data/lib/pulp_deb_client/models/deb_apt_remote_response_hidden_fields.rb +215 -0
  55. data/lib/pulp_deb_client/models/deb_apt_repository.rb +5 -3
  56. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +5 -3
  57. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -16
  58. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -16
  59. data/lib/pulp_deb_client/models/deb_package_index.rb +1 -16
  60. data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -16
  61. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +4 -2
  62. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +4 -2
  63. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +5 -3
  64. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +2 -2
  65. data/lib/pulp_deb_client/version.rb +1 -1
  66. data/lib/pulp_deb_client.rb +1 -0
  67. data/spec/api/content_generic_contents_api_spec.rb +4 -4
  68. data/spec/api/content_installer_file_indices_api_spec.rb +4 -4
  69. data/spec/api/content_installer_packages_api_spec.rb +4 -4
  70. data/spec/api/content_package_indices_api_spec.rb +4 -4
  71. data/spec/api/content_package_release_components_api_spec.rb +4 -4
  72. data/spec/api/content_packages_api_spec.rb +4 -4
  73. data/spec/api/content_release_architectures_api_spec.rb +4 -4
  74. data/spec/api/content_release_components_api_spec.rb +4 -4
  75. data/spec/api/content_release_files_api_spec.rb +4 -4
  76. data/spec/api/content_releases_api_spec.rb +4 -4
  77. data/spec/api/distributions_apt_api_spec.rb +8 -6
  78. data/spec/api/publications_apt_api_spec.rb +5 -5
  79. data/spec/api/publications_verbatim_api_spec.rb +5 -5
  80. data/spec/api/remotes_apt_api_spec.rb +6 -6
  81. data/spec/api/repositories_apt_api_spec.rb +13 -5
  82. data/spec/api/repositories_apt_versions_api_spec.rb +6 -6
  83. data/spec/models/deb_apt_remote_response_hidden_fields_spec.rb +47 -0
  84. data/spec/models/deb_apt_remote_response_spec.rb +6 -0
  85. data/spec/models/deb_installer_file_index_response_spec.rb +0 -6
  86. data/spec/models/deb_installer_file_index_spec.rb +0 -6
  87. data/spec/models/deb_package_index_response_spec.rb +0 -6
  88. data/spec/models/deb_package_index_spec.rb +0 -6
  89. metadata +54 -50
@@ -0,0 +1,215 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDebClient
16
+ class DebAptRemoteResponseHiddenFields
17
+ attr_accessor :name
18
+
19
+ attr_accessor :is_set
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'is_set' => :'is_set'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'is_set' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebAptRemoteResponseHiddenFields` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebAptRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'name')
59
+ self.name = attributes[:'name']
60
+ end
61
+
62
+ if attributes.key?(:'is_set')
63
+ self.is_set = attributes[:'is_set']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ name == o.name &&
86
+ is_set == o.is_set
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [name, is_set].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ PulpDebClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -23,7 +23,7 @@ module PulpDebClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
29
  # An optional remote to use by default when syncing.
@@ -43,7 +43,7 @@ module PulpDebClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Object',
46
+ :'pulp_labels' => :'Hash<String, String>',
47
47
  :'name' => :'String',
48
48
  :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
@@ -76,7 +76,9 @@ module PulpDebClient
76
76
  }
77
77
 
78
78
  if attributes.key?(:'pulp_labels')
79
- self.pulp_labels = attributes[:'pulp_labels']
79
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
+ self.pulp_labels = value
81
+ end
80
82
  end
81
83
 
82
84
  if attributes.key?(:'name')
@@ -32,7 +32,7 @@ module PulpDebClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
35
+ # Retain X versions of the repository. Default is null which retains all versions.
36
36
  attr_accessor :retain_repo_versions
37
37
 
38
38
  # An optional remote to use by default when syncing.
@@ -59,7 +59,7 @@ module PulpDebClient
59
59
  :'pulp_href' => :'String',
60
60
  :'pulp_created' => :'DateTime',
61
61
  :'versions_href' => :'String',
62
- :'pulp_labels' => :'Object',
62
+ :'pulp_labels' => :'Hash<String, String>',
63
63
  :'latest_version_href' => :'String',
64
64
  :'name' => :'String',
65
65
  :'description' => :'String',
@@ -105,7 +105,9 @@ module PulpDebClient
105
105
  end
106
106
 
107
107
  if attributes.key?(:'pulp_labels')
108
- self.pulp_labels = attributes[:'pulp_labels']
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
109
111
  end
110
112
 
111
113
  if attributes.key?(:'latest_version_href')
@@ -18,9 +18,6 @@ module PulpDebClient
18
18
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
19
19
  attr_accessor :artifacts
20
20
 
21
- # Release this index file belongs to.
22
- attr_accessor :release
23
-
24
21
  # Component of the component - architecture combination.
25
22
  attr_accessor :component
26
23
 
@@ -34,7 +31,6 @@ module PulpDebClient
34
31
  def self.attribute_map
35
32
  {
36
33
  :'artifacts' => :'artifacts',
37
- :'release' => :'release',
38
34
  :'component' => :'component',
39
35
  :'architecture' => :'architecture',
40
36
  :'relative_path' => :'relative_path'
@@ -45,7 +41,6 @@ module PulpDebClient
45
41
  def self.openapi_types
46
42
  {
47
43
  :'artifacts' => :'Object',
48
- :'release' => :'String',
49
44
  :'component' => :'String',
50
45
  :'architecture' => :'String',
51
46
  :'relative_path' => :'String'
@@ -77,10 +72,6 @@ module PulpDebClient
77
72
  self.artifacts = attributes[:'artifacts']
78
73
  end
79
74
 
80
- if attributes.key?(:'release')
81
- self.release = attributes[:'release']
82
- end
83
-
84
75
  if attributes.key?(:'component')
85
76
  self.component = attributes[:'component']
86
77
  end
@@ -102,10 +93,6 @@ module PulpDebClient
102
93
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
103
94
  end
104
95
 
105
- if @release.nil?
106
- invalid_properties.push('invalid value for "release", release cannot be nil.')
107
- end
108
-
109
96
  if @component.nil?
110
97
  invalid_properties.push('invalid value for "component", component cannot be nil.')
111
98
  end
@@ -133,7 +120,6 @@ module PulpDebClient
133
120
  # @return true if the model is valid
134
121
  def valid?
135
122
  return false if @artifacts.nil?
136
- return false if @release.nil?
137
123
  return false if @component.nil?
138
124
  return false if @component.to_s.length < 1
139
125
  return false if @architecture.nil?
@@ -186,7 +172,6 @@ module PulpDebClient
186
172
  return true if self.equal?(o)
187
173
  self.class == o.class &&
188
174
  artifacts == o.artifacts &&
189
- release == o.release &&
190
175
  component == o.component &&
191
176
  architecture == o.architecture &&
192
177
  relative_path == o.relative_path
@@ -201,7 +186,7 @@ module PulpDebClient
201
186
  # Calculates hash code according to all attributes.
202
187
  # @return [Integer] Hash code
203
188
  def hash
204
- [artifacts, release, component, architecture, relative_path].hash
189
+ [artifacts, component, architecture, relative_path].hash
205
190
  end
206
191
 
207
192
  # Builds the object from hash
@@ -23,9 +23,6 @@ module PulpDebClient
23
23
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
24
24
  attr_accessor :artifacts
25
25
 
26
- # Release this index file belongs to.
27
- attr_accessor :release
28
-
29
26
  # Component of the component - architecture combination.
30
27
  attr_accessor :component
31
28
 
@@ -41,7 +38,6 @@ module PulpDebClient
41
38
  :'pulp_href' => :'pulp_href',
42
39
  :'pulp_created' => :'pulp_created',
43
40
  :'artifacts' => :'artifacts',
44
- :'release' => :'release',
45
41
  :'component' => :'component',
46
42
  :'architecture' => :'architecture',
47
43
  :'relative_path' => :'relative_path'
@@ -54,7 +50,6 @@ module PulpDebClient
54
50
  :'pulp_href' => :'String',
55
51
  :'pulp_created' => :'DateTime',
56
52
  :'artifacts' => :'Object',
57
- :'release' => :'String',
58
53
  :'component' => :'String',
59
54
  :'architecture' => :'String',
60
55
  :'relative_path' => :'String'
@@ -94,10 +89,6 @@ module PulpDebClient
94
89
  self.artifacts = attributes[:'artifacts']
95
90
  end
96
91
 
97
- if attributes.key?(:'release')
98
- self.release = attributes[:'release']
99
- end
100
-
101
92
  if attributes.key?(:'component')
102
93
  self.component = attributes[:'component']
103
94
  end
@@ -119,10 +110,6 @@ module PulpDebClient
119
110
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
120
111
  end
121
112
 
122
- if @release.nil?
123
- invalid_properties.push('invalid value for "release", release cannot be nil.')
124
- end
125
-
126
113
  if @component.nil?
127
114
  invalid_properties.push('invalid value for "component", component cannot be nil.')
128
115
  end
@@ -138,7 +125,6 @@ module PulpDebClient
138
125
  # @return true if the model is valid
139
126
  def valid?
140
127
  return false if @artifacts.nil?
141
- return false if @release.nil?
142
128
  return false if @component.nil?
143
129
  return false if @architecture.nil?
144
130
  true
@@ -152,7 +138,6 @@ module PulpDebClient
152
138
  pulp_href == o.pulp_href &&
153
139
  pulp_created == o.pulp_created &&
154
140
  artifacts == o.artifacts &&
155
- release == o.release &&
156
141
  component == o.component &&
157
142
  architecture == o.architecture &&
158
143
  relative_path == o.relative_path
@@ -167,7 +152,7 @@ module PulpDebClient
167
152
  # Calculates hash code according to all attributes.
168
153
  # @return [Integer] Hash code
169
154
  def hash
170
- [pulp_href, pulp_created, artifacts, release, component, architecture, relative_path].hash
155
+ [pulp_href, pulp_created, artifacts, component, architecture, relative_path].hash
171
156
  end
172
157
 
173
158
  # Builds the object from hash
@@ -18,9 +18,6 @@ module PulpDebClient
18
18
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
19
19
  attr_accessor :artifacts
20
20
 
21
- # Release this index file belongs to.
22
- attr_accessor :release
23
-
24
21
  # Component of the component - architecture combination.
25
22
  attr_accessor :component
26
23
 
@@ -34,7 +31,6 @@ module PulpDebClient
34
31
  def self.attribute_map
35
32
  {
36
33
  :'artifacts' => :'artifacts',
37
- :'release' => :'release',
38
34
  :'component' => :'component',
39
35
  :'architecture' => :'architecture',
40
36
  :'relative_path' => :'relative_path'
@@ -45,7 +41,6 @@ module PulpDebClient
45
41
  def self.openapi_types
46
42
  {
47
43
  :'artifacts' => :'Object',
48
- :'release' => :'String',
49
44
  :'component' => :'String',
50
45
  :'architecture' => :'String',
51
46
  :'relative_path' => :'String'
@@ -77,10 +72,6 @@ module PulpDebClient
77
72
  self.artifacts = attributes[:'artifacts']
78
73
  end
79
74
 
80
- if attributes.key?(:'release')
81
- self.release = attributes[:'release']
82
- end
83
-
84
75
  if attributes.key?(:'component')
85
76
  self.component = attributes[:'component']
86
77
  end
@@ -102,10 +93,6 @@ module PulpDebClient
102
93
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
103
94
  end
104
95
 
105
- if @release.nil?
106
- invalid_properties.push('invalid value for "release", release cannot be nil.')
107
- end
108
-
109
96
  if !@component.nil? && @component.to_s.length < 1
110
97
  invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
111
98
  end
@@ -125,7 +112,6 @@ module PulpDebClient
125
112
  # @return true if the model is valid
126
113
  def valid?
127
114
  return false if @artifacts.nil?
128
- return false if @release.nil?
129
115
  return false if !@component.nil? && @component.to_s.length < 1
130
116
  return false if !@architecture.nil? && @architecture.to_s.length < 1
131
117
  return false if !@relative_path.nil? && @relative_path.to_s.length < 1
@@ -168,7 +154,6 @@ module PulpDebClient
168
154
  return true if self.equal?(o)
169
155
  self.class == o.class &&
170
156
  artifacts == o.artifacts &&
171
- release == o.release &&
172
157
  component == o.component &&
173
158
  architecture == o.architecture &&
174
159
  relative_path == o.relative_path
@@ -183,7 +168,7 @@ module PulpDebClient
183
168
  # Calculates hash code according to all attributes.
184
169
  # @return [Integer] Hash code
185
170
  def hash
186
- [artifacts, release, component, architecture, relative_path].hash
171
+ [artifacts, component, architecture, relative_path].hash
187
172
  end
188
173
 
189
174
  # Builds the object from hash
@@ -23,9 +23,6 @@ module PulpDebClient
23
23
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
24
24
  attr_accessor :artifacts
25
25
 
26
- # Release this index file belongs to.
27
- attr_accessor :release
28
-
29
26
  # Component of the component - architecture combination.
30
27
  attr_accessor :component
31
28
 
@@ -41,7 +38,6 @@ module PulpDebClient
41
38
  :'pulp_href' => :'pulp_href',
42
39
  :'pulp_created' => :'pulp_created',
43
40
  :'artifacts' => :'artifacts',
44
- :'release' => :'release',
45
41
  :'component' => :'component',
46
42
  :'architecture' => :'architecture',
47
43
  :'relative_path' => :'relative_path'
@@ -54,7 +50,6 @@ module PulpDebClient
54
50
  :'pulp_href' => :'String',
55
51
  :'pulp_created' => :'DateTime',
56
52
  :'artifacts' => :'Object',
57
- :'release' => :'String',
58
53
  :'component' => :'String',
59
54
  :'architecture' => :'String',
60
55
  :'relative_path' => :'String'
@@ -94,10 +89,6 @@ module PulpDebClient
94
89
  self.artifacts = attributes[:'artifacts']
95
90
  end
96
91
 
97
- if attributes.key?(:'release')
98
- self.release = attributes[:'release']
99
- end
100
-
101
92
  if attributes.key?(:'component')
102
93
  self.component = attributes[:'component']
103
94
  end
@@ -119,10 +110,6 @@ module PulpDebClient
119
110
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
120
111
  end
121
112
 
122
- if @release.nil?
123
- invalid_properties.push('invalid value for "release", release cannot be nil.')
124
- end
125
-
126
113
  invalid_properties
127
114
  end
128
115
 
@@ -130,7 +117,6 @@ module PulpDebClient
130
117
  # @return true if the model is valid
131
118
  def valid?
132
119
  return false if @artifacts.nil?
133
- return false if @release.nil?
134
120
  true
135
121
  end
136
122
 
@@ -142,7 +128,6 @@ module PulpDebClient
142
128
  pulp_href == o.pulp_href &&
143
129
  pulp_created == o.pulp_created &&
144
130
  artifacts == o.artifacts &&
145
- release == o.release &&
146
131
  component == o.component &&
147
132
  architecture == o.architecture &&
148
133
  relative_path == o.relative_path
@@ -157,7 +142,7 @@ module PulpDebClient
157
142
  # Calculates hash code according to all attributes.
158
143
  # @return [Integer] Hash code
159
144
  def hash
160
- [pulp_href, pulp_created, artifacts, release, component, architecture, relative_path].hash
145
+ [pulp_href, pulp_created, artifacts, component, architecture, relative_path].hash
161
146
  end
162
147
 
163
148
  # Builds the object from hash
@@ -49,7 +49,7 @@ module PulpDebClient
49
49
  {
50
50
  :'base_path' => :'String',
51
51
  :'content_guard' => :'String',
52
- :'pulp_labels' => :'Object',
52
+ :'pulp_labels' => :'Hash<String, String>',
53
53
  :'name' => :'String',
54
54
  :'repository' => :'String',
55
55
  :'publication' => :'String'
@@ -89,7 +89,9 @@ module PulpDebClient
89
89
  end
90
90
 
91
91
  if attributes.key?(:'pulp_labels')
92
- self.pulp_labels = attributes[:'pulp_labels']
92
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
93
+ self.pulp_labels = value
94
+ end
93
95
  end
94
96
 
95
97
  if attributes.key?(:'name')
@@ -150,7 +150,7 @@ module PulpDebClient
150
150
  :'proxy_password' => :'String',
151
151
  :'username' => :'String',
152
152
  :'password' => :'String',
153
- :'pulp_labels' => :'Object',
153
+ :'pulp_labels' => :'Hash<String, String>',
154
154
  :'download_concurrency' => :'Integer',
155
155
  :'max_retries' => :'Integer',
156
156
  :'policy' => :'PolicyEnum',
@@ -255,7 +255,9 @@ module PulpDebClient
255
255
  end
256
256
 
257
257
  if attributes.key?(:'pulp_labels')
258
- self.pulp_labels = attributes[:'pulp_labels']
258
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
259
+ self.pulp_labels = value
260
+ end
259
261
  end
260
262
 
261
263
  if attributes.key?(:'download_concurrency')
@@ -23,7 +23,7 @@ module PulpDebClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
29
  # An optional remote to use by default when syncing.
@@ -43,7 +43,7 @@ module PulpDebClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Object',
46
+ :'pulp_labels' => :'Hash<String, String>',
47
47
  :'name' => :'String',
48
48
  :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
@@ -76,7 +76,9 @@ module PulpDebClient
76
76
  }
77
77
 
78
78
  if attributes.key?(:'pulp_labels')
79
- self.pulp_labels = attributes[:'pulp_labels']
79
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
+ self.pulp_labels = value
81
+ end
80
82
  end
81
83
 
82
84
  if attributes.key?(:'name')
@@ -36,8 +36,8 @@ module PulpDebClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'add_content_units' => :'Array<AnyType>',
40
- :'remove_content_units' => :'Array<AnyType>',
39
+ :'add_content_units' => :'Array<String>',
40
+ :'remove_content_units' => :'Array<String>',
41
41
  :'base_version' => :'String'
42
42
  }
43
43
  end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '2.20.1'
14
+ VERSION = '2.20.2'
15
15
  end
@@ -27,6 +27,7 @@ require 'pulp_deb_client/models/deb_apt_publication'
27
27
  require 'pulp_deb_client/models/deb_apt_publication_response'
28
28
  require 'pulp_deb_client/models/deb_apt_remote'
29
29
  require 'pulp_deb_client/models/deb_apt_remote_response'
30
+ require 'pulp_deb_client/models/deb_apt_remote_response_hidden_fields'
30
31
  require 'pulp_deb_client/models/deb_apt_repository'
31
32
  require 'pulp_deb_client/models/deb_apt_repository_response'
32
33
  require 'pulp_deb_client/models/deb_base_package'
@@ -60,8 +60,8 @@ describe 'ContentGenericContentsApi' do
60
60
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
61
61
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
62
62
  # @option opts [String] :sha256 Filter results where sha256 matches value
63
- # @option opts [String] :fields A list of fields to include in the response.
64
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
63
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
64
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
65
65
  # @return [PaginateddebGenericContentResponseList]
66
66
  describe 'list test' do
67
67
  it 'should work' do
@@ -74,8 +74,8 @@ describe 'ContentGenericContentsApi' do
74
74
  # GenericContent is a catch all category for storing files not covered by any other type. Associated artifacts: Exactly one arbitrary file that does not match any other type. This is needed to store arbitrary files for use with the verbatim publisher. If you are not using the verbatim publisher, you may ignore this type.
75
75
  # @param deb_generic_content_href
76
76
  # @param [Hash] opts the optional parameters
77
- # @option opts [String] :fields A list of fields to include in the response.
78
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
77
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
78
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
79
79
  # @return [DebGenericContentResponse]
80
80
  describe 'read test' do
81
81
  it 'should work' do