pulp_deb_client 3.5.1 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -4
  3. data/docs/ContentGenericContentsApi.md +166 -2
  4. data/docs/ContentInstallerFileIndicesApi.md +170 -6
  5. data/docs/ContentInstallerPackagesApi.md +166 -2
  6. data/docs/ContentPackageIndicesApi.md +170 -6
  7. data/docs/ContentPackageReleaseComponentsApi.md +170 -6
  8. data/docs/ContentPackagesApi.md +166 -2
  9. data/docs/ContentReleaseArchitecturesApi.md +170 -6
  10. data/docs/ContentReleaseComponentsApi.md +170 -6
  11. data/docs/ContentReleaseFilesApi.md +170 -6
  12. data/docs/ContentReleasesApi.md +170 -6
  13. data/docs/ContentSourceIndicesApi.md +170 -6
  14. data/docs/ContentSourcePackagesApi.md +170 -6
  15. data/docs/ContentSourceReleaseComponentsApi.md +170 -6
  16. data/docs/DebAptDistribution.md +3 -1
  17. data/docs/DebAptDistributionResponse.md +3 -1
  18. data/docs/DebAptPublication.md +2 -0
  19. data/docs/DebAptPublicationResponse.md +2 -0
  20. data/docs/DebCopyApi.md +8 -4
  21. data/docs/DebGenericContentResponse.md +2 -0
  22. data/docs/DebInstallerFileIndex.md +2 -0
  23. data/docs/DebInstallerFileIndexResponse.md +2 -0
  24. data/docs/DebInstallerPackageResponse.md +2 -0
  25. data/docs/DebPackageIndex.md +2 -0
  26. data/docs/DebPackageIndexResponse.md +2 -0
  27. data/docs/DebPackageReleaseComponent.md +2 -0
  28. data/docs/DebPackageReleaseComponentResponse.md +2 -0
  29. data/docs/DebPackageResponse.md +2 -0
  30. data/docs/DebRelease.md +2 -0
  31. data/docs/DebReleaseArchitecture.md +2 -0
  32. data/docs/DebReleaseArchitectureResponse.md +2 -0
  33. data/docs/DebReleaseComponent.md +2 -0
  34. data/docs/DebReleaseComponentResponse.md +2 -0
  35. data/docs/DebReleaseFile.md +2 -0
  36. data/docs/DebReleaseFileResponse.md +2 -0
  37. data/docs/DebReleaseResponse.md +2 -0
  38. data/docs/DebSourceIndex.md +2 -0
  39. data/docs/DebSourceIndexResponse.md +2 -0
  40. data/docs/DebSourcePackage.md +2 -0
  41. data/docs/DebSourcePackageReleaseComponent.md +2 -0
  42. data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
  43. data/docs/DebSourcePackageResponse.md +2 -0
  44. data/docs/DistributionsAptApi.md +76 -34
  45. data/docs/PatcheddebAptDistribution.md +3 -1
  46. data/docs/PublicationsAptApi.md +44 -18
  47. data/docs/PublicationsVerbatimApi.md +44 -18
  48. data/docs/RemotesAptApi.md +72 -32
  49. data/docs/RepositoriesAptApi.md +88 -40
  50. data/docs/RepositoriesAptVersionsApi.md +22 -10
  51. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +172 -3
  52. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +169 -3
  53. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +172 -3
  54. data/lib/pulp_deb_client/api/content_package_indices_api.rb +169 -3
  55. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +169 -3
  56. data/lib/pulp_deb_client/api/content_packages_api.rb +172 -3
  57. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +169 -3
  58. data/lib/pulp_deb_client/api/content_release_components_api.rb +169 -3
  59. data/lib/pulp_deb_client/api/content_release_files_api.rb +169 -3
  60. data/lib/pulp_deb_client/api/content_releases_api.rb +169 -3
  61. data/lib/pulp_deb_client/api/content_source_indices_api.rb +169 -3
  62. data/lib/pulp_deb_client/api/content_source_packages_api.rb +169 -3
  63. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +169 -3
  64. data/lib/pulp_deb_client/api/deb_copy_api.rb +3 -0
  65. data/lib/pulp_deb_client/api/distributions_apt_api.rb +42 -3
  66. data/lib/pulp_deb_client/api/publications_apt_api.rb +30 -3
  67. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +30 -3
  68. data/lib/pulp_deb_client/api/remotes_apt_api.rb +36 -0
  69. data/lib/pulp_deb_client/api/repositories_apt_api.rb +42 -0
  70. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +15 -3
  71. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +14 -5
  72. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +14 -5
  73. data/lib/pulp_deb_client/models/deb_apt_publication.rb +10 -1
  74. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +10 -1
  75. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +13 -1
  76. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +13 -1
  77. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +13 -1
  78. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +13 -1
  79. data/lib/pulp_deb_client/models/deb_package_index.rb +13 -1
  80. data/lib/pulp_deb_client/models/deb_package_index_response.rb +13 -1
  81. data/lib/pulp_deb_client/models/deb_package_release_component.rb +13 -1
  82. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +13 -1
  83. data/lib/pulp_deb_client/models/deb_package_response.rb +13 -1
  84. data/lib/pulp_deb_client/models/deb_release.rb +13 -1
  85. data/lib/pulp_deb_client/models/deb_release_architecture.rb +13 -1
  86. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +13 -1
  87. data/lib/pulp_deb_client/models/deb_release_component.rb +13 -1
  88. data/lib/pulp_deb_client/models/deb_release_component_response.rb +13 -1
  89. data/lib/pulp_deb_client/models/deb_release_file.rb +13 -1
  90. data/lib/pulp_deb_client/models/deb_release_file_response.rb +13 -1
  91. data/lib/pulp_deb_client/models/deb_release_response.rb +13 -1
  92. data/lib/pulp_deb_client/models/deb_source_index.rb +13 -1
  93. data/lib/pulp_deb_client/models/deb_source_index_response.rb +13 -1
  94. data/lib/pulp_deb_client/models/deb_source_package.rb +13 -1
  95. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +13 -1
  96. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +13 -1
  97. data/lib/pulp_deb_client/models/deb_source_package_response.rb +13 -1
  98. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +14 -5
  99. data/lib/pulp_deb_client/models/unset_label.rb +1 -1
  100. data/lib/pulp_deb_client/models/unset_label_response.rb +1 -1
  101. data/lib/pulp_deb_client/version.rb +1 -1
  102. data/pulp_deb_client.gemspec +0 -1
  103. data/spec/api/content_generic_contents_api_spec.rb +34 -1
  104. data/spec/api/content_installer_file_indices_api_spec.rb +33 -1
  105. data/spec/api/content_installer_packages_api_spec.rb +34 -1
  106. data/spec/api/content_package_indices_api_spec.rb +33 -1
  107. data/spec/api/content_package_release_components_api_spec.rb +33 -1
  108. data/spec/api/content_packages_api_spec.rb +34 -1
  109. data/spec/api/content_release_architectures_api_spec.rb +33 -1
  110. data/spec/api/content_release_components_api_spec.rb +33 -1
  111. data/spec/api/content_release_files_api_spec.rb +33 -1
  112. data/spec/api/content_releases_api_spec.rb +33 -1
  113. data/spec/api/content_source_indices_api_spec.rb +33 -1
  114. data/spec/api/content_source_packages_api_spec.rb +33 -1
  115. data/spec/api/content_source_release_components_api_spec.rb +33 -1
  116. data/spec/api/deb_copy_api_spec.rb +1 -0
  117. data/spec/api/distributions_apt_api_spec.rb +14 -1
  118. data/spec/api/publications_apt_api_spec.rb +10 -1
  119. data/spec/api/publications_verbatim_api_spec.rb +10 -1
  120. data/spec/api/remotes_apt_api_spec.rb +12 -0
  121. data/spec/api/repositories_apt_api_spec.rb +14 -0
  122. data/spec/api/repositories_apt_versions_api_spec.rb +5 -1
  123. data/spec/models/deb_apt_distribution_response_spec.rb +6 -0
  124. data/spec/models/deb_apt_distribution_spec.rb +6 -0
  125. data/spec/models/deb_apt_publication_response_spec.rb +6 -0
  126. data/spec/models/deb_apt_publication_spec.rb +6 -0
  127. data/spec/models/deb_generic_content_response_spec.rb +6 -0
  128. data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
  129. data/spec/models/deb_installer_file_index_spec.rb +6 -0
  130. data/spec/models/deb_installer_package_response_spec.rb +6 -0
  131. data/spec/models/deb_package_index_response_spec.rb +6 -0
  132. data/spec/models/deb_package_index_spec.rb +6 -0
  133. data/spec/models/deb_package_release_component_response_spec.rb +6 -0
  134. data/spec/models/deb_package_release_component_spec.rb +6 -0
  135. data/spec/models/deb_package_response_spec.rb +6 -0
  136. data/spec/models/deb_release_architecture_response_spec.rb +6 -0
  137. data/spec/models/deb_release_architecture_spec.rb +6 -0
  138. data/spec/models/deb_release_component_response_spec.rb +6 -0
  139. data/spec/models/deb_release_component_spec.rb +6 -0
  140. data/spec/models/deb_release_file_response_spec.rb +6 -0
  141. data/spec/models/deb_release_file_spec.rb +6 -0
  142. data/spec/models/deb_release_response_spec.rb +6 -0
  143. data/spec/models/deb_release_spec.rb +6 -0
  144. data/spec/models/deb_source_index_response_spec.rb +6 -0
  145. data/spec/models/deb_source_index_spec.rb +6 -0
  146. data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
  147. data/spec/models/deb_source_package_release_component_spec.rb +6 -0
  148. data/spec/models/deb_source_package_response_spec.rb +6 -0
  149. data/spec/models/deb_source_package_spec.rb +6 -0
  150. data/spec/models/patcheddeb_apt_distribution_spec.rb +6 -0
  151. metadata +76 -96
