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 ReleaseFile represents the Release file(s) from a single APT distribution. Associated artifacts: At least one of 'Release' and 'InRelease' file. If the 'Release' file is present, then there may also be a 'Release.gpg' detached signature file for it. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Release' files it needs when creating the publication. It does not make use of ReleaseFile content.
24
24
  # @param deb_release_file [DebReleaseFile]
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 [DebReleaseFileResponse]
27
28
  def create(deb_release_file, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(deb_release_file, opts)
@@ -33,6 +34,7 @@ module PulpDebClient
33
34
  # A ReleaseFile represents the Release file(s) from a single APT distribution. Associated artifacts: At least one of &#39;Release&#39; and &#39;InRelease&#39; file. If the &#39;Release&#39; file is present, then there may also be a &#39;Release.gpg&#39; detached signature file for it. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Release&#39; files it needs when creating the publication. It does not make use of ReleaseFile content.
34
35
  # @param deb_release_file [DebReleaseFile]
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<(DebReleaseFileResponse, Integer, Hash)>] DebReleaseFileResponse data, response status code and response headers
37
39
  def create_with_http_info(deb_release_file, 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 release files
91
94
  # A ReleaseFile represents the Release file(s) from a single APT distribution. Associated artifacts: At least one of 'Release' and 'InRelease' file. If the 'Release' file is present, then there may also be a 'Release.gpg' detached signature file for it. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Release' files it needs when creating the publication. It does not make use of ReleaseFile 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] :codename Filter results where codename matches value
94
98
  # @option opts [Integer] :limit Number of results to return per page.
95
99
  # @option opts [Integer] :offset The initial index from which to return the results.
96
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;components&#x60; - Components * &#x60;-components&#x60; - Components (descending) * &#x60;architectures&#x60; - Architectures * &#x60;-architectures&#x60; - Architectures (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
100
+ # @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;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;components&#x60; - Components * &#x60;-components&#x60; - Components (descending) * &#x60;architectures&#x60; - Architectures * &#x60;-architectures&#x60; - Architectures (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
97
101
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
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] :relative_path Filter results where relative_path matches value
103
108
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -116,14 +121,16 @@ module PulpDebClient
116
121
  # List release files
117
122
  # A ReleaseFile represents the Release file(s) from a single APT distribution. Associated artifacts: At least one of &#39;Release&#39; and &#39;InRelease&#39; file. If the &#39;Release&#39; file is present, then there may also be a &#39;Release.gpg&#39; detached signature file for it. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Release&#39; files it needs when creating the publication. It does not make use of ReleaseFile 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] :codename Filter results where codename matches value
120
126
  # @option opts [Integer] :limit Number of results to return per page.
121
127
  # @option opts [Integer] :offset The initial index from which to return the results.
122
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;components&#x60; - Components * &#x60;-components&#x60; - Components (descending) * &#x60;architectures&#x60; - Architectures * &#x60;-architectures&#x60; - Architectures (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
128
+ # @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;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;components&#x60; - Components * &#x60;-components&#x60; - Components (descending) * &#x60;architectures&#x60; - Architectures * &#x60;-architectures&#x60; - Architectures (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
123
129
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
124
130
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
125
131
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
126
132
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
133
+ # @option opts [String] :pulp_label_select Filter labels by search string
127
134
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
128
135
  # @option opts [String] :relative_path Filter results where relative_path matches value
129
136
  # @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: ContentReleaseFilesApi.list ...'
140
147
  end
