pulpcore_client 3.71.1 → 3.72.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 (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ArtifactDistributionResponse.md +12 -12
  4. data/docs/Domain.md +2 -0
  5. data/docs/DomainResponse.md +2 -0
  6. data/docs/DomainsApi.md +150 -2
  7. data/docs/FilesystemExportResponse.md +1 -1
  8. data/docs/GenericRemoteResponse.md +1 -1
  9. data/docs/GroupRoleResponse.md +1 -1
  10. data/docs/NestedOpenPGPPublicSubkeyResponse.md +1 -1
  11. data/docs/NestedOpenPGPUserAttributeResponse.md +1 -1
  12. data/docs/NestedOpenPGPUserIDResponse.md +1 -1
  13. data/docs/OpenPGPPublicKeyResponse.md +3 -3
  14. data/docs/OpenPGPPublicSubkeyResponse.md +1 -1
  15. data/docs/OpenPGPUserAttributeResponse.md +1 -1
  16. data/docs/OpenPGPUserIDResponse.md +1 -1
  17. data/docs/PatchedDomain.md +2 -0
  18. data/docs/PulpExportResponse.md +1 -1
  19. data/docs/Purge.md +1 -1
  20. data/docs/RBACContentGuardResponse.md +2 -2
  21. data/docs/TaskGroupResponse.md +2 -2
  22. data/docs/TaskResponse.md +4 -4
  23. data/docs/UploadDetailResponse.md +1 -1
  24. data/docs/UpstreamPulpResponse.md +1 -1
  25. data/docs/UserResponse.md +2 -2
  26. data/docs/UserRoleResponse.md +1 -1
  27. data/lib/pulpcore_client/api/domains_api.rb +154 -3
  28. data/lib/pulpcore_client/models/artifact_distribution_response.rb +49 -49
  29. data/lib/pulpcore_client/models/domain.rb +12 -1
  30. data/lib/pulpcore_client/models/domain_response.rb +12 -1
  31. data/lib/pulpcore_client/models/generic_remote_response.rb +0 -15
  32. data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +0 -9
  33. data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +0 -15
  34. data/lib/pulpcore_client/models/open_pgp_keyring.rb +0 -15
  35. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +0 -15
  36. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +0 -15
  37. data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +0 -2
  38. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +0 -2
  39. data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +0 -2
  40. data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +0 -2
  41. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +0 -2
  42. data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +0 -2
  43. data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +0 -2
  44. data/lib/pulpcore_client/models/paginated_domain_response_list.rb +0 -2
  45. data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +0 -2
  46. data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +0 -2
  47. data/lib/pulpcore_client/models/paginated_generic_remote_response_list.rb +0 -2
  48. data/lib/pulpcore_client/models/paginated_group_response_list.rb +0 -2
  49. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +0 -2
  50. data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +0 -2
  51. data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +0 -2
  52. data/lib/pulpcore_client/models/paginated_import_response_list.rb +0 -2
  53. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +0 -2
  54. data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +0 -2
  55. data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +0 -2
  56. data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +0 -2
  57. data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +0 -2
  58. data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +0 -2
  59. data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +0 -2
  60. data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +0 -2
  61. data/lib/pulpcore_client/models/paginated_publication_response_list.rb +0 -2
  62. data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +0 -2
  63. data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +0 -2
  64. data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +0 -2
  65. data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +0 -2
  66. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +0 -2
  67. data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +0 -2
  68. data/lib/pulpcore_client/models/paginated_role_response_list.rb +0 -2
  69. data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +0 -2
  70. data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +0 -2
  71. data/lib/pulpcore_client/models/paginated_task_response_list.rb +0 -2
  72. data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +0 -2
  73. data/lib/pulpcore_client/models/paginated_upload_response_list.rb +0 -2
  74. data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +0 -2
  75. data/lib/pulpcore_client/models/paginated_user_response_list.rb +0 -2
  76. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +0 -2
  77. data/lib/pulpcore_client/models/paginated_worker_response_list.rb +0 -2
  78. data/lib/pulpcore_client/models/patched_domain.rb +12 -1
  79. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +0 -15
  80. data/lib/pulpcore_client/models/purge.rb +2 -0
  81. data/lib/pulpcore_client/models/repository_response.rb +0 -15
  82. data/lib/pulpcore_client/models/storage_response.rb +0 -45
  83. data/lib/pulpcore_client/version.rb +1 -1
  84. data/spec/api/domains_api_spec.rb +28 -1
  85. data/spec/models/artifact_distribution_response_spec.rb +9 -9
  86. data/spec/models/domain_response_spec.rb +6 -0
  87. data/spec/models/domain_spec.rb +6 -0
  88. data/spec/models/patched_domain_spec.rb +6 -0
  89. metadata +2 -2
@@ -164,10 +164,11 @@ module PulpcoreClient
164
164
  # @option opts [String] :name__regex Filter results where name matches regex value
165
165
  # @option opts [String] :name__startswith Filter results where name starts with value
166
166
  # @option opts [Integer] :offset The initial index from which to return the results.
167
- # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;storage_class&#x60; - Storage class * &#x60;-storage_class&#x60; - Storage class (descending) * &#x60;storage_settings&#x60; - Storage settings * &#x60;-storage_settings&#x60; - Storage settings (descending) * &#x60;redirect_to_object_storage&#x60; - Redirect to object storage * &#x60;-redirect_to_object_storage&#x60; - Redirect to object storage (descending) * &#x60;hide_guarded_distributions&#x60; - Hide guarded distributions * &#x60;-hide_guarded_distributions&#x60; - Hide guarded distributions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
167
+ # @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;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;storage_class&#x60; - Storage class * &#x60;-storage_class&#x60; - Storage class (descending) * &#x60;storage_settings&#x60; - Storage settings * &#x60;-storage_settings&#x60; - Storage settings (descending) * &#x60;redirect_to_object_storage&#x60; - Redirect to object storage * &#x60;-redirect_to_object_storage&#x60; - Redirect to object storage (descending) * &#x60;hide_guarded_distributions&#x60; - Hide guarded distributions * &#x60;-hide_guarded_distributions&#x60; - Hide guarded distributions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
168
168
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
169
169
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
170
170
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
171
+ # @option opts [String] :pulp_label_select Filter labels by search string
171
172
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
172
173
  # @option opts [Array<String>] :fields A list of fields to include in the response.
173
174
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -191,10 +192,11 @@ module PulpcoreClient
191
192
  # @option opts [String] :name__regex Filter results where name matches regex value
192
193
  # @option opts [String] :name__startswith Filter results where name starts with value
193
194
  # @option opts [Integer] :offset The initial index from which to return the results.
194
- # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;storage_class&#x60; - Storage class * &#x60;-storage_class&#x60; - Storage class (descending) * &#x60;storage_settings&#x60; - Storage settings * &#x60;-storage_settings&#x60; - Storage settings (descending) * &#x60;redirect_to_object_storage&#x60; - Redirect to object storage * &#x60;-redirect_to_object_storage&#x60; - Redirect to object storage (descending) * &#x60;hide_guarded_distributions&#x60; - Hide guarded distributions * &#x60;-hide_guarded_distributions&#x60; - Hide guarded distributions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
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;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;storage_class&#x60; - Storage class * &#x60;-storage_class&#x60; - Storage class (descending) * &#x60;storage_settings&#x60; - Storage settings * &#x60;-storage_settings&#x60; - Storage settings (descending) * &#x60;redirect_to_object_storage&#x60; - Redirect to object storage * &#x60;-redirect_to_object_storage&#x60; - Redirect to object storage (descending) * &#x60;hide_guarded_distributions&#x60; - Hide guarded distributions * &#x60;-hide_guarded_distributions&#x60; - Hide guarded distributions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
195
196
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
196
197
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
197
198
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
199
+ # @option opts [String] :pulp_label_select Filter labels by search string
198
200
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
199
201
  # @option opts [Array<String>] :fields A list of fields to include in the response.
200
202
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -203,7 +205,7 @@ module PulpcoreClient
203
205
  if @api_client.config.debugging
204
206
  @api_client.config.logger.debug 'Calling API: DomainsApi.list ...'
205
207
  end
206
- allowable_values = ["-description", "-hide_guarded_distributions", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-redirect_to_object_storage", "-storage_class", "-storage_settings", "description", "hide_guarded_distributions", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "redirect_to_object_storage", "storage_class", "storage_settings"]
208
+ allowable_values = ["-description", "-hide_guarded_distributions", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-redirect_to_object_storage", "-storage_class", "-storage_settings", "description", "hide_guarded_distributions", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "redirect_to_object_storage", "storage_class", "storage_settings"]
207
209
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
208
210
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
209
211
  end
@@ -227,6 +229,7 @@ module PulpcoreClient
227
229
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
228
230
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
229
231
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
232
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
230
233
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
231
234
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
232
235
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
@@ -476,6 +479,154 @@ module PulpcoreClient
476
479
  return data, status_code, headers
477
480
  end
478
481
 
482
+ # Set a label
483
+ # Set a single pulp_label on the object to a specific value or null.
484
+ # @param domain_href [String]
485
+ # @param set_label [SetLabel]
486
+ # @param [Hash] opts the optional parameters
487
+ # @return [SetLabelResponse]
488
+ def set_label(domain_href, set_label, opts = {})
489
+ data, _status_code, _headers = set_label_with_http_info(domain_href, set_label, opts)
490
+ data
491
+ end
492
+
493
+ # Set a label
494
+ # Set a single pulp_label on the object to a specific value or null.
495
+ # @param domain_href [String]
496
+ # @param set_label [SetLabel]
497
+ # @param [Hash] opts the optional parameters
498
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
499
+ def set_label_with_http_info(domain_href, set_label, opts = {})
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug 'Calling API: DomainsApi.set_label ...'
502
+ end
503
+ # verify the required parameter 'domain_href' is set
504
+ if @api_client.config.client_side_validation && domain_href.nil?
505
+ fail ArgumentError, "Missing the required parameter 'domain_href' when calling DomainsApi.set_label"
506
+ end
507
+ # verify the required parameter 'set_label' is set
508
+ if @api_client.config.client_side_validation && set_label.nil?
509
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling DomainsApi.set_label"
510
+ end
511
+ # resource path
512
+ local_var_path = '{domain_href}set_label/'.sub('{' + 'domain_href' + '}', CGI.escape(domain_href.to_s).gsub('%2F', '/'))
513
+
514
+ # query parameters
515
+ query_params = opts[:query_params] || {}
516
+
517
+ # header parameters
518
+ header_params = opts[:header_params] || {}
519
+ # HTTP header 'Accept' (if needed)
520
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
521
+ # HTTP header 'Content-Type'
522
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
523
+ if !content_type.nil?
524
+ header_params['Content-Type'] = content_type
525
+ end
526
+
527
+ # form parameters
528
+ form_params = opts[:form_params] || {}
529
+
530
+ # http body (model)
531
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
532
+
533
+ # return_type
534
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
535
+
536
+ # auth_names
537
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
538
+
539
+ new_options = opts.merge(
540
+ :operation => :"DomainsApi.set_label",
541
+ :header_params => header_params,
542
+ :query_params => query_params,
543
+ :form_params => form_params,
544
+ :body => post_body,
545
+ :auth_names => auth_names,
546
+ :return_type => return_type
547
+ )
548
+
549
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
550
+ if @api_client.config.debugging
551
+ @api_client.config.logger.debug "API called: DomainsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
552
+ end
553
+ return data, status_code, headers
554
+ end
555
+
556
+ # Unset a label
557
+ # Unset a single pulp_label on the object.
558
+ # @param domain_href [String]
559
+ # @param unset_label [UnsetLabel]
560
+ # @param [Hash] opts the optional parameters
561
+ # @return [UnsetLabelResponse]
562
+ def unset_label(domain_href, unset_label, opts = {})
563
+ data, _status_code, _headers = unset_label_with_http_info(domain_href, unset_label, opts)
564
+ data
565
+ end
566
+
567
+ # Unset a label
568
+ # Unset a single pulp_label on the object.
569
+ # @param domain_href [String]
570
+ # @param unset_label [UnsetLabel]
571
+ # @param [Hash] opts the optional parameters
572
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
573
+ def unset_label_with_http_info(domain_href, unset_label, opts = {})
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug 'Calling API: DomainsApi.unset_label ...'
576
+ end
577
+ # verify the required parameter 'domain_href' is set
578
+ if @api_client.config.client_side_validation && domain_href.nil?
579
+ fail ArgumentError, "Missing the required parameter 'domain_href' when calling DomainsApi.unset_label"
580
+ end
581
+ # verify the required parameter 'unset_label' is set
582
+ if @api_client.config.client_side_validation && unset_label.nil?
583
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling DomainsApi.unset_label"
584
+ end
585
+ # resource path
586
+ local_var_path = '{domain_href}unset_label/'.sub('{' + 'domain_href' + '}', CGI.escape(domain_href.to_s).gsub('%2F', '/'))
587
+
588
+ # query parameters
589
+ query_params = opts[:query_params] || {}
590
+
591
+ # header parameters
592
+ header_params = opts[:header_params] || {}
593
+ # HTTP header 'Accept' (if needed)
594
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
595
+ # HTTP header 'Content-Type'
596
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
597
+ if !content_type.nil?
598
+ header_params['Content-Type'] = content_type
599
+ end
600
+
601
+ # form parameters
602
+ form_params = opts[:form_params] || {}
603
+
604
+ # http body (model)
605
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
606
+
607
+ # return_type
608
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
609
+
610
+ # auth_names
611
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
612
+
613
+ new_options = opts.merge(
614
+ :operation => :"DomainsApi.unset_label",
615
+ :header_params => header_params,
616
+ :query_params => query_params,
617
+ :form_params => form_params,
618
+ :body => post_body,
619
+ :auth_names => auth_names,
620
+ :return_type => return_type
621
+ )
622
+
623
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
624
+ if @api_client.config.debugging
625
+ @api_client.config.logger.debug "API called: DomainsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
626
+ end
627
+ return data, status_code, headers
628
+ end
629
+
479
630
  # Update a domain
480
631
  # Trigger an asynchronous update task
481
632
  # @param domain_href [String]
@@ -16,50 +16,50 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
- attr_accessor :pulp_labels
19
+ # An optional content-guard.
20
+ attr_accessor :content_guard
21
+
22
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
23
+ attr_accessor :no_content_change_since
20
24
 
21
25
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
26
  attr_accessor :base_path
23
27
 
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
28
+ attr_accessor :pulp_labels
26
29
 
27
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
28
- attr_accessor :no_content_change_since
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
29
32
 
30
33
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
31
34
  attr_accessor :pulp_last_updated
32
35
 
33
- # Whether this distribution should be shown in the content app.
34
- attr_accessor :hidden
36
+ # The URL for accessing the publication as defined by this distribution.
37
+ attr_accessor :base_url
35
38
 
36
39
  # A unique name. Ex, `rawhide` and `stable`.
37
40
  attr_accessor :name
38
41
 
39
- # An optional content-guard.
40
- attr_accessor :content_guard
41
-
42
42
  # The Pulp Resource Name (PRN).
43
43
  attr_accessor :prn
44
44
 
45
- # The URL for accessing the publication as defined by this distribution.
46
- attr_accessor :base_url
45
+ # Timestamp of creation.
46
+ attr_accessor :pulp_created
47
47
 
48
48
  attr_accessor :pulp_href
49
49
 
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
53
- :'pulp_labels' => :'pulp_labels',
54
- :'base_path' => :'base_path',
55
- :'pulp_created' => :'pulp_created',
53
+ :'content_guard' => :'content_guard',
56
54
  :'no_content_change_since' => :'no_content_change_since',
57
- :'pulp_last_updated' => :'pulp_last_updated',
55
+ :'base_path' => :'base_path',
56
+ :'pulp_labels' => :'pulp_labels',
58
57
  :'hidden' => :'hidden',
58
+ :'pulp_last_updated' => :'pulp_last_updated',
59
+ :'base_url' => :'base_url',
59
60
  :'name' => :'name',
60
- :'content_guard' => :'content_guard',
61
61
  :'prn' => :'prn',
62
- :'base_url' => :'base_url',
62
+ :'pulp_created' => :'pulp_created',
63
63
  :'pulp_href' => :'pulp_href'
64
64
  }
65
65
  end
@@ -72,16 +72,16 @@ module PulpcoreClient
72
72
  # Attribute type mapping.
73
73
  def self.openapi_types
74
74
  {
75
- :'pulp_labels' => :'Hash<String, String>',
76
- :'base_path' => :'String',
77
- :'pulp_created' => :'Time',
75
+ :'content_guard' => :'String',
78
76
  :'no_content_change_since' => :'String',
79
- :'pulp_last_updated' => :'Time',
77
+ :'base_path' => :'String',
78
+ :'pulp_labels' => :'Hash<String, String>',
80
79
  :'hidden' => :'Boolean',
80
+ :'pulp_last_updated' => :'Time',
81
+ :'base_url' => :'String',
81
82
  :'name' => :'String',
82
- :'content_guard' => :'String',
83
83
  :'prn' => :'String',
84
- :'base_url' => :'String',
84
+ :'pulp_created' => :'Time',
85
85
  :'pulp_href' => :'String'
86
86
  }
87
87
  end
@@ -108,10 +108,12 @@ module PulpcoreClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'pulp_labels')
112
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
113
- self.pulp_labels = value
114
- end
111
+ if attributes.key?(:'content_guard')
112
+ self.content_guard = attributes[:'content_guard']
113
+ end
114
+
115
+ if attributes.key?(:'no_content_change_since')
116
+ self.no_content_change_since = attributes[:'no_content_change_since']
115
117
  end
116
118
 
117
119
  if attributes.key?(:'base_path')
@@ -120,22 +122,24 @@ module PulpcoreClient
120
122
  self.base_path = nil
121
123
  end
122
124
 
123
- if attributes.key?(:'pulp_created')
124
- self.pulp_created = attributes[:'pulp_created']
125
+ if attributes.key?(:'pulp_labels')
126
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
127
+ self.pulp_labels = value
128
+ end
125
129
  end
126
130
 
127
- if attributes.key?(:'no_content_change_since')
128
- self.no_content_change_since = attributes[:'no_content_change_since']
131
+ if attributes.key?(:'hidden')
132
+ self.hidden = attributes[:'hidden']
133
+ else
134
+ self.hidden = false
129
135
  end
130
136
 
131
137
  if attributes.key?(:'pulp_last_updated')
132
138
  self.pulp_last_updated = attributes[:'pulp_last_updated']
133
139
  end
134
140
 
135
- if attributes.key?(:'hidden')
136
- self.hidden = attributes[:'hidden']
137
- else
138
- self.hidden = false
141
+ if attributes.key?(:'base_url')
142
+ self.base_url = attributes[:'base_url']
139
143
  end
140
144
 
141
145
  if attributes.key?(:'name')
@@ -144,16 +148,12 @@ module PulpcoreClient
144
148
  self.name = nil
145
149
  end
146
150
 
147
- if attributes.key?(:'content_guard')
148
- self.content_guard = attributes[:'content_guard']
149
- end
150
-
151
151
  if attributes.key?(:'prn')
152
152
  self.prn = attributes[:'prn']
153
153
  end
154
154
 
155
- if attributes.key?(:'base_url')
156
- self.base_url = attributes[:'base_url']
155
+ if attributes.key?(:'pulp_created')
156
+ self.pulp_created = attributes[:'pulp_created']
157
157
  end
158
158
 
159
159
  if attributes.key?(:'pulp_href')
@@ -191,16 +191,16 @@ module PulpcoreClient
191
191
  def ==(o)
192
192
  return true if self.equal?(o)
193
193
  self.class == o.class &&
194
- pulp_labels == o.pulp_labels &&
195
- base_path == o.base_path &&
196
- pulp_created == o.pulp_created &&
194
+ content_guard == o.content_guard &&
197
195
  no_content_change_since == o.no_content_change_since &&
198
- pulp_last_updated == o.pulp_last_updated &&
196
+ base_path == o.base_path &&
197
+ pulp_labels == o.pulp_labels &&
199
198
  hidden == o.hidden &&
199
+ pulp_last_updated == o.pulp_last_updated &&
200
+ base_url == o.base_url &&
200
201
  name == o.name &&
201
- content_guard == o.content_guard &&
202
202
  prn == o.prn &&
203
- base_url == o.base_url &&
203
+ pulp_created == o.pulp_created &&
204
204
  pulp_href == o.pulp_href
205
205
  end
206
206
 
@@ -213,7 +213,7 @@ module PulpcoreClient
213
213
  # Calculates hash code according to all attributes.
214
214
  # @return [Integer] Hash code
215
215
  def hash
216
- [pulp_labels, base_path, pulp_created, no_content_change_since, pulp_last_updated, hidden, name, content_guard, prn, base_url, pulp_href].hash
216
+ [content_guard, no_content_change_since, base_path, pulp_labels, hidden, pulp_last_updated, base_url, name, prn, pulp_created, pulp_href].hash
217
217
  end
218
218
 
219
219
  # Builds the object from hash
@@ -22,6 +22,8 @@ module PulpcoreClient
22
22
  # An optional description.
23
23
  attr_accessor :description
24
24
 
25
+ attr_accessor :pulp_labels
26
+
25
27
  # Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
26
28
  attr_accessor :storage_class
27
29
 
@@ -61,6 +63,7 @@ module PulpcoreClient
61
63
  {
62
64
  :'name' => :'name',
63
65
  :'description' => :'description',
66
+ :'pulp_labels' => :'pulp_labels',
64
67
  :'storage_class' => :'storage_class',
65
68
  :'storage_settings' => :'storage_settings',
66
69
  :'redirect_to_object_storage' => :'redirect_to_object_storage',
@@ -78,6 +81,7 @@ module PulpcoreClient
78
81
  {
79
82
  :'name' => :'String',
80
83
  :'description' => :'String',
84
+ :'pulp_labels' => :'Hash<String, String>',
81
85
  :'storage_class' => :'StorageClassEnum',
82
86
  :'storage_settings' => :'Object',
83
87
  :'redirect_to_object_storage' => :'Boolean',
@@ -117,6 +121,12 @@ module PulpcoreClient
117
121
  self.description = attributes[:'description']
118
122
  end
119
123
 
124
+ if attributes.key?(:'pulp_labels')
125
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
+ self.pulp_labels = value
127
+ end
128
+ end
129
+
120
130
  if attributes.key?(:'storage_class')
121
131
  self.storage_class = attributes[:'storage_class']
122
132
  else
@@ -233,6 +243,7 @@ module PulpcoreClient
233
243
  self.class == o.class &&
234
244
  name == o.name &&
235
245
  description == o.description &&
246
+ pulp_labels == o.pulp_labels &&
236
247
  storage_class == o.storage_class &&
237
248
  storage_settings == o.storage_settings &&
238
249
  redirect_to_object_storage == o.redirect_to_object_storage &&
@@ -248,7 +259,7 @@ module PulpcoreClient
248
259
  # Calculates hash code according to all attributes.
249
260
  # @return [Integer] Hash code
250
261
  def hash
251
- [name, description, storage_class, storage_settings, redirect_to_object_storage, hide_guarded_distributions].hash
262
+ [name, description, pulp_labels, storage_class, storage_settings, redirect_to_object_storage, hide_guarded_distributions].hash
252
263
  end
253
264
 
254
265
  # Builds the object from hash
@@ -33,6 +33,8 @@ module PulpcoreClient
33
33
  # An optional description.
34
34
  attr_accessor :description
35
35
 
36
+ attr_accessor :pulp_labels
37
+
36
38
  # Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
37
39
  attr_accessor :storage_class
38
40
 
@@ -76,6 +78,7 @@ module PulpcoreClient
76
78
  :'pulp_last_updated' => :'pulp_last_updated',
77
79
  :'name' => :'name',
78
80
  :'description' => :'description',
81
+ :'pulp_labels' => :'pulp_labels',
79
82
  :'storage_class' => :'storage_class',
80
83
  :'storage_settings' => :'storage_settings',
81
84
  :'redirect_to_object_storage' => :'redirect_to_object_storage',
@@ -97,6 +100,7 @@ module PulpcoreClient
97
100
  :'pulp_last_updated' => :'Time',
98
101
  :'name' => :'String',
99
102
  :'description' => :'String',
103
+ :'pulp_labels' => :'Hash<String, String>',
100
104
  :'storage_class' => :'StorageClassEnum',
101
105
  :'storage_settings' => :'Object',
102
106
  :'redirect_to_object_storage' => :'Boolean',
@@ -152,6 +156,12 @@ module PulpcoreClient
152
156
  self.description = attributes[:'description']
153
157
  end
154
158
 
159
+ if attributes.key?(:'pulp_labels')
160
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
161
+ self.pulp_labels = value
162
+ end
163
+ end
164
+
155
165
  if attributes.key?(:'storage_class')
156
166
  self.storage_class = attributes[:'storage_class']
157
167
  else
@@ -248,6 +258,7 @@ module PulpcoreClient
248
258
  pulp_last_updated == o.pulp_last_updated &&
249
259
  name == o.name &&
250
260
  description == o.description &&
261
+ pulp_labels == o.pulp_labels &&
251
262
  storage_class == o.storage_class &&
252
263
  storage_settings == o.storage_settings &&
253
264
  redirect_to_object_storage == o.redirect_to_object_storage &&
@@ -263,7 +274,7 @@ module PulpcoreClient
263
274
  # Calculates hash code according to all attributes.
264
275
  # @return [Integer] Hash code
265
276
  def hash
266
- [pulp_href, prn, pulp_created, pulp_last_updated, name, description, storage_class, storage_settings, redirect_to_object_storage, hide_guarded_distributions].hash
277
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, description, pulp_labels, storage_class, storage_settings, redirect_to_object_storage, hide_guarded_distributions].hash
267
278
  end
268
279
 
269
280
  # Builds the object from hash
@@ -297,10 +297,6 @@ module PulpcoreClient
297
297
  invalid_properties.push('invalid value for "url", url cannot be nil.')
298
298
  end
299
299
 
300
- if !@download_concurrency.nil? && @download_concurrency < 1
301
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
- end
303
-
304
300
  if !@total_timeout.nil? && @total_timeout < 0.0
305
301
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
302
  end
@@ -326,7 +322,6 @@ module PulpcoreClient
326
322
  warn '[DEPRECATED] the `valid?` method is obsolete'
327
323
  return false if @name.nil?
328
324
  return false if @url.nil?
329
- return false if !@download_concurrency.nil? && @download_concurrency < 1
330
325
  return false if !@total_timeout.nil? && @total_timeout < 0.0
331
326
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
332
327
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -334,16 +329,6 @@ module PulpcoreClient
334
329
  true
335
330
  end
336
331
 
337
- # Custom attribute writer method with validation
338
- # @param [Object] download_concurrency Value to be assigned
339
- def download_concurrency=(download_concurrency)
340
- if !download_concurrency.nil? && download_concurrency < 1
341
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
342
- end
343
-
344
- @download_concurrency = download_concurrency
345
- end
346
-
347
332
  # Custom attribute writer method with validation
348
333
  # @param [Object] total_timeout Value to be assigned
349
334
  def total_timeout=(total_timeout)
@@ -116,10 +116,6 @@ module PulpcoreClient
116
116
  def list_invalid_properties
117
117
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
118
118
  invalid_properties = Array.new
119
- if !@issuer.nil? && @issuer.to_s.length > 16
120
- invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
121
- end
122
-
123
119
  if !@issuer.nil? && @issuer.to_s.length < 1
124
120
  invalid_properties.push('invalid value for "issuer", the character length must be great than or equal to 1.')
125
121
  end
@@ -143,7 +139,6 @@ module PulpcoreClient
143
139
  # @return true if the model is valid
144
140
  def valid?
145
141
  warn '[DEPRECATED] the `valid?` method is obsolete'
146
- return false if !@issuer.nil? && @issuer.to_s.length > 16
147
142
  return false if !@issuer.nil? && @issuer.to_s.length < 1
148
143
  return false if @created.nil?
149
144
  return false if !@signers_user_id.nil? && @signers_user_id.to_s.length < 1
@@ -154,10 +149,6 @@ module PulpcoreClient
154
149
  # Custom attribute writer method with validation
155
150
  # @param [Object] issuer Value to be assigned
156
151
  def issuer=(issuer)
157
- if !issuer.nil? && issuer.to_s.length > 16
158
- fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
159
- end
160
-
161
152
  if !issuer.nil? && issuer.to_s.length < 1
162
153
  fail ArgumentError, 'invalid value for "issuer", the character length must be great than or equal to 1.'
163
154
  end
@@ -124,10 +124,6 @@ module PulpcoreClient
124
124
  def list_invalid_properties
125
125
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
126
126
  invalid_properties = Array.new
127
- if !@issuer.nil? && @issuer.to_s.length > 16
128
- invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
129
- end
130
-
131
127
  if @created.nil?
132
128
  invalid_properties.push('invalid value for "created", created cannot be nil.')
133
129
  end
@@ -143,22 +139,11 @@ module PulpcoreClient
143
139
  # @return true if the model is valid
144
140
  def valid?
145
141
  warn '[DEPRECATED] the `valid?` method is obsolete'
146
- return false if !@issuer.nil? && @issuer.to_s.length > 16
147
142
  return false if @created.nil?
148
143
  return false if @expired.nil?
149
144
  true
150
145
  end
151
146
 
152
- # Custom attribute writer method with validation
153
- # @param [Object] issuer Value to be assigned
154
- def issuer=(issuer)
155
- if !issuer.nil? && issuer.to_s.length > 16
156
- fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
157
- end
158
-
159
- @issuer = issuer
160
- end
161
-
162
147
  # Checks equality by comparing each attribute.
163
148
  # @param [Object] Object to be compared
164
149
  def ==(o)
@@ -123,10 +123,6 @@ module PulpcoreClient
123
123
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
124
124
  end
125
125
 
126
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
- end
129
-
130
126
  invalid_properties
131
127
  end
132
128
 
@@ -137,7 +133,6 @@ module PulpcoreClient
137
133
  return false if @name.nil?
138
134
  return false if @name.to_s.length < 1
139
135
  return false if !@description.nil? && @description.to_s.length < 1
140
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
136
  true
142
137
  end
143
138
 
@@ -165,16 +160,6 @@ module PulpcoreClient
165
160
  @description = description
166
161
  end
167
162
 
168
- # Custom attribute writer method with validation
169
- # @param [Object] retain_repo_versions Value to be assigned
170
- def retain_repo_versions=(retain_repo_versions)
171
- if !retain_repo_versions.nil? && retain_repo_versions < 1
172
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
173
- end
174
-
175
- @retain_repo_versions = retain_repo_versions
176
- end
177
-
178
163
  # Checks equality by comparing each attribute.
179
164
  # @param [Object] Object to be compared
180
165
  def ==(o)