pulp_deb_client 3.0.2 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -6
  3. data/docs/ContentGenericContentsApi.md +4 -4
  4. data/docs/ContentInstallerPackagesApi.md +4 -4
  5. data/docs/ContentPackagesApi.md +20 -4
  6. data/docs/ContentSourceIndicesApi.md +204 -0
  7. data/docs/ContentSourcePackagesApi.md +258 -0
  8. data/docs/ContentSourceReleaseComponentsApi.md +202 -0
  9. data/docs/DebGenericContent.md +2 -2
  10. data/docs/DebInstallerPackage.md +2 -2
  11. data/docs/DebPackage.md +2 -2
  12. data/docs/DebSourceIndex.md +25 -0
  13. data/docs/DebSourceIndexResponse.md +27 -0
  14. data/docs/DebSourcePackage.md +21 -0
  15. data/docs/DebSourcePackageReleaseComponent.md +21 -0
  16. data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
  17. data/docs/DebSourcePackageResponse.md +77 -0
  18. data/docs/PaginateddebSourceIndexResponseList.md +23 -0
  19. data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
  20. data/docs/PaginateddebSourcePackageResponseList.md +23 -0
  21. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -4
  22. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -4
  23. data/lib/pulp_deb_client/api/content_packages_api.rb +28 -4
  24. data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
  25. data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
  26. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
  27. data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
  28. data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
  29. data/lib/pulp_deb_client/models/deb_package.rb +2 -2
  30. data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
  31. data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
  32. data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
  33. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
  34. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
  35. data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
  36. data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
  37. data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
  38. data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
  39. data/lib/pulp_deb_client/version.rb +1 -1
  40. data/lib/pulp_deb_client.rb +12 -0
  41. data/spec/api/content_generic_contents_api_spec.rb +2 -2
  42. data/spec/api/content_installer_packages_api_spec.rb +2 -2
  43. data/spec/api/content_packages_api_spec.rb +10 -2
  44. data/spec/api/content_source_indices_api_spec.rb +86 -0
  45. data/spec/api/content_source_packages_api_spec.rb +113 -0
  46. data/spec/api/content_source_release_components_api_spec.rb +85 -0
  47. data/spec/models/deb_source_index_response_spec.rb +71 -0
  48. data/spec/models/deb_source_index_spec.rb +65 -0
  49. data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
  50. data/spec/models/deb_source_package_release_component_spec.rb +53 -0
  51. data/spec/models/deb_source_package_response_spec.rb +221 -0
  52. data/spec/models/deb_source_package_spec.rb +53 -0
  53. data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
  54. data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
  55. data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
  56. metadata +110 -62
