pulp_deb_client 3.8.2 → 3.9.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.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/ContentGenericContentsApi.md +2 -0
- data/docs/ContentInstallerPackagesApi.md +2 -0
- data/docs/ContentPackagesApi.md +2 -0
- data/docs/DebAptPublication.md +5 -1
- data/docs/DebAptPublicationResponse.md +5 -1
- data/docs/DebInstallerFileIndex.md +2 -0
- data/docs/DebPackageIndex.md +2 -0
- data/docs/DebPackageReleaseComponent.md +2 -0
- data/docs/DebRelease.md +2 -0
- data/docs/DebReleaseArchitecture.md +2 -0
- data/docs/DebReleaseComponent.md +2 -0
- data/docs/DebReleaseFile.md +2 -0
- data/docs/DebSourceIndex.md +2 -0
- data/docs/DebSourcePackage.md +2 -0
- data/docs/DebSourcePackageReleaseComponent.md +2 -0
- data/docs/LayoutEnum.md +15 -0
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +3 -0
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +48 -4
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +48 -4
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +11 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +11 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +11 -1
- data/lib/pulp_deb_client/models/deb_release.rb +11 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +11 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +11 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +11 -1
- data/lib/pulp_deb_client/models/deb_source_index.rb +11 -1
- data/lib/pulp_deb_client/models/deb_source_package.rb +11 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +11 -1
- data/lib/pulp_deb_client/models/layout_enum.rb +41 -0
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +1 -0
- data/spec/api/content_generic_contents_api_spec.rb +1 -0
- data/spec/api/content_installer_packages_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +1 -0
- data/spec/models/deb_apt_publication_response_spec.rb +12 -0
- data/spec/models/deb_apt_publication_spec.rb +12 -0
- data/spec/models/deb_installer_file_index_spec.rb +6 -0
- data/spec/models/deb_package_index_spec.rb +6 -0
- data/spec/models/deb_package_release_component_spec.rb +6 -0
- data/spec/models/deb_release_architecture_spec.rb +6 -0
- data/spec/models/deb_release_component_spec.rb +6 -0
- data/spec/models/deb_release_file_spec.rb +6 -0
- data/spec/models/deb_release_spec.rb +6 -0
- data/spec/models/deb_source_index_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_spec.rb +6 -0
- data/spec/models/deb_source_package_spec.rb +6 -0
- data/spec/models/layout_enum_spec.rb +30 -0
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +84 -80
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -38,6 +41,7 @@ module PulpDebClient
|
|
|
38
41
|
def self.attribute_map
|
|
39
42
|
{
|
|
40
43
|
:'repository' => :'repository',
|
|
44
|
+
:'overwrite' => :'overwrite',
|
|
41
45
|
:'pulp_labels' => :'pulp_labels',
|
|
42
46
|
:'artifacts' => :'artifacts',
|
|
43
47
|
:'component' => :'component',
|
|
@@ -55,6 +59,7 @@ module PulpDebClient
|
|
|
55
59
|
def self.openapi_types
|
|
56
60
|
{
|
|
57
61
|
:'repository' => :'String',
|
|
62
|
+
:'overwrite' => :'Boolean',
|
|
58
63
|
:'pulp_labels' => :'Hash<String, String>',
|
|
59
64
|
:'artifacts' => :'Object',
|
|
60
65
|
:'component' => :'String',
|
|
@@ -88,6 +93,10 @@ module PulpDebClient
|
|
|
88
93
|
self.repository = attributes[:'repository']
|
|
89
94
|
end
|
|
90
95
|
|
|
96
|
+
if attributes.key?(:'overwrite')
|
|
97
|
+
self.overwrite = attributes[:'overwrite']
|
|
98
|
+
end
|
|
99
|
+
|
|
91
100
|
if attributes.key?(:'pulp_labels')
|
|
92
101
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
93
102
|
self.pulp_labels = value
|
|
@@ -210,6 +219,7 @@ module PulpDebClient
|
|
|
210
219
|
return true if self.equal?(o)
|
|
211
220
|
self.class == o.class &&
|
|
212
221
|
repository == o.repository &&
|
|
222
|
+
overwrite == o.overwrite &&
|
|
213
223
|
pulp_labels == o.pulp_labels &&
|
|
214
224
|
artifacts == o.artifacts &&
|
|
215
225
|
component == o.component &&
|
|
@@ -226,7 +236,7 @@ module PulpDebClient
|
|
|
226
236
|
# Calculates hash code according to all attributes.
|
|
227
237
|
# @return [Integer] Hash code
|
|
228
238
|
def hash
|
|
229
|
-
[repository, pulp_labels, artifacts, component, architecture, relative_path].hash
|
|
239
|
+
[repository, overwrite, pulp_labels, artifacts, component, architecture, relative_path].hash
|
|
230
240
|
end
|
|
231
241
|
|
|
232
242
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -38,6 +41,7 @@ module PulpDebClient
|
|
|
38
41
|
def self.attribute_map
|
|
39
42
|
{
|
|
40
43
|
:'repository' => :'repository',
|
|
44
|
+
:'overwrite' => :'overwrite',
|
|
41
45
|
:'pulp_labels' => :'pulp_labels',
|
|
42
46
|
:'artifacts' => :'artifacts',
|
|
43
47
|
:'component' => :'component',
|
|
@@ -55,6 +59,7 @@ module PulpDebClient
|
|
|
55
59
|
def self.openapi_types
|
|
56
60
|
{
|
|
57
61
|
:'repository' => :'String',
|
|
62
|
+
:'overwrite' => :'Boolean',
|
|
58
63
|
:'pulp_labels' => :'Hash<String, String>',
|
|
59
64
|
:'artifacts' => :'Object',
|
|
60
65
|
:'component' => :'String',
|
|
@@ -88,6 +93,10 @@ module PulpDebClient
|
|
|
88
93
|
self.repository = attributes[:'repository']
|
|
89
94
|
end
|
|
90
95
|
|
|
96
|
+
if attributes.key?(:'overwrite')
|
|
97
|
+
self.overwrite = attributes[:'overwrite']
|
|
98
|
+
end
|
|
99
|
+
|
|
91
100
|
if attributes.key?(:'pulp_labels')
|
|
92
101
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
93
102
|
self.pulp_labels = value
|
|
@@ -196,6 +205,7 @@ module PulpDebClient
|
|
|
196
205
|
return true if self.equal?(o)
|
|
197
206
|
self.class == o.class &&
|
|
198
207
|
repository == o.repository &&
|
|
208
|
+
overwrite == o.overwrite &&
|
|
199
209
|
pulp_labels == o.pulp_labels &&
|
|
200
210
|
artifacts == o.artifacts &&
|
|
201
211
|
component == o.component &&
|
|
@@ -212,7 +222,7 @@ module PulpDebClient
|
|
|
212
222
|
# Calculates hash code according to all attributes.
|
|
213
223
|
# @return [Integer] Hash code
|
|
214
224
|
def hash
|
|
215
|
-
[repository, pulp_labels, artifacts, component, architecture, relative_path].hash
|
|
225
|
+
[repository, overwrite, pulp_labels, artifacts, component, architecture, relative_path].hash
|
|
216
226
|
end
|
|
217
227
|
|
|
218
228
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -32,6 +35,7 @@ module PulpDebClient
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'repository' => :'repository',
|
|
38
|
+
:'overwrite' => :'overwrite',
|
|
35
39
|
:'pulp_labels' => :'pulp_labels',
|
|
36
40
|
:'package' => :'package',
|
|
37
41
|
:'release_component' => :'release_component'
|
|
@@ -47,6 +51,7 @@ module PulpDebClient
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'repository' => :'String',
|
|
54
|
+
:'overwrite' => :'Boolean',
|
|
50
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
51
56
|
:'package' => :'String',
|
|
52
57
|
:'release_component' => :'String'
|
|
@@ -78,6 +83,10 @@ module PulpDebClient
|
|
|
78
83
|
self.repository = attributes[:'repository']
|
|
79
84
|
end
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'overwrite')
|
|
87
|
+
self.overwrite = attributes[:'overwrite']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'pulp_labels')
|
|
82
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
83
92
|
self.pulp_labels = value
|
|
@@ -128,6 +137,7 @@ module PulpDebClient
|
|
|
128
137
|
return true if self.equal?(o)
|
|
129
138
|
self.class == o.class &&
|
|
130
139
|
repository == o.repository &&
|
|
140
|
+
overwrite == o.overwrite &&
|
|
131
141
|
pulp_labels == o.pulp_labels &&
|
|
132
142
|
package == o.package &&
|
|
133
143
|
release_component == o.release_component
|
|
@@ -142,7 +152,7 @@ module PulpDebClient
|
|
|
142
152
|
# Calculates hash code according to all attributes.
|
|
143
153
|
# @return [Integer] Hash code
|
|
144
154
|
def hash
|
|
145
|
-
[repository, pulp_labels, package, release_component].hash
|
|
155
|
+
[repository, overwrite, pulp_labels, package, release_component].hash
|
|
146
156
|
end
|
|
147
157
|
|
|
148
158
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -44,6 +47,7 @@ module PulpDebClient
|
|
|
44
47
|
def self.attribute_map
|
|
45
48
|
{
|
|
46
49
|
:'repository' => :'repository',
|
|
50
|
+
:'overwrite' => :'overwrite',
|
|
47
51
|
:'pulp_labels' => :'pulp_labels',
|
|
48
52
|
:'codename' => :'codename',
|
|
49
53
|
:'suite' => :'suite',
|
|
@@ -66,6 +70,7 @@ module PulpDebClient
|
|
|
66
70
|
def self.openapi_types
|
|
67
71
|
{
|
|
68
72
|
:'repository' => :'String',
|
|
73
|
+
:'overwrite' => :'Boolean',
|
|
69
74
|
:'pulp_labels' => :'Hash<String, String>',
|
|
70
75
|
:'codename' => :'String',
|
|
71
76
|
:'suite' => :'String',
|
|
@@ -108,6 +113,10 @@ module PulpDebClient
|
|
|
108
113
|
self.repository = attributes[:'repository']
|
|
109
114
|
end
|
|
110
115
|
|
|
116
|
+
if attributes.key?(:'overwrite')
|
|
117
|
+
self.overwrite = attributes[:'overwrite']
|
|
118
|
+
end
|
|
119
|
+
|
|
111
120
|
if attributes.key?(:'pulp_labels')
|
|
112
121
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
113
122
|
self.pulp_labels = value
|
|
@@ -314,6 +323,7 @@ module PulpDebClient
|
|
|
314
323
|
return true if self.equal?(o)
|
|
315
324
|
self.class == o.class &&
|
|
316
325
|
repository == o.repository &&
|
|
326
|
+
overwrite == o.overwrite &&
|
|
317
327
|
pulp_labels == o.pulp_labels &&
|
|
318
328
|
codename == o.codename &&
|
|
319
329
|
suite == o.suite &&
|
|
@@ -335,7 +345,7 @@ module PulpDebClient
|
|
|
335
345
|
# Calculates hash code according to all attributes.
|
|
336
346
|
# @return [Integer] Hash code
|
|
337
347
|
def hash
|
|
338
|
-
[repository, pulp_labels, codename, suite, distribution, version, origin, label, description, architectures, components].hash
|
|
348
|
+
[repository, overwrite, pulp_labels, codename, suite, distribution, version, origin, label, description, architectures, components].hash
|
|
339
349
|
end
|
|
340
350
|
|
|
341
351
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -32,6 +35,7 @@ module PulpDebClient
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'repository' => :'repository',
|
|
38
|
+
:'overwrite' => :'overwrite',
|
|
35
39
|
:'pulp_labels' => :'pulp_labels',
|
|
36
40
|
:'architecture' => :'architecture',
|
|
37
41
|
:'distribution' => :'distribution'
|
|
@@ -47,6 +51,7 @@ module PulpDebClient
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'repository' => :'String',
|
|
54
|
+
:'overwrite' => :'Boolean',
|
|
50
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
51
56
|
:'architecture' => :'String',
|
|
52
57
|
:'distribution' => :'String'
|
|
@@ -78,6 +83,10 @@ module PulpDebClient
|
|
|
78
83
|
self.repository = attributes[:'repository']
|
|
79
84
|
end
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'overwrite')
|
|
87
|
+
self.overwrite = attributes[:'overwrite']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'pulp_labels')
|
|
82
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
83
92
|
self.pulp_labels = value
|
|
@@ -166,6 +175,7 @@ module PulpDebClient
|
|
|
166
175
|
return true if self.equal?(o)
|
|
167
176
|
self.class == o.class &&
|
|
168
177
|
repository == o.repository &&
|
|
178
|
+
overwrite == o.overwrite &&
|
|
169
179
|
pulp_labels == o.pulp_labels &&
|
|
170
180
|
architecture == o.architecture &&
|
|
171
181
|
distribution == o.distribution
|
|
@@ -180,7 +190,7 @@ module PulpDebClient
|
|
|
180
190
|
# Calculates hash code according to all attributes.
|
|
181
191
|
# @return [Integer] Hash code
|
|
182
192
|
def hash
|
|
183
|
-
[repository, pulp_labels, architecture, distribution].hash
|
|
193
|
+
[repository, overwrite, pulp_labels, architecture, distribution].hash
|
|
184
194
|
end
|
|
185
195
|
|
|
186
196
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -32,6 +35,7 @@ module PulpDebClient
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'repository' => :'repository',
|
|
38
|
+
:'overwrite' => :'overwrite',
|
|
35
39
|
:'pulp_labels' => :'pulp_labels',
|
|
36
40
|
:'component' => :'component',
|
|
37
41
|
:'distribution' => :'distribution'
|
|
@@ -47,6 +51,7 @@ module PulpDebClient
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'repository' => :'String',
|
|
54
|
+
:'overwrite' => :'Boolean',
|
|
50
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
51
56
|
:'component' => :'String',
|
|
52
57
|
:'distribution' => :'String'
|
|
@@ -78,6 +83,10 @@ module PulpDebClient
|
|
|
78
83
|
self.repository = attributes[:'repository']
|
|
79
84
|
end
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'overwrite')
|
|
87
|
+
self.overwrite = attributes[:'overwrite']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'pulp_labels')
|
|
82
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
83
92
|
self.pulp_labels = value
|
|
@@ -166,6 +175,7 @@ module PulpDebClient
|
|
|
166
175
|
return true if self.equal?(o)
|
|
167
176
|
self.class == o.class &&
|
|
168
177
|
repository == o.repository &&
|
|
178
|
+
overwrite == o.overwrite &&
|
|
169
179
|
pulp_labels == o.pulp_labels &&
|
|
170
180
|
component == o.component &&
|
|
171
181
|
distribution == o.distribution
|
|
@@ -180,7 +190,7 @@ module PulpDebClient
|
|
|
180
190
|
# Calculates hash code according to all attributes.
|
|
181
191
|
# @return [Integer] Hash code
|
|
182
192
|
def hash
|
|
183
|
-
[repository, pulp_labels, component, distribution].hash
|
|
193
|
+
[repository, overwrite, pulp_labels, component, distribution].hash
|
|
184
194
|
end
|
|
185
195
|
|
|
186
196
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -41,6 +44,7 @@ module PulpDebClient
|
|
|
41
44
|
def self.attribute_map
|
|
42
45
|
{
|
|
43
46
|
:'repository' => :'repository',
|
|
47
|
+
:'overwrite' => :'overwrite',
|
|
44
48
|
:'pulp_labels' => :'pulp_labels',
|
|
45
49
|
:'artifacts' => :'artifacts',
|
|
46
50
|
:'codename' => :'codename',
|
|
@@ -59,6 +63,7 @@ module PulpDebClient
|
|
|
59
63
|
def self.openapi_types
|
|
60
64
|
{
|
|
61
65
|
:'repository' => :'String',
|
|
66
|
+
:'overwrite' => :'Boolean',
|
|
62
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
63
68
|
:'artifacts' => :'Object',
|
|
64
69
|
:'codename' => :'String',
|
|
@@ -93,6 +98,10 @@ module PulpDebClient
|
|
|
93
98
|
self.repository = attributes[:'repository']
|
|
94
99
|
end
|
|
95
100
|
|
|
101
|
+
if attributes.key?(:'overwrite')
|
|
102
|
+
self.overwrite = attributes[:'overwrite']
|
|
103
|
+
end
|
|
104
|
+
|
|
96
105
|
if attributes.key?(:'pulp_labels')
|
|
97
106
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
98
107
|
self.pulp_labels = value
|
|
@@ -231,6 +240,7 @@ module PulpDebClient
|
|
|
231
240
|
return true if self.equal?(o)
|
|
232
241
|
self.class == o.class &&
|
|
233
242
|
repository == o.repository &&
|
|
243
|
+
overwrite == o.overwrite &&
|
|
234
244
|
pulp_labels == o.pulp_labels &&
|
|
235
245
|
artifacts == o.artifacts &&
|
|
236
246
|
codename == o.codename &&
|
|
@@ -248,7 +258,7 @@ module PulpDebClient
|
|
|
248
258
|
# Calculates hash code according to all attributes.
|
|
249
259
|
# @return [Integer] Hash code
|
|
250
260
|
def hash
|
|
251
|
-
[repository, pulp_labels, artifacts, codename, suite, distribution, relative_path].hash
|
|
261
|
+
[repository, overwrite, pulp_labels, artifacts, codename, suite, distribution, relative_path].hash
|
|
252
262
|
end
|
|
253
263
|
|
|
254
264
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -38,6 +41,7 @@ module PulpDebClient
|
|
|
38
41
|
def self.attribute_map
|
|
39
42
|
{
|
|
40
43
|
:'repository' => :'repository',
|
|
44
|
+
:'overwrite' => :'overwrite',
|
|
41
45
|
:'pulp_labels' => :'pulp_labels',
|
|
42
46
|
:'artifacts' => :'artifacts',
|
|
43
47
|
:'release' => :'release',
|
|
@@ -55,6 +59,7 @@ module PulpDebClient
|
|
|
55
59
|
def self.openapi_types
|
|
56
60
|
{
|
|
57
61
|
:'repository' => :'String',
|
|
62
|
+
:'overwrite' => :'Boolean',
|
|
58
63
|
:'pulp_labels' => :'Hash<String, String>',
|
|
59
64
|
:'artifacts' => :'Object',
|
|
60
65
|
:'release' => :'String',
|
|
@@ -88,6 +93,10 @@ module PulpDebClient
|
|
|
88
93
|
self.repository = attributes[:'repository']
|
|
89
94
|
end
|
|
90
95
|
|
|
96
|
+
if attributes.key?(:'overwrite')
|
|
97
|
+
self.overwrite = attributes[:'overwrite']
|
|
98
|
+
end
|
|
99
|
+
|
|
91
100
|
if attributes.key?(:'pulp_labels')
|
|
92
101
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
93
102
|
self.pulp_labels = value
|
|
@@ -191,6 +200,7 @@ module PulpDebClient
|
|
|
191
200
|
return true if self.equal?(o)
|
|
192
201
|
self.class == o.class &&
|
|
193
202
|
repository == o.repository &&
|
|
203
|
+
overwrite == o.overwrite &&
|
|
194
204
|
pulp_labels == o.pulp_labels &&
|
|
195
205
|
artifacts == o.artifacts &&
|
|
196
206
|
release == o.release &&
|
|
@@ -207,7 +217,7 @@ module PulpDebClient
|
|
|
207
217
|
# Calculates hash code according to all attributes.
|
|
208
218
|
# @return [Integer] Hash code
|
|
209
219
|
def hash
|
|
210
|
-
[repository, pulp_labels, artifacts, release, component, relative_path].hash
|
|
220
|
+
[repository, overwrite, pulp_labels, artifacts, release, component, relative_path].hash
|
|
211
221
|
end
|
|
212
222
|
|
|
213
223
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -32,6 +35,7 @@ module PulpDebClient
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'repository' => :'repository',
|
|
38
|
+
:'overwrite' => :'overwrite',
|
|
35
39
|
:'pulp_labels' => :'pulp_labels',
|
|
36
40
|
:'artifact' => :'artifact',
|
|
37
41
|
:'relative_path' => :'relative_path'
|
|
@@ -47,6 +51,7 @@ module PulpDebClient
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'repository' => :'String',
|
|
54
|
+
:'overwrite' => :'Boolean',
|
|
50
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
51
56
|
:'artifact' => :'String',
|
|
52
57
|
:'relative_path' => :'String'
|
|
@@ -78,6 +83,10 @@ module PulpDebClient
|
|
|
78
83
|
self.repository = attributes[:'repository']
|
|
79
84
|
end
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'overwrite')
|
|
87
|
+
self.overwrite = attributes[:'overwrite']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'pulp_labels')
|
|
82
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
83
92
|
self.pulp_labels = value
|
|
@@ -140,6 +149,7 @@ module PulpDebClient
|
|
|
140
149
|
return true if self.equal?(o)
|
|
141
150
|
self.class == o.class &&
|
|
142
151
|
repository == o.repository &&
|
|
152
|
+
overwrite == o.overwrite &&
|
|
143
153
|
pulp_labels == o.pulp_labels &&
|
|
144
154
|
artifact == o.artifact &&
|
|
145
155
|
relative_path == o.relative_path
|
|
@@ -154,7 +164,7 @@ module PulpDebClient
|
|
|
154
164
|
# Calculates hash code according to all attributes.
|
|
155
165
|
# @return [Integer] Hash code
|
|
156
166
|
def hash
|
|
157
|
-
[repository, pulp_labels, artifact, relative_path].hash
|
|
167
|
+
[repository, overwrite, pulp_labels, artifact, relative_path].hash
|
|
158
168
|
end
|
|
159
169
|
|
|
160
170
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpDebClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -32,6 +35,7 @@ module PulpDebClient
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'repository' => :'repository',
|
|
38
|
+
:'overwrite' => :'overwrite',
|
|
35
39
|
:'pulp_labels' => :'pulp_labels',
|
|
36
40
|
:'source_package' => :'source_package',
|
|
37
41
|
:'release_component' => :'release_component'
|
|
@@ -47,6 +51,7 @@ module PulpDebClient
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'repository' => :'String',
|
|
54
|
+
:'overwrite' => :'Boolean',
|
|
50
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
51
56
|
:'source_package' => :'String',
|
|
52
57
|
:'release_component' => :'String'
|
|
@@ -78,6 +83,10 @@ module PulpDebClient
|
|
|
78
83
|
self.repository = attributes[:'repository']
|
|
79
84
|
end
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'overwrite')
|
|
87
|
+
self.overwrite = attributes[:'overwrite']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'pulp_labels')
|
|
82
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
83
92
|
self.pulp_labels = value
|
|
@@ -128,6 +137,7 @@ module PulpDebClient
|
|
|
128
137
|
return true if self.equal?(o)
|
|
129
138
|
self.class == o.class &&
|
|
130
139
|
repository == o.repository &&
|
|
140
|
+
overwrite == o.overwrite &&
|
|
131
141
|
pulp_labels == o.pulp_labels &&
|
|
132
142
|
source_package == o.source_package &&
|
|
133
143
|
release_component == o.release_component
|
|
@@ -142,7 +152,7 @@ module PulpDebClient
|
|
|
142
152
|
# Calculates hash code according to all attributes.
|
|
143
153
|
# @return [Integer] Hash code
|
|
144
154
|
def hash
|
|
145
|
-
[repository, pulp_labels, source_package, release_component].hash
|
|
155
|
+
[repository, overwrite, pulp_labels, source_package, release_component].hash
|
|
146
156
|
end
|
|
147
157
|
|
|
148
158
|
# Builds the object from hash
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
class LayoutEnum
|
|
18
|
+
ALPHABETICALLY = "nested_alphabetically".freeze
|
|
19
|
+
BY_DIGEST = "nested_by_digest".freeze
|
|
20
|
+
BY_BOTH = "nested_by_both".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [ALPHABETICALLY, BY_DIGEST, BY_BOTH].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
new.build_from_hash(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
return value if LayoutEnum.all_vars.include?(value)
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #LayoutEnum"
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -25,12 +25,16 @@ module PulpDebClient
|
|
|
25
25
|
# A repository version whose content will be used as the initial set of content for the new repository version
|
|
26
26
|
attr_accessor :base_version
|
|
27
27
|
|
|
28
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
|
|
29
|
+
attr_accessor :overwrite
|
|
30
|
+
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
31
34
|
:'add_content_units' => :'add_content_units',
|
|
32
35
|
:'remove_content_units' => :'remove_content_units',
|
|
33
|
-
:'base_version' => :'base_version'
|
|
36
|
+
:'base_version' => :'base_version',
|
|
37
|
+
:'overwrite' => :'overwrite'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -44,7 +48,8 @@ module PulpDebClient
|
|
|
44
48
|
{
|
|
45
49
|
:'add_content_units' => :'Array<String>',
|
|
46
50
|
:'remove_content_units' => :'Array<String>',
|
|
47
|
-
:'base_version' => :'String'
|
|
51
|
+
:'base_version' => :'String',
|
|
52
|
+
:'overwrite' => :'Boolean'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
50
55
|
|
|
@@ -84,6 +89,12 @@ module PulpDebClient
|
|
|
84
89
|
if attributes.key?(:'base_version')
|
|
85
90
|
self.base_version = attributes[:'base_version']
|
|
86
91
|
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'overwrite')
|
|
94
|
+
self.overwrite = attributes[:'overwrite']
|
|
95
|
+
else
|
|
96
|
+
self.overwrite = true
|
|
97
|
+
end
|
|
87
98
|
end
|
|
88
99
|
|
|
89
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +119,8 @@ module PulpDebClient
|
|
|
108
119
|
self.class == o.class &&
|
|
109
120
|
add_content_units == o.add_content_units &&
|
|
110
121
|
remove_content_units == o.remove_content_units &&
|
|
111
|
-
base_version == o.base_version
|
|
122
|
+
base_version == o.base_version &&
|
|
123
|
+
overwrite == o.overwrite
|
|
112
124
|
end
|
|
113
125
|
|
|
114
126
|
# @see the `==` method
|
|
@@ -120,7 +132,7 @@ module PulpDebClient
|
|
|
120
132
|
# Calculates hash code according to all attributes.
|
|
121
133
|
# @return [Integer] Hash code
|
|
122
134
|
def hash
|
|
123
|
-
[add_content_units, remove_content_units, base_version].hash
|
|
135
|
+
[add_content_units, remove_content_units, base_version, overwrite].hash
|
|
124
136
|
end
|
|
125
137
|
|
|
126
138
|
# Builds the object from hash
|
data/lib/pulp_deb_client.rb
CHANGED
|
@@ -57,6 +57,7 @@ require 'pulp_deb_client/models/deb_source_package_release_component_response'
|
|
|
57
57
|
require 'pulp_deb_client/models/deb_source_package_response'
|
|
58
58
|
require 'pulp_deb_client/models/deb_verbatim_publication'
|
|
59
59
|
require 'pulp_deb_client/models/deb_verbatim_publication_response'
|
|
60
|
+
require 'pulp_deb_client/models/layout_enum'
|
|
60
61
|
require 'pulp_deb_client/models/my_permissions_response'
|
|
61
62
|
require 'pulp_deb_client/models/nested_role'
|
|
62
63
|
require 'pulp_deb_client/models/nested_role_response'
|
|
@@ -39,6 +39,7 @@ describe 'ContentGenericContentsApi' do
|
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
41
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
42
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
42
43
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
43
44
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
44
45
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -38,6 +38,7 @@ describe 'ContentInstallerPackagesApi' do
|
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
40
40
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
41
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
41
42
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
42
43
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
43
44
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|