pulp_deb_client 3.5.1 → 3.6.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 +32 -4
- data/docs/ContentGenericContentsApi.md +166 -2
- data/docs/ContentInstallerFileIndicesApi.md +170 -6
- data/docs/ContentInstallerPackagesApi.md +166 -2
- data/docs/ContentPackageIndicesApi.md +170 -6
- data/docs/ContentPackageReleaseComponentsApi.md +170 -6
- data/docs/ContentPackagesApi.md +166 -2
- data/docs/ContentReleaseArchitecturesApi.md +170 -6
- data/docs/ContentReleaseComponentsApi.md +170 -6
- data/docs/ContentReleaseFilesApi.md +170 -6
- data/docs/ContentReleasesApi.md +170 -6
- data/docs/ContentSourceIndicesApi.md +170 -6
- data/docs/ContentSourcePackagesApi.md +170 -6
- data/docs/ContentSourceReleaseComponentsApi.md +170 -6
- data/docs/DebAptDistribution.md +3 -1
- data/docs/DebAptDistributionResponse.md +3 -1
- data/docs/DebAptPublication.md +2 -0
- data/docs/DebAptPublicationResponse.md +2 -0
- data/docs/DebCopyApi.md +8 -4
- data/docs/DebGenericContentResponse.md +2 -0
- data/docs/DebInstallerFileIndex.md +2 -0
- data/docs/DebInstallerFileIndexResponse.md +2 -0
- data/docs/DebInstallerPackageResponse.md +2 -0
- data/docs/DebPackageIndex.md +2 -0
- data/docs/DebPackageIndexResponse.md +2 -0
- data/docs/DebPackageReleaseComponent.md +2 -0
- data/docs/DebPackageReleaseComponentResponse.md +2 -0
- data/docs/DebPackageResponse.md +2 -0
- data/docs/DebRelease.md +2 -0
- data/docs/DebReleaseArchitecture.md +2 -0
- data/docs/DebReleaseArchitectureResponse.md +2 -0
- data/docs/DebReleaseComponent.md +2 -0
- data/docs/DebReleaseComponentResponse.md +2 -0
- data/docs/DebReleaseFile.md +2 -0
- data/docs/DebReleaseFileResponse.md +2 -0
- data/docs/DebReleaseResponse.md +2 -0
- data/docs/DebSourceIndex.md +2 -0
- data/docs/DebSourceIndexResponse.md +2 -0
- data/docs/DebSourcePackage.md +2 -0
- data/docs/DebSourcePackageReleaseComponent.md +2 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
- data/docs/DebSourcePackageResponse.md +2 -0
- data/docs/DistributionsAptApi.md +76 -34
- data/docs/PatcheddebAptDistribution.md +3 -1
- data/docs/PublicationsAptApi.md +44 -18
- data/docs/PublicationsVerbatimApi.md +44 -18
- data/docs/RemotesAptApi.md +72 -32
- data/docs/RepositoriesAptApi.md +88 -40
- data/docs/RepositoriesAptVersionsApi.md +22 -10
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +172 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +172 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +172 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_release_components_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_release_files_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_releases_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +169 -3
- data/lib/pulp_deb_client/api/deb_copy_api.rb +3 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +42 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +30 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +30 -3
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +36 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +42 -0
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +15 -3
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +10 -1
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +10 -1
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +14 -5
- data/lib/pulp_deb_client/models/unset_label.rb +1 -1
- data/lib/pulp_deb_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/pulp_deb_client.gemspec +0 -1
- data/spec/api/content_generic_contents_api_spec.rb +34 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +33 -1
- data/spec/api/content_installer_packages_api_spec.rb +34 -1
- data/spec/api/content_package_indices_api_spec.rb +33 -1
- data/spec/api/content_package_release_components_api_spec.rb +33 -1
- data/spec/api/content_packages_api_spec.rb +34 -1
- data/spec/api/content_release_architectures_api_spec.rb +33 -1
- data/spec/api/content_release_components_api_spec.rb +33 -1
- data/spec/api/content_release_files_api_spec.rb +33 -1
- data/spec/api/content_releases_api_spec.rb +33 -1
- data/spec/api/content_source_indices_api_spec.rb +33 -1
- data/spec/api/content_source_packages_api_spec.rb +33 -1
- data/spec/api/content_source_release_components_api_spec.rb +33 -1
- data/spec/api/deb_copy_api_spec.rb +1 -0
- data/spec/api/distributions_apt_api_spec.rb +14 -1
- data/spec/api/publications_apt_api_spec.rb +10 -1
- data/spec/api/publications_verbatim_api_spec.rb +10 -1
- data/spec/api/remotes_apt_api_spec.rb +12 -0
- data/spec/api/repositories_apt_api_spec.rb +14 -0
- data/spec/api/repositories_apt_versions_api_spec.rb +5 -1
- data/spec/models/deb_apt_distribution_response_spec.rb +6 -0
- data/spec/models/deb_apt_distribution_spec.rb +6 -0
- data/spec/models/deb_apt_publication_response_spec.rb +6 -0
- data/spec/models/deb_apt_publication_spec.rb +6 -0
- data/spec/models/deb_generic_content_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_spec.rb +6 -0
- data/spec/models/deb_installer_package_response_spec.rb +6 -0
- data/spec/models/deb_package_index_response_spec.rb +6 -0
- data/spec/models/deb_package_index_spec.rb +6 -0
- data/spec/models/deb_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_package_release_component_spec.rb +6 -0
- data/spec/models/deb_package_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_spec.rb +6 -0
- data/spec/models/deb_release_component_response_spec.rb +6 -0
- data/spec/models/deb_release_component_spec.rb +6 -0
- data/spec/models/deb_release_file_response_spec.rb +6 -0
- data/spec/models/deb_release_file_spec.rb +6 -0
- data/spec/models/deb_release_response_spec.rb +6 -0
- data/spec/models/deb_release_spec.rb +6 -0
- data/spec/models/deb_source_index_response_spec.rb +6 -0
- data/spec/models/deb_source_index_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +6 -0
- data/spec/models/deb_source_package_spec.rb +6 -0
- data/spec/models/patcheddeb_apt_distribution_spec.rb +6 -0
- metadata +76 -96
@@ -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
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
22
25
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
23
26
|
attr_accessor :artifacts
|
24
27
|
|
@@ -35,6 +38,7 @@ module PulpDebClient
|
|
35
38
|
def self.attribute_map
|
36
39
|
{
|
37
40
|
:'repository' => :'repository',
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
38
42
|
:'artifacts' => :'artifacts',
|
39
43
|
:'release' => :'release',
|
40
44
|
:'component' => :'component',
|
@@ -51,6 +55,7 @@ module PulpDebClient
|
|
51
55
|
def self.openapi_types
|
52
56
|
{
|
53
57
|
:'repository' => :'String',
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
54
59
|
:'artifacts' => :'Object',
|
55
60
|
:'release' => :'String',
|
56
61
|
:'component' => :'String',
|
@@ -83,6 +88,12 @@ module PulpDebClient
|
|
83
88
|
self.repository = attributes[:'repository']
|
84
89
|
end
|
85
90
|
|
91
|
+
if attributes.key?(:'pulp_labels')
|
92
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
93
|
+
self.pulp_labels = value
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
86
97
|
if attributes.key?(:'artifacts')
|
87
98
|
self.artifacts = attributes[:'artifacts']
|
88
99
|
else
|
@@ -180,6 +191,7 @@ module PulpDebClient
|
|
180
191
|
return true if self.equal?(o)
|
181
192
|
self.class == o.class &&
|
182
193
|
repository == o.repository &&
|
194
|
+
pulp_labels == o.pulp_labels &&
|
183
195
|
artifacts == o.artifacts &&
|
184
196
|
release == o.release &&
|
185
197
|
component == o.component &&
|
@@ -195,7 +207,7 @@ module PulpDebClient
|
|
195
207
|
# Calculates hash code according to all attributes.
|
196
208
|
# @return [Integer] Hash code
|
197
209
|
def hash
|
198
|
-
[repository, artifacts, release, component, relative_path].hash
|
210
|
+
[repository, pulp_labels, artifacts, release, component, relative_path].hash
|
199
211
|
end
|
200
212
|
|
201
213
|
# Builds the object from hash
|
@@ -27,6 +27,9 @@ module PulpDebClient
|
|
27
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
28
|
attr_accessor :pulp_last_updated
|
29
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
30
33
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
31
34
|
attr_accessor :artifacts
|
32
35
|
|
@@ -46,6 +49,7 @@ module PulpDebClient
|
|
46
49
|
:'prn' => :'prn',
|
47
50
|
:'pulp_created' => :'pulp_created',
|
48
51
|
:'pulp_last_updated' => :'pulp_last_updated',
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
49
53
|
:'artifacts' => :'artifacts',
|
50
54
|
:'release' => :'release',
|
51
55
|
:'component' => :'component',
|
@@ -65,6 +69,7 @@ module PulpDebClient
|
|
65
69
|
:'prn' => :'String',
|
66
70
|
:'pulp_created' => :'Time',
|
67
71
|
:'pulp_last_updated' => :'Time',
|
72
|
+
:'pulp_labels' => :'Hash<String, String>',
|
68
73
|
:'artifacts' => :'Object',
|
69
74
|
:'release' => :'String',
|
70
75
|
:'component' => :'String',
|
@@ -109,6 +114,12 @@ module PulpDebClient
|
|
109
114
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
110
115
|
end
|
111
116
|
|
117
|
+
if attributes.key?(:'pulp_labels')
|
118
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
119
|
+
self.pulp_labels = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
112
123
|
if attributes.key?(:'artifacts')
|
113
124
|
self.artifacts = attributes[:'artifacts']
|
114
125
|
else
|
@@ -171,6 +182,7 @@ module PulpDebClient
|
|
171
182
|
prn == o.prn &&
|
172
183
|
pulp_created == o.pulp_created &&
|
173
184
|
pulp_last_updated == o.pulp_last_updated &&
|
185
|
+
pulp_labels == o.pulp_labels &&
|
174
186
|
artifacts == o.artifacts &&
|
175
187
|
release == o.release &&
|
176
188
|
component == o.component &&
|
@@ -186,7 +198,7 @@ module PulpDebClient
|
|
186
198
|
# Calculates hash code according to all attributes.
|
187
199
|
# @return [Integer] Hash code
|
188
200
|
def hash
|
189
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, artifacts, release, component, relative_path].hash
|
201
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, release, component, relative_path].hash
|
190
202
|
end
|
191
203
|
|
192
204
|
# 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
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
22
25
|
# Artifact URL of the Debian Source Control (dsc) file.
|
23
26
|
attr_accessor :artifact
|
24
27
|
|
@@ -29,6 +32,7 @@ module PulpDebClient
|
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
34
|
:'repository' => :'repository',
|
35
|
+
:'pulp_labels' => :'pulp_labels',
|
32
36
|
:'artifact' => :'artifact',
|
33
37
|
:'relative_path' => :'relative_path'
|
34
38
|
}
|
@@ -43,6 +47,7 @@ module PulpDebClient
|
|
43
47
|
def self.openapi_types
|
44
48
|
{
|
45
49
|
:'repository' => :'String',
|
50
|
+
:'pulp_labels' => :'Hash<String, String>',
|
46
51
|
:'artifact' => :'String',
|
47
52
|
:'relative_path' => :'String'
|
48
53
|
}
|
@@ -73,6 +78,12 @@ module PulpDebClient
|
|
73
78
|
self.repository = attributes[:'repository']
|
74
79
|
end
|
75
80
|
|
81
|
+
if attributes.key?(:'pulp_labels')
|
82
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
83
|
+
self.pulp_labels = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
76
87
|
if attributes.key?(:'artifact')
|
77
88
|
self.artifact = attributes[:'artifact']
|
78
89
|
else
|
@@ -129,6 +140,7 @@ module PulpDebClient
|
|
129
140
|
return true if self.equal?(o)
|
130
141
|
self.class == o.class &&
|
131
142
|
repository == o.repository &&
|
143
|
+
pulp_labels == o.pulp_labels &&
|
132
144
|
artifact == o.artifact &&
|
133
145
|
relative_path == o.relative_path
|
134
146
|
end
|
@@ -142,7 +154,7 @@ module PulpDebClient
|
|
142
154
|
# Calculates hash code according to all attributes.
|
143
155
|
# @return [Integer] Hash code
|
144
156
|
def hash
|
145
|
-
[repository, artifact, relative_path].hash
|
157
|
+
[repository, pulp_labels, artifact, relative_path].hash
|
146
158
|
end
|
147
159
|
|
148
160
|
# 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
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
22
25
|
# Source package that is contained in release_component.
|
23
26
|
attr_accessor :source_package
|
24
27
|
|
@@ -29,6 +32,7 @@ module PulpDebClient
|
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
34
|
:'repository' => :'repository',
|
35
|
+
:'pulp_labels' => :'pulp_labels',
|
32
36
|
:'source_package' => :'source_package',
|
33
37
|
:'release_component' => :'release_component'
|
34
38
|
}
|
@@ -43,6 +47,7 @@ module PulpDebClient
|
|
43
47
|
def self.openapi_types
|
44
48
|
{
|
45
49
|
:'repository' => :'String',
|
50
|
+
:'pulp_labels' => :'Hash<String, String>',
|
46
51
|
:'source_package' => :'String',
|
47
52
|
:'release_component' => :'String'
|
48
53
|
}
|
@@ -73,6 +78,12 @@ module PulpDebClient
|
|
73
78
|
self.repository = attributes[:'repository']
|
74
79
|
end
|
75
80
|
|
81
|
+
if attributes.key?(:'pulp_labels')
|
82
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
83
|
+
self.pulp_labels = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
76
87
|
if attributes.key?(:'source_package')
|
77
88
|
self.source_package = attributes[:'source_package']
|
78
89
|
else
|
@@ -117,6 +128,7 @@ module PulpDebClient
|
|
117
128
|
return true if self.equal?(o)
|
118
129
|
self.class == o.class &&
|
119
130
|
repository == o.repository &&
|
131
|
+
pulp_labels == o.pulp_labels &&
|
120
132
|
source_package == o.source_package &&
|
121
133
|
release_component == o.release_component
|
122
134
|
end
|
@@ -130,7 +142,7 @@ module PulpDebClient
|
|
130
142
|
# Calculates hash code according to all attributes.
|
131
143
|
# @return [Integer] Hash code
|
132
144
|
def hash
|
133
|
-
[repository, source_package, release_component].hash
|
145
|
+
[repository, pulp_labels, source_package, release_component].hash
|
134
146
|
end
|
135
147
|
|
136
148
|
# Builds the object from hash
|
@@ -27,6 +27,9 @@ module PulpDebClient
|
|
27
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
28
|
attr_accessor :pulp_last_updated
|
29
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
30
33
|
# Source package that is contained in release_component.
|
31
34
|
attr_accessor :source_package
|
32
35
|
|
@@ -40,6 +43,7 @@ module PulpDebClient
|
|
40
43
|
:'prn' => :'prn',
|
41
44
|
:'pulp_created' => :'pulp_created',
|
42
45
|
:'pulp_last_updated' => :'pulp_last_updated',
|
46
|
+
:'pulp_labels' => :'pulp_labels',
|
43
47
|
:'source_package' => :'source_package',
|
44
48
|
:'release_component' => :'release_component'
|
45
49
|
}
|
@@ -57,6 +61,7 @@ module PulpDebClient
|
|
57
61
|
:'prn' => :'String',
|
58
62
|
:'pulp_created' => :'Time',
|
59
63
|
:'pulp_last_updated' => :'Time',
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
60
65
|
:'source_package' => :'String',
|
61
66
|
:'release_component' => :'String'
|
62
67
|
}
|
@@ -99,6 +104,12 @@ module PulpDebClient
|
|
99
104
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
100
105
|
end
|
101
106
|
|
107
|
+
if attributes.key?(:'pulp_labels')
|
108
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
109
|
+
self.pulp_labels = value
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
102
113
|
if attributes.key?(:'source_package')
|
103
114
|
self.source_package = attributes[:'source_package']
|
104
115
|
else
|
@@ -146,6 +157,7 @@ module PulpDebClient
|
|
146
157
|
prn == o.prn &&
|
147
158
|
pulp_created == o.pulp_created &&
|
148
159
|
pulp_last_updated == o.pulp_last_updated &&
|
160
|
+
pulp_labels == o.pulp_labels &&
|
149
161
|
source_package == o.source_package &&
|
150
162
|
release_component == o.release_component
|
151
163
|
end
|
@@ -159,7 +171,7 @@ module PulpDebClient
|
|
159
171
|
# Calculates hash code according to all attributes.
|
160
172
|
# @return [Integer] Hash code
|
161
173
|
def hash
|
162
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, source_package, release_component].hash
|
174
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, source_package, release_component].hash
|
163
175
|
end
|
164
176
|
|
165
177
|
# Builds the object from hash
|
@@ -27,6 +27,9 @@ module PulpDebClient
|
|
27
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
28
|
attr_accessor :pulp_last_updated
|
29
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
30
33
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
31
34
|
attr_accessor :artifacts
|
32
35
|
|
@@ -97,6 +100,7 @@ module PulpDebClient
|
|
97
100
|
:'prn' => :'prn',
|
98
101
|
:'pulp_created' => :'pulp_created',
|
99
102
|
:'pulp_last_updated' => :'pulp_last_updated',
|
103
|
+
:'pulp_labels' => :'pulp_labels',
|
100
104
|
:'artifacts' => :'artifacts',
|
101
105
|
:'relative_path' => :'relative_path',
|
102
106
|
:'sha256' => :'sha256',
|
@@ -142,6 +146,7 @@ module PulpDebClient
|
|
142
146
|
:'prn' => :'String',
|
143
147
|
:'pulp_created' => :'Time',
|
144
148
|
:'pulp_last_updated' => :'Time',
|
149
|
+
:'pulp_labels' => :'Hash<String, String>',
|
145
150
|
:'artifacts' => :'Object',
|
146
151
|
:'relative_path' => :'String',
|
147
152
|
:'sha256' => :'String',
|
@@ -212,6 +217,12 @@ module PulpDebClient
|
|
212
217
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
213
218
|
end
|
214
219
|
|
220
|
+
if attributes.key?(:'pulp_labels')
|
221
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
222
|
+
self.pulp_labels = value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
215
226
|
if attributes.key?(:'artifacts')
|
216
227
|
self.artifacts = attributes[:'artifacts']
|
217
228
|
else
|
@@ -364,6 +375,7 @@ module PulpDebClient
|
|
364
375
|
prn == o.prn &&
|
365
376
|
pulp_created == o.pulp_created &&
|
366
377
|
pulp_last_updated == o.pulp_last_updated &&
|
378
|
+
pulp_labels == o.pulp_labels &&
|
367
379
|
artifacts == o.artifacts &&
|
368
380
|
relative_path == o.relative_path &&
|
369
381
|
sha256 == o.sha256 &&
|
@@ -405,7 +417,7 @@ module PulpDebClient
|
|
405
417
|
# Calculates hash code according to all attributes.
|
406
418
|
# @return [Integer] Hash code
|
407
419
|
def hash
|
408
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, artifacts, relative_path, sha256, format, source, binary, architecture, version, maintainer, uploaders, homepage, vcs_browser, vcs_arch, vcs_bzr, vcs_cvs, vcs_darcs, vcs_git, vcs_hg, vcs_mtn, vcs_snv, testsuite, dgit, standards_version, build_depends, build_depends_indep, build_depends_arch, build_conflicts, build_conflicts_indep, build_conflicts_arch, package_list].hash
|
420
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, relative_path, sha256, format, source, binary, architecture, version, maintainer, uploaders, homepage, vcs_browser, vcs_arch, vcs_bzr, vcs_cvs, vcs_darcs, vcs_git, vcs_hg, vcs_mtn, vcs_snv, testsuite, dgit, standards_version, build_depends, build_depends_indep, build_depends_arch, build_conflicts, build_conflicts_indep, build_conflicts_arch, package_list].hash
|
409
421
|
end
|
410
422
|
|
411
423
|
# Builds the object from hash
|
@@ -36,6 +36,8 @@ module PulpDebClient
|
|
36
36
|
# Publication to be served
|
37
37
|
attr_accessor :publication
|
38
38
|
|
39
|
+
attr_accessor :checkpoint
|
40
|
+
|
39
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
42
|
def self.attribute_map
|
41
43
|
{
|
@@ -45,7 +47,8 @@ module PulpDebClient
|
|
45
47
|
:'pulp_labels' => :'pulp_labels',
|
46
48
|
:'name' => :'name',
|
47
49
|
:'repository' => :'repository',
|
48
|
-
:'publication' => :'publication'
|
50
|
+
:'publication' => :'publication',
|
51
|
+
:'checkpoint' => :'checkpoint'
|
49
52
|
}
|
50
53
|
end
|
51
54
|
|
@@ -63,7 +66,8 @@ module PulpDebClient
|
|
63
66
|
:'pulp_labels' => :'Hash<String, String>',
|
64
67
|
:'name' => :'String',
|
65
68
|
:'repository' => :'String',
|
66
|
-
:'publication' => :'String'
|
69
|
+
:'publication' => :'String',
|
70
|
+
:'checkpoint' => :'Boolean'
|
67
71
|
}
|
68
72
|
end
|
69
73
|
|
@@ -72,7 +76,7 @@ module PulpDebClient
|
|
72
76
|
Set.new([
|
73
77
|
:'content_guard',
|
74
78
|
:'repository',
|
75
|
-
:'publication'
|
79
|
+
:'publication',
|
76
80
|
])
|
77
81
|
end
|
78
82
|
|
@@ -122,6 +126,10 @@ module PulpDebClient
|
|
122
126
|
if attributes.key?(:'publication')
|
123
127
|
self.publication = attributes[:'publication']
|
124
128
|
end
|
129
|
+
|
130
|
+
if attributes.key?(:'checkpoint')
|
131
|
+
self.checkpoint = attributes[:'checkpoint']
|
132
|
+
end
|
125
133
|
end
|
126
134
|
|
127
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -188,7 +196,8 @@ module PulpDebClient
|
|
188
196
|
pulp_labels == o.pulp_labels &&
|
189
197
|
name == o.name &&
|
190
198
|
repository == o.repository &&
|
191
|
-
publication == o.publication
|
199
|
+
publication == o.publication &&
|
200
|
+
checkpoint == o.checkpoint
|
192
201
|
end
|
193
202
|
|
194
203
|
# @see the `==` method
|
@@ -200,7 +209,7 @@ module PulpDebClient
|
|
200
209
|
# Calculates hash code according to all attributes.
|
201
210
|
# @return [Integer] Hash code
|
202
211
|
def hash
|
203
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, publication].hash
|
212
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, checkpoint].hash
|
204
213
|
end
|
205
214
|
|
206
215
|
# Builds the object from hash
|
data/pulp_deb_client.gemspec
CHANGED
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.required_ruby_version = ">= 2.7"
|
29
29
|
s.metadata = {}
|
30
30
|
|
31
|
-
s.add_runtime_dependency 'faraday-net_http', '>= 2.0', '< 3.1'
|
32
31
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.9'
|
33
32
|
s.add_runtime_dependency 'faraday-multipart'
|
34
33
|
s.add_runtime_dependency 'marcel'
|
@@ -37,7 +37,9 @@ describe 'ContentGenericContentsApi' do
|
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param relative_path Path where the artifact is located relative to distributions base_path
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
40
41
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
41
43
|
# @option opts [String] :artifact Artifact file representing the physical content
|
42
44
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
43
45
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
@@ -53,13 +55,15 @@ describe 'ContentGenericContentsApi' do
|
|
53
55
|
# List generic contents
|
54
56
|
# 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.
|
55
57
|
# @param [Hash] opts the optional parameters
|
58
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
56
59
|
# @option opts [Integer] :limit Number of results to return per page.
|
57
60
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
58
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
61
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
59
62
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
60
63
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
61
64
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
62
65
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
66
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
63
67
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
64
68
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
65
69
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -80,6 +84,7 @@ describe 'ContentGenericContentsApi' do
|
|
80
84
|
# 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.
|
81
85
|
# @param deb_generic_content_href
|
82
86
|
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
83
88
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
84
89
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
85
90
|
# @return [DebGenericContentResponse]
|
@@ -89,4 +94,32 @@ describe 'ContentGenericContentsApi' do
|
|
89
94
|
end
|
90
95
|
end
|
91
96
|
|
97
|
+
# unit tests for set_label
|
98
|
+
# Set a label
|
99
|
+
# Set a single pulp_label on the object to a specific value or null.
|
100
|
+
# @param deb_generic_content_href
|
101
|
+
# @param set_label
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
104
|
+
# @return [SetLabelResponse]
|
105
|
+
describe 'set_label test' do
|
106
|
+
it 'should work' do
|
107
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# unit tests for unset_label
|
112
|
+
# Unset a label
|
113
|
+
# Unset a single pulp_label on the object.
|
114
|
+
# @param deb_generic_content_href
|
115
|
+
# @param unset_label
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
118
|
+
# @return [UnsetLabelResponse]
|
119
|
+
describe 'unset_label test' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
92
125
|
end
|
@@ -37,6 +37,7 @@ describe 'ContentInstallerFileIndicesApi' do
|
|
37
37
|
# An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one 'SHA256SUMS' and/or 'MD5SUMS' file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer content.
|
38
38
|
# @param deb_installer_file_index
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
40
41
|
# @return [DebInstallerFileIndexResponse]
|
41
42
|
describe 'create test' do
|
42
43
|
it 'should work' do
|
@@ -48,15 +49,17 @@ describe 'ContentInstallerFileIndicesApi' do
|
|
48
49
|
# List InstallerFileIndices
|
49
50
|
# An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one 'SHA256SUMS' and/or 'MD5SUMS' file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer content.
|
50
51
|
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
51
53
|
# @option opts [String] :architecture Filter results where architecture matches value
|
52
54
|
# @option opts [String] :component Filter results where component matches value
|
53
55
|
# @option opts [Integer] :limit Number of results to return per page.
|
54
56
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
55
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
57
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
56
58
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
57
59
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
58
60
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
59
61
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
62
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
60
63
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
61
64
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
62
65
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -77,6 +80,7 @@ describe 'ContentInstallerFileIndicesApi' do
|
|
77
80
|
# An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one 'SHA256SUMS' and/or 'MD5SUMS' file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer content.
|
78
81
|
# @param deb_installer_file_index_href
|
79
82
|
# @param [Hash] opts the optional parameters
|
83
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
80
84
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
81
85
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
82
86
|
# @return [DebInstallerFileIndexResponse]
|
@@ -86,4 +90,32 @@ describe 'ContentInstallerFileIndicesApi' do
|
|
86
90
|
end
|
87
91
|
end
|
88
92
|
|
93
|
+
# unit tests for set_label
|
94
|
+
# Set a label
|
95
|
+
# Set a single pulp_label on the object to a specific value or null.
|
96
|
+
# @param deb_installer_file_index_href
|
97
|
+
# @param set_label
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
100
|
+
# @return [SetLabelResponse]
|
101
|
+
describe 'set_label test' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for unset_label
|
108
|
+
# Unset a label
|
109
|
+
# Unset a single pulp_label on the object.
|
110
|
+
# @param deb_installer_file_index_href
|
111
|
+
# @param unset_label
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
114
|
+
# @return [UnsetLabelResponse]
|
115
|
+
describe 'unset_label test' do
|
116
|
+
it 'should work' do
|
117
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
89
121
|
end
|