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
@@ -22,7 +22,9 @@ module PulpDebClient
22
22
  # Create an installer 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.
@@ -37,7 +39,9 @@ module PulpDebClient
37
39
  # Create an installer package
38
40
  # Trigger an asynchronous task to create content,optionally create new repository version.
39
41
  # @param [Hash] opts the optional parameters
42
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
43
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
44
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
41
45
  # @option opts [String] :artifact Artifact file representing the physical content
42
46
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
43
47
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -71,10 +75,12 @@ module PulpDebClient
71
75
  if !content_type.nil?
72
76
  header_params['Content-Type'] = content_type
73
77
  end
78
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
74
79
 
75
80
  # form parameters
76
81
  form_params = opts[:form_params] || {}
77
82
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
83
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
78
84
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
79
85
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
80
86
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
@@ -110,6 +116,7 @@ module PulpDebClient
110
116
  # List installer packages
111
117
  # An InstallerPackage represents a '.udeb' installer package. Associated artifacts: Exactly one '.udeb' installer package file. Note that installer packages are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) will not include these packages.
112
118
  # @param [Hash] opts the optional parameters
119
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
113
120
  # @option opts [String] :architecture Filter results where architecture matches value
114
121
  # @option opts [String] :auto_built_package Filter results where auto_built_package matches value
115
122
  # @option opts [Boolean] :build_essential Filter results where build_essential matches value * &#x60;True&#x60; - yes * &#x60;False&#x60; - no
@@ -120,7 +127,7 @@ module PulpDebClient
120
127
  # @option opts [String] :maintainer Filter results where maintainer matches value
121
128
  # @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
122
129
  # @option opts [Integer] :offset The initial index from which to return the results.
123
- # @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)
130
+ # @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)
124
131
  # @option opts [String] :origin Filter results where origin matches value
125
132
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
126
133
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
@@ -129,6 +136,7 @@ module PulpDebClient
129
136
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
130
137
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
131
138
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
139
+ # @option opts [String] :pulp_label_select Filter labels by search string
132
140
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
133
141
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
134
142
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -149,6 +157,7 @@ module PulpDebClient
149
157
  # List installer packages
150
158
  # An InstallerPackage represents a &#39;.udeb&#39; installer package. Associated artifacts: Exactly one &#39;.udeb&#39; installer package file. Note that installer packages are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) will not include these packages.
151
159
  # @param [Hash] opts the optional parameters
160
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
152
161
  # @option opts [String] :architecture Filter results where architecture matches value
153
162
  # @option opts [String] :auto_built_package Filter results where auto_built_package matches value
154
163
  # @option opts [Boolean] :build_essential Filter results where build_essential matches value * &#x60;True&#x60; - yes * &#x60;False&#x60; - no
@@ -159,7 +168,7 @@ module PulpDebClient
159
168
  # @option opts [String] :maintainer Filter results where maintainer matches value
160
169
  # @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
161
170
  # @option opts [Integer] :offset The initial index from which to return the results.
162
- # @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)
171
+ # @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)
163
172
  # @option opts [String] :origin Filter results where origin matches value
164
173
  # @option opts [String] :original_maintainer Filter results where original_maintainer matches value
165
174
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
@@ -168,6 +177,7 @@ module PulpDebClient
168
177
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
169
178
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
170
179
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
180
+ # @option opts [String] :pulp_label_select Filter labels by search string
171
181
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
172
182
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
173
183
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -188,7 +198,7 @@ module PulpDebClient
188
198
  if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
189
199
  fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
190
200
  end
191
- 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"]
201
+ 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"]
192
202
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
193
203
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
194
204
  end
@@ -216,6 +226,7 @@ module PulpDebClient
216
226
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
217
227
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
218
228
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
229
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
219
230
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
220
231
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
221
232
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -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] || {}
@@ -266,6 +278,7 @@ module PulpDebClient
266
278
  # An InstallerPackage represents a '.udeb' installer package. Associated artifacts: Exactly one '.udeb' installer package file. Note that installer packages are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) will not include these packages.
267
279
  # @param deb_installer_package_href [String]
268
280
  # @param [Hash] opts the optional parameters
281
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
269
282
  # @option opts [Array<String>] :fields A list of fields to include in the response.
270
283
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
271
284
  # @return [DebInstallerPackageResponse]
@@ -278,6 +291,7 @@ module PulpDebClient
278
291
  # An InstallerPackage represents a &#39;.udeb&#39; installer package. Associated artifacts: Exactly one &#39;.udeb&#39; installer package file. Note that installer packages are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) will not include these packages.
