pulp_deb_client 3.7.1 → 3.8.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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -16
  3. data/docs/AcsDebApi.md +886 -0
  4. data/docs/DebAptAlternateContentSource.md +24 -0
  5. data/docs/DebAptAlternateContentSourceResponse.md +32 -0
  6. data/docs/DebAptRepository.md +2 -0
  7. data/docs/DebAptRepositoryResponse.md +2 -0
  8. data/docs/PaginateddebAptAlternateContentSourceResponseList.md +24 -0
  9. data/docs/PatcheddebAptAlternateContentSource.md +24 -0
  10. data/docs/PatcheddebAptRepository.md +2 -0
  11. data/docs/TaskGroupOperationResponse.md +18 -0
  12. data/lib/pulp_deb_client/api/acs_deb_api.rb +865 -0
  13. data/lib/pulp_deb_client/models/deb_apt_alternate_content_source.rb +282 -0
  14. data/lib/pulp_deb_client/models/deb_apt_alternate_content_source_response.rb +302 -0
  15. data/lib/pulp_deb_client/models/deb_apt_repository.rb +13 -1
  16. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +13 -1
  17. data/lib/pulp_deb_client/models/paginateddeb_apt_alternate_content_source_response_list.rb +257 -0
  18. data/lib/pulp_deb_client/models/patcheddeb_apt_alternate_content_source.rb +268 -0
  19. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +13 -1
  20. data/lib/pulp_deb_client/models/task_group_operation_response.rb +223 -0
  21. data/lib/pulp_deb_client/version.rb +1 -1
  22. data/lib/pulp_deb_client.rb +6 -0
  23. data/spec/api/acs_deb_api_spec.rb +204 -0
  24. data/spec/models/deb_apt_alternate_content_source_response_spec.rb +78 -0
  25. data/spec/models/deb_apt_alternate_content_source_spec.rb +54 -0
  26. data/spec/models/deb_apt_repository_response_spec.rb +6 -0
  27. data/spec/models/deb_apt_repository_spec.rb +6 -0
  28. data/spec/models/paginateddeb_apt_alternate_content_source_response_list_spec.rb +54 -0
  29. data/spec/models/patcheddeb_apt_alternate_content_source_spec.rb +54 -0
  30. data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
  31. data/spec/models/task_group_operation_response_spec.rb +36 -0
  32. metadata +98 -74
