pulp_deb_client 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -5
  3. data/docs/ContentGenericContentsApi.md +3 -1
  4. data/docs/ContentInstallerFileIndicesApi.md +3 -1
  5. data/docs/ContentInstallerPackagesApi.md +3 -1
  6. data/docs/ContentPackageIndicesApi.md +3 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +3 -1
  8. data/docs/ContentPackagesApi.md +3 -1
  9. data/docs/ContentReleaseArchitecturesApi.md +3 -1
  10. data/docs/ContentReleaseComponentsApi.md +3 -1
  11. data/docs/ContentReleaseFilesApi.md +3 -1
  12. data/docs/ContentReleasesApi.md +3 -1
  13. data/docs/DebCopyApi.md +1 -1
  14. data/docs/DistributionsAptApi.md +123 -1
  15. data/docs/PublicationsAptApi.md +3 -1
  16. data/docs/PublicationsVerbatimApi.md +3 -1
  17. data/docs/RemotesAptApi.md +123 -1
  18. data/docs/RepositoriesAptApi.md +123 -1
  19. data/docs/RepositoriesAptVersionsApi.md +3 -1
  20. data/docs/SetLabel.md +19 -0
  21. data/docs/SetLabelResponse.md +19 -0
  22. data/docs/UnsetLabel.md +17 -0
  23. data/docs/UnsetLabelResponse.md +19 -0
  24. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +3 -0
  25. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
  26. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +3 -0
  27. data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
  28. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
  29. data/lib/pulp_deb_client/api/content_packages_api.rb +3 -0
  30. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +3 -0
  31. data/lib/pulp_deb_client/api/content_release_components_api.rb +3 -0
  32. data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
  33. data/lib/pulp_deb_client/api/content_releases_api.rb +3 -0
  34. data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
  35. data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
  36. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
  37. data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
  38. data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
  39. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
  40. data/lib/pulp_deb_client/configuration.rb +2 -2
  41. data/lib/pulp_deb_client/models/set_label.rb +252 -0
  42. data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
  43. data/lib/pulp_deb_client/models/unset_label.rb +242 -0
  44. data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
  45. data/lib/pulp_deb_client/version.rb +1 -1
  46. data/lib/pulp_deb_client.rb +4 -0
  47. data/spec/api/content_generic_contents_api_spec.rb +1 -0
  48. data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
  49. data/spec/api/content_installer_packages_api_spec.rb +1 -0
  50. data/spec/api/content_package_indices_api_spec.rb +1 -0
  51. data/spec/api/content_package_release_components_api_spec.rb +1 -0
  52. data/spec/api/content_packages_api_spec.rb +1 -0
  53. data/spec/api/content_release_architectures_api_spec.rb +1 -0
  54. data/spec/api/content_release_components_api_spec.rb +1 -0
  55. data/spec/api/content_release_files_api_spec.rb +1 -0
  56. data/spec/api/content_releases_api_spec.rb +1 -0
  57. data/spec/api/distributions_apt_api_spec.rb +31 -0
  58. data/spec/api/publications_apt_api_spec.rb +1 -0
  59. data/spec/api/publications_verbatim_api_spec.rb +1 -0
  60. data/spec/api/remotes_apt_api_spec.rb +31 -0
  61. data/spec/api/repositories_apt_api_spec.rb +31 -0
  62. data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
  63. data/spec/configuration_spec.rb +3 -3
  64. data/spec/models/set_label_response_spec.rb +47 -0
  65. data/spec/models/set_label_spec.rb +47 -0
  66. data/spec/models/unset_label_response_spec.rb +47 -0
  67. data/spec/models/unset_label_spec.rb +41 -0
  68. metadata +72 -56
@@ -93,6 +93,7 @@ module PulpDebClient
93
93
  # @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;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
94
94
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
+ # @option opts [String] :q
96
97
  # @option opts [String] :repository_version Repository Version referenced by HREF
