pulp_deb_client 3.0.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -7
  3. data/docs/ContentGenericContentsApi.md +7 -5
  4. data/docs/ContentInstallerFileIndicesApi.md +3 -1
  5. data/docs/ContentInstallerPackagesApi.md +7 -5
  6. data/docs/ContentPackageIndicesApi.md +3 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +3 -1
  8. data/docs/ContentPackagesApi.md +23 -5
  9. data/docs/ContentReleaseArchitecturesApi.md +3 -1
  10. data/docs/ContentReleaseComponentsApi.md +3 -1
  11. data/docs/ContentReleaseFilesApi.md +3 -1
  12. data/docs/ContentReleasesApi.md +3 -1
  13. data/docs/ContentSourceIndicesApi.md +204 -0
  14. data/docs/ContentSourcePackagesApi.md +258 -0
  15. data/docs/ContentSourceReleaseComponentsApi.md +202 -0
  16. data/docs/DebCopyApi.md +1 -1
  17. data/docs/DebGenericContent.md +2 -2
  18. data/docs/DebInstallerPackage.md +2 -2
  19. data/docs/DebPackage.md +2 -2
  20. data/docs/DebSourceIndex.md +25 -0
  21. data/docs/DebSourceIndexResponse.md +27 -0
  22. data/docs/DebSourcePackage.md +21 -0
  23. data/docs/DebSourcePackageReleaseComponent.md +21 -0
  24. data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
  25. data/docs/DebSourcePackageResponse.md +77 -0
  26. data/docs/DistributionsAptApi.md +123 -1
  27. data/docs/PaginateddebSourceIndexResponseList.md +23 -0
  28. data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
  29. data/docs/PaginateddebSourcePackageResponseList.md +23 -0
  30. data/docs/PublicationsAptApi.md +3 -1
  31. data/docs/PublicationsVerbatimApi.md +3 -1
  32. data/docs/RemotesAptApi.md +123 -1
  33. data/docs/RepositoriesAptApi.md +123 -1
  34. data/docs/RepositoriesAptVersionsApi.md +3 -1
  35. data/docs/SetLabel.md +19 -0
  36. data/docs/SetLabelResponse.md +19 -0
  37. data/docs/UnsetLabel.md +17 -0
  38. data/docs/UnsetLabelResponse.md +19 -0
  39. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +7 -4
  40. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
  41. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -4
  42. data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
  43. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
  44. data/lib/pulp_deb_client/api/content_packages_api.rb +31 -4
  45. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +3 -0
  46. data/lib/pulp_deb_client/api/content_release_components_api.rb +3 -0
  47. data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
  48. data/lib/pulp_deb_client/api/content_releases_api.rb +3 -0
  49. data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
  50. data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
  51. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
  52. data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
  53. data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
  54. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
  55. data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
  56. data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
  57. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
  58. data/lib/pulp_deb_client/configuration.rb +2 -2
  59. data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
  60. data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
  61. data/lib/pulp_deb_client/models/deb_package.rb +2 -2
  62. data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
  63. data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
  64. data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
  65. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
  66. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
  67. data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
  68. data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
  69. data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
  70. data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
  71. data/lib/pulp_deb_client/models/set_label.rb +252 -0
  72. data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
  73. data/lib/pulp_deb_client/models/unset_label.rb +242 -0
  74. data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
  75. data/lib/pulp_deb_client/version.rb +1 -1
  76. data/lib/pulp_deb_client.rb +16 -0
  77. data/spec/api/content_generic_contents_api_spec.rb +3 -2
  78. data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
  79. data/spec/api/content_installer_packages_api_spec.rb +3 -2
  80. data/spec/api/content_package_indices_api_spec.rb +1 -0
  81. data/spec/api/content_package_release_components_api_spec.rb +1 -0
  82. data/spec/api/content_packages_api_spec.rb +11 -2
  83. data/spec/api/content_release_architectures_api_spec.rb +1 -0
  84. data/spec/api/content_release_components_api_spec.rb +1 -0
  85. data/spec/api/content_release_files_api_spec.rb +1 -0
  86. data/spec/api/content_releases_api_spec.rb +1 -0
  87. data/spec/api/content_source_indices_api_spec.rb +86 -0
  88. data/spec/api/content_source_packages_api_spec.rb +113 -0
  89. data/spec/api/content_source_release_components_api_spec.rb +85 -0
  90. data/spec/api/distributions_apt_api_spec.rb +31 -0
  91. data/spec/api/publications_apt_api_spec.rb +1 -0
  92. data/spec/api/publications_verbatim_api_spec.rb +1 -0
  93. data/spec/api/remotes_apt_api_spec.rb +31 -0
  94. data/spec/api/repositories_apt_api_spec.rb +31 -0
  95. data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
  96. data/spec/configuration_spec.rb +3 -3
  97. data/spec/models/deb_source_index_response_spec.rb +71 -0
  98. data/spec/models/deb_source_index_spec.rb +65 -0
  99. data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
  100. data/spec/models/deb_source_package_release_component_spec.rb +53 -0
  101. data/spec/models/deb_source_package_response_spec.rb +221 -0
  102. data/spec/models/deb_source_package_spec.rb +53 -0
  103. data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
  104. data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
  105. data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
  106. data/spec/models/set_label_response_spec.rb +47 -0
  107. data/spec/models/set_label_spec.rb +47 -0
  108. data/spec/models/unset_label_response_spec.rb +47 -0
  109. data/spec/models/unset_label_spec.rb +41 -0
  110. metadata +120 -56
