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,7 +23,9 @@ module PulpDebClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
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
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
28
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
27
29
  # @option opts [String] :artifact Artifact file representing the physical content
28
30
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
31
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -38,7 +40,9 @@ module PulpDebClient
38
40
  # Trigger an asynchronous task to create content,optionally create new repository version.
39
41
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
40
42
  # @param [Hash] opts the optional parameters
43
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
41
44
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
45
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
46
  # @option opts [String] :artifact Artifact file representing the physical content
43
47
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
44
48
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -75,11 +79,13 @@ module PulpDebClient
75
79
  if !content_type.nil?
76
80
  header_params['Content-Type'] = content_type
77
81
  end
82
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
78
83
 
79
84
  # form parameters
80
85
  form_params = opts[:form_params] || {}
81
86
  form_params['relative_path'] = relative_path
82
87
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
88
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
83
89
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
84
90
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
85
91
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
@@ -114,13 +120,15 @@ module PulpDebClient
114
120
  # List generic contents
115
121
  # GenericContent is a catch all category for storing files not covered by any other type. Associated artifacts: Exactly one arbitrary file that does not match any other type. This is needed to store arbitrary files for use with the verbatim publisher. If you are not using the verbatim publisher, you may ignore this type.
116
122
  # @param [Hash] opts the optional parameters
123
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
117
124
  # @option opts [Integer] :limit Number of results to return per page.
118
125
  # @option opts [Integer] :offset The initial index from which to return the results.
119
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
126
+ # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
120
127
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
121
128
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
122
129
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
123
130
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
131
+ # @option opts [String] :pulp_label_select Filter labels by search string
124
132
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
125
133
  # @option opts [String] :relative_path Filter results where relative_path matches value
126
134
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -138,13 +146,15 @@ module PulpDebClient
138
146
  # List generic contents
139
147
  # GenericContent is a catch all category for storing files not covered by any other type. Associated artifacts: Exactly one arbitrary file that does not match any other type. This is needed to store arbitrary files for use with the verbatim publisher. If you are not using the verbatim publisher, you may ignore this type.
140
148
  # @param [Hash] opts the optional parameters
149
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
141
150
  # @option opts [Integer] :limit Number of results to return per page.
142
151
  # @option opts [Integer] :offset The initial index from which to return the results.
143
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
152
+ # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
144
153
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
145
154
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
146
155
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
147
156
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
157
+ # @option opts [String] :pulp_label_select Filter labels by search string
148
158
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
149
159
  # @option opts [String] :relative_path Filter results where relative_path matches value
150
160
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
@@ -158,7 +168,7 @@ module PulpDebClient
158
168
  if @api_client.config.debugging
159
169
  @api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.list ...'
160
170
  end
161
- allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
171
+ allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
162
172
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
163
173
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
164
174
  end
@@ -174,6 +184,7 @@ module PulpDebClient
174
184
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
175
185
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
186
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
187
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
177
188
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
178
189
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
179
190
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
@@ -187,6 +198,7 @@ module PulpDebClient
187
198
  header_params = opts[:header_params] || {}
188
199
  # HTTP header 'Accept' (if needed)
189
200
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
201
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
190
202
 
191
203
  # form parameters
192
204
  form_params = opts[:form_params] || {}
@@ -221,6 +233,7 @@ module PulpDebClient
221
233
  # GenericContent is a catch all category for storing files not covered by any other type. Associated artifacts: Exactly one arbitrary file that does not match any other type. This is needed to store arbitrary files for use with the verbatim publisher. If you are not using the verbatim publisher, you may ignore this type.
222
234
  # @param deb_generic_content_href [String]
223
235
  # @param [Hash] opts the optional parameters
236
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
224
237
  # @option opts [Array<String>] :fields A list of fields to include in the response.
225
238
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
226
239
  # @return [DebGenericContentResponse]
@@ -233,6 +246,7 @@ module PulpDebClient
233
246
  # GenericContent is a catch all category for storing files not covered by any other type. Associated artifacts: Exactly one arbitrary file that does not match any other type. This is needed to store arbitrary files for use with the verbatim publisher. If you are not using the verbatim publisher, you may ignore this type.
234
247
  # @param deb_generic_content_href [String]
235
248
  # @param [Hash] opts the optional parameters
249
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
236
250
  # @option opts [Array<String>] :fields A list of fields to include in the response.
237
251
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
238
252
  # @return [Array<(DebGenericContentResponse, Integer, Hash)>] DebGenericContentResponse data, response status code and response headers