97
98
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
98
99
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -114,6 +115,7 @@ module PulpDebClient
114
115
  # @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;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
115
116
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
116
117
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
118
+ # @option opts [String] :q
117
119
  # @option opts [String] :repository_version Repository Version referenced by HREF
118
120
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
119
121
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -140,6 +142,7 @@ module PulpDebClient
140
142
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
141
143
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
142
144
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
145
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
143
146
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
144
147
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
145
148
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -94,6 +94,7 @@ module PulpDebClient
94
94
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
95
95
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
96
96
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
97
+ # @option opts [String] :q
97
98
  # @option opts [String] :repository_version Repository Version referenced by HREF
98
99
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
99
100
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -116,6 +117,7 @@ module PulpDebClient
116
117
  # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
117
118
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
118
119
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
120
+ # @option opts [String] :q
119
121
  # @option opts [String] :repository_version Repository Version referenced by HREF
120
122
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
121
123
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -143,6 +145,7 @@ module PulpDebClient
143
145
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
144
146
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
145
147
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
148
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
146
149
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
147
150
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
148
151
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -92,6 +92,7 @@ module PulpDebClient
92
92
  # @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)
93
93
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
94
94
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
95
+ # @option opts [String] :q
95
96
  # @option opts [String] :relative_path Filter results where relative_path matches value
96
97
  # @option opts [String] :repository_version Repository Version referenced by HREF
97
98
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -115,6 +116,7 @@ module PulpDebClient
115
116
  # @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)
116
117
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
117
118
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
119
+ # @option opts [String] :q
118
120
  # @option opts [String] :relative_path Filter results where relative_path matches value
119
121
  # @option opts [String] :repository_version Repository Version referenced by HREF
120
122
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -143,6 +145,7 @@ module PulpDebClient
143
145
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
144
146
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
145
147
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
148
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
146
149
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
147
150
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
148
151
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -96,6 +96,7 @@ module PulpDebClient
96
96
  # @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)
97
97
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
98
98
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
99
+ # @option opts [String] :q
99
100
  # @option opts [String] :repository_version Repository Version referenced by HREF
100
101
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
101
102
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -122,6 +123,7 @@ module PulpDebClient
122
123
  # @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)
123
124
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
124
125
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
126
+ # @option opts [String] :q
125
127
  # @option opts [String] :repository_version Repository Version referenced by HREF
126
128
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
127
129
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -153,6 +155,7 @@ module PulpDebClient
153
155
  query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
154
156
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
155
157
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
158
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
156
159
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
157
160
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
158
161
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -156,13 +156,18 @@ module PulpDebClient
156
156
  # @option opts [String] :name Filter results where name matches value
157
157
  # @option opts [String] :name__contains Filter results where name contains value
158
158
  # @option opts [String] :name__icontains Filter results where name contains value
159
+ # @option opts [String] :name__iexact Filter results where name matches value
159
160
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
161
+ # @option opts [String] :name__iregex Filter results where name matches regex value
162
+ # @option opts [String] :name__istartswith Filter results where name starts with value
163
+ # @option opts [String] :name__regex Filter results where name matches regex value
160
164
  # @option opts [String] :name__startswith Filter results where name starts with value
161
165
  # @option opts [Integer] :offset The initial index from which to return the results.
162
166
  # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
163
167
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
164
168
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
165
169
  # @option opts [String] :pulp_label_select Filter labels by search string
170
+ # @option opts [String] :q
166
171
  # @option opts [String] :repository Filter results where repository matches value
167
172
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
168
173
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -185,13 +190,18 @@ module PulpDebClient
185
190
  # @option opts [String] :name Filter results where name matches value
186
191
  # @option opts [String] :name__contains Filter results where name contains value
187
192
  # @option opts [String] :name__icontains Filter results where name contains value