@@ -0,0 +1,282 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PulpDebClient
17
+ # Serializer for APT alternate content source.
18
+ class DebAptAlternateContentSource
19
+ # Name of Alternate Content Source.
20
+ attr_accessor :name
21
+
22
+ # Date of last refresh of AlternateContentSource.
23
+ attr_accessor :last_refreshed
24
+
25
+ # List of paths that will be appended to the Remote url when searching for content.
26
+ attr_accessor :paths
27
+
28
+ # The remote to provide alternate content source.
29
+ attr_accessor :remote
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'name' => :'name',
35
+ :'last_refreshed' => :'last_refreshed',
36
+ :'paths' => :'paths',
37
+ :'remote' => :'remote'
38
+ }
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'name' => :'String',
50
+ :'last_refreshed' => :'Time',
51
+ :'paths' => :'Array<String>',
52
+ :'remote' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ :'last_refreshed',
60
+ ])
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebAptAlternateContentSource` initialize method"
68
+ end
69
+
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!self.class.attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebAptAlternateContentSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'name')
79
+ self.name = attributes[:'name']
80
+ else
81
+ self.name = nil
82
+ end
83
+
84
+ if attributes.key?(:'last_refreshed')
85
+ self.last_refreshed = attributes[:'last_refreshed']
86
+ end
87
+
88
+ if attributes.key?(:'paths')
89
+ if (value = attributes[:'paths']).is_a?(Array)
90
+ self.paths = value
91
+ end
92
+ end
93
+
94
+ if attributes.key?(:'remote')
95
+ self.remote = attributes[:'remote']
96
+ else
97
+ self.remote = nil
98
+ end
99
+ end
100
+
101
+ # Show invalid properties with the reasons. Usually used together with valid?
102
+ # @return Array for valid properties with the reasons
103
+ def list_invalid_properties
104
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
105
+ invalid_properties = Array.new
106
+ if @name.nil?
107
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
108
+ end
109
+
110
+ if @name.to_s.length < 1
111
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
112
+ end
113
+
114
+ if @remote.nil?
115
+ invalid_properties.push('invalid value for "remote", remote cannot be nil.')
116
+ end
117
+
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ return false if @name.nil?
126
+ return false if @name.to_s.length < 1
127
+ return false if @remote.nil?
128
+ true
129
+ end
130
+
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] name Value to be assigned
133
+ def name=(name)
134
+ if name.nil?
135
+ fail ArgumentError, 'name cannot be nil'
136
+ end
137
+
138
+ if name.to_s.length < 1
139
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
140
+ end
141
+
142
+ @name = name
143
+ end
144
+
145
+ # Checks equality by comparing each attribute.
146
+ # @param [Object] Object to be compared
147
+ def ==(o)
148
+ return true if self.equal?(o)
149
+ self.class == o.class &&
150
+ name == o.name &&
151
+ last_refreshed == o.last_refreshed &&
152
+ paths == o.paths &&
153
+ remote == o.remote
154
+ end
155
+
156
+ # @see the `==` method
157
+ # @param [Object] Object to be compared
158
+ def eql?(o)
159
+ self == o
160
+ end
161
+
162
+ # Calculates hash code according to all attributes.
163
+ # @return [Integer] Hash code
164
+ def hash
165
+ [name, last_refreshed, paths, remote].hash
166
+ end
167
+
168
+ # Builds the object from hash
169
+ # @param [Hash] attributes Model attributes in the form of hash
170
+ # @return [Object] Returns the model itself
171
+ def self.build_from_hash(attributes)
172
+ return nil unless attributes.is_a?(Hash)
173
+ attributes = attributes.transform_keys(&:to_sym)
174
+ transformed_hash = {}
175
+ openapi_types.each_pair do |key, type|
176
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
177
+ transformed_hash["#{key}"] = nil
178
+ elsif type =~ /\AArray<(.*)>/i
179
+ # check to ensure the input is an array given that the attribute
180
+ # is documented as an array but the input is not
181
+ if attributes[attribute_map[key]].is_a?(Array)
182
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
183
+ end
184
+ elsif !attributes[attribute_map[key]].nil?
185
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
186
+ end
187
+ end
188
+ new(transformed_hash)
189
+ end
190
+
191
+ # Deserializes the data based on type
192
+ # @param string type Data type
193
+ # @param string value Value to be deserialized
194
+ # @return [Object] Deserialized data
195
+ def self._deserialize(type, value)
196
+ case type.to_sym
197
+ when :Time
198
+ Time.parse(value)
199
+ when :Date
200
+ Date.parse(value)
201
+ when :String
202
+ value.to_s
203
+ when :Integer
204
+ value.to_i
205
+ when :Float
206
+ value.to_f
207
+ when :Boolean
208
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
209
+ true
210
+ else
211
+ false
212
+ end
213
+ when :Object
214
+ # generic object (usually a Hash), return directly
215
+ value
216
+ when /\AArray<(?<inner_type>.+)>\z/
217
+ inner_type = Regexp.last_match[:inner_type]
218
+ value.map { |v| _deserialize(inner_type, v) }
219
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
220
+ k_type = Regexp.last_match[:k_type]
221
+ v_type = Regexp.last_match[:v_type]
222
+ {}.tap do |hash|
223
+ value.each do |k, v|
224
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
225
+ end
226
+ end
227
+ else # model
228
+ # models (e.g. Pet) or oneOf
229
+ klass = PulpDebClient.const_get(type)
230
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
231
+ end
232
+ end
233
+
234
+ # Returns the string representation of the object
235
+ # @return [String] String presentation of the object
236
+ def to_s
237
+ to_hash.to_s
238
+ end
239
+
240
+ # to_body is an alias to to_hash (backward compatibility)
241
+ # @return [Hash] Returns the object in the form of hash
242
+ def to_body
243
+ to_hash
244
+ end
245
+
246
+ # Returns the object in the form of hash
247
+ # @return [Hash] Returns the object in the form of hash
248
+ def to_hash
249
+ hash = {}
250
+ self.class.attribute_map.each_pair do |attr, param|
251
+ value = self.send(attr)
252
+ if value.nil?
253
+ is_nullable = self.class.openapi_nullable.include?(attr)
254
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
255
+ end
256
+
257
+ hash[param] = _to_hash(value)
258
+ end
259
+ hash
260
+ end
261
+
262
+ # Outputs non-array value in the form of hash
263
+ # For object, use to_hash. Otherwise, just return the value
264
+ # @param [Object] value Any valid value
265
+ # @return [Hash] Returns the value in the form of hash
266
+ def _to_hash(value)
267
+ if value.is_a?(Array)
268
+ value.compact.map { |v| _to_hash(v) }
269
+ elsif value.is_a?(Hash)
270
+ {}.tap do |hash|
271
+ value.each { |k, v| hash[k] = _to_hash(v) }
272
+ end
273
+ elsif value.respond_to? :to_hash
274
+ value.to_hash
275
+ else
276
+ value
277
+ end
278
+ end
279
+
280
+ end
281
+
282
+ end
@@ -0,0 +1,302 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PulpDebClient
17
+ # Serializer for APT alternate content source.
18
+ class DebAptAlternateContentSourceResponse
19
+ attr_accessor :pulp_href
20
+
21
+ # The Pulp Resource Name (PRN).
22
+ attr_accessor :prn
23
+
24
+ # Timestamp of creation.
25
+ attr_accessor :pulp_created
26
+
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.
28
+ attr_accessor :pulp_last_updated
29
+
30
+ # Name of Alternate Content Source.
31
+ attr_accessor :name
32
+
33
+ # Date of last refresh of AlternateContentSource.
34
+ attr_accessor :last_refreshed
35
+
36
+ # List of paths that will be appended to the Remote url when searching for content.
37
+ attr_accessor :paths
38
+
39
+ # The remote to provide alternate content source.
40
+ attr_accessor :remote
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'pulp_href' => :'pulp_href',
46
+ :'prn' => :'prn',
47
+ :'pulp_created' => :'pulp_created',
48
+ :'pulp_last_updated' => :'pulp_last_updated',
49
+ :'name' => :'name',
50
+ :'last_refreshed' => :'last_refreshed',
51
+ :'paths' => :'paths',
52
+ :'remote' => :'remote'
53
+ }
54
+ end
55
+
56
+ # Returns all the JSON keys this model knows about
57
+ def self.acceptable_attributes
58
+ attribute_map.values
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ def self.openapi_types
63
+ {
64
+ :'pulp_href' => :'String',
65
+ :'prn' => :'String',
66
+ :'pulp_created' => :'Time',
67
+ :'pulp_last_updated' => :'Time',
68
+ :'name' => :'String',
69
+ :'last_refreshed' => :'Time',
70
+ :'paths' => :'Array<String>',
71
+ :'remote' => :'String'
72
+ }
73
+ end
74
+
75
+ # List of attributes with nullable: true
76
+ def self.openapi_nullable
77
+ Set.new([
78
+ :'last_refreshed',
79
+ ])
80
+ end
81
+
82
+ # Initializes the object
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ def initialize(attributes = {})
85
+ if (!attributes.is_a?(Hash))
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebAptAlternateContentSourceResponse` initialize method"
87
+ end
88
+
89
+ # check to see if the attribute exists and convert string to symbol for hash key
90
+ attributes = attributes.each_with_object({}) { |(k, v), h|
91
+ if (!self.class.attribute_map.key?(k.to_sym))
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebAptAlternateContentSourceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
+ end
94
+ h[k.to_sym] = v
95
+ }
96
+
97
+ if attributes.key?(:'pulp_href')
98
+ self.pulp_href = attributes[:'pulp_href']
99
+ end
100
+
101
+ if attributes.key?(:'prn')
102
+ self.prn = attributes[:'prn']
103
+ end
104
+
105
+ if attributes.key?(:'pulp_created')
106
+ self.pulp_created = attributes[:'pulp_created']
107
+ end
108
+
109
+ if attributes.key?(:'pulp_last_updated')
110
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
111
+ end
112
+
113
+ if attributes.key?(:'name')
114
+ self.name = attributes[:'name']
115
+ else
116
+ self.name = nil
117
+ end
118
+
119
+ if attributes.key?(:'last_refreshed')
120
+ self.last_refreshed = attributes[:'last_refreshed']
121
+ end
122
+
123
+ if attributes.key?(:'paths')
124
+ if (value = attributes[:'paths']).is_a?(Array)
125
+ self.paths = value
126
+ end
127
+ end
128
+
129
+ if attributes.key?(:'remote')
130
+ self.remote = attributes[:'remote']
131
+ else
132
+ self.remote = nil
133
+ end
134
+ end
135
+
136
+ # Show invalid properties with the reasons. Usually used together with valid?
137
+ # @return Array for valid properties with the reasons
138
+ def list_invalid_properties
139
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
140
+ invalid_properties = Array.new
141
+ if @name.nil?
142
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
143
+ end
144
+
145
+ if @remote.nil?
146
+ invalid_properties.push('invalid value for "remote", remote cannot be nil.')
147
+ end
148
+
149
+ invalid_properties
150
+ end
151
+
152
+ # Check to see if the all the properties in the model are valid
153
+ # @return true if the model is valid
154
+ def valid?
155
+ warn '[DEPRECATED] the `valid?` method is obsolete'
156
+ return false if @name.nil?
157
+ return false if @remote.nil?
158
+ true
159
+ end
160
+
161
+ # Checks equality by comparing each attribute.
162
+ # @param [Object] Object to be compared
163
+ def ==(o)
164
+ return true if self.equal?(o)
165
+ self.class == o.class &&
166
+ pulp_href == o.pulp_href &&
167
+ prn == o.prn &&
168
+ pulp_created == o.pulp_created &&
169
+ pulp_last_updated == o.pulp_last_updated &&
170
+ name == o.name &&
171
+ last_refreshed == o.last_refreshed &&
172
+ paths == o.paths &&
173
+ remote == o.remote
174
+ end
175
+
176
+ # @see the `==` method
177
+ # @param [Object] Object to be compared
178
+ def eql?(o)
179
+ self == o
180
+ end
181
+
182
+ # Calculates hash code according to all attributes.
183
+ # @return [Integer] Hash code
184
+ def hash
185
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, last_refreshed, paths, remote].hash
186
+ end
187
+
188
+ # Builds the object from hash
189
+ # @param [Hash] attributes Model attributes in the form of hash
190
+ # @return [Object] Returns the model itself
191
+ def self.build_from_hash(attributes)
192
+ return nil unless attributes.is_a?(Hash)
193
+ attributes = attributes.transform_keys(&:to_sym)
194
+ transformed_hash = {}
195
+ openapi_types.each_pair do |key, type|
196
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
197
+ transformed_hash["#{key}"] = nil
198
+ elsif type =~ /\AArray<(.*)>/i
199
+ # check to ensure the input is an array given that the attribute
200
+ # is documented as an array but the input is not
201
+ if attributes[attribute_map[key]].is_a?(Array)
202
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
203
+ end
204
+ elsif !attributes[attribute_map[key]].nil?
205
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
206
+ end
207
+ end
208
+ new(transformed_hash)
209
+ end
210
+
211
+ # Deserializes the data based on type
212
+ # @param string type Data type
213
+ # @param string value Value to be deserialized
214
+ # @return [Object] Deserialized data
215
+ def self._deserialize(type, value)
216
+ case type.to_sym
217
+ when :Time
218
+ Time.parse(value)
219
+ when :Date
220
+ Date.parse(value)
221
+ when :String
222
+ value.to_s
223
+ when :Integer
224
+ value.to_i
225
+ when :Float
226
+ value.to_f
227
+ when :Boolean
228
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
229
+ true
230
+ else
231
+ false
232
+ end
233
+ when :Object
234
+ # generic object (usually a Hash), return directly
235
+ value
236
+ when /\AArray<(?<inner_type>.+)>\z/
237
+ inner_type = Regexp.last_match[:inner_type]
238
+ value.map { |v| _deserialize(inner_type, v) }
239
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
240
+ k_type = Regexp.last_match[:k_type]
241
+ v_type = Regexp.last_match[:v_type]
242
+ {}.tap do |hash|
243
+ value.each do |k, v|
244
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
245
+ end
246
+ end
247
+ else # model
248
+ # models (e.g. Pet) or oneOf
249
+ klass = PulpDebClient.const_get(type)
250
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
251
+ end
252
+ end
253
+
254
+ # Returns the string representation of the object
255
+ # @return [String] String presentation of the object
256
+ def to_s
257
+ to_hash.to_s
258
+ end
259
+
260
+ # to_body is an alias to to_hash (backward compatibility)
261
+ # @return [Hash] Returns the object in the form of hash
262
+ def to_body
263
+ to_hash
264
+ end
265
+
266
+ # Returns the object in the form of hash
267
+ # @return [Hash] Returns the object in the form of hash
268
+ def to_hash
269
+ hash = {}
270
+ self.class.attribute_map.each_pair do |attr, param|
271
+ value = self.send(attr)
272
+ if value.nil?
273
+ is_nullable = self.class.openapi_nullable.include?(attr)
274
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
275
+ end
276
+
277
+ hash[param] = _to_hash(value)
278
+ end
279
+ hash
280
+ end
281
+
282
+ # Outputs non-array value in the form of hash
283
+ # For object, use to_hash. Otherwise, just return the value
284
+ # @param [Object] value Any valid value
285
+ # @return [Hash] Returns the value in the form of hash
286
+ def _to_hash(value)
287
+ if value.is_a?(Array)
288
+ value.compact.map { |v| _to_hash(v) }
289
+ elsif value.is_a?(Hash)
290
+ {}.tap do |hash|
291
+ value.each { |k, v| hash[k] = _to_hash(v) }
292
+ end
293
+ elsif value.respond_to? :to_hash
294
+ value.to_hash
295
+ else
296
+ value
297
+ end
298
+ end
299
+
300
+ end
301
+
302
+ end
@@ -30,6 +30,9 @@ module PulpDebClient
30
30
  # An optional remote to use by default when syncing.