@@ -25,8 +25,8 @@ module PulpDebClient
25
25
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
26
  # @option opts [String] :artifact Artifact file representing the physical content
27
27
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
28
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
29
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
28
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
30
30
  # @return [AsyncOperationResponse]
31
31
  def create(opts = {})
32
32
  data, _status_code, _headers = create_with_http_info(opts)
@@ -39,8 +39,8 @@ module PulpDebClient
39
39
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
40
  # @option opts [String] :artifact Artifact file representing the physical content
41
41
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
42
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
43
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
42
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
44
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
45
45
  def create_with_http_info(opts = {})
46
46
  if @api_client.config.debugging
@@ -116,6 +116,7 @@ module PulpDebClient
116
116
  # @option opts [String] :priority Filter results where priority matches value
117
117
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
118
118
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
119
+ # @option opts [String] :q
119
120
  # @option opts [String] :repository_version Repository Version referenced by HREF
120
121
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
121
122
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -152,6 +153,7 @@ module PulpDebClient
152
153
  # @option opts [String] :priority Filter results where priority matches value
153
154
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
154
155
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
156
+ # @option opts [String] :q
155
157
  # @option opts [String] :repository_version Repository Version referenced by HREF
156
158
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
157
159
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -205,6 +207,7 @@ module PulpDebClient
205
207
  query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil?
206
208
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
207
209
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
210
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
208
211
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
209
212
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
210
213
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -93,6 +93,7 @@ module PulpDebClient
93
93
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
94
94
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
+ # @option opts [String] :q
96
97
  # @option opts [String] :relative_path Filter results where relative_path matches value
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
@@ -116,6 +117,7 @@ module PulpDebClient
116
117
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
117
118
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
118
119
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
120
+ # @option opts [String] :q
119
121
  # @option opts [String] :relative_path Filter results where relative_path matches value
120
122
  # @option opts [String] :repository_version Repository Version referenced by HREF
121
123
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -144,6 +146,7 @@ module PulpDebClient
144
146
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
145
147
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
146
148
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
149
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
147
150
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
148
151
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
149
152
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -92,6 +92,7 @@ module PulpDebClient
92
92
  # @option opts [String] :package Filter results where package matches value
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] :release_component Filter results where release_component 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
@@ -113,6 +114,7 @@ module PulpDebClient
113
114
  # @option opts [String] :package Filter results where package matches value