@@ -256,6 +270,7 @@ module PulpDebClient
256
270
  header_params = opts[:header_params] || {}
257
271
  # HTTP header 'Accept' (if needed)
258
272
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
273
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
259
274
 
260
275
  # form parameters
261
276
  form_params = opts[:form_params] || {}
@@ -285,5 +300,159 @@ module PulpDebClient
285
300
  end
286
301
  return data, status_code, headers
287
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_generic_content_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 [SetLabelResponse]
311
+ def set_label(deb_generic_content_href, set_label, opts = {})
312
+ data, _status_code, _headers = set_label_with_http_info(deb_generic_content_href, set_label, opts)
313
+ data
314
+ end
315
+
316
+ # Set a label
317
+ # Set a single pulp_label on the object to a specific value or null.
318
+ # @param deb_generic_content_href [String]
319
+ # @param set_label [SetLabel]
320
+ # @param [Hash] opts the optional parameters
321
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
322
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
323
+ def set_label_with_http_info(deb_generic_content_href, set_label, opts = {})
324
+ if @api_client.config.debugging
325
+ @api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.set_label ...'
326
+ end
327
+ # verify the required parameter 'deb_generic_content_href' is set
328
+ if @api_client.config.client_side_validation && deb_generic_content_href.nil?
329
+ fail ArgumentError, "Missing the required parameter 'deb_generic_content_href' when calling ContentGenericContentsApi.set_label"
330
+ end
331
+ # verify the required parameter 'set_label' is set
332
+ if @api_client.config.client_side_validation && set_label.nil?
333
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentGenericContentsApi.set_label"
334
+ end
335
+ # resource path
336
+ local_var_path = '{deb_generic_content_href}set_label/'.sub('{' + 'deb_generic_content_href' + '}', CGI.escape(deb_generic_content_href.to_s).gsub('%2F', '/'))
337
+
338
+ # query parameters
339
+ query_params = opts[:query_params] || {}
340
+
341
+ # header parameters
342
+ header_params = opts[:header_params] || {}
343
+ # HTTP header 'Accept' (if needed)
344
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
345
+ # HTTP header 'Content-Type'
346
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
347
+ if !content_type.nil?
348
+ header_params['Content-Type'] = content_type
349
+ end
350
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
351
+
352
+ # form parameters
353
+ form_params = opts[:form_params] || {}
354
+
355
+ # http body (model)
356
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
357
+
358
+ # return_type
359
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
360
+
361
+ # auth_names
362
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
363
+
364
+ new_options = opts.merge(
365
+ :operation => :"ContentGenericContentsApi.set_label",
366
+ :header_params => header_params,
367
+ :query_params => query_params,
368
+ :form_params => form_params,
369
+ :body => post_body,
370
+ :auth_names => auth_names,
371
+ :return_type => return_type
372
+ )
373
+
374
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "API called: ContentGenericContentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
+ end
378
+ return data, status_code, headers
379
+ end
380
+
381
+ # Unset a label
382
+ # Unset a single pulp_label on the object.
383
+ # @param deb_generic_content_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 [UnsetLabelResponse]
388
+ def unset_label(deb_generic_content_href, unset_label, opts = {})
389
+ data, _status_code, _headers = unset_label_with_http_info(deb_generic_content_href, unset_label, opts)
390
+ data
391
+ end
392
+
393
+ # Unset a label
394
+ # Unset a single pulp_label on the object.
395
+ # @param deb_generic_content_href [String]
396
+ # @param unset_label [UnsetLabel]
397
+ # @param [Hash] opts the optional parameters
398
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
399
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
400
+ def unset_label_with_http_info(deb_generic_content_href, unset_label, opts = {})
401
+ if @api_client.config.debugging
402
+ @api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.unset_label ...'
403
+ end
404
+ # verify the required parameter 'deb_generic_content_href' is set
405
+ if @api_client.config.client_side_validation && deb_generic_content_href.nil?
406
+ fail ArgumentError, "Missing the required parameter 'deb_generic_content_href' when calling ContentGenericContentsApi.unset_label"
407
+ end
408
+ # verify the required parameter 'unset_label' is set
409
+ if @api_client.config.client_side_validation && unset_label.nil?
410
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentGenericContentsApi.unset_label"
411
+ end
412
+ # resource path
413
+ local_var_path = '{deb_generic_content_href}unset_label/'.sub('{' + 'deb_generic_content_href' + '}', CGI.escape(deb_generic_content_href.to_s).gsub('%2F', '/'))
414
+
415
+ # query parameters
416
+ query_params = opts[:query_params] || {}
417
+
418
+ # header parameters
419
+ header_params = opts[:header_params] || {}
420
+ # HTTP header 'Accept' (if needed)
421
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
422
+ # HTTP header 'Content-Type'
423
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
424
+ if !content_type.nil?
425
+ header_params['Content-Type'] = content_type
426
+ end
427
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
428
+
429
+ # form parameters
430
+ form_params = opts[:form_params] || {}
431
+
432
+ # http body (model)
433
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
434
+
435
+ # return_type
436
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
437
+
438
+ # auth_names
439
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
440
+
441
+ new_options = opts.merge(
442
+ :operation => :"ContentGenericContentsApi.unset_label",
443
+ :header_params => header_params,
444
+ :query_params => query_params,
445
+ :form_params => form_params,
446
+ :body => post_body,
447
+ :auth_names => auth_names,
448
+ :return_type => return_type
449
+ )
450
+
451
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
452
+ if @api_client.config.debugging
453
+ @api_client.config.logger.debug "API called: ContentGenericContentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
454
+ end
455
+ return data, status_code, headers
456
+ end
288
457
  end