279
292
  # @param deb_installer_package_href [String]
280
293
  # @param [Hash] opts the optional parameters
294
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
281
295
  # @option opts [Array<String>] :fields A list of fields to include in the response.
282
296
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
283
297
  # @return [Array<(DebInstallerPackageResponse, Integer, Hash)>] DebInstallerPackageResponse data, response status code and response headers
@@ -301,6 +315,7 @@ module PulpDebClient
301
315
  header_params = opts[:header_params] || {}
302
316
  # HTTP header 'Accept' (if needed)
303
317
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
318
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
304
319
 
305
320
  # form parameters
306
321
  form_params = opts[:form_params] || {}
@@ -330,5 +345,159 @@ module PulpDebClient
330
345
  end
331
346
  return data, status_code, headers
332
347
  end
348
+
349
+ # Set a label
350
+ # Set a single pulp_label on the object to a specific value or null.
351
+ # @param deb_installer_package_href [String]
352
+ # @param set_label [SetLabel]
353
+ # @param [Hash] opts the optional parameters
354
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
355
+ # @return [SetLabelResponse]
356
+ def set_label(deb_installer_package_href, set_label, opts = {})
357
+ data, _status_code, _headers = set_label_with_http_info(deb_installer_package_href, set_label, opts)
358
+ data
359
+ end
360
+
361
+ # Set a label
362
+ # Set a single pulp_label on the object to a specific value or null.
363
+ # @param deb_installer_package_href [String]
364
+ # @param set_label [SetLabel]
365
+ # @param [Hash] opts the optional parameters
366
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
367
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
368
+ def set_label_with_http_info(deb_installer_package_href, set_label, opts = {})
369
+ if @api_client.config.debugging
370
+ @api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.set_label ...'
371
+ end
372
+ # verify the required parameter 'deb_installer_package_href' is set
373
+ if @api_client.config.client_side_validation && deb_installer_package_href.nil?
374
+ fail ArgumentError, "Missing the required parameter 'deb_installer_package_href' when calling ContentInstallerPackagesApi.set_label"
375
+ end
376
+ # verify the required parameter 'set_label' is set
377
+ if @api_client.config.client_side_validation && set_label.nil?
378
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentInstallerPackagesApi.set_label"
379
+ end
380
+ # resource path
381
+ local_var_path = '{deb_installer_package_href}set_label/'.sub('{' + 'deb_installer_package_href' + '}', CGI.escape(deb_installer_package_href.to_s).gsub('%2F', '/'))
382
+
383
+ # query parameters
384
+ query_params = opts[:query_params] || {}
385
+
386
+ # header parameters
387
+ header_params = opts[:header_params] || {}
388
+ # HTTP header 'Accept' (if needed)
389
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
390
+ # HTTP header 'Content-Type'
391
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
392
+ if !content_type.nil?
393
+ header_params['Content-Type'] = content_type
394
+ end
395
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
396
+
397
+ # form parameters
398
+ form_params = opts[:form_params] || {}
399
+
400
+ # http body (model)
401
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
402
+
403
+ # return_type
404
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
405
+
406
+ # auth_names
407
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
408
+
409
+ new_options = opts.merge(
410
+ :operation => :"ContentInstallerPackagesApi.set_label",
411
+ :header_params => header_params,
412
+ :query_params => query_params,
413
+ :form_params => form_params,
414
+ :body => post_body,
415
+ :auth_names => auth_names,
416
+ :return_type => return_type
417
+ )
418
+
419
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug "API called: ContentInstallerPackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
422
+ end
423
+ return data, status_code, headers
424
+ end
425
+
426
+ # Unset a label
427
+ # Unset a single pulp_label on the object.
428
+ # @param deb_installer_package_href [String]
429
+ # @param unset_label [UnsetLabel]
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
432
+ # @return [UnsetLabelResponse]
433
+ def unset_label(deb_installer_package_href, unset_label, opts = {})
434
+ data, _status_code, _headers = unset_label_with_http_info(deb_installer_package_href, unset_label, opts)
435
+ data
436
+ end
437
+
438
+ # Unset a label
439
+ # Unset a single pulp_label on the object.
440
+ # @param deb_installer_package_href [String]
441
+ # @param unset_label [UnsetLabel]
442
+ # @param [Hash] opts the optional parameters
443
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
444
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
445
+ def unset_label_with_http_info(deb_installer_package_href, unset_label, opts = {})
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.unset_label ...'
448
+ end
449
+ # verify the required parameter 'deb_installer_package_href' is set
450
+ if @api_client.config.client_side_validation && deb_installer_package_href.nil?
451
+ fail ArgumentError, "Missing the required parameter 'deb_installer_package_href' when calling ContentInstallerPackagesApi.unset_label"
452
+ end
453
+ # verify the required parameter 'unset_label' is set
454
+ if @api_client.config.client_side_validation && unset_label.nil?
455
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentInstallerPackagesApi.unset_label"
456
+ end
457
+ # resource path
458
+ local_var_path = '{deb_installer_package_href}unset_label/'.sub('{' + 'deb_installer_package_href' + '}', CGI.escape(deb_installer_package_href.to_s).gsub('%2F', '/'))
459
+
460
+ # query parameters
461
+ query_params = opts[:query_params] || {}
462
+
463
+ # header parameters
464
+ header_params = opts[:header_params] || {}
465
+ # HTTP header 'Accept' (if needed)
466
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
467
+ # HTTP header 'Content-Type'
468
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
469
+ if !content_type.nil?
470
+ header_params['Content-Type'] = content_type
471
+ end
472
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
473
+
474
+ # form parameters
475
+ form_params = opts[:form_params] || {}
476
+
477
+ # http body (model)
478
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
479
+
480
+ # return_type
481
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
482
+
483
+ # auth_names
484
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
485
+
486
+ new_options = opts.merge(
487
+ :operation => :"ContentInstallerPackagesApi.unset_label",
488
+ :header_params => header_params,
489
+ :query_params => query_params,
490
+ :form_params => form_params,
491
+ :body => post_body,
492
+ :auth_names => auth_names,
493
+ :return_type => return_type
494
+ )
495
+
496
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
497
+ if @api_client.config.debugging
498
+ @api_client.config.logger.debug "API called: ContentInstallerPackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
499
+ end
500
+ return data, status_code, headers
501
+ end
333
502
  end