114
115
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
115
116
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
117
+ # @option opts [String] :q
116
118
  # @option opts [String] :release_component Filter results where release_component matches value
117
119
  # @option opts [String] :repository_version Repository Version referenced by HREF
118
120
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -139,6 +141,7 @@ module PulpDebClient
139
141
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
140
142
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
141
143
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
144
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
142
145
  query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
143
146
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
144
147
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -25,8 +25,8 @@ module PulpDebClient
25
25
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
26
  # @option opts [String] :artifact Artifact file representing the physical content
27
27
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
28
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
29
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
28
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
30
30
  # @option opts [String] :distribution Name of the distribution.
31
31
  # @option opts [String] :component Name of the component.
32
32
  # @return [AsyncOperationResponse]
@@ -41,8 +41,8 @@ module PulpDebClient
41
41
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
42
  # @option opts [String] :artifact Artifact file representing the physical content
43
43
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
44
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
45
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
44
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
45
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
46
46
  # @option opts [String] :distribution Name of the distribution.
47
47
  # @option opts [String] :component Name of the component.
48
48
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -127,9 +127,18 @@ module PulpDebClient
127
127
  # @option opts [String] :origin Filter results where origin matches value
128
128
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
129
129
  # @option opts [String] :package Filter results where package matches value
130
+ # @option opts [String] :package__contains Filter results where package contains value
131
+ # @option opts [String] :package__icontains Filter results where package contains value
132
+ # @option opts [String] :package__iexact Filter results where package matches value
133
+ # @option opts [Array<String>] :package__in Filter results where package is in a comma-separated list of values
134
+ # @option opts [String] :package__iregex Filter results where package matches regex value
135
+ # @option opts [String] :package__istartswith Filter results where package starts with value
136
+ # @option opts [String] :package__regex Filter results where package matches regex value
137
+ # @option opts [String] :package__startswith Filter results where package starts with value
130
138
  # @option opts [String] :priority Filter results where priority matches value
131
139
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
132
140
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
141
+ # @option opts [String] :q
133
142
  # @option opts [String] :relative_path Filter results where relative_path matches value
134
143
  # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where Package in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
135
144
  # @option opts [String] :release_component Must be a comma-separated string: \&quot;release_component_href,repository_or_repository_version_href\&quot; release_component_href: Filter results where Package in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
@@ -166,9 +175,18 @@ module PulpDebClient
166
175
  # @option opts [String] :origin Filter results where origin matches value
167
176
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
168
177
  # @option opts [String] :package Filter results where package matches value
178
+ # @option opts [String] :package__contains Filter results where package contains value
179
+ # @option opts [String] :package__icontains Filter results where package contains value
180
+ # @option opts [String] :package__iexact Filter results where package matches value
181
+ # @option opts [Array<String>] :package__in Filter results where package is in a comma-separated list of values
182
+ # @option opts [String] :package__iregex Filter results where package matches regex value
183
+ # @option opts [String] :package__istartswith Filter results where package starts with value
184
+ # @option opts [String] :package__regex Filter results where package matches regex value
185
+ # @option opts [String] :package__startswith Filter results where package starts with value
169
186
  # @option opts [String] :priority Filter results where priority matches value
170
187
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
171
188
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
189
+ # @option opts [String] :q
172
190
  # @option opts [String] :relative_path Filter results where relative_path matches value
173
191
  # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where Package in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
174
192
  # @option opts [String] :release_component Must be a comma-separated string: \&quot;release_component_href,repository_or_repository_version_href\&quot; release_component_href: Filter results where Package in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
@@ -222,9 +240,18 @@ module PulpDebClient
222
240
  query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
223
241
  query_params[:'original_maintainer'] = opts[:'original_maintainer'] if !opts[:'original_maintainer'].nil?