289
458
  end
@@ -23,6 +23,7 @@ module PulpDebClient
23
23
  # An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one 'SHA256SUMS' and/or 'MD5SUMS' file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer content.
24
24
  # @param deb_installer_file_index [DebInstallerFileIndex]
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 [DebInstallerFileIndexResponse]
27
28
  def create(deb_installer_file_index, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(deb_installer_file_index, opts)
@@ -33,6 +34,7 @@ module PulpDebClient
33
34
  # An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one &#39;SHA256SUMS&#39; and/or &#39;MD5SUMS&#39; file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer content.
34
35
  # @param deb_installer_file_index [DebInstallerFileIndex]
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<(DebInstallerFileIndexResponse, Integer, Hash)>] DebInstallerFileIndexResponse data, response status code and response headers
37
39
  def create_with_http_info(deb_installer_file_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 InstallerFileIndices
91
94
  # An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one 'SHA256SUMS' and/or 'MD5SUMS' file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer 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;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;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 InstallerFileIndices
117
122
  # An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one &#39;SHA256SUMS&#39; and/or &#39;MD5SUMS&#39; file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer 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;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;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: ContentInstallerFileIndicesApi.list ...'
140
147
  end
141
- allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
148
+ allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "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
  # An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one 'SHA256SUMS' and/or 'MD5SUMS' file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer content.
204
213
  # @param deb_installer_file_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 [DebInstallerFileIndexResponse]
@@ -215,6 +225,7 @@ module PulpDebClient
215
225
  # An InstallerFileIndex represents the indices for a set of installer files. Associated artifacts: Exactly one &#39;SHA256SUMS&#39; and/or &#39;MD5SUMS&#39; file. Each InstallerFileIndes is associated with a single component-architecture combination within a single Release. Note that installer files are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) does not make use of installer content.
216
226
  # @param deb_installer_file_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<(DebInstallerFileIndexResponse, Integer, Hash)>] DebInstallerFileIndexResponse 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_installer_file_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_installer_file_index_href, set_label, opts = {})
291
+ data, _status_code, _headers = set_label_with_http_info(deb_installer_file_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_installer_file_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_installer_file_index_href, set_label, opts = {})
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.set_label ...'
305
+ end
306
+ # verify the required parameter 'deb_installer_file_index_href' is set
307
+ if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
308
+ fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.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 ContentInstallerFileIndicesApi.set_label"
313
+ end
314
+ # resource path
315
+ local_var_path = '{deb_installer_file_index_href}set_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_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 => :"ContentInstallerFileIndicesApi.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: ContentInstallerFileIndicesApi#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_installer_file_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_installer_file_index_href, unset_label, opts = {})
368
+ data, _status_code, _headers = unset_label_with_http_info(deb_installer_file_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_installer_file_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_installer_file_index_href, unset_label, opts = {})
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.unset_label ...'
382
+ end
383
+ # verify the required parameter 'deb_installer_file_index_href' is set
384
+ if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
385
+ fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.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 ContentInstallerFileIndicesApi.unset_label"
390
+ end
391
+ # resource path
392
+ local_var_path = '{deb_installer_file_index_href}unset_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_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 => :"ContentInstallerFileIndicesApi.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: ContentInstallerFileIndicesApi#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