193
+ # @option opts [String] :name__iexact Filter results where name matches value
188
194
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
195
+ # @option opts [String] :name__iregex Filter results where name matches regex value
196
+ # @option opts [String] :name__istartswith Filter results where name starts with value
197
+ # @option opts [String] :name__regex Filter results where name matches regex value
189
198
  # @option opts [String] :name__startswith Filter results where name starts with value
190
199
  # @option opts [Integer] :offset The initial index from which to return the results.
191
200
  # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
192
201
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
193
202
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
194
203
  # @option opts [String] :pulp_label_select Filter labels by search string
204
+ # @option opts [String] :q
195
205
  # @option opts [String] :repository Filter results where repository matches value
196
206
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
197
207
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -219,13 +229,18 @@ module PulpDebClient
219
229
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
220
230
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
221
231
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
232
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
222
233
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
234
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
235
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
236
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
223
237
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
224
238
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
225
239
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
226
240
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
227
241
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
228
242
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
243
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
229
244
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
230
245
  query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
231
246
  query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
@@ -403,6 +418,146 @@ module PulpDebClient
403
418
  return data, status_code, headers
404
419
  end
405
420
 
421
+ # Set a label
422
+ # Set a single pulp_label on the object to a specific value or null.
423
+ # @param deb_apt_distribution_href [String]
424
+ # @param set_label [SetLabel]
425
+ # @param [Hash] opts the optional parameters
426
+ # @return [SetLabelResponse]
427
+ def set_label(deb_apt_distribution_href, set_label, opts = {})
428
+ data, _status_code, _headers = set_label_with_http_info(deb_apt_distribution_href, set_label, opts)
429
+ data
430
+ end
431
+
432
+ # Set a label
433
+ # Set a single pulp_label on the object to a specific value or null.
434
+ # @param deb_apt_distribution_href [String]
435
+ # @param set_label [SetLabel]
436
+ # @param [Hash] opts the optional parameters
437
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
438
+ def set_label_with_http_info(deb_apt_distribution_href, set_label, opts = {})
439
+ if @api_client.config.debugging
440
+ @api_client.config.logger.debug 'Calling API: DistributionsAptApi.set_label ...'
441
+ end
442
+ # verify the required parameter 'deb_apt_distribution_href' is set
443
+ if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
444
+ fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.set_label"
445
+ end
446
+ # verify the required parameter 'set_label' is set
447
+ if @api_client.config.client_side_validation && set_label.nil?
448
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsAptApi.set_label"
449
+ end
450
+ # resource path
451
+ local_var_path = '{deb_apt_distribution_href}set_label/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_href.to_s).gsub('%2F', '/'))
452
+
453
+ # query parameters
454
+ query_params = opts[:query_params] || {}
455
+
456
+ # header parameters
457
+ header_params = opts[:header_params] || {}
458
+ # HTTP header 'Accept' (if needed)
459
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
460
+ # HTTP header 'Content-Type'
461
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
462
+
463
+ # form parameters
464
+ form_params = opts[:form_params] || {}
465
+
466
+ # http body (model)
467
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
468
+
469
+ # return_type
470
+ return_type = opts[:return_type] || 'SetLabelResponse'
471
+
472
+ # auth_names
473
+ auth_names = opts[:auth_names] || ['basicAuth']
474
+
475
+ new_options = opts.merge(
476
+ :header_params => header_params,
477
+ :query_params => query_params,
478
+ :form_params => form_params,
479
+ :body => post_body,
480
+ :auth_names => auth_names,
481
+ :return_type => return_type
482
+ )
483
+
484
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
485
+ if @api_client.config.debugging
486
+ @api_client.config.logger.debug "API called: DistributionsAptApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
487
+ end
488
+ return data, status_code, headers
489
+ end
490
+
491
+ # Unset a label
492
+ # Unset a single pulp_label on the object.
493
+ # @param deb_apt_distribution_href [String]
494
+ # @param unset_label [UnsetLabel]
495
+ # @param [Hash] opts the optional parameters
496
+ # @return [UnsetLabelResponse]
497
+ def unset_label(deb_apt_distribution_href, unset_label, opts = {})
498
+ data, _status_code, _headers = unset_label_with_http_info(deb_apt_distribution_href, unset_label, opts)
499
+ data
500
+ end
501
+
502
+ # Unset a label
503
+ # Unset a single pulp_label on the object.
504
+ # @param deb_apt_distribution_href [String]
505
+ # @param unset_label [UnsetLabel]
506
+ # @param [Hash] opts the optional parameters
507
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
508
+ def unset_label_with_http_info(deb_apt_distribution_href, unset_label, opts = {})
509
+ if @api_client.config.debugging
510
+ @api_client.config.logger.debug 'Calling API: DistributionsAptApi.unset_label ...'
511
+ end
512
+ # verify the required parameter 'deb_apt_distribution_href' is set
513
+ if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
514
+ fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.unset_label"
515
+ end
516
+ # verify the required parameter 'unset_label' is set
517
+ if @api_client.config.client_side_validation && unset_label.nil?
518
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsAptApi.unset_label"
519
+ end
520
+ # resource path
521
+ local_var_path = '{deb_apt_distribution_href}unset_label/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_href.to_s).gsub('%2F', '/'))
522
+
523
+ # query parameters
524
+ query_params = opts[:query_params] || {}
525
+
526
+ # header parameters
527
+ header_params = opts[:header_params] || {}
528
+ # HTTP header 'Accept' (if needed)
529
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
530
+ # HTTP header 'Content-Type'
531
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
532
+
533
+ # form parameters
534
+ form_params = opts[:form_params] || {}
535
+
536
+ # http body (model)
537
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
538
+
539
+ # return_type
540
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
541
+
542
+ # auth_names
543
+ auth_names = opts[:auth_names] || ['basicAuth']
544
+
545
+ new_options = opts.merge(
546
+ :header_params => header_params,
547
+ :query_params => query_params,
548
+ :form_params => form_params,
549
+ :body => post_body,
550
+ :auth_names => auth_names,
551
+ :return_type => return_type
552
+ )
553
+
554
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
555
+ if @api_client.config.debugging
556
+ @api_client.config.logger.debug "API called: DistributionsAptApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
557
+ end
558
+ return data, status_code, headers
559
+ end
560
+
406
561
  # Update an apt distribution