31
31
  attr_accessor :remote
32
32
 
33
+ # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. Will create a standard structured APT publication.
34
+ attr_accessor :autopublish
35
+
33
36
  # Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
34
37
  attr_accessor :publish_upstream_release_fields
35
38
 
@@ -47,6 +50,7 @@ module PulpDebClient
47
50
  :'description' => :'description',
48
51
  :'retain_repo_versions' => :'retain_repo_versions',
49
52
  :'remote' => :'remote',
53
+ :'autopublish' => :'autopublish',
50
54
  :'publish_upstream_release_fields' => :'publish_upstream_release_fields',
51
55
  :'signing_service' => :'signing_service',
52
56
  :'signing_service_release_overrides' => :'signing_service_release_overrides'
@@ -66,6 +70,7 @@ module PulpDebClient
66
70
  :'description' => :'String',
67
71
  :'retain_repo_versions' => :'Integer',
68
72
  :'remote' => :'String',
73
+ :'autopublish' => :'Boolean',
69
74
  :'publish_upstream_release_fields' => :'Boolean',
70
75
  :'signing_service' => :'String',
71
76
  :'signing_service_release_overrides' => :'Hash<String, String>'
@@ -121,6 +126,12 @@ module PulpDebClient
121
126
  self.remote = attributes[:'remote']
