pulp_deb_client 3.0.0 → 3.1.0

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 +122 -58
@@ -0,0 +1,337 @@
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 ContentSourcePackagesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a source package
23
+ # Trigger an asynchronous task to create content,optionally create new repository version.
24
+ # @param deb_source_package [DebSourcePackage]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def create(deb_source_package, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(deb_source_package, opts)
29
+ data
30
+ end
31
+
32
+ # Create a source package
33
+ # Trigger an asynchronous task to create content,optionally create new repository version.
34
+ # @param deb_source_package [DebSourcePackage]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
+ def create_with_http_info(deb_source_package, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.create ...'
40
+ end
41
+ # verify the required parameter 'deb_source_package' is set
42
+ if @api_client.config.client_side_validation && deb_source_package.nil?
43
+ fail ArgumentError, "Missing the required parameter 'deb_source_package' when calling ContentSourcePackagesApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/content/deb/source_packages/'
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_package)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
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: ContentSourcePackagesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # List source packages
87
+ # A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :architecture Filter results where architecture matches value
90
+ # @option opts [String] :binary Filter results where binary matches value
91
+ # @option opts [String] :build_conflicts Filter results where build_conflicts matches value
92
+ # @option opts [String] :build_conflicts_arch Filter results where build_conflicts_arch matches value
93
+ # @option opts [String] :build_conflicts_indep Filter results where build_conflicts_indep matches value
94
+ # @option opts [String] :build_depends Filter results where build_depends matches value
95
+ # @option opts [String] :build_depends_arch Filter results where build_depends_arch matches value
96
+ # @option opts [String] :build_depends_indep Filter results where build_depends_indep matches value
97
+ # @option opts [String] :dgit Filter results where dgit matches value
98
+ # @option opts [String] :format Filter results where format matches value
99
+ # @option opts [String] :homepage Filter results where homepage matches value
100
+ # @option opts [Integer] :limit Number of results to return per page.
101
+ # @option opts [String] :maintainer Filter results where maintainer matches value
102
+ # @option opts [Integer] :offset The initial index from which to return the results.
103
+ # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
104
+ # @option opts [String] :package_list Filter results where package_list matches value
105
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
107
+ # @option opts [String] :q
108
+ # @option opts [String] :relative_path Filter results where relative_path matches value
109
+ # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
110
+ # @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 SourcePackage in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
111
+ # @option opts [String] :repository_version Repository Version referenced by HREF
112
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
113
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
114
+ # @option opts [String] :source Filter results where source matches value
115
+ # @option opts [String] :standards_version Filter results where standards_version matches value
116
+ # @option opts [String] :testsuite Filter results where testsuite matches value
117
+ # @option opts [String] :uploaders Filter results where uploaders matches value
118
+ # @option opts [String] :vcs_arch Filter results where vcs_arch matches value
119
+ # @option opts [String] :vcs_browser Filter results where vcs_browser matches value
120
+ # @option opts [String] :vcs_bzr Filter results where vcs_bzr matches value
121
+ # @option opts [String] :vcs_cvs Filter results where vcs_cvs matches value
122
+ # @option opts [String] :vcs_darcs Filter results where vcs_darcs matches value
123
+ # @option opts [String] :vcs_git Filter results where vcs_git matches value
124
+ # @option opts [String] :vcs_hg Filter results where vcs_hg matches value
125
+ # @option opts [String] :vcs_mtn Filter results where vcs_mtn matches value
126
+ # @option opts [String] :vcs_snv Filter results where vcs_snv matches value
127
+ # @option opts [String] :version Filter results where version matches value
128
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
129
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
130
+ # @return [PaginateddebSourcePackageResponseList]
131
+ def list(opts = {})
132
+ data, _status_code, _headers = list_with_http_info(opts)
133
+ data
134
+ end
135
+
136
+ # List source packages
137
+ # A Debian Source Package file represents a &#39;.dsc&#39; file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one &#39;.dsc&#39; file.
138
+ # @param [Hash] opts the optional parameters
139
+ # @option opts [String] :architecture Filter results where architecture matches value
140
+ # @option opts [String] :binary Filter results where binary matches value
141
+ # @option opts [String] :build_conflicts Filter results where build_conflicts matches value
142
+ # @option opts [String] :build_conflicts_arch Filter results where build_conflicts_arch matches value
143
+ # @option opts [String] :build_conflicts_indep Filter results where build_conflicts_indep matches value
144
+ # @option opts [String] :build_depends Filter results where build_depends matches value
145
+ # @option opts [String] :build_depends_arch Filter results where build_depends_arch matches value
146
+ # @option opts [String] :build_depends_indep Filter results where build_depends_indep matches value
147
+ # @option opts [String] :dgit Filter results where dgit matches value
148
+ # @option opts [String] :format Filter results where format matches value
149
+ # @option opts [String] :homepage Filter results where homepage matches value
150
+ # @option opts [Integer] :limit Number of results to return per page.
151
+ # @option opts [String] :maintainer Filter results where maintainer matches value
152
+ # @option opts [Integer] :offset The initial index from which to return the results.
153
+ # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;format&#x60; - Format * &#x60;-format&#x60; - Format (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;binary&#x60; - Binary * &#x60;-binary&#x60; - Binary (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;uploaders&#x60; - Uploaders * &#x60;-uploaders&#x60; - Uploaders (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;vcs_browser&#x60; - Vcs browser * &#x60;-vcs_browser&#x60; - Vcs browser (descending) * &#x60;vcs_arch&#x60; - Vcs arch * &#x60;-vcs_arch&#x60; - Vcs arch (descending) * &#x60;vcs_bzr&#x60; - Vcs bzr * &#x60;-vcs_bzr&#x60; - Vcs bzr (descending) * &#x60;vcs_cvs&#x60; - Vcs cvs * &#x60;-vcs_cvs&#x60; - Vcs cvs (descending) * &#x60;vcs_darcs&#x60; - Vcs darcs * &#x60;-vcs_darcs&#x60; - Vcs darcs (descending) * &#x60;vcs_git&#x60; - Vcs git * &#x60;-vcs_git&#x60; - Vcs git (descending) * &#x60;vcs_hg&#x60; - Vcs hg * &#x60;-vcs_hg&#x60; - Vcs hg (descending) * &#x60;vcs_mtn&#x60; - Vcs mtn * &#x60;-vcs_mtn&#x60; - Vcs mtn (descending) * &#x60;vcs_snv&#x60; - Vcs snv * &#x60;-vcs_snv&#x60; - Vcs snv (descending) * &#x60;testsuite&#x60; - Testsuite * &#x60;-testsuite&#x60; - Testsuite (descending) * &#x60;dgit&#x60; - Dgit * &#x60;-dgit&#x60; - Dgit (descending) * &#x60;standards_version&#x60; - Standards version * &#x60;-standards_version&#x60; - Standards version (descending) * &#x60;build_depends&#x60; - Build depends * &#x60;-build_depends&#x60; - Build depends (descending) * &#x60;build_depends_indep&#x60; - Build depends indep * &#x60;-build_depends_indep&#x60; - Build depends indep (descending) * &#x60;build_depends_arch&#x60; - Build depends arch * &#x60;-build_depends_arch&#x60; - Build depends arch (descending) * &#x60;build_conflicts&#x60; - Build conflicts * &#x60;-build_conflicts&#x60; - Build conflicts (descending) * &#x60;build_conflicts_indep&#x60; - Build conflicts indep * &#x60;-build_conflicts_indep&#x60; - Build conflicts indep (descending) * &#x60;build_conflicts_arch&#x60; - Build conflicts arch * &#x60;-build_conflicts_arch&#x60; - Build conflicts arch (descending) * &#x60;package_list&#x60; - Package list * &#x60;-package_list&#x60; - Package list (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
154
+ # @option opts [String] :package_list Filter results where package_list matches value
155
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
156
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
157
+ # @option opts [String] :q
158
+ # @option opts [String] :relative_path Filter results where relative_path matches value
159
+ # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
160
+ # @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 SourcePackage in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
161
+ # @option opts [String] :repository_version Repository Version referenced by HREF
162
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
163
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
164
+ # @option opts [String] :source Filter results where source matches value
165
+ # @option opts [String] :standards_version Filter results where standards_version matches value
166
+ # @option opts [String] :testsuite Filter results where testsuite matches value
167
+ # @option opts [String] :uploaders Filter results where uploaders matches value
168
+ # @option opts [String] :vcs_arch Filter results where vcs_arch matches value
169
+ # @option opts [String] :vcs_browser Filter results where vcs_browser matches value
170
+ # @option opts [String] :vcs_bzr Filter results where vcs_bzr matches value
171
+ # @option opts [String] :vcs_cvs Filter results where vcs_cvs matches value
172
+ # @option opts [String] :vcs_darcs Filter results where vcs_darcs matches value
173
+ # @option opts [String] :vcs_git Filter results where vcs_git matches value
174
+ # @option opts [String] :vcs_hg Filter results where vcs_hg matches value
175
+ # @option opts [String] :vcs_mtn Filter results where vcs_mtn matches value
176
+ # @option opts [String] :vcs_snv Filter results where vcs_snv matches value
177
+ # @option opts [String] :version Filter results where version matches value
178
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
179
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
180
+ # @return [Array<(PaginateddebSourcePackageResponseList, Integer, Hash)>] PaginateddebSourcePackageResponseList data, response status code and response headers
181
+ def list_with_http_info(opts = {})
182
+ if @api_client.config.debugging
183
+ @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.list ...'
184
+ end
185
+ allowable_values = ["-architecture", "-binary", "-build_conflicts", "-build_conflicts_arch", "-build_conflicts_indep", "-build_depends", "-build_depends_arch", "-build_depends_indep", "-dgit", "-format", "-homepage", "-maintainer", "-package_list", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-source", "-standards_version", "-testsuite", "-timestamp_of_interest", "-uploaders", "-upstream_id", "-vcs_arch", "-vcs_browser", "-vcs_bzr", "-vcs_cvs", "-vcs_darcs", "-vcs_git", "-vcs_hg", "-vcs_mtn", "-vcs_snv", "-version", "architecture", "binary", "build_conflicts", "build_conflicts_arch", "build_conflicts_indep", "build_depends", "build_depends_arch", "build_depends_indep", "dgit", "format", "homepage", "maintainer", "package_list", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "source", "standards_version", "testsuite", "timestamp_of_interest", "uploaders", "upstream_id", "vcs_arch", "vcs_browser", "vcs_bzr", "vcs_cvs", "vcs_darcs", "vcs_git", "vcs_hg", "vcs_mtn", "vcs_snv", "version"]
186
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
187
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
188
+ end
189
+ # resource path
190
+ local_var_path = '/pulp/api/v3/content/deb/source_packages/'
191
+
192
+ # query parameters
193
+ query_params = opts[:query_params] || {}
194
+ query_params[:'architecture'] = opts[:'architecture'] if !opts[:'architecture'].nil?
195
+ query_params[:'binary'] = opts[:'binary'] if !opts[:'binary'].nil?
196
+ query_params[:'build_conflicts'] = opts[:'build_conflicts'] if !opts[:'build_conflicts'].nil?
197
+ query_params[:'build_conflicts_arch'] = opts[:'build_conflicts_arch'] if !opts[:'build_conflicts_arch'].nil?
198
+ query_params[:'build_conflicts_indep'] = opts[:'build_conflicts_indep'] if !opts[:'build_conflicts_indep'].nil?
199
+ query_params[:'build_depends'] = opts[:'build_depends'] if !opts[:'build_depends'].nil?
200
+ query_params[:'build_depends_arch'] = opts[:'build_depends_arch'] if !opts[:'build_depends_arch'].nil?
201
+ query_params[:'build_depends_indep'] = opts[:'build_depends_indep'] if !opts[:'build_depends_indep'].nil?
202
+ query_params[:'dgit'] = opts[:'dgit'] if !opts[:'dgit'].nil?
203
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
204
+ query_params[:'homepage'] = opts[:'homepage'] if !opts[:'homepage'].nil?
205
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
206
+ query_params[:'maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
207
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
208
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
209
+ query_params[:'package_list'] = opts[:'package_list'] if !opts[:'package_list'].nil?
210
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
211
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
212
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
213
+ query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
214
+ query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
215
+ query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
216
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
217
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
218
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
219
+ query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
220
+ query_params[:'standards_version'] = opts[:'standards_version'] if !opts[:'standards_version'].nil?
221
+ query_params[:'testsuite'] = opts[:'testsuite'] if !opts[:'testsuite'].nil?
222
+ query_params[:'uploaders'] = opts[:'uploaders'] if !opts[:'uploaders'].nil?
223
+ query_params[:'vcs_arch'] = opts[:'vcs_arch'] if !opts[:'vcs_arch'].nil?
224
+ query_params[:'vcs_browser'] = opts[:'vcs_browser'] if !opts[:'vcs_browser'].nil?
225
+ query_params[:'vcs_bzr'] = opts[:'vcs_bzr'] if !opts[:'vcs_bzr'].nil?
226
+ query_params[:'vcs_cvs'] = opts[:'vcs_cvs'] if !opts[:'vcs_cvs'].nil?
227
+ query_params[:'vcs_darcs'] = opts[:'vcs_darcs'] if !opts[:'vcs_darcs'].nil?
228
+ query_params[:'vcs_git'] = opts[:'vcs_git'] if !opts[:'vcs_git'].nil?
229
+ query_params[:'vcs_hg'] = opts[:'vcs_hg'] if !opts[:'vcs_hg'].nil?
230
+ query_params[:'vcs_mtn'] = opts[:'vcs_mtn'] if !opts[:'vcs_mtn'].nil?
231
+ query_params[:'vcs_snv'] = opts[:'vcs_snv'] if !opts[:'vcs_snv'].nil?
232
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
233
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
234
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
235
+
236
+ # header parameters
237
+ header_params = opts[:header_params] || {}
238
+ # HTTP header 'Accept' (if needed)
239
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
240
+
241
+ # form parameters
242
+ form_params = opts[:form_params] || {}
243
+
244
+ # http body (model)
245
+ post_body = opts[:body]
246
+
247
+ # return_type
248
+ return_type = opts[:return_type] || 'PaginateddebSourcePackageResponseList'
249
+
250
+ # auth_names
251
+ auth_names = opts[:auth_names] || ['basicAuth']
252
+
253
+ new_options = opts.merge(
254
+ :header_params => header_params,
255
+ :query_params => query_params,
256
+ :form_params => form_params,
257
+ :body => post_body,
258
+ :auth_names => auth_names,
259
+ :return_type => return_type
260
+ )
261
+
262
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
263
+ if @api_client.config.debugging
264
+ @api_client.config.logger.debug "API called: ContentSourcePackagesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
265
+ end
266
+ return data, status_code, headers
267
+ end
268
+
269
+ # Inspect a source package
270
+ # A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
271
+ # @param deb_source_package_href [String]
272
+ # @param [Hash] opts the optional parameters
273
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
274
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
275
+ # @return [DebSourcePackageResponse]
276
+ def read(deb_source_package_href, opts = {})
277
+ data, _status_code, _headers = read_with_http_info(deb_source_package_href, opts)
278
+ data
279
+ end
280
+
281
+ # Inspect a source package
282
+ # A Debian Source Package file represents a &#39;.dsc&#39; file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one &#39;.dsc&#39; file.
283
+ # @param deb_source_package_href [String]
284
+ # @param [Hash] opts the optional parameters
285
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
286
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
287
+ # @return [Array<(DebSourcePackageResponse, Integer, Hash)>] DebSourcePackageResponse data, response status code and response headers
288
+ def read_with_http_info(deb_source_package_href, opts = {})
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug 'Calling API: ContentSourcePackagesApi.read ...'
291
+ end
292
+ # verify the required parameter 'deb_source_package_href' is set
293
+ if @api_client.config.client_side_validation && deb_source_package_href.nil?
294
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_href' when calling ContentSourcePackagesApi.read"
295
+ end
296
+ # resource path
297
+ local_var_path = '{deb_source_package_href}'.sub('{' + 'deb_source_package_href' + '}', CGI.escape(deb_source_package_href.to_s).gsub('%2F', '/'))
298
+
299
+ # query parameters
300
+ query_params = opts[:query_params] || {}
301
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
302
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
303
+
304
+ # header parameters
305
+ header_params = opts[:header_params] || {}
306
+ # HTTP header 'Accept' (if needed)
307
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
308
+
309
+ # form parameters
310
+ form_params = opts[:form_params] || {}
311
+
312
+ # http body (model)
313
+ post_body = opts[:body]
314
+
315
+ # return_type
316
+ return_type = opts[:return_type] || 'DebSourcePackageResponse'
317
+
318
+ # auth_names
319
+ auth_names = opts[:auth_names] || ['basicAuth']
320
+
321
+ new_options = opts.merge(
322
+ :header_params => header_params,
323
+ :query_params => query_params,
324
+ :form_params => form_params,
325
+ :body => post_body,
326
+ :auth_names => auth_names,
327
+ :return_type => return_type
328
+ )
329
+
330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: ContentSourcePackagesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+ end
337
+ end
@@ -0,0 +1,253 @@
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 ContentSourceReleaseComponentsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a source package release component
23
+ # A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
24
+ # @param deb_source_package_release_component [DebSourcePackageReleaseComponent]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [DebSourcePackageReleaseComponentResponse]
27
+ def create(deb_source_package_release_component, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(deb_source_package_release_component, opts)
29
+ data
30
+ end
31
+
32
+ # Create a source package release component
33
+ # A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
34
+ # @param deb_source_package_release_component [DebSourcePackageReleaseComponent]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(DebSourcePackageReleaseComponentResponse, Integer, Hash)>] DebSourcePackageReleaseComponentResponse data, response status code and response headers
37
+ def create_with_http_info(deb_source_package_release_component, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.create ...'
40
+ end
41
+ # verify the required parameter 'deb_source_package_release_component' is set
42
+ if @api_client.config.client_side_validation && deb_source_package_release_component.nil?
43
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_release_component' when calling ContentSourceReleaseComponentsApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/content/deb/source_release_components/'
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_package_release_component)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'DebSourcePackageReleaseComponentResponse'
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: ContentSourceReleaseComponentsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # List source package release components
87
+ # A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [Integer] :limit Number of results to return per page.
90
+ # @option opts [Integer] :offset The initial index from which to return the results.
91
+ # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
92
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
93
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
94
+ # @option opts [String] :q
95
+ # @option opts [String] :release_component Filter results where release_component matches value
96
+ # @option opts [String] :repository_version Repository Version referenced by HREF
97
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
98
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
99
+ # @option opts [String] :source_package Filter results where source_package matches value
100
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
101
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
102
+ # @return [PaginateddebSourcePackageReleaseComponentResponseList]
103
+ def list(opts = {})
104
+ data, _status_code, _headers = list_with_http_info(opts)
105
+ data
106
+ end
107
+
108
+ # List source package release components
109
+ # A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [Integer] :limit Number of results to return per page.
112
+ # @option opts [Integer] :offset The initial index from which to return the results.
113
+ # @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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
114
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
115
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
116
+ # @option opts [String] :q
117
+ # @option opts [String] :release_component Filter results where release_component matches value
118
+ # @option opts [String] :repository_version Repository Version referenced by HREF
119
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
120
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
121
+ # @option opts [String] :source_package Filter results where source_package matches value
122
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
123
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
124
+ # @return [Array<(PaginateddebSourcePackageReleaseComponentResponseList, Integer, Hash)>] PaginateddebSourcePackageReleaseComponentResponseList data, response status code and response headers
125
+ def list_with_http_info(opts = {})
126
+ if @api_client.config.debugging
127
+ @api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.list ...'
128
+ end
129
+ allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
130
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
131
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
132
+ end
133
+ # resource path
134
+ local_var_path = '/pulp/api/v3/content/deb/source_release_components/'
135
+
136
+ # query parameters
137
+ query_params = opts[:query_params] || {}
138
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
139
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
140
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
141
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
142
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
143
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
144
+ query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
145
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
146
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
147
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
148
+ query_params[:'source_package'] = opts[:'source_package'] if !opts[:'source_package'].nil?
149
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
150
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
151
+
152
+ # header parameters
153
+ header_params = opts[:header_params] || {}
154
+ # HTTP header 'Accept' (if needed)
155
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
156
+
157
+ # form parameters
158
+ form_params = opts[:form_params] || {}
159
+
160
+ # http body (model)
161
+ post_body = opts[:body]
162
+
163
+ # return_type
164
+ return_type = opts[:return_type] || 'PaginateddebSourcePackageReleaseComponentResponseList'
165
+
166
+ # auth_names
167
+ auth_names = opts[:auth_names] || ['basicAuth']
168
+
169
+ new_options = opts.merge(
170
+ :header_params => header_params,
171
+ :query_params => query_params,
172
+ :form_params => form_params,
173
+ :body => post_body,
174
+ :auth_names => auth_names,
175
+ :return_type => return_type
176
+ )
177
+
178
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug "API called: ContentSourceReleaseComponentsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ end
182
+ return data, status_code, headers
183
+ end
184
+
185
+ # Inspect a source package release component
186
+ # A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
187
+ # @param deb_source_package_release_component_href [String]
188
+ # @param [Hash] opts the optional parameters
189
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
190
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
191
+ # @return [DebSourcePackageReleaseComponentResponse]
192
+ def read(deb_source_package_release_component_href, opts = {})
193
+ data, _status_code, _headers = read_with_http_info(deb_source_package_release_component_href, opts)
194
+ data
195
+ end
196
+
197
+ # Inspect a source package release component
198
+ # A SourcePackageReleaseComponent associates a SourcePackage with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information on which source packages are part of which components.
199
+ # @param deb_source_package_release_component_href [String]
200
+ # @param [Hash] opts the optional parameters
201
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
202
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
203
+ # @return [Array<(DebSourcePackageReleaseComponentResponse, Integer, Hash)>] DebSourcePackageReleaseComponentResponse data, response status code and response headers
204
+ def read_with_http_info(deb_source_package_release_component_href, opts = {})
205
+ if @api_client.config.debugging
206
+ @api_client.config.logger.debug 'Calling API: ContentSourceReleaseComponentsApi.read ...'
207
+ end
208
+ # verify the required parameter 'deb_source_package_release_component_href' is set
209
+ if @api_client.config.client_side_validation && deb_source_package_release_component_href.nil?
210
+ fail ArgumentError, "Missing the required parameter 'deb_source_package_release_component_href' when calling ContentSourceReleaseComponentsApi.read"
211
+ end
212
+ # resource path
213
+ local_var_path = '{deb_source_package_release_component_href}'.sub('{' + 'deb_source_package_release_component_href' + '}', CGI.escape(deb_source_package_release_component_href.to_s).gsub('%2F', '/'))
214
+
215
+ # query parameters
216
+ query_params = opts[:query_params] || {}
217
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
218
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
219
+
220
+ # header parameters
221
+ header_params = opts[:header_params] || {}
222
+ # HTTP header 'Accept' (if needed)
223
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
224
+
225
+ # form parameters
226
+ form_params = opts[:form_params] || {}
227
+
228
+ # http body (model)
229
+ post_body = opts[:body]
230
+
231
+ # return_type
232
+ return_type = opts[:return_type] || 'DebSourcePackageReleaseComponentResponse'
233
+
234
+ # auth_names
235
+ auth_names = opts[:auth_names] || ['basicAuth']
236
+
237
+ new_options = opts.merge(
238
+ :header_params => header_params,
239
+ :query_params => query_params,
240
+ :form_params => form_params,
241
+ :body => post_body,
242
+ :auth_names => auth_names,
243
+ :return_type => return_type
244
+ )
245
+
246
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug "API called: ContentSourceReleaseComponentsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
+ end
250
+ return data, status_code, headers
251
+ end
252
+ end
253
+ end