407
562
  # Trigger an asynchronous update task
408
563
  # @param deb_apt_distribution_href [String]
@@ -159,6 +159,7 @@ module PulpDebClient
159
159
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
160
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
161
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
+ # @option opts [String] :q
162
163
  # @option opts [String] :repository Repository referenced by HREF
163
164
  # @option opts [String] :repository_version Repository Version referenced by HREF
164
165
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -185,6 +186,7 @@ module PulpDebClient
185
186
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
186
187
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
187
188
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
189
+ # @option opts [String] :q
188
190
  # @option opts [String] :repository Repository referenced by HREF
189
191
  # @option opts [String] :repository_version Repository Version referenced by HREF
190
192
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -216,6 +218,7 @@ module PulpDebClient
216
218
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
217
219
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
218
220
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
221
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
219
222
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
220
223
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
221
224
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
@@ -159,6 +159,7 @@ module PulpDebClient
159
159
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
160
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
161
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
+ # @option opts [String] :q
162
163
  # @option opts [String] :repository Repository referenced by HREF
163
164
  # @option opts [String] :repository_version Repository Version referenced by HREF
164
165
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -185,6 +186,7 @@ module PulpDebClient
185
186
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
186
187
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
187
188
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
189
+ # @option opts [String] :q
188
190
  # @option opts [String] :repository Repository referenced by HREF
189
191
  # @option opts [String] :repository_version Repository Version referenced by HREF