334
503
  end
@@ -23,6 +23,7 @@ module PulpDebClient
23
23
  # A PackageIndex represents the package indices of a single component-architecture combination. Associated artifacts: Exactly one 'Packages' file. May optionally include one or more of 'Packages.gz', 'Packages.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Packages' files it needs when creating the publication. It does not make use of PackageIndex content.
24
24
  # @param deb_package_index [DebPackageIndex]
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 [DebPackageIndexResponse]
27
28
  def create(deb_package_index, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(deb_package_index, opts)
@@ -33,6 +34,7 @@ module PulpDebClient
33
34
  # A PackageIndex represents the package indices of a single component-architecture combination. Associated artifacts: Exactly one &#39;Packages&#39; file. May optionally include one or more of &#39;Packages.gz&#39;, &#39;Packages.xz&#39;, &#39;Release&#39;. If included, the &#39;Release&#39; file is a legacy per-component-and-architecture Release file. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Packages&#39; files it needs when creating the publication. It does not make use of PackageIndex content.
34
35
  # @param deb_package_index [DebPackageIndex]
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<(DebPackageIndexResponse, Integer, Hash)>] DebPackageIndexResponse data, response status code and response headers
37
39
  def create_with_http_info(deb_package_index, 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,15 +93,17 @@ module PulpDebClient
90
93
  # List PackageIndices
91
94
  # A PackageIndex represents the package indices of a single component-architecture combination. Associated artifacts: Exactly one 'Packages' file. May optionally include one or more of 'Packages.gz', 'Packages.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Packages' files it needs when creating the publication. It does not make use of PackageIndex content.
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 [String] :architecture Filter results where architecture matches value
94
98
  # @option opts [String] :component Filter results where component matches value
95
99
  # @option opts [Integer] :limit Number of results to return per page.
96
100
  # @option opts [Integer] :offset The initial index from which to return the results.
97
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
101
+ # @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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
98
102
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
99
103
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
100
104
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
101
105
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
106
+ # @option opts [String] :pulp_label_select Filter labels by search string
102
107
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
103
108
  # @option opts [String] :relative_path Filter results where relative_path matches value
104
109
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -116,15 +121,17 @@ module PulpDebClient
116
121
  # List PackageIndices
117
122
  # A PackageIndex represents the package indices of a single component-architecture combination. Associated artifacts: Exactly one &#39;Packages&#39; file. May optionally include one or more of &#39;Packages.gz&#39;, &#39;Packages.xz&#39;, &#39;Release&#39;. If included, the &#39;Release&#39; file is a legacy per-component-and-architecture Release file. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Packages&#39; files it needs when creating the publication. It does not make use of PackageIndex content.
118
123
  # @param [Hash] opts the optional parameters
124
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
119
125
  # @option opts [String] :architecture Filter results where architecture matches value
120
126
  # @option opts [String] :component Filter results where component matches value
121
127
  # @option opts [Integer] :limit Number of results to return per page.
122
128
  # @option opts [Integer] :offset The initial index from which to return the results.
123
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
129
+ # @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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
124
130
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
125
131
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
126
132
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
127
133
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
134
+ # @option opts [String] :pulp_label_select Filter labels by search string
128
135
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
129
136
  # @option opts [String] :relative_path Filter results where relative_path matches value
130
137
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -138,7 +145,7 @@ module PulpDebClient
138
145
  if @api_client.config.debugging
139
146
  @api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.list ...'
140
147
  end
141
- allowable_values = ["-architecture", "-artifact_set_sha256", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "artifact_set_sha256", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
148
+ allowable_values = ["-architecture", "-artifact_set_sha256", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "artifact_set_sha256", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
142
149
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
143
150
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
144
151
  end
@@ -156,6 +163,7 @@ module PulpDebClient
156
163
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
157
164
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
158
165
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
166
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
159
167
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
160
168
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
161
169
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -169,6 +177,7 @@ module PulpDebClient
169
177
  header_params = opts[:header_params] || {}
170
178
  # HTTP header 'Accept' (if needed)
171
179
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
180
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
172
181
 
173
182
  # form parameters
174
183
  form_params = opts[:form_params] || {}
@@ -203,6 +212,7 @@ module PulpDebClient
203
212
  # A PackageIndex represents the package indices of a single component-architecture combination. Associated artifacts: Exactly one 'Packages' file. May optionally include one or more of 'Packages.gz', 'Packages.xz', 'Release'. If included, the 'Release' file is a legacy per-component-and-architecture Release file. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Packages' files it needs when creating the publication. It does not make use of PackageIndex content.
204
213
  # @param deb_package_index_href [String]
205
214
  # @param [Hash] opts the optional parameters
215
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
206
216
  # @option opts [Array<String>] :fields A list of fields to include in the response.
207
217
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
208
218
  # @return [DebPackageIndexResponse]
@@ -215,6 +225,7 @@ module PulpDebClient
215
225
  # A PackageIndex represents the package indices of a single component-architecture combination. Associated artifacts: Exactly one &#39;Packages&#39; file. May optionally include one or more of &#39;Packages.gz&#39;, &#39;Packages.xz&#39;, &#39;Release&#39;. If included, the &#39;Release&#39; file is a legacy per-component-and-architecture Release file. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Packages&#39; files it needs when creating the publication. It does not make use of PackageIndex content.
216
226
  # @param deb_package_index_href [String]
217
227
  # @param [Hash] opts the optional parameters
228
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
218
229
  # @option opts [Array<String>] :fields A list of fields to include in the response.
219
230
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
220
231
  # @return [Array<(DebPackageIndexResponse, Integer, Hash)>] DebPackageIndexResponse data, response status code and response headers
@@ -238,6 +249,7 @@ module PulpDebClient
238
249
  header_params = opts[:header_params] || {}
239
250
  # HTTP header 'Accept' (if needed)
240
251
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
252
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
241
253
 
242
254
  # form parameters
243
255
  form_params = opts[:form_params] || {}
@@ -267,5 +279,159 @@ module PulpDebClient
267
279
  end
268
280
  return data, status_code, headers
269
281
  end
282
+
283
+ # Set a label
284
+ # Set a single pulp_label on the object to a specific value or null.
285
+ # @param deb_package_index_href [String]
286
+ # @param set_label [SetLabel]
287
+ # @param [Hash] opts the optional parameters
288
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
289
+ # @return [SetLabelResponse]
290
+ def set_label(deb_package_index_href, set_label, opts = {})
291
+ data, _status_code, _headers = set_label_with_http_info(deb_package_index_href, set_label, opts)
292
+ data
293
+ end
294
+
295
+ # Set a label
296
+ # Set a single pulp_label on the object to a specific value or null.
297
+ # @param deb_package_index_href [String]
298
+ # @param set_label [SetLabel]
299
+ # @param [Hash] opts the optional parameters
300
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
301
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
302
+ def set_label_with_http_info(deb_package_index_href, set_label, opts = {})
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.set_label ...'
305
+ end
306
+ # verify the required parameter 'deb_package_index_href' is set
307
+ if @api_client.config.client_side_validation && deb_package_index_href.nil?
308
+ fail ArgumentError, "Missing the required parameter 'deb_package_index_href' when calling ContentPackageIndicesApi.set_label"
309
+ end
310
+ # verify the required parameter 'set_label' is set
311
+ if @api_client.config.client_side_validation && set_label.nil?
312
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackageIndicesApi.set_label"
313
+ end
314
+ # resource path
315
+ local_var_path = '{deb_package_index_href}set_label/'.sub('{' + 'deb_package_index_href' + '}', CGI.escape(deb_package_index_href.to_s).gsub('%2F', '/'))
316
+
317
+ # query parameters
318
+ query_params = opts[:query_params] || {}
319
+
320
+ # header parameters
321
+ header_params = opts[:header_params] || {}
322
+ # HTTP header 'Accept' (if needed)
323
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
324
+ # HTTP header 'Content-Type'
325
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
326
+ if !content_type.nil?
327
+ header_params['Content-Type'] = content_type
328
+ end
329
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
330
+
331
+ # form parameters
332
+ form_params = opts[:form_params] || {}
333
+
334
+ # http body (model)
335
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
336
+
337
+ # return_type
338
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
339
+
340
+ # auth_names
341
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
342
+
343
+ new_options = opts.merge(
344
+ :operation => :"ContentPackageIndicesApi.set_label",
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => return_type
351
+ )
352
+
353
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: ContentPackageIndicesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
359
+
360
+ # Unset a label
361
+ # Unset a single pulp_label on the object.
362
+ # @param deb_package_index_href [String]
363
+ # @param unset_label [UnsetLabel]
364
+ # @param [Hash] opts the optional parameters
365
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
366
+ # @return [UnsetLabelResponse]
367
+ def unset_label(deb_package_index_href, unset_label, opts = {})
368
+ data, _status_code, _headers = unset_label_with_http_info(deb_package_index_href, unset_label, opts)
369
+ data
370
+ end
371
+
372
+ # Unset a label
373
+ # Unset a single pulp_label on the object.
374
+ # @param deb_package_index_href [String]
375
+ # @param unset_label [UnsetLabel]
376
+ # @param [Hash] opts the optional parameters
377
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
378
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
379
+ def unset_label_with_http_info(deb_package_index_href, unset_label, opts = {})
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.unset_label ...'
382
+ end
383
+ # verify the required parameter 'deb_package_index_href' is set
384
+ if @api_client.config.client_side_validation && deb_package_index_href.nil?
385
+ fail ArgumentError, "Missing the required parameter 'deb_package_index_href' when calling ContentPackageIndicesApi.unset_label"
386
+ end
387
+ # verify the required parameter 'unset_label' is set
388
+ if @api_client.config.client_side_validation && unset_label.nil?
389
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackageIndicesApi.unset_label"
390
+ end
391
+ # resource path
392
+ local_var_path = '{deb_package_index_href}unset_label/'.sub('{' + 'deb_package_index_href' + '}', CGI.escape(deb_package_index_href.to_s).gsub('%2F', '/'))
393
+
394
+ # query parameters
395
+ query_params = opts[:query_params] || {}
396
+
397
+ # header parameters
398
+ header_params = opts[:header_params] || {}
399
+ # HTTP header 'Accept' (if needed)
400
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
401
+ # HTTP header 'Content-Type'
402
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
403
+ if !content_type.nil?
404
+ header_params['Content-Type'] = content_type
405
+ end
406
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
407
+
408
+ # form parameters
409
+ form_params = opts[:form_params] || {}
410
+
411
+ # http body (model)
412
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
413
+
414
+ # return_type
415
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
416
+
417
+ # auth_names
418
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
419
+
420
+ new_options = opts.merge(
421
+ :operation => :"ContentPackageIndicesApi.unset_label",
422
+ :header_params => header_params,
423
+ :query_params => query_params,
424
+ :form_params => form_params,
425
+ :body => post_body,
426
+ :auth_names => auth_names,
427
+ :return_type => return_type
428
+ )
429
+
430
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
431
+ if @api_client.config.debugging
432
+ @api_client.config.logger.debug "API called: ContentPackageIndicesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
433
+ end
434
+ return data, status_code, headers
435
+ end
270
436
  end
271
437
  end