122
127
  end
123
128
 
129
+ if attributes.key?(:'autopublish')
130
+ self.autopublish = attributes[:'autopublish']
131
+ else
132
+ self.autopublish = false
133
+ end
134
+
124
135
  if attributes.key?(:'publish_upstream_release_fields')
125
136
  self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
126
137
  end
@@ -200,6 +211,7 @@ module PulpDebClient
200
211
  description == o.description &&
201
212
  retain_repo_versions == o.retain_repo_versions &&
202
213
  remote == o.remote &&
214
+ autopublish == o.autopublish &&
203
215
  publish_upstream_release_fields == o.publish_upstream_release_fields &&
204
216
  signing_service == o.signing_service &&
205
217
  signing_service_release_overrides == o.signing_service_release_overrides
@@ -214,7 +226,7 @@ module PulpDebClient
214
226
  # Calculates hash code according to all attributes.
215
227
  # @return [Integer] Hash code
216
228
  def hash
217
- [pulp_labels, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
229
+ [pulp_labels, name, description, retain_repo_versions, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
218
230
  end
219
231
 
220
232
  # Builds the object from hash
@@ -45,6 +45,9 @@ module PulpDebClient
45
45
  # An optional remote to use by default when syncing.
46
46
  attr_accessor :remote
47
47
 
48
+ # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. Will create a standard structured APT publication.
49
+ attr_accessor :autopublish
50
+
48
51
  # Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
49
52
  attr_accessor :publish_upstream_release_fields
50
53
 
@@ -68,6 +71,7 @@ module PulpDebClient
68
71
  :'description' => :'description',
69
72
  :'retain_repo_versions' => :'retain_repo_versions',
70
73
  :'remote' => :'remote',
74
+ :'autopublish' => :'autopublish',
71
75
  :'publish_upstream_release_fields' => :'publish_upstream_release_fields',
72
76
  :'signing_service' => :'signing_service',
73
77
  :'signing_service_release_overrides' => :'signing_service_release_overrides'
@@ -93,6 +97,7 @@ module PulpDebClient
93
97
  :'description' => :'String',
94
98
  :'retain_repo_versions' => :'Integer',
95
99
  :'remote' => :'String',
100
+ :'autopublish' => :'Boolean',
96
101
  :'publish_upstream_release_fields' => :'Boolean',
97
102
  :'signing_service' => :'String',
98
103
  :'signing_service_release_overrides' => :'Hash<String, String>'
@@ -172,6 +177,12 @@ module PulpDebClient
172
177
  self.remote = attributes[:'remote']
173
178
  end
174
179
 
180
+ if attributes.key?(:'autopublish')
181
+ self.autopublish = attributes[:'autopublish']
182
+ else
183
+ self.autopublish = false
184
+ end
185
+
175
186
  if attributes.key?(:'publish_upstream_release_fields')
176
187
  self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
177
188
  end
@@ -223,6 +234,7 @@ module PulpDebClient
223
234
  description == o.description &&
224
235
  retain_repo_versions == o.retain_repo_versions &&
225
236
  remote == o.remote &&
237
+ autopublish == o.autopublish &&
226
238
  publish_upstream_release_fields == o.publish_upstream_release_fields &&
227
239
  signing_service == o.signing_service &&
228
240
  signing_service_release_overrides == o.signing_service_release_overrides
@@ -237,7 +249,7 @@ module PulpDebClient
237
249
  # Calculates hash code according to all attributes.
238
250
  # @return [Integer] Hash code
239
251
  def hash
240
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
252
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
241
253
  end
242
254
 
243
255
  # Builds the object from hash