190
192
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -216,6 +218,7 @@ module PulpDebClient
216
218
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
217
219
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
218
220
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
221
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
219
222
  query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
220
223
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
221
224
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
@@ -152,7 +152,11 @@ module PulpDebClient
152
152
  # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [String] :name__iexact Filter results where name matches value
155
156
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
157
+ # @option opts [String] :name__iregex Filter results where name matches regex value
158
+ # @option opts [String] :name__istartswith Filter results where name starts with value
159
+ # @option opts [String] :name__regex Filter results where name matches regex value
156
160
  # @option opts [String] :name__startswith Filter results where name starts with value
157
161
  # @option opts [Integer] :offset The initial index from which to return the results.
158
162
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -165,6 +169,7 @@ module PulpDebClient
165
169
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
166
170
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
167
171
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
172
+ # @option opts [String] :q
168
173
  # @option opts [Array<String>] :fields A list of fields to include in the response.
169
174
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
170
175
  # @return [PaginateddebAptRemoteResponseList]
@@ -180,7 +185,11 @@ module PulpDebClient
180
185
  # @option opts [String] :name Filter results where name matches value
181
186
  # @option opts [String] :name__contains Filter results where name contains value
182
187
  # @option opts [String] :name__icontains Filter results where name contains value
188
+ # @option opts [String] :name__iexact Filter results where name matches value
183
189
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
190
+ # @option opts [String] :name__iregex Filter results where name matches regex value
191
+ # @option opts [String] :name__istartswith Filter results where name starts with value
192
+ # @option opts [String] :name__regex Filter results where name matches regex value
184
193
  # @option opts [String] :name__startswith Filter results where name starts with value
185
194
  # @option opts [Integer] :offset The initial index from which to return the results.
186
195
  # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -193,6 +202,7 @@ module PulpDebClient
193
202
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
194
203
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
195
204
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
205
+ # @option opts [String] :q
196
206
  # @option opts [Array<String>] :fields A list of fields to include in the response.
197
207
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
198
208
  # @return [Array<(PaginateddebAptRemoteResponseList, Integer, Hash)>] PaginateddebAptRemoteResponseList data, response status code and response headers
@@ -213,7 +223,11 @@ module PulpDebClient
213
223
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
214
224
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
215
225
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
226
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
216
227
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
228
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
229
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
230
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
217
231
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
218
232
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
219
233
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
@@ -226,6 +240,7 @@ module PulpDebClient
226
240
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
227
241
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
228
242
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
243
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
229
244
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
230
245
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
231
246
 
@@ -400,6 +415,146 @@ module PulpDebClient
400
415
  return data, status_code, headers
401
416
  end
402
417
 