141
- allowable_values = ["-architectures", "-artifact_set_sha256", "-codename", "-components", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-suite", "-timestamp_of_interest", "-upstream_id", "architectures", "artifact_set_sha256", "codename", "components", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "suite", "timestamp_of_interest", "upstream_id"]
148
+ allowable_values = ["-architectures", "-artifact_set_sha256", "-codename", "-components", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-suite", "-timestamp_of_interest", "-upstream_id", "architectures", "artifact_set_sha256", "codename", "components", "distribution", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "suite", "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
@@ -155,6 +162,7 @@ module PulpDebClient
155
162
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
156
163
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
157
164
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
165
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
158
166
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
159
167
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
160
168
  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 ReleaseFile represents the Release file(s) from a single APT distribution. Associated artifacts: At least one of 'Release' and 'InRelease' file. If the 'Release' file is present, then there may also be a 'Release.gpg' detached signature file for it. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any 'Release' files it needs when creating the publication. It does not make use of ReleaseFile content.
204
213
  # @param deb_release_file_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 [DebReleaseFileResponse]
@@ -215,6 +225,7 @@ module PulpDebClient
215
225
  # A ReleaseFile represents the Release file(s) from a single APT distribution. Associated artifacts: At least one of &#39;Release&#39; and &#39;InRelease&#39; file. If the &#39;Release&#39; file is present, then there may also be a &#39;Release.gpg&#39; detached signature file for it. Note: The verbatim publisher will republish all associated artifacts, while the APT publisher (both simple and structured mode) will generate any &#39;Release&#39; files it needs when creating the publication. It does not make use of ReleaseFile content.
216
226
  # @param deb_release_file_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<(DebReleaseFileResponse, Integer, Hash)>] DebReleaseFileResponse 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_release_file_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_release_file_href, set_label, opts = {})
291
+ data, _status_code, _headers = set_label_with_http_info(deb_release_file_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_release_file_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_release_file_href, set_label, opts = {})
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.set_label ...'
305
+ end
306
+ # verify the required parameter 'deb_release_file_href' is set
307
+ if @api_client.config.client_side_validation && deb_release_file_href.nil?
308
+ fail ArgumentError, "Missing the required parameter 'deb_release_file_href' when calling ContentReleaseFilesApi.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 ContentReleaseFilesApi.set_label"
313
+ end
314
+ # resource path
315
+ local_var_path = '{deb_release_file_href}set_label/'.sub('{' + 'deb_release_file_href' + '}', CGI.escape(deb_release_file_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 => :"ContentReleaseFilesApi.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: ContentReleaseFilesApi#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_release_file_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_release_file_href, unset_label, opts = {})
368
+ data, _status_code, _headers = unset_label_with_http_info(deb_release_file_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_release_file_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_release_file_href, unset_label, opts = {})
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.unset_label ...'
382
+ end
383
+ # verify the required parameter 'deb_release_file_href' is set
384
+ if @api_client.config.client_side_validation && deb_release_file_href.nil?
385
+ fail ArgumentError, "Missing the required parameter 'deb_release_file_href' when calling ContentReleaseFilesApi.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 ContentReleaseFilesApi.unset_label"
390
+ end
391
+ # resource path
392
+ local_var_path = '{deb_release_file_href}unset_label/'.sub('{' + 'deb_release_file_href' + '}', CGI.escape(deb_release_file_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 => :"ContentReleaseFilesApi.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: ContentReleaseFilesApi#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
@@ -23,6 +23,7 @@ module PulpDebClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param deb_release [DebRelease]
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 [AsyncOperationResponse]
27
28
  def create(deb_release, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(deb_release, opts)
@@ -33,6 +34,7 @@ module PulpDebClient
33
34
  # Trigger an asynchronous task to create content,optionally create new repository version.
34
35
  # @param deb_release [DebRelease]
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<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
39
  def create_with_http_info(deb_release, 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,18 +93,20 @@ module PulpDebClient
90
93
  # List releases
91
94
  # The Release contains release file fields, that are not relevant to the APT repo structure. Associated artifacts: None; contains only metadata. By non-structure relevant release file fields, we mean anything other than the Components and Architectures fields. These are handled by their own models and are not part of this model. Note that the distribution field is part of this model, but is not added to any published release files. The \"distribution\" is defined as the path between 'dists/' and some 'Release' file. As such, it encodes the path to the relevant release file within the APT repository. It is often (but not always) equal to the \"codename\" or the \"suite\".
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] :codename Filter results where codename matches value
94
98
  # @option opts [String] :distribution Filter results where distribution matches value
95
99
  # @option opts [String] :label Filter results where label matches value
96
100
  # @option opts [Integer] :limit Number of results to return per page.
97
101
  # @option opts [Integer] :offset The initial index from which to return the results.
98
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;label&#x60; - Label * &#x60;-label&#x60; - Label (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
102
+ # @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;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;label&#x60; - Label * &#x60;-label&#x60; - Label (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
99
103
  # @option opts [String] :origin Filter results where origin matches value
100
104
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
101
105
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
102
106
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
103
107
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
104
108
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
109
+ # @option opts [String] :pulp_label_select Filter labels by search string
105
110
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
106
111
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
107
112
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -119,18 +124,20 @@ module PulpDebClient
119
124
  # List releases
120
125
  # The Release contains release file fields, that are not relevant to the APT repo structure. Associated artifacts: None; contains only metadata. By non-structure relevant release file fields, we mean anything other than the Components and Architectures fields. These are handled by their own models and are not part of this model. Note that the distribution field is part of this model, but is not added to any published release files. The \&quot;distribution\&quot; is defined as the path between &#39;dists/&#39; and some &#39;Release&#39; file. As such, it encodes the path to the relevant release file within the APT repository. It is often (but not always) equal to the \&quot;codename\&quot; or the \&quot;suite\&quot;.
121
126
  # @param [Hash] opts the optional parameters
127
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
122
128
  # @option opts [String] :codename Filter results where codename matches value
123
129
  # @option opts [String] :distribution Filter results where distribution matches value
124
130
  # @option opts [String] :label Filter results where label matches value
125
131
  # @option opts [Integer] :limit Number of results to return per page.
126
132
  # @option opts [Integer] :offset The initial index from which to return the results.
127
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;label&#x60; - Label * &#x60;-label&#x60; - Label (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
133
+ # @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;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;label&#x60; - Label * &#x60;-label&#x60; - Label (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
128
134
  # @option opts [String] :origin Filter results where origin matches value
129
135
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
130
136
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
131
137
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
132
138
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
133
139
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
140
+ # @option opts [String] :pulp_label_select Filter labels by search string
134
141
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
135
142
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
136
143
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -144,7 +151,7 @@ module PulpDebClient
144
151
  if @api_client.config.debugging
145
152
  @api_client.config.logger.debug 'Calling API: ContentReleasesApi.list ...'
146
153
  end
147
- allowable_values = ["-codename", "-description", "-distribution", "-label", "-origin", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "-version", "codename", "description", "distribution", "label", "origin", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id", "version"]
154
+ allowable_values = ["-codename", "-description", "-distribution", "-label", "-origin", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "-version", "codename", "description", "distribution", "label", "origin", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id", "version"]
148
155
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
149
156
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
150
157
  end
@@ -165,6 +172,7 @@ module PulpDebClient
165
172
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
166
173
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
167
174
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
175
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
168
176
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
169
177
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
170
178
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -178,6 +186,7 @@ module PulpDebClient
178
186
  header_params = opts[:header_params] || {}
179
187
  # HTTP header 'Accept' (if needed)
180
188
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
189
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
181
190
 
182
191
  # form parameters
183
192
  form_params = opts[:form_params] || {}
@@ -212,6 +221,7 @@ module PulpDebClient
212
221
  # The Release contains release file fields, that are not relevant to the APT repo structure. Associated artifacts: None; contains only metadata. By non-structure relevant release file fields, we mean anything other than the Components and Architectures fields. These are handled by their own models and are not part of this model. Note that the distribution field is part of this model, but is not added to any published release files. The \"distribution\" is defined as the path between 'dists/' and some 'Release' file. As such, it encodes the path to the relevant release file within the APT repository. It is often (but not always) equal to the \"codename\" or the \"suite\".
213
222
  # @param deb_release_href [String]
214
223
  # @param [Hash] opts the optional parameters
224
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
215
225
  # @option opts [Array<String>] :fields A list of fields to include in the response.
216
226
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
217
227
  # @return [DebReleaseResponse]
@@ -224,6 +234,7 @@ module PulpDebClient
224
234
  # The Release contains release file fields, that are not relevant to the APT repo structure. Associated artifacts: None; contains only metadata. By non-structure relevant release file fields, we mean anything other than the Components and Architectures fields. These are handled by their own models and are not part of this model. Note that the distribution field is part of this model, but is not added to any published release files. The \&quot;distribution\&quot; is defined as the path between &#39;dists/&#39; and some &#39;Release&#39; file. As such, it encodes the path to the relevant release file within the APT repository. It is often (but not always) equal to the \&quot;codename\&quot; or the \&quot;suite\&quot;.
225
235
  # @param deb_release_href [String]
226
236
  # @param [Hash] opts the optional parameters
237
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
227
238
  # @option opts [Array<String>] :fields A list of fields to include in the response.
228
239
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
229
240
  # @return [Array<(DebReleaseResponse, Integer, Hash)>] DebReleaseResponse data, response status code and response headers
@@ -247,6 +258,7 @@ module PulpDebClient
247
258
  header_params = opts[:header_params] || {}
248
259
  # HTTP header 'Accept' (if needed)
249
260
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
261
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
250
262
 
251
263
  # form parameters
252
264
  form_params = opts[:form_params] || {}
@@ -276,5 +288,159 @@ module PulpDebClient
276
288
  end
277
289
  return data, status_code, headers
278
290
  end
291
+
292
+ # Set a label
293
+ # Set a single pulp_label on the object to a specific value or null.
294
+ # @param deb_release_href [String]
295
+ # @param set_label [SetLabel]
296
+ # @param [Hash] opts the optional parameters
297
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
298
+ # @return [SetLabelResponse]
299
+ def set_label(deb_release_href, set_label, opts = {})
300
+ data, _status_code, _headers = set_label_with_http_info(deb_release_href, set_label, opts)
301
+ data
302
+ end
303
+
304
+ # Set a label
305
+ # Set a single pulp_label on the object to a specific value or null.
306
+ # @param deb_release_href [String]
307
+ # @param set_label [SetLabel]
308
+ # @param [Hash] opts the optional parameters
309
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
310
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
311
+ def set_label_with_http_info(deb_release_href, set_label, opts = {})
312
+ if @api_client.config.debugging
313
+ @api_client.config.logger.debug 'Calling API: ContentReleasesApi.set_label ...'
314
+ end
315
+ # verify the required parameter 'deb_release_href' is set
316
+ if @api_client.config.client_side_validation && deb_release_href.nil?
317
+ fail ArgumentError, "Missing the required parameter 'deb_release_href' when calling ContentReleasesApi.set_label"
318
+ end
319
+ # verify the required parameter 'set_label' is set
320
+ if @api_client.config.client_side_validation && set_label.nil?
321
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentReleasesApi.set_label"
322
+ end
323
+ # resource path
324
+ local_var_path = '{deb_release_href}set_label/'.sub('{' + 'deb_release_href' + '}', CGI.escape(deb_release_href.to_s).gsub('%2F', '/'))
325
+
326
+ # query parameters
327
+ query_params = opts[:query_params] || {}
328
+
329
+ # header parameters
330
+ header_params = opts[:header_params] || {}
331
+ # HTTP header 'Accept' (if needed)
332
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
333
+ # HTTP header 'Content-Type'
334
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
335
+ if !content_type.nil?
336
+ header_params['Content-Type'] = content_type
337
+ end
338
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
339
+
340
+ # form parameters
341
+ form_params = opts[:form_params] || {}
342
+
343
+ # http body (model)
344
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
345
+
346
+ # return_type
347
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
348
+
349
+ # auth_names
350
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
351
+
352
+ new_options = opts.merge(
353
+ :operation => :"ContentReleasesApi.set_label",
354
+ :header_params => header_params,
355
+ :query_params => query_params,
356
+ :form_params => form_params,
357
+ :body => post_body,
358
+ :auth_names => auth_names,
359
+ :return_type => return_type
360
+ )
361
+
362
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug "API called: ContentReleasesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
365
+ end
366
+ return data, status_code, headers
367
+ end
368
+
369
+ # Unset a label
370
+ # Unset a single pulp_label on the object.
371
+ # @param deb_release_href [String]
372
+ # @param unset_label [UnsetLabel]
373
+ # @param [Hash] opts the optional parameters
374
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
375
+ # @return [UnsetLabelResponse]
376
+ def unset_label(deb_release_href, unset_label, opts = {})
377
+ data, _status_code, _headers = unset_label_with_http_info(deb_release_href, unset_label, opts)
378
+ data
379
+ end
380
+
381
+ # Unset a label
382
+ # Unset a single pulp_label on the object.
383
+ # @param deb_release_href [String]
384
+ # @param unset_label [UnsetLabel]
385
+ # @param [Hash] opts the optional parameters
386
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
387
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
388
+ def unset_label_with_http_info(deb_release_href, unset_label, opts = {})
389
+ if @api_client.config.debugging
390
+ @api_client.config.logger.debug 'Calling API: ContentReleasesApi.unset_label ...'
391
+ end
392
+ # verify the required parameter 'deb_release_href' is set
393
+ if @api_client.config.client_side_validation && deb_release_href.nil?
394
+ fail ArgumentError, "Missing the required parameter 'deb_release_href' when calling ContentReleasesApi.unset_label"
395
+ end
396
+ # verify the required parameter 'unset_label' is set
397
+ if @api_client.config.client_side_validation && unset_label.nil?
398
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentReleasesApi.unset_label"
399
+ end
400
+ # resource path
401
+ local_var_path = '{deb_release_href}unset_label/'.sub('{' + 'deb_release_href' + '}', CGI.escape(deb_release_href.to_s).gsub('%2F', '/'))
402
+
403
+ # query parameters
404
+ query_params = opts[:query_params] || {}
405
+
406
+ # header parameters
407
+ header_params = opts[:header_params] || {}
408
+ # HTTP header 'Accept' (if needed)
409
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
410
+ # HTTP header 'Content-Type'
411
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
412
+ if !content_type.nil?
413
+ header_params['Content-Type'] = content_type
414
+ end
415
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
416
+
417
+ # form parameters
418
+ form_params = opts[:form_params] || {}
419
+
420
+ # http body (model)
421
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
422
+
423
+ # return_type
424
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
425
+
426
+ # auth_names
427
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
428
+
429
+ new_options = opts.merge(
430
+ :operation => :"ContentReleasesApi.unset_label",
431
+ :header_params => header_params,
432
+ :query_params => query_params,
433
+ :form_params => form_params,
434
+ :body => post_body,
435
+ :auth_names => auth_names,
436
+ :return_type => return_type
437
+ )
438
+
439
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug "API called: ContentReleasesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
442
+ end
443
+ return data, status_code, headers
444
+ end
279
445
  end
280
446
  end