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
@@ -23,6 +23,7 @@ module PulpDebClient
|
|
23
23
|
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
24
24
|
# @param deb_source_index [DebSourceIndex]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
27
|
# @return [DebSourceIndexResponse]
|
27
28
|
def create(deb_source_index, opts = {})
|
28
29
|
data, _status_code, _headers = create_with_http_info(deb_source_index, opts)
|
@@ -33,6 +34,7 @@ module PulpDebClient
|
|
33
34
|
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
34
35
|
# @param deb_source_index [DebSourceIndex]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
36
38
|
# @return [Array<(DebSourceIndexResponse, Integer, Hash)>] DebSourceIndexResponse data, response status code and response headers
|
37
39
|
def create_with_http_info(deb_source_index, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -57,6 +59,7 @@ module PulpDebClient
|
|
57
59
|
if !content_type.nil?
|
58
60
|
header_params['Content-Type'] = content_type
|
59
61
|
end
|
62
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
60
63
|
|
61
64
|
# form parameters
|
62
65
|
form_params = opts[:form_params] || {}
|
@@ -90,14 +93,16 @@ module PulpDebClient
|
|
90
93
|
# List SourceIndices
|
91
94
|
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
92
95
|
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
93
97
|
# @option opts [String] :component Filter results where component matches value
|
94
98
|
# @option opts [Integer] :limit Number of results to return per page.
|
95
99
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
96
|
-
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
100
|
+
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
97
101
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
98
102
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
99
103
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
100
104
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
105
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
101
106
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
102
107
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
103
108
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -115,14 +120,16 @@ module PulpDebClient
|
|
115
120
|
# List SourceIndices
|
116
121
|
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
117
122
|
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
118
124
|
# @option opts [String] :component Filter results where component matches value
|
119
125
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
121
|
-
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
127
|
+
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
122
128
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
123
129
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
124
130
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
125
131
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
132
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
126
133
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
127
134
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
128
135
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -136,7 +143,7 @@ module PulpDebClient
|
|
136
143
|
if @api_client.config.debugging
|
137
144
|
@api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.list ...'
|
138
145
|
end
|
139
|
-
allowable_values = ["-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
146
|
+
allowable_values = ["-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
140
147
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
141
148
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
142
149
|
end
|
@@ -153,6 +160,7 @@ module PulpDebClient
|
|
153
160
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
154
161
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
155
162
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
163
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
156
164
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
157
165
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
158
166
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
@@ -166,6 +174,7 @@ module PulpDebClient
|
|
166
174
|
header_params = opts[:header_params] || {}
|
167
175
|
# HTTP header 'Accept' (if needed)
|
168
176
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
177
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
169
178
|
|
170
179
|
# form parameters
|
171
180
|
form_params = opts[:form_params] || {}
|
@@ -200,6 +209,7 @@ module PulpDebClient
|
|
200
209
|
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
201
210
|
# @param deb_source_index_href [String]
|
202
211
|
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
203
213
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
204
214
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
205
215
|
# @return [DebSourceIndexResponse]
|
@@ -212,6 +222,7 @@ module PulpDebClient
|
|
212
222
|
# A SourceIndex represents the source indices of a single component. Associated artifacts: Exactly one 'Sources' file. May optionally include one or more of 'Sources.gz', 'Sources.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file (with architecture always being 'source'). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Sources' files it needs when creating the publication. It does not make use of SourceIndex content.
|
213
223
|
# @param deb_source_index_href [String]
|
214
224
|
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
215
226
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
216
227
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
217
228
|
# @return [Array<(DebSourceIndexResponse, Integer, Hash)>] DebSourceIndexResponse data, response status code and response headers
|
@@ -235,6 +246,7 @@ module PulpDebClient
|
|
235
246
|
header_params = opts[:header_params] || {}
|
236
247
|
# HTTP header 'Accept' (if needed)
|
237
248
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
249
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
238
250
|
|
239
251
|
# form parameters
|
240
252
|
form_params = opts[:form_params] || {}
|
@@ -264,5 +276,159 @@ module PulpDebClient
|
|
264
276
|
end
|
265
277
|
return data, status_code, headers
|
266
278
|
end
|
279
|
+
|
280
|
+
# Set a label
|
281
|
+
# Set a single pulp_label on the object to a specific value or null.
|
282
|
+
# @param deb_source_index_href [String]
|
283
|
+
# @param set_label [SetLabel]
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
286
|
+
# @return [SetLabelResponse]
|
287
|
+
def set_label(deb_source_index_href, set_label, opts = {})
|
288
|
+
data, _status_code, _headers = set_label_with_http_info(deb_source_index_href, set_label, opts)
|
289
|
+
data
|
290
|
+
end
|
291
|
+
|
292
|
+
# Set a label
|
293
|
+
# Set a single pulp_label on the object to a specific value or null.
|
294
|
+
# @param deb_source_index_href [String]
|
295
|
+
# @param set_label [SetLabel]
|
296
|
+
# @param [Hash] opts the optional parameters
|
297
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
298
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
299
|
+
def set_label_with_http_info(deb_source_index_href, set_label, opts = {})
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.set_label ...'
|
302
|
+
end
|
303
|
+
# verify the required parameter 'deb_source_index_href' is set
|
304
|
+
if @api_client.config.client_side_validation && deb_source_index_href.nil?
|
305
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_index_href' when calling ContentSourceIndicesApi.set_label"
|
306
|
+
end
|
307
|
+
# verify the required parameter 'set_label' is set
|
308
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
309
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSourceIndicesApi.set_label"
|
310
|
+
end
|
311
|
+
# resource path
|
312
|
+
local_var_path = '{deb_source_index_href}set_label/'.sub('{' + 'deb_source_index_href' + '}', CGI.escape(deb_source_index_href.to_s).gsub('%2F', '/'))
|
313
|
+
|
314
|
+
# query parameters
|
315
|
+
query_params = opts[:query_params] || {}
|
316
|
+
|
317
|
+
# header parameters
|
318
|
+
header_params = opts[:header_params] || {}
|
319
|
+
# HTTP header 'Accept' (if needed)
|
320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
321
|
+
# HTTP header 'Content-Type'
|
322
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
323
|
+
if !content_type.nil?
|
324
|
+
header_params['Content-Type'] = content_type
|
325
|
+
end
|
326
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
327
|
+
|
328
|
+
# form parameters
|
329
|
+
form_params = opts[:form_params] || {}
|
330
|
+
|
331
|
+
# http body (model)
|
332
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
333
|
+
|
334
|
+
# return_type
|
335
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
336
|
+
|
337
|
+
# auth_names
|
338
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
339
|
+
|
340
|
+
new_options = opts.merge(
|
341
|
+
:operation => :"ContentSourceIndicesApi.set_label",
|
342
|
+
:header_params => header_params,
|
343
|
+
:query_params => query_params,
|
344
|
+
:form_params => form_params,
|
345
|
+
:body => post_body,
|
346
|
+
:auth_names => auth_names,
|
347
|
+
:return_type => return_type
|
348
|
+
)
|
349
|
+
|
350
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
351
|
+
if @api_client.config.debugging
|
352
|
+
@api_client.config.logger.debug "API called: ContentSourceIndicesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
353
|
+
end
|
354
|
+
return data, status_code, headers
|
355
|
+
end
|
356
|
+
|
357
|
+
# Unset a label
|
358
|
+
# Unset a single pulp_label on the object.
|
359
|
+
# @param deb_source_index_href [String]
|
360
|
+
# @param unset_label [UnsetLabel]
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
363
|
+
# @return [UnsetLabelResponse]
|
364
|
+
def unset_label(deb_source_index_href, unset_label, opts = {})
|
365
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_source_index_href, unset_label, opts)
|
366
|
+
data
|
367
|
+
end
|
368
|
+
|
369
|
+
# Unset a label
|
370
|
+
# Unset a single pulp_label on the object.
|
371
|
+
# @param deb_source_index_href [String]
|
372
|
+
# @param unset_label [UnsetLabel]
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
375
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
376
|
+
def unset_label_with_http_info(deb_source_index_href, unset_label, opts = {})
|
377
|
+
if @api_client.config.debugging
|
378
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.unset_label ...'
|
379
|
+
end
|
380
|
+
# verify the required parameter 'deb_source_index_href' is set
|
381
|
+
if @api_client.config.client_side_validation && deb_source_index_href.nil?
|
382
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_index_href' when calling ContentSourceIndicesApi.unset_label"
|
383
|
+
end
|
384
|
+
# verify the required parameter 'unset_label' is set
|
385
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
386
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSourceIndicesApi.unset_label"
|
387
|
+
end
|
388
|
+
# resource path
|
389
|
+
local_var_path = '{deb_source_index_href}unset_label/'.sub('{' + 'deb_source_index_href' + '}', CGI.escape(deb_source_index_href.to_s).gsub('%2F', '/'))
|
390
|
+
|
391
|
+
# query parameters
|
392
|
+
query_params = opts[:query_params] || {}
|
393
|
+
|
394
|
+
# header parameters
|
395
|
+
header_params = opts[:header_params] || {}
|
396
|
+
# HTTP header 'Accept' (if needed)
|
397
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
398
|
+
# HTTP header 'Content-Type'
|
399
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
400
|
+
if !content_type.nil?
|
401
|
+
header_params['Content-Type'] = content_type
|
402
|
+
end
|
403
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
404
|
+
|
405
|
+
# form parameters
|
406
|
+
form_params = opts[:form_params] || {}
|
407
|
+
|
408
|
+
# http body (model)
|
409
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
410
|
+
|
411
|
+
# return_type
|
412
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
413
|
+
|
414
|
+
# auth_names
|
415
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
416
|
+
|
417
|
+
new_options = opts.merge(
|
418
|
+
:operation => :"ContentSourceIndicesApi.unset_label",
|
419
|
+
:header_params => header_params,
|
420
|
+
:query_params => query_params,
|
421
|
+
:form_params => form_params,
|
422
|
+
:body => post_body,
|
423
|
+
:auth_names => auth_names,
|
424
|
+
:return_type => return_type
|
425
|
+
)
|
426
|
+
|
427
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
428
|
+
if @api_client.config.debugging
|
429
|
+
@api_client.config.logger.debug "API called: ContentSourceIndicesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
430
|
+
end
|
431
|
+
return data, status_code, headers
|
432
|
+
end
|
267
433
|
end
|
268
434
|
end
|
@@ -23,6 +23,7 @@ module PulpDebClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param deb_source_package [DebSourcePackage]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
27
|
# @return [AsyncOperationResponse]
|
27
28
|
def create(deb_source_package, opts = {})
|
28
29
|
data, _status_code, _headers = create_with_http_info(deb_source_package, opts)
|
@@ -33,6 +34,7 @@ module PulpDebClient
|
|
33
34
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
34
35
|
# @param deb_source_package [DebSourcePackage]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
36
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
39
|
def create_with_http_info(deb_source_package, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -57,6 +59,7 @@ module PulpDebClient
|
|
57
59
|
if !content_type.nil?
|
58
60
|
header_params['Content-Type'] = content_type
|
59
61
|
end
|
62
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
60
63
|
|
61
64
|
# form parameters
|
62
65
|
form_params = opts[:form_params] || {}
|
@@ -90,6 +93,7 @@ module PulpDebClient
|
|
90
93
|
# List source packages
|
91
94
|
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
92
95
|
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
93
97
|
# @option opts [String] :architecture Filter results where architecture matches value
|
94
98
|
# @option opts [String] :binary Filter results where binary matches value
|
95
99
|
# @option opts [String] :build_conflicts Filter results where build_conflicts matches value
|
@@ -104,12 +108,13 @@ module PulpDebClient
|
|
104
108
|
# @option opts [Integer] :limit Number of results to return per page.
|
105
109
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
106
110
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
107
|
-
# @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) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
111
|
+
# @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) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
108
112
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
109
113
|
# @option opts [String] :package_list Filter results where package_list matches value
|
110
114
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
111
115
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
112
116
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
117
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
113
118
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
114
119
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
115
120
|
# @option opts [String] :release Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
@@ -142,6 +147,7 @@ module PulpDebClient
|
|
142
147
|
# List source packages
|
143
148
|
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
144
149
|
# @param [Hash] opts the optional parameters
|
150
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
145
151
|
# @option opts [String] :architecture Filter results where architecture matches value
|
146
152
|
# @option opts [String] :binary Filter results where binary matches value
|
147
153
|
# @option opts [String] :build_conflicts Filter results where build_conflicts matches value
|
@@ -156,12 +162,13 @@ module PulpDebClient
|
|
156
162
|
# @option opts [Integer] :limit Number of results to return per page.
|
157
163
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
158
164
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
|
-
# @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) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
165
|
+
# @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) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
160
166
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
161
167
|
# @option opts [String] :package_list Filter results where package_list matches value
|
162
168
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
163
169
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
164
170
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
171
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
165
172
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
166
173
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
167
174
|
# @option opts [String] :release Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
@@ -190,7 +197,7 @@ module PulpDebClient
|
|
190
197
|
if @api_client.config.debugging
|
191
198
|
@api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.list ...'
|
192
199
|
end
|
193
|
-
allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
|
200
|
+
allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
|
194
201
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
195
202
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
196
203
|
end
|
@@ -219,6 +226,7 @@ module PulpDebClient
|
|
219
226
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
220
227
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
221
228
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
229
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
222
230
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
223
231
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
224
232
|
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
@@ -247,6 +255,7 @@ module PulpDebClient
|
|
247
255
|
header_params = opts[:header_params] || {}
|
248
256
|
# HTTP header 'Accept' (if needed)
|
249
257
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
258
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
250
259
|
|
251
260
|
# form parameters
|
252
261
|
form_params = opts[:form_params] || {}
|
@@ -281,6 +290,7 @@ module PulpDebClient
|
|
281
290
|
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
282
291
|
# @param deb_source_package_href [String]
|
283
292
|
# @param [Hash] opts the optional parameters
|
293
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
284
294
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
285
295
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
286
296
|
# @return [DebSourcePackageResponse]
|
@@ -293,6 +303,7 @@ module PulpDebClient
|
|
293
303
|
# A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
294
304
|
# @param deb_source_package_href [String]
|
295
305
|
# @param [Hash] opts the optional parameters
|
306
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
296
307
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
297
308
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
298
309
|
# @return [Array<(DebSourcePackageResponse, Integer, Hash)>] DebSourcePackageResponse data, response status code and response headers
|
@@ -316,6 +327,7 @@ module PulpDebClient
|
|
316
327
|
header_params = opts[:header_params] || {}
|
317
328
|
# HTTP header 'Accept' (if needed)
|
318
329
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
330
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
319
331
|
|
320
332
|
# form parameters
|
321
333
|
form_params = opts[:form_params] || {}
|
@@ -345,5 +357,159 @@ module PulpDebClient
|
|
345
357
|
end
|
346
358
|
return data, status_code, headers
|
347
359
|
end
|
360
|
+
|
361
|
+
# Set a label
|
362
|
+
# Set a single pulp_label on the object to a specific value or null.
|
363
|
+
# @param deb_source_package_href [String]
|
364
|
+
# @param set_label [SetLabel]
|
365
|
+
# @param [Hash] opts the optional parameters
|
366
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
367
|
+
# @return [SetLabelResponse]
|
368
|
+
def set_label(deb_source_package_href, set_label, opts = {})
|
369
|
+
data, _status_code, _headers = set_label_with_http_info(deb_source_package_href, set_label, opts)
|
370
|
+
data
|
371
|
+
end
|
372
|
+
|
373
|
+
# Set a label
|
374
|
+
# Set a single pulp_label on the object to a specific value or null.
|
375
|
+
# @param deb_source_package_href [String]
|
376
|
+
# @param set_label [SetLabel]
|
377
|
+
# @param [Hash] opts the optional parameters
|
378
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
379
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
380
|
+
def set_label_with_http_info(deb_source_package_href, set_label, opts = {})
|
381
|
+
if @api_client.config.debugging
|
382
|
+
@api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.set_label ...'
|
383
|
+
end
|
384
|
+
# verify the required parameter 'deb_source_package_href' is set
|
385
|
+
if @api_client.config.client_side_validation && deb_source_package_href.nil?
|
386
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.set_label"
|
387
|
+
end
|
388
|
+
# verify the required parameter 'set_label' is set
|
389
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
390
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSourcePackagesApi.set_label"
|
391
|
+
end
|
392
|
+
# resource path
|
393
|
+
local_var_path = '{deb_source_package_href}set_label/'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
|
394
|
+
|
395
|
+
# query parameters
|
396
|
+
query_params = opts[:query_params] || {}
|
397
|
+
|
398
|
+
# header parameters
|
399
|
+
header_params = opts[:header_params] || {}
|
400
|
+
# HTTP header 'Accept' (if needed)
|
401
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
402
|
+
# HTTP header 'Content-Type'
|
403
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
404
|
+
if !content_type.nil?
|
405
|
+
header_params['Content-Type'] = content_type
|
406
|
+
end
|
407
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
408
|
+
|
409
|
+
# form parameters
|
410
|
+
form_params = opts[:form_params] || {}
|
411
|
+
|
412
|
+
# http body (model)
|
413
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
414
|
+
|
415
|
+
# return_type
|
416
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
417
|
+
|
418
|
+
# auth_names
|
419
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
420
|
+
|
421
|
+
new_options = opts.merge(
|
422
|
+
:operation => :"ContentSourcePackagesApi.set_label",
|
423
|
+
:header_params => header_params,
|
424
|
+
:query_params => query_params,
|
425
|
+
:form_params => form_params,
|
426
|
+
:body => post_body,
|
427
|
+
:auth_names => auth_names,
|
428
|
+
:return_type => return_type
|
429
|
+
)
|
430
|
+
|
431
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
432
|
+
if @api_client.config.debugging
|
433
|
+
@api_client.config.logger.debug "API called: ContentSourcePackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
434
|
+
end
|
435
|
+
return data, status_code, headers
|
436
|
+
end
|
437
|
+
|
438
|
+
# Unset a label
|
439
|
+
# Unset a single pulp_label on the object.
|
440
|
+
# @param deb_source_package_href [String]
|
441
|
+
# @param unset_label [UnsetLabel]
|
442
|
+
# @param [Hash] opts the optional parameters
|
443
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
444
|
+
# @return [UnsetLabelResponse]
|
445
|
+
def unset_label(deb_source_package_href, unset_label, opts = {})
|
446
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_source_package_href, unset_label, opts)
|
447
|
+
data
|
448
|
+
end
|
449
|
+
|
450
|
+
# Unset a label
|
451
|
+
# Unset a single pulp_label on the object.
|
452
|
+
# @param deb_source_package_href [String]
|
453
|
+
# @param unset_label [UnsetLabel]
|
454
|
+
# @param [Hash] opts the optional parameters
|
455
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
456
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
457
|
+
def unset_label_with_http_info(deb_source_package_href, unset_label, opts = {})
|
458
|
+
if @api_client.config.debugging
|
459
|
+
@api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.unset_label ...'
|
460
|
+
end
|
461
|
+
# verify the required parameter 'deb_source_package_href' is set
|
462
|
+
if @api_client.config.client_side_validation && deb_source_package_href.nil?
|
463
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.unset_label"
|
464
|
+
end
|
465
|
+
# verify the required parameter 'unset_label' is set
|
466
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
467
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSourcePackagesApi.unset_label"
|
468
|
+
end
|
469
|
+
# resource path
|
470
|
+
local_var_path = '{deb_source_package_href}unset_label/'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
|
471
|
+
|
472
|
+
# query parameters
|
473
|
+
query_params = opts[:query_params] || {}
|
474
|
+
|
475
|
+
# header parameters
|
476
|
+
header_params = opts[:header_params] || {}
|
477
|
+
# HTTP header 'Accept' (if needed)
|
478
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
479
|
+
# HTTP header 'Content-Type'
|
480
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
481
|
+
if !content_type.nil?
|
482
|
+
header_params['Content-Type'] = content_type
|
483
|
+
end
|
484
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
485
|
+
|
486
|
+
# form parameters
|
487
|
+
form_params = opts[:form_params] || {}
|
488
|
+
|
489
|
+
# http body (model)
|
490
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
491
|
+
|
492
|
+
# return_type
|
493
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
494
|
+
|
495
|
+
# auth_names
|
496
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
497
|
+
|
498
|
+
new_options = opts.merge(
|
499
|
+
:operation => :"ContentSourcePackagesApi.unset_label",
|
500
|
+
:header_params => header_params,
|
501
|
+
:query_params => query_params,
|
502
|
+
:form_params => form_params,
|
503
|
+
:body => post_body,
|
504
|
+
:auth_names => auth_names,
|
505
|
+
:return_type => return_type
|
506
|
+
)
|
507
|
+
|
508
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
509
|
+
if @api_client.config.debugging
|
510
|
+
@api_client.config.logger.debug "API called: ContentSourcePackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
511
|
+
end
|
512
|
+
return data, status_code, headers
|
513
|
+
end
|
348
514
|
end
|
349
515
|
end
|