pulp_deb_client 2.21.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -7
- data/docs/ContentGenericContentsApi.md +7 -5
- data/docs/ContentInstallerFileIndicesApi.md +3 -1
- data/docs/ContentInstallerPackagesApi.md +7 -5
- data/docs/ContentPackageIndicesApi.md +3 -1
- data/docs/ContentPackageReleaseComponentsApi.md +3 -1
- data/docs/ContentPackagesApi.md +27 -5
- data/docs/ContentReleaseArchitecturesApi.md +5 -7
- data/docs/ContentReleaseComponentsApi.md +7 -7
- data/docs/ContentReleaseFilesApi.md +3 -1
- data/docs/ContentReleasesApi.md +13 -3
- data/docs/ContentSourceIndicesApi.md +204 -0
- data/docs/ContentSourcePackagesApi.md +258 -0
- data/docs/ContentSourceReleaseComponentsApi.md +202 -0
- data/docs/DebAptPublication.md +4 -2
- data/docs/DebAptPublicationResponse.md +4 -2
- data/docs/DebAptRepository.md +7 -1
- data/docs/DebAptRepositoryResponse.md +7 -1
- data/docs/DebCopyApi.md +1 -1
- data/docs/DebGenericContent.md +2 -2
- data/docs/DebInstallerPackage.md +2 -2
- data/docs/DebPackage.md +2 -2
- data/docs/DebRelease.md +9 -1
- data/docs/DebReleaseArchitecture.md +1 -5
- data/docs/DebReleaseArchitectureResponse.md +1 -5
- data/docs/DebReleaseComponent.md +1 -5
- data/docs/DebReleaseComponentResponse.md +1 -5
- data/docs/DebReleaseFile.md +3 -3
- data/docs/DebReleaseFileResponse.md +3 -3
- data/docs/DebReleaseResponse.md +9 -1
- data/docs/DebSourceIndex.md +25 -0
- data/docs/DebSourceIndexResponse.md +27 -0
- data/docs/DebSourcePackage.md +21 -0
- data/docs/DebSourcePackageReleaseComponent.md +21 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
- data/docs/DebSourcePackageResponse.md +77 -0
- data/docs/DistributionsAptApi.md +123 -1
- data/docs/PaginateddebSourceIndexResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageResponseList.md +23 -0
- data/docs/PatcheddebAptRepository.md +7 -1
- data/docs/PublicationsAptApi.md +3 -1
- data/docs/PublicationsVerbatimApi.md +3 -1
- data/docs/RemotesAptApi.md +123 -1
- data/docs/RepositoriesAptApi.md +123 -1
- data/docs/RepositoriesAptVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +7 -4
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -4
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +37 -4
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -9
- data/lib/pulp_deb_client/api/content_release_components_api.rb +9 -9
- data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_releases_api.rb +18 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +38 -5
- data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
- data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_release.rb +104 -4
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_component.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_file.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_response.rb +44 -4
- data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
- data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/set_label.rb +252 -0
- data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
- data/lib/pulp_deb_client/models/unset_label.rb +242 -0
- data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +16 -0
- data/spec/api/content_generic_contents_api_spec.rb +3 -2
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
- data/spec/api/content_installer_packages_api_spec.rb +3 -2
- data/spec/api/content_package_indices_api_spec.rb +1 -0
- data/spec/api/content_package_release_components_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +13 -2
- data/spec/api/content_release_architectures_api_spec.rb +2 -3
- data/spec/api/content_release_components_api_spec.rb +3 -3
- data/spec/api/content_release_files_api_spec.rb +1 -0
- data/spec/api/content_releases_api_spec.rb +6 -1
- data/spec/api/content_source_indices_api_spec.rb +86 -0
- data/spec/api/content_source_packages_api_spec.rb +113 -0
- data/spec/api/content_source_release_components_api_spec.rb +85 -0
- data/spec/api/distributions_apt_api_spec.rb +31 -0
- data/spec/api/publications_apt_api_spec.rb +1 -0
- data/spec/api/publications_verbatim_api_spec.rb +1 -0
- data/spec/api/remotes_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- 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_apt_repository_response_spec.rb +18 -0
- data/spec/models/deb_apt_repository_spec.rb +18 -0
- data/spec/models/deb_release_architecture_response_spec.rb +0 -12
- data/spec/models/deb_release_architecture_spec.rb +0 -12
- data/spec/models/deb_release_component_response_spec.rb +0 -12
- data/spec/models/deb_release_component_spec.rb +0 -12
- data/spec/models/deb_release_response_spec.rb +24 -0
- data/spec/models/deb_release_spec.rb +24 -0
- data/spec/models/deb_source_index_response_spec.rb +71 -0
- data/spec/models/deb_source_index_spec.rb +65 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
- data/spec/models/deb_source_package_release_component_spec.rb +53 -0
- data/spec/models/deb_source_package_response_spec.rb +221 -0
- data/spec/models/deb_source_package_spec.rb +53 -0
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +18 -0
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +122 -58
@@ -87,17 +87,16 @@ module PulpDebClient
|
|
87
87
|
# A ReleaseArchitecture represents a single dpkg architecture string. Associated artifacts: None; contains only metadata. Every ReleaseArchitecture is always associated with exactly one Release. This indicates that the release/distribution in question supports this architecture.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @option opts [String] :architecture Filter results where architecture matches value
|
90
|
-
# @option opts [String] :codename Filter results where codename matches value
|
91
90
|
# @option opts [String] :distribution Filter results where distribution matches value
|
92
91
|
# @option opts [Integer] :limit Number of results to return per page.
|
93
92
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
94
|
-
# @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) * `
|
93
|
+
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
95
94
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
96
95
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
96
|
+
# @option opts [String] :q
|
97
97
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
98
98
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
99
99
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
100
|
-
# @option opts [String] :suite Filter results where suite matches value
|
101
100
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
102
101
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
103
102
|
# @return [PaginateddebReleaseArchitectureResponseList]
|
@@ -110,17 +109,16 @@ module PulpDebClient
|
|
110
109
|
# A ReleaseArchitecture represents a single dpkg architecture string. Associated artifacts: None; contains only metadata. Every ReleaseArchitecture is always associated with exactly one Release. This indicates that the release/distribution in question supports this architecture.
|
111
110
|
# @param [Hash] opts the optional parameters
|
112
111
|
# @option opts [String] :architecture Filter results where architecture matches value
|
113
|
-
# @option opts [String] :codename Filter results where codename matches value
|
114
112
|
# @option opts [String] :distribution Filter results where distribution matches value
|
115
113
|
# @option opts [Integer] :limit Number of results to return per page.
|
116
114
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
117
|
-
# @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) * `
|
115
|
+
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
118
116
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
119
117
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
118
|
+
# @option opts [String] :q
|
120
119
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
121
120
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
122
121
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
123
|
-
# @option opts [String] :suite Filter results where suite matches value
|
124
122
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
125
123
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
126
124
|
# @return [Array<(PaginateddebReleaseArchitectureResponseList, Integer, Hash)>] PaginateddebReleaseArchitectureResponseList data, response status code and response headers
|
@@ -128,7 +126,7 @@ module PulpDebClient
|
|
128
126
|
if @api_client.config.debugging
|
129
127
|
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.list ...'
|
130
128
|
end
|
131
|
-
allowable_values = ["-architecture", "-
|
129
|
+
allowable_values = ["-architecture", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "architecture", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
132
130
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
133
131
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
134
132
|
end
|
@@ -138,17 +136,16 @@ module PulpDebClient
|
|
138
136
|
# query parameters
|
139
137
|
query_params = opts[:query_params] || {}
|
140
138
|
query_params[:'architecture'] = opts[:'architecture'] if !opts[:'architecture'].nil?
|
141
|
-
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
142
139
|
query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
|
143
140
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
144
141
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
145
142
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
146
143
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
147
144
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
145
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
148
146
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
149
147
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
150
148
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
151
|
-
query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
|
152
149
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
153
150
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
154
151
|
|
@@ -86,18 +86,18 @@ module PulpDebClient
|
|
86
86
|
# List release components
|
87
87
|
# A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
-
# @option opts [String] :codename Filter results where codename matches value
|
90
89
|
# @option opts [String] :component Filter results where component matches value
|
91
90
|
# @option opts [String] :distribution Filter results where distribution matches value
|
92
91
|
# @option opts [Integer] :limit Number of results to return per page.
|
93
92
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
94
|
-
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `
|
93
|
+
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
94
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
95
95
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
96
96
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
97
|
+
# @option opts [String] :q
|
97
98
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
98
99
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
99
100
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
100
|
-
# @option opts [String] :suite Filter results where suite matches value
|
101
101
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
102
102
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
103
103
|
# @return [PaginateddebReleaseComponentResponseList]
|
@@ -109,18 +109,18 @@ module PulpDebClient
|
|
109
109
|
# List release components
|
110
110
|
# A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
|
111
111
|
# @param [Hash] opts the optional parameters
|
112
|
-
# @option opts [String] :codename Filter results where codename matches value
|
113
112
|
# @option opts [String] :component Filter results where component matches value
|
114
113
|
# @option opts [String] :distribution Filter results where distribution matches value
|
115
114
|
# @option opts [Integer] :limit Number of results to return per page.
|
116
115
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
117
|
-
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `
|
116
|
+
# @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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
117
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
118
118
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
119
119
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
120
|
+
# @option opts [String] :q
|
120
121
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
121
122
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
122
123
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
123
|
-
# @option opts [String] :suite Filter results where suite matches value
|
124
124
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
125
125
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
126
126
|
# @return [Array<(PaginateddebReleaseComponentResponseList, Integer, Hash)>] PaginateddebReleaseComponentResponseList data, response status code and response headers
|
@@ -128,7 +128,7 @@ module PulpDebClient
|
|
128
128
|
if @api_client.config.debugging
|
129
129
|
@api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.list ...'
|
130
130
|
end
|
131
|
-
allowable_values = ["-
|
131
|
+
allowable_values = ["-component", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "component", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
132
132
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
133
133
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
134
134
|
end
|
@@ -137,18 +137,18 @@ module PulpDebClient
|
|
137
137
|
|
138
138
|
# query parameters
|
139
139
|
query_params = opts[:query_params] || {}
|
140
|
-
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
141
140
|
query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
|
142
141
|
query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
|
143
142
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
144
143
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
145
144
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
145
|
+
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
146
146
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
147
147
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
148
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
148
149
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
149
150
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
150
151
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
151
|
-
query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
|
152
152
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
153
153
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
154
154
|
|
@@ -92,6 +92,7 @@ module PulpDebClient
|
|
92
92
|
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
93
93
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
94
94
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
95
|
+
# @option opts [String] :q
|
95
96
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
96
97
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
97
98
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -115,6 +116,7 @@ module PulpDebClient
|
|
115
116
|
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
116
117
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
117
118
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
119
|
+
# @option opts [String] :q
|
118
120
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
119
121
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
120
122
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -143,6 +145,7 @@ module PulpDebClient
|
|
143
145
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
144
146
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
145
147
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
148
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
146
149
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
147
150
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
148
151
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -88,15 +88,20 @@ module PulpDebClient
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @option opts [String] :codename Filter results where codename matches value
|
90
90
|
# @option opts [String] :distribution Filter results where distribution matches value
|
91
|
+
# @option opts [String] :label Filter results where label matches value
|
91
92
|
# @option opts [Integer] :limit Number of results to return per page.
|
92
93
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
93
|
-
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
94
|
+
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
95
|
+
# @option opts [String] :origin Filter results where origin matches value
|
96
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
94
97
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
95
98
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
99
|
+
# @option opts [String] :q
|
96
100
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
97
101
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
98
102
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
99
103
|
# @option opts [String] :suite Filter results where suite matches value
|
104
|
+
# @option opts [String] :version Filter results where version matches value
|
100
105
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
101
106
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
102
107
|
# @return [PaginateddebReleaseResponseList]
|
@@ -110,15 +115,20 @@ module PulpDebClient
|
|
110
115
|
# @param [Hash] opts the optional parameters
|
111
116
|
# @option opts [String] :codename Filter results where codename matches value
|
112
117
|
# @option opts [String] :distribution Filter results where distribution matches value
|
118
|
+
# @option opts [String] :label Filter results where label matches value
|
113
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
114
120
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
115
|
-
# @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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
122
|
+
# @option opts [String] :origin Filter results where origin matches value
|
123
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
116
124
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
117
125
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
126
|
+
# @option opts [String] :q
|
118
127
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
119
128
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
120
129
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
121
130
|
# @option opts [String] :suite Filter results where suite matches value
|
131
|
+
# @option opts [String] :version Filter results where version matches value
|
122
132
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
123
133
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
124
134
|
# @return [Array<(PaginateddebReleaseResponseList, Integer, Hash)>] PaginateddebReleaseResponseList data, response status code and response headers
|
@@ -126,7 +136,7 @@ module PulpDebClient
|
|
126
136
|
if @api_client.config.debugging
|
127
137
|
@api_client.config.logger.debug 'Calling API: ContentReleasesApi.list ...'
|
128
138
|
end
|
129
|
-
allowable_values = ["-codename", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "codename", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id"]
|
139
|
+
allowable_values = ["-codename", "-description", "-distribution", "-label", "-origin", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "-version", "codename", "description", "distribution", "label", "origin", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id", "version"]
|
130
140
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
131
141
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
132
142
|
end
|
@@ -137,15 +147,20 @@ module PulpDebClient
|
|
137
147
|
query_params = opts[:query_params] || {}
|
138
148
|
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
139
149
|
query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
|
150
|
+
query_params[:'label'] = opts[:'label'] if !opts[:'label'].nil?
|
140
151
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
141
152
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
142
153
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
154
|
+
query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
|
155
|
+
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
143
156
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
144
157
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
158
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
145
159
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
146
160
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
147
161
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
148
162
|
query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
|
163
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
149
164
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
150
165
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
151
166
|
|
@@ -0,0 +1,256 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpDebClient
|
16
|
+
class ContentSourceIndicesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a source index
|
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
|
+
# @param deb_source_index [DebSourceIndex]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [DebSourceIndexResponse]
|
27
|
+
def create(deb_source_index, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(deb_source_index, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a source index
|
33
|
+
# 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
|
+
# @param deb_source_index [DebSourceIndex]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(DebSourceIndexResponse, Integer, Hash)>] DebSourceIndexResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(deb_source_index, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'deb_source_index' is set
|
42
|
+
if @api_client.config.client_side_validation && deb_source_index.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_index' when calling ContentSourceIndicesApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/content/deb/source_indices/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(deb_source_index)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'DebSourceIndexResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ContentSourceIndicesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# List SourceIndices
|
87
|
+
# 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.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :component Filter results where component matches value
|
90
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
92
|
+
# @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)
|
93
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
94
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
95
|
+
# @option opts [String] :q
|
96
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
97
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
98
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
99
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
100
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
101
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
102
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
103
|
+
# @return [PaginateddebSourceIndexResponseList]
|
104
|
+
def list(opts = {})
|
105
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
106
|
+
data
|
107
|
+
end
|
108
|
+
|
109
|
+
# List SourceIndices
|
110
|
+
# 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.
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @option opts [String] :component Filter results where component matches value
|
113
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
114
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
115
|
+
# @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)
|
116
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
117
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
118
|
+
# @option opts [String] :q
|
119
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
120
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
121
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
122
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
123
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
124
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
125
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
126
|
+
# @return [Array<(PaginateddebSourceIndexResponseList, Integer, Hash)>] PaginateddebSourceIndexResponseList data, response status code and response headers
|
127
|
+
def list_with_http_info(opts = {})
|
128
|
+
if @api_client.config.debugging
|
129
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.list ...'
|
130
|
+
end
|
131
|
+
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"]
|
132
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
133
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
134
|
+
end
|
135
|
+
# resource path
|
136
|
+
local_var_path = '/pulp/api/v3/content/deb/source_indices/'
|
137
|
+
|
138
|
+
# query parameters
|
139
|
+
query_params = opts[:query_params] || {}
|
140
|
+
query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
|
141
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
142
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
143
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
144
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
145
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
146
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
147
|
+
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
148
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
149
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
150
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
151
|
+
query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
152
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
153
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
154
|
+
|
155
|
+
# header parameters
|
156
|
+
header_params = opts[:header_params] || {}
|
157
|
+
# HTTP header 'Accept' (if needed)
|
158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
159
|
+
|
160
|
+
# form parameters
|
161
|
+
form_params = opts[:form_params] || {}
|
162
|
+
|
163
|
+
# http body (model)
|
164
|
+
post_body = opts[:body]
|
165
|
+
|
166
|
+
# return_type
|
167
|
+
return_type = opts[:return_type] || 'PaginateddebSourceIndexResponseList'
|
168
|
+
|
169
|
+
# auth_names
|
170
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
171
|
+
|
172
|
+
new_options = opts.merge(
|
173
|
+
:header_params => header_params,
|
174
|
+
:query_params => query_params,
|
175
|
+
:form_params => form_params,
|
176
|
+
:body => post_body,
|
177
|
+
:auth_names => auth_names,
|
178
|
+
:return_type => return_type
|
179
|
+
)
|
180
|
+
|
181
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
182
|
+
if @api_client.config.debugging
|
183
|
+
@api_client.config.logger.debug "API called: ContentSourceIndicesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
184
|
+
end
|
185
|
+
return data, status_code, headers
|
186
|
+
end
|
187
|
+
|
188
|
+
# Inspect a source index
|
189
|
+
# 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.
|
190
|
+
# @param deb_source_index_href [String]
|
191
|
+
# @param [Hash] opts the optional parameters
|
192
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
193
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
194
|
+
# @return [DebSourceIndexResponse]
|
195
|
+
def read(deb_source_index_href, opts = {})
|
196
|
+
data, _status_code, _headers = read_with_http_info(deb_source_index_href, opts)
|
197
|
+
data
|
198
|
+
end
|
199
|
+
|
200
|
+
# Inspect a source index
|
201
|
+
# 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.
|
202
|
+
# @param deb_source_index_href [String]
|
203
|
+
# @param [Hash] opts the optional parameters
|
204
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
205
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
206
|
+
# @return [Array<(DebSourceIndexResponse, Integer, Hash)>] DebSourceIndexResponse data, response status code and response headers
|
207
|
+
def read_with_http_info(deb_source_index_href, opts = {})
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug 'Calling API: ContentSourceIndicesApi.read ...'
|
210
|
+
end
|
211
|
+
# verify the required parameter 'deb_source_index_href' is set
|
212
|
+
if @api_client.config.client_side_validation && deb_source_index_href.nil?
|
213
|
+
fail ArgumentError, "Missing the required parameter 'deb_source_index_href' when calling ContentSourceIndicesApi.read"
|
214
|
+
end
|
215
|
+
# resource path
|
216
|
+
local_var_path = '{deb_source_index_href}'.sub('{' + 'deb_source_index_href' + '}', CGI.escape(deb_source_index_href.to_s).gsub('%2F', '/'))
|
217
|
+
|
218
|
+
# query parameters
|
219
|
+
query_params = opts[:query_params] || {}
|
220
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
221
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
222
|
+
|
223
|
+
# header parameters
|
224
|
+
header_params = opts[:header_params] || {}
|
225
|
+
# HTTP header 'Accept' (if needed)
|
226
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
227
|
+
|
228
|
+
# form parameters
|
229
|
+
form_params = opts[:form_params] || {}
|
230
|
+
|
231
|
+
# http body (model)
|
232
|
+
post_body = opts[:body]
|
233
|
+
|
234
|
+
# return_type
|
235
|
+
return_type = opts[:return_type] || 'DebSourceIndexResponse'
|
236
|
+
|
237
|
+
# auth_names
|
238
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
239
|
+
|
240
|
+
new_options = opts.merge(
|
241
|
+
:header_params => header_params,
|
242
|
+
:query_params => query_params,
|
243
|
+
:form_params => form_params,
|
244
|
+
:body => post_body,
|
245
|
+
:auth_names => auth_names,
|
246
|
+
:return_type => return_type
|
247
|
+
)
|
248
|
+
|
249
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug "API called: ContentSourceIndicesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
252
|
+
end
|
253
|
+
return data, status_code, headers
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|