pulp_deb_client 3.0.0 → 3.1.1

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 (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -7
  3. data/docs/ContentGenericContentsApi.md +7 -5
  4. data/docs/ContentInstallerFileIndicesApi.md +3 -1
  5. data/docs/ContentInstallerPackagesApi.md +7 -5
  6. data/docs/ContentPackageIndicesApi.md +3 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +3 -1
  8. data/docs/ContentPackagesApi.md +23 -5
  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/ContentSourceIndicesApi.md +204 -0
  14. data/docs/ContentSourcePackagesApi.md +258 -0
  15. data/docs/ContentSourceReleaseComponentsApi.md +202 -0
  16. data/docs/DebCopyApi.md +1 -1
  17. data/docs/DebGenericContent.md +2 -2
  18. data/docs/DebInstallerPackage.md +2 -2
  19. data/docs/DebPackage.md +2 -2
  20. data/docs/DebSourceIndex.md +25 -0
  21. data/docs/DebSourceIndexResponse.md +27 -0
  22. data/docs/DebSourcePackage.md +21 -0
  23. data/docs/DebSourcePackageReleaseComponent.md +21 -0
  24. data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
  25. data/docs/DebSourcePackageResponse.md +77 -0
  26. data/docs/DistributionsAptApi.md +123 -1
  27. data/docs/PaginateddebSourceIndexResponseList.md +23 -0
  28. data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
  29. data/docs/PaginateddebSourcePackageResponseList.md +23 -0
  30. data/docs/PublicationsAptApi.md +3 -1
  31. data/docs/PublicationsVerbatimApi.md +3 -1
  32. data/docs/RemotesAptApi.md +123 -1
  33. data/docs/RepositoriesAptApi.md +123 -1
  34. data/docs/RepositoriesAptVersionsApi.md +3 -1
  35. data/docs/SetLabel.md +19 -0
  36. data/docs/SetLabelResponse.md +19 -0
  37. data/docs/UnsetLabel.md +17 -0
  38. data/docs/UnsetLabelResponse.md +19 -0
  39. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +7 -4
  40. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
  41. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -4
  42. data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
  43. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
  44. data/lib/pulp_deb_client/api/content_packages_api.rb +31 -4
  45. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +3 -0
  46. data/lib/pulp_deb_client/api/content_release_components_api.rb +3 -0
  47. data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
  48. data/lib/pulp_deb_client/api/content_releases_api.rb +3 -0
  49. data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
  50. data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
  51. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
  52. data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
  53. data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
  54. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
  55. data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
  56. data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
  57. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
  58. data/lib/pulp_deb_client/configuration.rb +2 -2
  59. data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
  60. data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
  61. data/lib/pulp_deb_client/models/deb_package.rb +2 -2
  62. data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
  63. data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
  64. data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
  65. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
  66. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
  67. data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
  68. data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
  69. data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
  70. data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
  71. data/lib/pulp_deb_client/models/set_label.rb +252 -0
  72. data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
  73. data/lib/pulp_deb_client/models/unset_label.rb +242 -0
  74. data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
  75. data/lib/pulp_deb_client/version.rb +1 -1
  76. data/lib/pulp_deb_client.rb +16 -0
  77. data/spec/api/content_generic_contents_api_spec.rb +3 -2
  78. data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
  79. data/spec/api/content_installer_packages_api_spec.rb +3 -2
  80. data/spec/api/content_package_indices_api_spec.rb +1 -0
  81. data/spec/api/content_package_release_components_api_spec.rb +1 -0
  82. data/spec/api/content_packages_api_spec.rb +11 -2
  83. data/spec/api/content_release_architectures_api_spec.rb +1 -0
  84. data/spec/api/content_release_components_api_spec.rb +1 -0
  85. data/spec/api/content_release_files_api_spec.rb +1 -0
  86. data/spec/api/content_releases_api_spec.rb +1 -0
  87. data/spec/api/content_source_indices_api_spec.rb +86 -0
  88. data/spec/api/content_source_packages_api_spec.rb +113 -0
  89. data/spec/api/content_source_release_components_api_spec.rb +85 -0
  90. data/spec/api/distributions_apt_api_spec.rb +31 -0
  91. data/spec/api/publications_apt_api_spec.rb +1 -0
  92. data/spec/api/publications_verbatim_api_spec.rb +1 -0
  93. data/spec/api/remotes_apt_api_spec.rb +31 -0
  94. data/spec/api/repositories_apt_api_spec.rb +31 -0
  95. data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
  96. data/spec/configuration_spec.rb +3 -3
  97. data/spec/models/deb_source_index_response_spec.rb +71 -0
  98. data/spec/models/deb_source_index_spec.rb +65 -0
  99. data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
  100. data/spec/models/deb_source_package_release_component_spec.rb +53 -0
  101. data/spec/models/deb_source_package_response_spec.rb +221 -0
  102. data/spec/models/deb_source_package_spec.rb +53 -0
  103. data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
  104. data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
  105. data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
  106. data/spec/models/set_label_response_spec.rb +47 -0
  107. data/spec/models/set_label_spec.rb +47 -0
  108. data/spec/models/unset_label_response_spec.rb +47 -0
  109. data/spec/models/unset_label_spec.rb +41 -0
  110. metadata +120 -56
@@ -153,13 +153,18 @@ module PulpDebClient
153
153
  # @option opts [String] :name Filter results where name matches value
154
154
  # @option opts [String] :name__contains Filter results where name contains value
155
155
  # @option opts [String] :name__icontains Filter results where name contains value
156
+ # @option opts [String] :name__iexact Filter results where name matches value
156
157
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
158
+ # @option opts [String] :name__iregex Filter results where name matches regex value
159
+ # @option opts [String] :name__istartswith Filter results where name starts with value
160
+ # @option opts [String] :name__regex Filter results where name matches regex value
157
161
  # @option opts [String] :name__startswith Filter results where name starts with value
158
162
  # @option opts [Integer] :offset The initial index from which to return the results.
159
163
  # @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;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
160
164
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
165
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
166
  # @option opts [String] :pulp_label_select Filter labels by search string
167
+ # @option opts [String] :q
163
168
  # @option opts [String] :remote Foreign Key referenced by HREF
164
169
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
165
170
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -186,13 +191,18 @@ module PulpDebClient
186
191
  # @option opts [String] :name Filter results where name matches value
187
192
  # @option opts [String] :name__contains Filter results where name contains value
188
193
  # @option opts [String] :name__icontains Filter results where name contains value
194
+ # @option opts [String] :name__iexact Filter results where name matches value
189
195
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
196
+ # @option opts [String] :name__iregex Filter results where name matches regex value
197
+ # @option opts [String] :name__istartswith Filter results where name starts with value
198
+ # @option opts [String] :name__regex Filter results where name matches regex value
190
199
  # @option opts [String] :name__startswith Filter results where name starts with value
191
200
  # @option opts [Integer] :offset The initial index from which to return the results.
192
201
  # @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;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
193
202
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
194
203
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
195
204
  # @option opts [String] :pulp_label_select Filter labels by search string
205
+ # @option opts [String] :q
196
206
  # @option opts [String] :remote Foreign Key referenced by HREF
197
207
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
198
208
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -224,13 +234,18 @@ module PulpDebClient
224
234
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
225
235
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
226
236
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
237
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
227
238
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
239
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
240
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
241
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
228
242
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
229
243
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
230
244
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
231
245
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
232
246
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
233
247
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
248
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
234
249
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
235
250
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
236
251
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -485,6 +500,76 @@ module PulpDebClient
485
500
  return data, status_code, headers
486
501
  end
487
502
 
503
+ # Set a label
504
+ # Set a single pulp_label on the object to a specific value or null.
505
+ # @param deb_apt_repository_href [String]
506
+ # @param set_label [SetLabel]
507
+ # @param [Hash] opts the optional parameters
508
+ # @return [SetLabelResponse]
509
+ def set_label(deb_apt_repository_href, set_label, opts = {})
510
+ data, _status_code, _headers = set_label_with_http_info(deb_apt_repository_href, set_label, opts)
511
+ data
512
+ end
513
+
514
+ # Set a label
515
+ # Set a single pulp_label on the object to a specific value or null.
516
+ # @param deb_apt_repository_href [String]
517
+ # @param set_label [SetLabel]
518
+ # @param [Hash] opts the optional parameters
519
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
520
+ def set_label_with_http_info(deb_apt_repository_href, set_label, opts = {})
521
+ if @api_client.config.debugging
522
+ @api_client.config.logger.debug 'Calling API: RepositoriesAptApi.set_label ...'
523
+ end
524
+ # verify the required parameter 'deb_apt_repository_href' is set
525
+ if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
526
+ fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.set_label"
527
+ end
528
+ # verify the required parameter 'set_label' is set
529
+ if @api_client.config.client_side_validation && set_label.nil?
530
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesAptApi.set_label"
531
+ end
532
+ # resource path
533
+ local_var_path = '{deb_apt_repository_href}set_label/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
534
+
535
+ # query parameters
536
+ query_params = opts[:query_params] || {}
537
+
538
+ # header parameters
539
+ header_params = opts[:header_params] || {}
540
+ # HTTP header 'Accept' (if needed)
541
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
542
+ # HTTP header 'Content-Type'
543
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
544
+
545
+ # form parameters
546
+ form_params = opts[:form_params] || {}
547
+
548
+ # http body (model)
549
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
550
+
551
+ # return_type
552
+ return_type = opts[:return_type] || 'SetLabelResponse'
553
+
554
+ # auth_names
555
+ auth_names = opts[:auth_names] || ['basicAuth']
556
+
557
+ new_options = opts.merge(
558
+ :header_params => header_params,
559
+ :query_params => query_params,
560
+ :form_params => form_params,
561
+ :body => post_body,
562
+ :auth_names => auth_names,
563
+ :return_type => return_type
564
+ )
565
+
566
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
567
+ if @api_client.config.debugging
568
+ @api_client.config.logger.debug "API called: RepositoriesAptApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
569
+ end
570
+ return data, status_code, headers
571
+ end
572
+
488
573
  # Sync from remote
489
574
  # Trigger an asynchronous task to sync content
490
575
  # @param deb_apt_repository_href [String]
@@ -555,6 +640,76 @@ module PulpDebClient
555
640
  return data, status_code, headers
556
641
  end
557
642
 
643
+ # Unset a label
644
+ # Unset a single pulp_label on the object.
645
+ # @param deb_apt_repository_href [String]
646
+ # @param unset_label [UnsetLabel]
647
+ # @param [Hash] opts the optional parameters
648
+ # @return [UnsetLabelResponse]
649
+ def unset_label(deb_apt_repository_href, unset_label, opts = {})
650
+ data, _status_code, _headers = unset_label_with_http_info(deb_apt_repository_href, unset_label, opts)
651
+ data
652
+ end
653
+
654
+ # Unset a label
655
+ # Unset a single pulp_label on the object.
656
+ # @param deb_apt_repository_href [String]
657
+ # @param unset_label [UnsetLabel]
658
+ # @param [Hash] opts the optional parameters
659
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
660
+ def unset_label_with_http_info(deb_apt_repository_href, unset_label, opts = {})
661
+ if @api_client.config.debugging
662
+ @api_client.config.logger.debug 'Calling API: RepositoriesAptApi.unset_label ...'
663
+ end
664
+ # verify the required parameter 'deb_apt_repository_href' is set
665
+ if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
666
+ fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.unset_label"
667
+ end
668
+ # verify the required parameter 'unset_label' is set
669
+ if @api_client.config.client_side_validation && unset_label.nil?
670
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesAptApi.unset_label"
671
+ end
672
+ # resource path
673
+ local_var_path = '{deb_apt_repository_href}unset_label/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
674
+
675
+ # query parameters
676
+ query_params = opts[:query_params] || {}
677
+
678
+ # header parameters
679
+ header_params = opts[:header_params] || {}
680
+ # HTTP header 'Accept' (if needed)
681
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
682
+ # HTTP header 'Content-Type'
683
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
684
+
685
+ # form parameters
686
+ form_params = opts[:form_params] || {}
687
+
688
+ # http body (model)
689
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
690
+
691
+ # return_type
692
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
693
+
694
+ # auth_names
695
+ auth_names = opts[:auth_names] || ['basicAuth']
696
+
697
+ new_options = opts.merge(
698
+ :header_params => header_params,
699
+ :query_params => query_params,
700
+ :form_params => form_params,
701
+ :body => post_body,
702
+ :auth_names => auth_names,
703
+ :return_type => return_type
704
+ )
705
+
706
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
707
+ if @api_client.config.debugging
708
+ @api_client.config.logger.debug "API called: RepositoriesAptApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
709
+ end
710
+ return data, status_code, headers
711
+ end
712
+
558
713
  # Update an apt repository
559
714
  # Trigger an asynchronous update task
560
715
  # @param deb_apt_repository_href [String]
@@ -103,6 +103,7 @@ module PulpDebClient
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [String] :q
106
107
  # @option opts [Array<String>] :fields A list of fields to include in the response.
107
108
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
108
109
  # @return [PaginatedRepositoryVersionResponseList]
@@ -133,6 +134,7 @@ module PulpDebClient
133
134
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
134
135
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
135
136
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
+ # @option opts [String] :q
136
138
  # @option opts [Array<String>] :fields A list of fields to include in the response.
137
139
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
140
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -171,6 +173,7 @@ module PulpDebClient
171
173
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
172
174
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
173
175
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
174
177
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
178
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
176
179
 
@@ -127,7 +127,7 @@ module PulpDebClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'https'
130
+ @scheme = 'http'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -210,7 +210,7 @@ module PulpDebClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "https://pulp/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -24,10 +24,10 @@ module PulpDebClient
24
24
  # Path where the artifact is located relative to distributions base_path
25
25
  attr_accessor :relative_path
26
26
 
27
- # An uploaded file that may be turned into the artifact of the content unit.
27
+ # An uploaded file that may be turned into the content unit.
28
28
  attr_accessor :file
29
29
 
30
- # An uncommitted upload that may be turned into the artifact of the content unit.
30
+ # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -24,10 +24,10 @@ module PulpDebClient
24
24
  # Path where the artifact is located relative to distributions base_path
25
25
  attr_accessor :relative_path
26
26
 
27
- # An uploaded file that may be turned into the artifact of the content unit.
27
+ # An uploaded file that may be turned into the content unit.
28
28
  attr_accessor :file
29
29
 
30
- # An uncommitted upload that may be turned into the artifact of the content unit.
30
+ # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -24,10 +24,10 @@ module PulpDebClient
24
24
  # Path where the artifact is located relative to distributions base_path
25
25
  attr_accessor :relative_path
26
26
 
27
- # An uploaded file that may be turned into the artifact of the content unit.
27
+ # An uploaded file that may be turned into the content unit.
28
28
  attr_accessor :file
29
29
 
30
- # An uncommitted upload that may be turned into the artifact of the content unit.
30
+ # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
33
  # Name of the distribution.
@@ -0,0 +1,297 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDebClient
16
+ # A serializer for SourceIndex.
17
+ class DebSourceIndex
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
21
+ # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
22
+ attr_accessor :artifacts
23
+
24
+ # Release this index file belongs to.
25
+ attr_accessor :release
26
+
27
+ # Component this index file belongs to.
28
+ attr_accessor :component
29
+
30
+ # Path of file relative to url.
31
+ attr_accessor :relative_path
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'repository' => :'repository',
37
+ :'artifacts' => :'artifacts',
38
+ :'release' => :'release',
39
+ :'component' => :'component',
40
+ :'relative_path' => :'relative_path'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'repository' => :'String',
48
+ :'artifacts' => :'Object',
49
+ :'release' => :'String',
50
+ :'component' => :'String',
51
+ :'relative_path' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebSourceIndex` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebSourceIndex`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'repository')
77
+ self.repository = attributes[:'repository']
78
+ end
79
+
80
+ if attributes.key?(:'artifacts')
81
+ self.artifacts = attributes[:'artifacts']
82
+ end
83
+
84
+ if attributes.key?(:'release')
85
+ self.release = attributes[:'release']
86
+ end
87
+
88
+ if attributes.key?(:'component')
89
+ self.component = attributes[:'component']
90
+ end
91
+
92
+ if attributes.key?(:'relative_path')
93
+ self.relative_path = attributes[:'relative_path']
94
+ end
95
+ end
96
+
97
+ # Show invalid properties with the reasons. Usually used together with valid?
98
+ # @return Array for valid properties with the reasons
99
+ def list_invalid_properties
100
+ invalid_properties = Array.new
101
+ if @artifacts.nil?
102
+ invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
103
+ end
104
+
105
+ if @release.nil?
106
+ invalid_properties.push('invalid value for "release", release cannot be nil.')
107
+ end
108
+
109
+ if @component.nil?
110
+ invalid_properties.push('invalid value for "component", component cannot be nil.')
111
+ end
112
+
113
+ if @component.to_s.length < 1
114
+ invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
115
+ end
116
+
117
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
118
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
119
+ end
120
+
121
+ invalid_properties
122
+ end
123
+
124
+ # Check to see if the all the properties in the model are valid
125
+ # @return true if the model is valid
126
+ def valid?
127
+ return false if @artifacts.nil?
128
+ return false if @release.nil?
129
+ return false if @component.nil?
130
+ return false if @component.to_s.length < 1
131
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
132
+ true
133
+ end
134
+
135
+ # Custom attribute writer method with validation
136
+ # @param [Object] component Value to be assigned
137
+ def component=(component)
138
+ if component.nil?
139
+ fail ArgumentError, 'component cannot be nil'
140
+ end
141
+
142
+ if component.to_s.length < 1
143
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
144
+ end
145
+
146
+ @component = component
147
+ end
148
+
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] relative_path Value to be assigned
151
+ def relative_path=(relative_path)
152
+ if !relative_path.nil? && relative_path.to_s.length < 1
153
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
154
+ end
155
+
156
+ @relative_path = relative_path
157
+ end
158
+
159
+ # Checks equality by comparing each attribute.
160
+ # @param [Object] Object to be compared
161
+ def ==(o)
162
+ return true if self.equal?(o)
163
+ self.class == o.class &&
164
+ repository == o.repository &&
165
+ artifacts == o.artifacts &&
166
+ release == o.release &&
167
+ component == o.component &&
168
+ relative_path == o.relative_path
169
+ end
170
+
171
+ # @see the `==` method
172
+ # @param [Object] Object to be compared
173
+ def eql?(o)
174
+ self == o
175
+ end
176
+
177
+ # Calculates hash code according to all attributes.
178
+ # @return [Integer] Hash code
179
+ def hash
180
+ [repository, artifacts, release, component, relative_path].hash
181
+ end
182
+
183
+ # Builds the object from hash
184
+ # @param [Hash] attributes Model attributes in the form of hash
185
+ # @return [Object] Returns the model itself
186
+ def self.build_from_hash(attributes)
187
+ new.build_from_hash(attributes)
188
+ end
189
+
190
+ # Builds the object from hash
191
+ # @param [Hash] attributes Model attributes in the form of hash
192
+ # @return [Object] Returns the model itself
193
+ def build_from_hash(attributes)
194
+ return nil unless attributes.is_a?(Hash)
195
+ self.class.openapi_types.each_pair do |key, type|
196
+ if type =~ /\AArray<(.*)>/i
197
+ # check to ensure the input is an array given that the attribute
198
+ # is documented as an array but the input is not
199
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
200
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
201
+ end
202
+ elsif !attributes[self.class.attribute_map[key]].nil?
203
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
204
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
205
+ end
206
+
207
+ self
208
+ end
209
+
210
+ # Deserializes the data based on type
211
+ # @param string type Data type
212
+ # @param string value Value to be deserialized
213
+ # @return [Object] Deserialized data
214
+ def _deserialize(type, value)
215
+ case type.to_sym
216
+ when :DateTime
217
+ DateTime.parse(value)
218
+ when :Date
219
+ Date.parse(value)
220
+ when :String
221
+ value.to_s
222
+ when :Integer
223
+ value.to_i
224
+ when :Float
225
+ value.to_f
226
+ when :Boolean
227
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
228
+ true
229
+ else
230
+ false
231
+ end
232
+ when :Object
233
+ # generic object (usually a Hash), return directly
234
+ value
235
+ when /\AArray<(?<inner_type>.+)>\z/
236
+ inner_type = Regexp.last_match[:inner_type]
237
+ value.map { |v| _deserialize(inner_type, v) }
238
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
239
+ k_type = Regexp.last_match[:k_type]
240
+ v_type = Regexp.last_match[:v_type]
241
+ {}.tap do |hash|
242
+ value.each do |k, v|
243
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
244
+ end
245
+ end
246
+ else # model
247
+ PulpDebClient.const_get(type).build_from_hash(value)
248
+ end
249
+ end
250
+
251
+ # Returns the string representation of the object
252
+ # @return [String] String presentation of the object
253
+ def to_s
254
+ to_hash.to_s
255
+ end
256
+
257
+ # to_body is an alias to to_hash (backward compatibility)
258
+ # @return [Hash] Returns the object in the form of hash
259
+ def to_body
260
+ to_hash
261
+ end
262
+
263
+ # Returns the object in the form of hash
264
+ # @return [Hash] Returns the object in the form of hash
265
+ def to_hash
266
+ hash = {}
267
+ self.class.attribute_map.each_pair do |attr, param|
268
+ value = self.send(attr)
269
+ if value.nil?
270
+ is_nullable = self.class.openapi_nullable.include?(attr)
271
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
272
+ end
273
+
274
+ hash[param] = _to_hash(value)
275
+ end
276
+ hash
277
+ end
278
+
279
+ # Outputs non-array value in the form of hash
280
+ # For object, use to_hash. Otherwise, just return the value
281
+ # @param [Object] value Any valid value
282
+ # @return [Hash] Returns the value in the form of hash
283
+ def _to_hash(value)
284
+ if value.is_a?(Array)
285
+ value.compact.map { |v| _to_hash(v) }
286
+ elsif value.is_a?(Hash)
287
+ {}.tap do |hash|
288
+ value.each { |k, v| hash[k] = _to_hash(v) }
289
+ end
290
+ elsif value.respond_to? :to_hash
291
+ value.to_hash
292
+ else
293
+ value
294
+ end
295
+ end
296
+ end
297
+ end