224
242
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
243
+ query_params[:'package__contains'] = opts[:'package__contains'] if !opts[:'package__contains'].nil?
244
+ query_params[:'package__icontains'] = opts[:'package__icontains'] if !opts[:'package__icontains'].nil?
245
+ query_params[:'package__iexact'] = opts[:'package__iexact'] if !opts[:'package__iexact'].nil?
246
+ query_params[:'package__in'] = @api_client.build_collection_param(opts[:'package__in'], :csv) if !opts[:'package__in'].nil?
247
+ query_params[:'package__iregex'] = opts[:'package__iregex'] if !opts[:'package__iregex'].nil?
248
+ query_params[:'package__istartswith'] = opts[:'package__istartswith'] if !opts[:'package__istartswith'].nil?
249
+ query_params[:'package__regex'] = opts[:'package__regex'] if !opts[:'package__regex'].nil?
250
+ query_params[:'package__startswith'] = opts[:'package__startswith'] if !opts[:'package__startswith'].nil?
225
251
  query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil?
226
252
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
227
253
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
254
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
228
255
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
229
256
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
230
257
  query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
@@ -93,6 +93,7 @@ module PulpDebClient
93
93
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
94
94
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
+ # @option opts [String] :q
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
98
99
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -114,6 +115,7 @@ module PulpDebClient
114
115
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
115
116
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
116
117
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
118
+ # @option opts [String] :q
117
119
  # @option opts [String] :repository_version Repository Version referenced by HREF
118
120
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
119
121
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -140,6 +142,7 @@ module PulpDebClient
140
142
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
141
143
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
142
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?
143
146
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
144
147
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
145
148
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -94,6 +94,7 @@ module PulpDebClient
94
94
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; 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
@@ -116,6 +117,7 @@ module PulpDebClient
116
117
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; 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)
117
118
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
118
119
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
120
+ # @option opts [String] :q
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
121
123
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -143,6 +145,7 @@ module PulpDebClient
143
145
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].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[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
147
150
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
148
151
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -92,6 +92,7 @@ module PulpDebClient
92
92
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;components&#x60; - Components * &#x60;-components&#x60; - Components (descending) * &#x60;architectures&#x60; - Architectures * &#x60;-architectures&#x60; - Architectures (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;components&#x60; - Components * &#x60;-components&#x60; - Components (descending) * &#x60;architectures&#x60; - Architectures * &#x60;-architectures&#x60; - Architectures (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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?
@@ -96,6 +96,7 @@ module PulpDebClient
96
96
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; 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)
97
97
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
98
98
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
99
+ # @option opts [String] :q
99
100
  # @option opts [String] :repository_version Repository Version referenced by HREF
100
101
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
101
102
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -122,6 +123,7 @@ module PulpDebClient
122
123
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; 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)
123
124
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
124
125
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
126
+ # @option opts [String] :q
125
127
  # @option opts [String] :repository_version Repository Version referenced by HREF
126
128
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
127
129
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -153,6 +155,7 @@ module PulpDebClient
153
155
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
154
156
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
155
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?
156
159
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
157
160
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
158
161
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -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 &#39;Sources&#39; file. May optionally include one or more of &#39;Sources.gz&#39;, &#39;Sources.xz&#39;, &#39;Release&#39;. If included, the &#39;Release&#39; file is a legacy per-component-and-architecture Release file (with architecture always being &#39;source&#39;). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Sources&#39; 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 &#39;Sources&#39; file. May optionally include one or more of &#39;Sources.gz&#39;, &#39;Sources.xz&#39;, &#39;Release&#39;. If included, the &#39;Release&#39; file is a legacy per-component-and-architecture Release file (with architecture always being &#39;source&#39;). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Sources&#39; 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 &#39;Sources&#39; file. May optionally include one or more of &#39;Sources.gz&#39;, &#39;Sources.xz&#39;, &#39;Release&#39;. If included, the &#39;Release&#39; file is a legacy per-component-and-architecture Release file (with architecture always being &#39;source&#39;). Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Sources&#39; 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