@@ -0,0 +1,77 @@
1
+ # PulpDebClient::DebSourcePackageResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **artifacts** | [**Object**](.md) | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/' | [readonly]
10
+ **relative_path** | **String** | Relative path of the Debian Source Control (dsc) file.It is normally advised to let Pulp generate this. | [optional]
11
+ **format** | **String** | | [optional] [readonly]
12
+ **source** | **String** | | [optional] [readonly]
13
+ **binary** | **String** | | [optional] [readonly]
14
+ **architecture** | **String** | | [optional] [readonly]
15
+ **version** | **String** | | [optional] [readonly]
16
+ **maintainer** | **String** | | [optional] [readonly]
17
+ **uploaders** | **String** | | [optional] [readonly]
18
+ **homepage** | **String** | | [optional] [readonly]
19
+ **vcs_browser** | **String** | | [optional] [readonly]
20
+ **vcs_arch** | **String** | | [optional] [readonly]
21
+ **vcs_bzr** | **String** | | [optional] [readonly]
22
+ **vcs_cvs** | **String** | | [optional] [readonly]
23
+ **vcs_darcs** | **String** | | [optional] [readonly]
24
+ **vcs_git** | **String** | | [optional] [readonly]
25
+ **vcs_hg** | **String** | | [optional] [readonly]
26
+ **vcs_mtn** | **String** | | [optional] [readonly]
27
+ **vcs_snv** | **String** | | [optional] [readonly]
28
+ **testsuite** | **String** | | [optional] [readonly]
29
+ **dgit** | **String** | | [optional] [readonly]
30
+ **standards_version** | **String** | | [optional] [readonly]
31
+ **build_depends** | **String** | | [optional] [readonly]
32
+ **build_depends_indep** | **String** | | [optional] [readonly]
33
+ **build_depends_arch** | **String** | | [optional] [readonly]
34
+ **build_conflicts** | **String** | | [optional] [readonly]
35
+ **build_conflicts_indep** | **String** | | [optional] [readonly]
36
+ **build_conflicts_arch** | **String** | | [optional] [readonly]
37
+ **package_list** | **String** | | [optional] [readonly]
38
+
39
+ ## Code Sample
40
+
41
+ ```ruby
42
+ require 'PulpDebClient'
43
+
44
+ instance = PulpDebClient::DebSourcePackageResponse.new(pulp_href: null,
45
+ pulp_created: null,
46
+ artifacts: null,
47
+ relative_path: null,
48
+ format: null,
49
+ source: null,
50
+ binary: null,
51
+ architecture: null,
52
+ version: null,
53
+ maintainer: null,
54
+ uploaders: null,
55
+ homepage: null,
56
+ vcs_browser: null,
57
+ vcs_arch: null,
58
+ vcs_bzr: null,
59
+ vcs_cvs: null,
60
+ vcs_darcs: null,
61
+ vcs_git: null,
62
+ vcs_hg: null,
63
+ vcs_mtn: null,
64
+ vcs_snv: null,
65
+ testsuite: null,
66
+ dgit: null,
67
+ standards_version: null,
68
+ build_depends: null,
69
+ build_depends_indep: null,
70
+ build_depends_arch: null,
71
+ build_conflicts: null,
72
+ build_conflicts_indep: null,
73
+ build_conflicts_arch: null,
74
+ package_list: null)
75
+ ```
76
+
77
+
@@ -0,0 +1,23 @@
1
+ # PulpDebClient::PaginateddebSourceIndexResponseList
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | | [optional]
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<DebSourceIndexResponse>**](DebSourceIndexResponse.md) | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpDebClient'
16
+
17
+ instance = PulpDebClient::PaginateddebSourceIndexResponseList.new(count: 123,
18
+ _next: http://api.example.org/accounts/?offset=400&limit=100,
19
+ previous: http://api.example.org/accounts/?offset=200&limit=100,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # PulpDebClient::PaginateddebSourcePackageReleaseComponentResponseList
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | | [optional]
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<DebSourcePackageReleaseComponentResponse>**](DebSourcePackageReleaseComponentResponse.md) | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpDebClient'
16
+
17
+ instance = PulpDebClient::PaginateddebSourcePackageReleaseComponentResponseList.new(count: 123,
18
+ _next: http://api.example.org/accounts/?offset=400&limit=100,
19
+ previous: http://api.example.org/accounts/?offset=200&limit=100,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # PulpDebClient::PaginateddebSourcePackageResponseList
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | | [optional]
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<DebSourcePackageResponse>**](DebSourcePackageResponse.md) | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpDebClient'
16
+
17
+ instance = PulpDebClient::PaginateddebSourcePackageResponseList.new(count: 123,
18
+ _next: http://api.example.org/accounts/?offset=400&limit=100,
19
+ previous: http://api.example.org/accounts/?offset=200&limit=100,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -25,8 +25,8 @@ module PulpDebClient
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
27
  # @option opts [String] :artifact Artifact file representing the physical content
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(relative_path, opts = {})
32
32
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -39,8 +39,8 @@ module PulpDebClient
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
41
  # @option opts [String] :artifact Artifact file representing the physical content
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(relative_path, opts = {})
46
46
  if @api_client.config.debugging
@@ -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
@@ -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,6 +127,14 @@ 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.
@@ -167,6 +175,14 @@ module PulpDebClient
167
175
  # @option opts [String] :origin Filter results where origin matches value
168
176
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
169
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
170
186
  # @option opts [String] :priority Filter results where priority matches value
171
187
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
172
188
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -224,6 +240,14 @@ module PulpDebClient
224
240
  query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
225
241
  query_params[:'original_maintainer'] = opts[:'original_maintainer'] if !opts[:'original_maintainer'].nil?
226
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?
227
251
  query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil?
228
252
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
229
253
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].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