418
+ # Set a label
419
+ # Set a single pulp_label on the object to a specific value or null.
420
+ # @param deb_apt_remote_href [String]
421
+ # @param set_label [SetLabel]
422
+ # @param [Hash] opts the optional parameters
423
+ # @return [SetLabelResponse]
424
+ def set_label(deb_apt_remote_href, set_label, opts = {})
425
+ data, _status_code, _headers = set_label_with_http_info(deb_apt_remote_href, set_label, opts)
426
+ data
427
+ end
428
+
429
+ # Set a label
430
+ # Set a single pulp_label on the object to a specific value or null.
431
+ # @param deb_apt_remote_href [String]
432
+ # @param set_label [SetLabel]
433
+ # @param [Hash] opts the optional parameters
434
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
435
+ def set_label_with_http_info(deb_apt_remote_href, set_label, opts = {})
436
+ if @api_client.config.debugging
437
+ @api_client.config.logger.debug 'Calling API: RemotesAptApi.set_label ...'
438
+ end
439
+ # verify the required parameter 'deb_apt_remote_href' is set
440
+ if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
441
+ fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.set_label"
442
+ end
443
+ # verify the required parameter 'set_label' is set
444
+ if @api_client.config.client_side_validation && set_label.nil?
445
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesAptApi.set_label"
446
+ end
447
+ # resource path
448
+ local_var_path = '{deb_apt_remote_href}set_label/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
449
+
450
+ # query parameters
451
+ query_params = opts[:query_params] || {}
452
+
453
+ # header parameters
454
+ header_params = opts[:header_params] || {}
455
+ # HTTP header 'Accept' (if needed)
456
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
457
+ # HTTP header 'Content-Type'
458
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
459
+
460
+ # form parameters
461
+ form_params = opts[:form_params] || {}
462
+
463
+ # http body (model)
464
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
465
+
466
+ # return_type
467
+ return_type = opts[:return_type] || 'SetLabelResponse'
468
+
469
+ # auth_names
470
+ auth_names = opts[:auth_names] || ['basicAuth']
471
+
472
+ new_options = opts.merge(
473
+ :header_params => header_params,
474
+ :query_params => query_params,
475
+ :form_params => form_params,
476
+ :body => post_body,
477
+ :auth_names => auth_names,
478
+ :return_type => return_type
479
+ )
480
+
481
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
482
+ if @api_client.config.debugging
483
+ @api_client.config.logger.debug "API called: RemotesAptApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
+ end
485
+ return data, status_code, headers
486
+ end
487
+
488
+ # Unset a label
489
+ # Unset a single pulp_label on the object.
490
+ # @param deb_apt_remote_href [String]
491
+ # @param unset_label [UnsetLabel]
492
+ # @param [Hash] opts the optional parameters
493
+ # @return [UnsetLabelResponse]
494
+ def unset_label(deb_apt_remote_href, unset_label, opts = {})
495
+ data, _status_code, _headers = unset_label_with_http_info(deb_apt_remote_href, unset_label, opts)
496
+ data
497
+ end
498
+
499
+ # Unset a label
500
+ # Unset a single pulp_label on the object.
501
+ # @param deb_apt_remote_href [String]
502
+ # @param unset_label [UnsetLabel]
503
+ # @param [Hash] opts the optional parameters
504
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
505
+ def unset_label_with_http_info(deb_apt_remote_href, unset_label, opts = {})
506
+ if @api_client.config.debugging
507
+ @api_client.config.logger.debug 'Calling API: RemotesAptApi.unset_label ...'
508
+ end
509
+ # verify the required parameter 'deb_apt_remote_href' is set
510
+ if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
511
+ fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.unset_label"
512
+ end
513
+ # verify the required parameter 'unset_label' is set
514
+ if @api_client.config.client_side_validation && unset_label.nil?
515
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesAptApi.unset_label"
516
+ end
517
+ # resource path
518
+ local_var_path = '{deb_apt_remote_href}unset_label/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
519
+
520
+ # query parameters
521
+ query_params = opts[:query_params] || {}
522
+
523
+ # header parameters
524
+ header_params = opts[:header_params] || {}
525
+ # HTTP header 'Accept' (if needed)
526
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
527
+ # HTTP header 'Content-Type'
528
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
529
+
530
+ # form parameters
531
+ form_params = opts[:form_params] || {}
532
+
533
+ # http body (model)
534
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
535
+
536
+ # return_type
537
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
538
+
539
+ # auth_names
540
+ auth_names = opts[:auth_names] || ['basicAuth']
541
+
542
+ new_options = opts.merge(
543
+ :header_params => header_params,
544
+ :query_params => query_params,
545
+ :form_params => form_params,
546
+ :body => post_body,
547
+ :auth_names => auth_names,
548
+ :return_type => return_type
549
+ )
550
+
551
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
552
+ if @api_client.config.debugging
553
+ @api_client.config.logger.debug "API called: RemotesAptApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
554
+ end
555
+ return data, status_code, headers
556
+ end
557
+
403
558
  # Update an apt remote
404
559
  # Trigger an asynchronous update task
405
560
  # @param deb_apt_remote_href [String]