@@ -23,6 +23,7 @@ module PulpDebClient
23
23
  # A PackageReleaseComponent associates a Package with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information which packages are part of which components.
24
24
  # @param deb_package_release_component [DebPackageReleaseComponent]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
27
  # @return [DebPackageReleaseComponentResponse]
27
28
  def create(deb_package_release_component, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(deb_package_release_component, opts)
@@ -33,6 +34,7 @@ module PulpDebClient
33
34
  # A PackageReleaseComponent associates a Package with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information which packages are part of which components.
34
35
  # @param deb_package_release_component [DebPackageReleaseComponent]
35
36
  # @param [Hash] opts the optional parameters
37
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
36
38
  # @return [Array<(DebPackageReleaseComponentResponse, Integer, Hash)>] DebPackageReleaseComponentResponse data, response status code and response headers
37
39
  def create_with_http_info(deb_package_release_component, opts = {})
38
40
  if @api_client.config.debugging
@@ -57,6 +59,7 @@ module PulpDebClient
57
59
  if !content_type.nil?
58
60
  header_params['Content-Type'] = content_type
59
61
  end
62
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
60
63
 
61
64
  # form parameters
62
65
  form_params = opts[:form_params] || {}
@@ -90,14 +93,16 @@ module PulpDebClient
90
93
  # List package release components
91
94
  # A PackageReleaseComponent associates a Package with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information which packages are part of which components.
92
95
  # @param [Hash] opts the optional parameters
96
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
93
97
  # @option opts [Integer] :limit Number of results to return per page.
94
98
  # @option opts [Integer] :offset The initial index from which to return the results.
95
- # @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)
99
+ # @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;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (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)
96
100
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
97
101
  # @option opts [String] :package Filter results where package matches value
98
102
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
99
103
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
100
104
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
105
+ # @option opts [String] :pulp_label_select Filter labels by search string
101
106
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
102
107
  # @option opts [String] :release_component Filter results where release_component matches value
103
108
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -114,14 +119,16 @@ module PulpDebClient
114
119
  # List package release components
115
120
  # A PackageReleaseComponent associates a Package with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information which packages are part of which components.
116
121
  # @param [Hash] opts the optional parameters
122
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
117
123
  # @option opts [Integer] :limit Number of results to return per page.
118
124
  # @option opts [Integer] :offset The initial index from which to return the results.
119
- # @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)
125
+ # @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;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (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)
120
126
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
121
127
  # @option opts [String] :package Filter results where package matches value
122
128
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
123
129
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
124
130
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
131
+ # @option opts [String] :pulp_label_select Filter labels by search string
125
132
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
126
133
  # @option opts [String] :release_component Filter results where release_component matches value
127
134
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -134,7 +141,7 @@ module PulpDebClient
134
141
  if @api_client.config.debugging
135
142
  @api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.list ...'
136
143
  end
137
- 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"]
144
+ allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
138
145
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
139
146
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
140
147
  end
@@ -151,6 +158,7 @@ module PulpDebClient
151
158
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
152
159
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
153
160
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
161
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
154
162
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
155
163
  query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
156
164
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -163,6 +171,7 @@ module PulpDebClient
163
171
  header_params = opts[:header_params] || {}
164
172
  # HTTP header 'Accept' (if needed)
165
173
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
174
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
166
175
 
167
176
  # form parameters
168
177
  form_params = opts[:form_params] || {}
@@ -197,6 +206,7 @@ module PulpDebClient
197
206
  # A PackageReleaseComponent associates a Package with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information which packages are part of which components.
198
207
  # @param deb_package_release_component_href [String]
199
208
  # @param [Hash] opts the optional parameters
209
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
200
210
  # @option opts [Array<String>] :fields A list of fields to include in the response.
201
211
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
202
212
  # @return [DebPackageReleaseComponentResponse]
@@ -209,6 +219,7 @@ module PulpDebClient
209
219
  # A PackageReleaseComponent associates a Package with a ReleaseComponent. Associated artifacts: None; contains only metadata. This simply stores the information which packages are part of which components.
210
220
  # @param deb_package_release_component_href [String]
211
221
  # @param [Hash] opts the optional parameters
222
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
212
223
  # @option opts [Array<String>] :fields A list of fields to include in the response.
213
224
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
214
225
  # @return [Array<(DebPackageReleaseComponentResponse, Integer, Hash)>] DebPackageReleaseComponentResponse data, response status code and response headers
@@ -232,6 +243,7 @@ module PulpDebClient
232
243
  header_params = opts[:header_params] || {}
233
244
  # HTTP header 'Accept' (if needed)
234
245
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
246
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
235
247
 
236
248
  # form parameters
237
249
  form_params = opts[:form_params] || {}
@@ -261,5 +273,159 @@ module PulpDebClient
261
273
  end
262
274
  return data, status_code, headers
263
275
  end
276
+
277
+ # Set a label
278
+ # Set a single pulp_label on the object to a specific value or null.
279
+ # @param deb_package_release_component_href [String]
280
+ # @param set_label [SetLabel]
281
+ # @param [Hash] opts the optional parameters
282
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
283
+ # @return [SetLabelResponse]
284
+ def set_label(deb_package_release_component_href, set_label, opts = {})
285
+ data, _status_code, _headers = set_label_with_http_info(deb_package_release_component_href, set_label, opts)
286
+ data
287
+ end
288
+
289
+ # Set a label
290
+ # Set a single pulp_label on the object to a specific value or null.
291
+ # @param deb_package_release_component_href [String]
292
+ # @param set_label [SetLabel]
293
+ # @param [Hash] opts the optional parameters
294
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
295
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
296
+ def set_label_with_http_info(deb_package_release_component_href, set_label, opts = {})
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.set_label ...'
299
+ end
300
+ # verify the required parameter 'deb_package_release_component_href' is set
301
+ if @api_client.config.client_side_validation && deb_package_release_component_href.nil?
302
+ fail ArgumentError, "Missing the required parameter 'deb_package_release_component_href' when calling ContentPackageReleaseComponentsApi.set_label"
303
+ end
304
+ # verify the required parameter 'set_label' is set
305
+ if @api_client.config.client_side_validation && set_label.nil?
306
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackageReleaseComponentsApi.set_label"
307
+ end
308
+ # resource path
309
+ local_var_path = '{deb_package_release_component_href}set_label/'.sub('{' + 'deb_package_release_component_href' + '}', CGI.escape(deb_package_release_component_href.to_s).gsub('%2F', '/'))
310
+
311
+ # query parameters
312
+ query_params = opts[:query_params] || {}
313
+
314
+ # header parameters
315
+ header_params = opts[:header_params] || {}
316
+ # HTTP header 'Accept' (if needed)
317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
318
+ # HTTP header 'Content-Type'
319
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
320
+ if !content_type.nil?
321
+ header_params['Content-Type'] = content_type
322
+ end
323
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
324
+
325
+ # form parameters
326
+ form_params = opts[:form_params] || {}
327
+
328
+ # http body (model)
329
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
330
+
331
+ # return_type
332
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
333
+
334
+ # auth_names
335
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
336
+
337
+ new_options = opts.merge(
338
+ :operation => :"ContentPackageReleaseComponentsApi.set_label",
339
+ :header_params => header_params,
340
+ :query_params => query_params,
341
+ :form_params => form_params,
342
+ :body => post_body,
343
+ :auth_names => auth_names,
344
+ :return_type => return_type
345
+ )
346
+
347
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug "API called: ContentPackageReleaseComponentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
350
+ end
351
+ return data, status_code, headers
352
+ end
353
+
354
+ # Unset a label
355
+ # Unset a single pulp_label on the object.
356
+ # @param deb_package_release_component_href [String]
357
+ # @param unset_label [UnsetLabel]
358
+ # @param [Hash] opts the optional parameters
359
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
360
+ # @return [UnsetLabelResponse]
361
+ def unset_label(deb_package_release_component_href, unset_label, opts = {})
362
+ data, _status_code, _headers = unset_label_with_http_info(deb_package_release_component_href, unset_label, opts)
363
+ data
364
+ end
365
+
366
+ # Unset a label
367
+ # Unset a single pulp_label on the object.
368
+ # @param deb_package_release_component_href [String]
369
+ # @param unset_label [UnsetLabel]
370
+ # @param [Hash] opts the optional parameters
371
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
372
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
373
+ def unset_label_with_http_info(deb_package_release_component_href, unset_label, opts = {})
374
+ if @api_client.config.debugging
375
+ @api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.unset_label ...'
376
+ end
377
+ # verify the required parameter 'deb_package_release_component_href' is set
378
+ if @api_client.config.client_side_validation && deb_package_release_component_href.nil?
379
+ fail ArgumentError, "Missing the required parameter 'deb_package_release_component_href' when calling ContentPackageReleaseComponentsApi.unset_label"
380
+ end
381
+ # verify the required parameter 'unset_label' is set
382
+ if @api_client.config.client_side_validation && unset_label.nil?
383
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackageReleaseComponentsApi.unset_label"
384
+ end
385
+ # resource path
386
+ local_var_path = '{deb_package_release_component_href}unset_label/'.sub('{' + 'deb_package_release_component_href' + '}', CGI.escape(deb_package_release_component_href.to_s).gsub('%2F', '/'))
387
+
388
+ # query parameters
389
+ query_params = opts[:query_params] || {}
390
+
391
+ # header parameters
392
+ header_params = opts[:header_params] || {}
393
+ # HTTP header 'Accept' (if needed)
394
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
395
+ # HTTP header 'Content-Type'
396
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
397
+ if !content_type.nil?
398
+ header_params['Content-Type'] = content_type
399
+ end
400
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
401
+
402
+ # form parameters
403
+ form_params = opts[:form_params] || {}
404
+
405
+ # http body (model)
406
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
407
+
408
+ # return_type
409
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
410
+
411
+ # auth_names
412
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
413
+
414
+ new_options = opts.merge(
415
+ :operation => :"ContentPackageReleaseComponentsApi.unset_label",
416
+ :header_params => header_params,
417
+ :query_params => query_params,
418
+ :form_params => form_params,
419
+ :body => post_body,
420
+ :auth_names => auth_names,
421
+ :return_type => return_type
422
+ )
423
+
424
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
425
+ if @api_client.config.debugging
426
+ @api_client.config.logger.debug "API called: ContentPackageReleaseComponentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
427
+ end
428
+ return data, status_code, headers
429
+ end
264
430
  end
265
431
  end
@@ -22,7 +22,9 @@ module PulpDebClient
22
22
  # Create a package
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
25
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
28
  # @option opts [String] :artifact Artifact file representing the physical content
27
29
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
28
30
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -39,7 +41,9 @@ module PulpDebClient
39
41
  # Create a package
40
42
  # Trigger an asynchronous task to create content,optionally create new repository version.
41
43
  # @param [Hash] opts the optional parameters
44
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
42
45
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
46
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
43
47
  # @option opts [String] :artifact Artifact file representing the physical content
44
48
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
45
49
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -83,10 +87,12 @@ module PulpDebClient
83
87
  if !content_type.nil?
84
88
  header_params['Content-Type'] = content_type
85
89
  end
90
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
86
91
 
87
92
  # form parameters
88
93
  form_params = opts[:form_params] || {}
89
94
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
95
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
90
96
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
91
97
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
92
98
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
@@ -124,6 +130,7 @@ module PulpDebClient
124
130
  # List packages
125
131
  # A Package represents a '.deb' binary package. Associated artifacts: Exactly one '.deb' package file.
126
132
  # @param [Hash] opts the optional parameters
133
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
127
134
  # @option opts [String] :architecture Filter results where architecture matches value
128
135
  # @option opts [String] :auto_built_package Filter results where auto_built_package matches value
129
136
  # @option opts [Boolean] :build_essential Filter results where build_essential matches value * &#x60;True&#x60; - yes * &#x60;False&#x60; - no
@@ -134,7 +141,7 @@ module PulpDebClient
134
141
  # @option opts [String] :maintainer Filter results where maintainer matches value
135
142
  # @option opts [String] :multi_arch Filter results where multi_arch matches value * &#x60;no&#x60; - no * &#x60;same&#x60; - same * &#x60;foreign&#x60; - foreign * &#x60;allowed&#x60; - allowed
136
143
  # @option opts [Integer] :offset The initial index from which to return the results.
137
- # @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;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
144
+ # @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;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
138
145
  # @option opts [String] :origin Filter results where origin matches value
139
146
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
140
147
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
@@ -151,6 +158,7 @@ module PulpDebClient
151
158
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
152
159
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
153
160
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
161
+ # @option opts [String] :pulp_label_select Filter labels by search string
154
162
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
155
163
  # @option opts [String] :relative_path Filter results where relative_path matches value
156
164
  # @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,6 +182,7 @@ module PulpDebClient
174
182
  # List packages
175
183
  # A Package represents a &#39;.deb&#39; binary package. Associated artifacts: Exactly one &#39;.deb&#39; package file.
176
184
  # @param [Hash] opts the optional parameters
185
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
177
186
  # @option opts [String] :architecture Filter results where architecture matches value
178
187
  # @option opts [String] :auto_built_package Filter results where auto_built_package matches value
179
188
  # @option opts [Boolean] :build_essential Filter results where build_essential matches value * &#x60;True&#x60; - yes * &#x60;False&#x60; - no
@@ -184,7 +193,7 @@ module PulpDebClient
184
193
  # @option opts [String] :maintainer Filter results where maintainer matches value
185
194
  # @option opts [String] :multi_arch Filter results where multi_arch matches value * &#x60;no&#x60; - no * &#x60;same&#x60; - same * &#x60;foreign&#x60; - foreign * &#x60;allowed&#x60; - allowed
186
195
  # @option opts [Integer] :offset The initial index from which to return the results.
187
- # @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;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
196
+ # @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;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;package&#x60; - Package * &#x60;-package&#x60; - Package (descending) * &#x60;source&#x60; - Source * &#x60;-source&#x60; - Source (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;section&#x60; - Section * &#x60;-section&#x60; - Section (descending) * &#x60;priority&#x60; - Priority * &#x60;-priority&#x60; - Priority (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;tag&#x60; - Tag * &#x60;-tag&#x60; - Tag (descending) * &#x60;bugs&#x60; - Bugs * &#x60;-bugs&#x60; - Bugs (descending) * &#x60;essential&#x60; - Essential * &#x60;-essential&#x60; - Essential (descending) * &#x60;build_essential&#x60; - Build essential * &#x60;-build_essential&#x60; - Build essential (descending) * &#x60;installed_size&#x60; - Installed size * &#x60;-installed_size&#x60; - Installed size (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;original_maintainer&#x60; - Original maintainer * &#x60;-original_maintainer&#x60; - Original maintainer (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;description_md5&#x60; - Description md5 * &#x60;-description_md5&#x60; - Description md5 (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;built_using&#x60; - Built using * &#x60;-built_using&#x60; - Built using (descending) * &#x60;auto_built_package&#x60; - Auto built package * &#x60;-auto_built_package&#x60; - Auto built package (descending) * &#x60;multi_arch&#x60; - Multi arch * &#x60;-multi_arch&#x60; - Multi arch (descending) * &#x60;breaks&#x60; - Breaks * &#x60;-breaks&#x60; - Breaks (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;depends&#x60; - Depends * &#x60;-depends&#x60; - Depends (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;pre_depends&#x60; - Pre depends * &#x60;-pre_depends&#x60; - Pre depends (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;replaces&#x60; - Replaces * &#x60;-replaces&#x60; - Replaces (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;custom_fields&#x60; - Custom fields * &#x60;-custom_fields&#x60; - Custom fields (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
188
197
  # @option opts [String] :origin Filter results where origin matches value
189
198
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
190
199
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
@@ -201,6 +210,7 @@ module PulpDebClient
201
210
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
202
211
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
203
212
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
213
+ # @option opts [String] :pulp_label_select Filter labels by search string
204
214
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
205
215
  # @option opts [String] :relative_path Filter results where relative_path matches value
206
216
  # @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)
@@ -224,7 +234,7 @@ module PulpDebClient
224
234
  if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
225
235
  fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
226
236
  end
227
- allowable_values = ["-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-version", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "version"]
237
+ allowable_values = ["-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-version", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "version"]
228
238
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
229
239
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
230
240
  end
@@ -260,6 +270,7 @@ module PulpDebClient
260
270
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
261
271
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
262
272
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
273
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
263
274
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
264
275
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
265
276
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
@@ -279,6 +290,7 @@ module PulpDebClient
279
290
  header_params = opts[:header_params] || {}
280
291
  # HTTP header 'Accept' (if needed)
281
292
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
293
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
282
294
 
283
295
  # form parameters
284
296
  form_params = opts[:form_params] || {}
@@ -313,6 +325,7 @@ module PulpDebClient
313
325
  # A Package represents a '.deb' binary package. Associated artifacts: Exactly one '.deb' package file.
314
326
  # @param deb_package_href [String]
315
327
  # @param [Hash] opts the optional parameters
328
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
316
329
  # @option opts [Array<String>] :fields A list of fields to include in the response.
317
330
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
318
331
  # @return [DebPackageResponse]
@@ -325,6 +338,7 @@ module PulpDebClient
325
338
  # A Package represents a &#39;.deb&#39; binary package. Associated artifacts: Exactly one &#39;.deb&#39; package file.
326
339
  # @param deb_package_href [String]
327
340
  # @param [Hash] opts the optional parameters
341
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
328
342
  # @option opts [Array<String>] :fields A list of fields to include in the response.
329
343
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
330
344
  # @return [Array<(DebPackageResponse, Integer, Hash)>] DebPackageResponse data, response status code and response headers
@@ -348,6 +362,7 @@ module PulpDebClient
348
362
  header_params = opts[:header_params] || {}
349
363
  # HTTP header 'Accept' (if needed)
350
364
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
365
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
351
366
 
352
367
  # form parameters
353
368
  form_params = opts[:form_params] || {}
@@ -377,5 +392,159 @@ module PulpDebClient
377
392
  end
378
393
  return data, status_code, headers
379
394
  end
395
+
396
+ # Set a label
397
+ # Set a single pulp_label on the object to a specific value or null.
398
+ # @param deb_package_href [String]
399
+ # @param set_label [SetLabel]
400
+ # @param [Hash] opts the optional parameters
401
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
402
+ # @return [SetLabelResponse]
403
+ def set_label(deb_package_href, set_label, opts = {})
404
+ data, _status_code, _headers = set_label_with_http_info(deb_package_href, set_label, opts)
405
+ data
406
+ end
407
+
408
+ # Set a label
409
+ # Set a single pulp_label on the object to a specific value or null.
410
+ # @param deb_package_href [String]
411
+ # @param set_label [SetLabel]
412
+ # @param [Hash] opts the optional parameters
413
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
414
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
415
+ def set_label_with_http_info(deb_package_href, set_label, opts = {})
416
+ if @api_client.config.debugging
417
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.set_label ...'
418
+ end
419
+ # verify the required parameter 'deb_package_href' is set
420
+ if @api_client.config.client_side_validation && deb_package_href.nil?
421
+ fail ArgumentError, "Missing the required parameter 'deb_package_href' when calling ContentPackagesApi.set_label"
422
+ end
423
+ # verify the required parameter 'set_label' is set
424
+ if @api_client.config.client_side_validation && set_label.nil?
425
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackagesApi.set_label"
426
+ end
427
+ # resource path
428
+ local_var_path = '{deb_package_href}set_label/'.sub('{' + 'deb_package_href' + '}', CGI.escape(deb_package_href.to_s).gsub('%2F', '/'))
429
+
430
+ # query parameters
431
+ query_params = opts[:query_params] || {}
432
+
433
+ # header parameters
434
+ header_params = opts[:header_params] || {}
435
+ # HTTP header 'Accept' (if needed)
436
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
437
+ # HTTP header 'Content-Type'
438
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
439
+ if !content_type.nil?
440
+ header_params['Content-Type'] = content_type
441
+ end
442
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
443
+
444
+ # form parameters
445
+ form_params = opts[:form_params] || {}
446
+
447
+ # http body (model)
448
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
449
+
450
+ # return_type
451
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
452
+
453
+ # auth_names
454
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
455
+
456
+ new_options = opts.merge(
457
+ :operation => :"ContentPackagesApi.set_label",
458
+ :header_params => header_params,
459
+ :query_params => query_params,
460
+ :form_params => form_params,
461
+ :body => post_body,
462
+ :auth_names => auth_names,
463
+ :return_type => return_type
464
+ )
465
+
466
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
467
+ if @api_client.config.debugging
468
+ @api_client.config.logger.debug "API called: ContentPackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
469
+ end
470
+ return data, status_code, headers
471
+ end
472
+
473
+ # Unset a label
474
+ # Unset a single pulp_label on the object.
475
+ # @param deb_package_href [String]
476
+ # @param unset_label [UnsetLabel]
477
+ # @param [Hash] opts the optional parameters
478
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
479
+ # @return [UnsetLabelResponse]
480
+ def unset_label(deb_package_href, unset_label, opts = {})
481
+ data, _status_code, _headers = unset_label_with_http_info(deb_package_href, unset_label, opts)
482
+ data
483
+ end
484
+
485
+ # Unset a label
486
+ # Unset a single pulp_label on the object.
487
+ # @param deb_package_href [String]
488
+ # @param unset_label [UnsetLabel]
489
+ # @param [Hash] opts the optional parameters
490
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
491
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
492
+ def unset_label_with_http_info(deb_package_href, unset_label, opts = {})
493
+ if @api_client.config.debugging
494
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.unset_label ...'
495
+ end
496
+ # verify the required parameter 'deb_package_href' is set
497
+ if @api_client.config.client_side_validation && deb_package_href.nil?
498
+ fail ArgumentError, "Missing the required parameter 'deb_package_href' when calling ContentPackagesApi.unset_label"
499
+ end
500
+ # verify the required parameter 'unset_label' is set
501
+ if @api_client.config.client_side_validation && unset_label.nil?
502
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackagesApi.unset_label"
503
+ end
504
+ # resource path
505
+ local_var_path = '{deb_package_href}unset_label/'.sub('{' + 'deb_package_href' + '}', CGI.escape(deb_package_href.to_s).gsub('%2F', '/'))
506
+
507
+ # query parameters
508
+ query_params = opts[:query_params] || {}
509
+
510
+ # header parameters
511
+ header_params = opts[:header_params] || {}
512
+ # HTTP header 'Accept' (if needed)
513
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
514
+ # HTTP header 'Content-Type'
515
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
516
+ if !content_type.nil?
517
+ header_params['Content-Type'] = content_type
518
+ end
519
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
520
+
521
+ # form parameters
522
+ form_params = opts[:form_params] || {}
523
+
524
+ # http body (model)
525
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
526
+
527
+ # return_type
528
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
529
+
530
+ # auth_names
531
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
532
+
533
+ new_options = opts.merge(
534
+ :operation => :"ContentPackagesApi.unset_label",
535
+ :header_params => header_params,
536
+ :query_params => query_params,
537
+ :form_params => form_params,
538
+ :body => post_body,
539
+ :auth_names => auth_names,
540
+ :return_type => return_type
541
+ )
542
+
543
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
544
+ if @api_client.config.debugging
545
+ @api_client.config.logger.debug "API called: ContentPackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
546
+ end
547
+ return data, status_code, headers
548
+ end
380
549
  end
381
550
  end