pulpcore_client 3.105.2 → 3.106.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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/docs/ArtifactDistributionResponse.md +16 -12
  4. data/docs/DataRepair7272.md +18 -0
  5. data/docs/DataRepair7465.md +18 -0
  6. data/docs/Datarepair7272Api.md +82 -0
  7. data/docs/Datarepair7465Api.md +82 -0
  8. data/docs/DistributionResponse.md +5 -1
  9. data/docs/OpenPGPDistributionResponse.md +2 -0
  10. data/docs/OpenPGPKeyring.md +2 -0
  11. data/docs/OpenPGPKeyringResponse.md +2 -0
  12. data/docs/PatchedOpenPGPKeyring.md +2 -0
  13. data/docs/RepositoriesApi.md +18 -2
  14. data/docs/RepositoriesOpenpgpKeyringApi.md +18 -2
  15. data/docs/RepositoryResponse.md +2 -0
  16. data/lib/pulpcore_client/api/datarepair7272_api.rb +93 -0
  17. data/lib/pulpcore_client/api/datarepair7465_api.rb +93 -0
  18. data/lib/pulpcore_client/api/repositories_api.rb +27 -3
  19. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +27 -3
  20. data/lib/pulpcore_client/models/artifact_distribution_response.rb +72 -51
  21. data/lib/pulpcore_client/models/data_repair7272.rb +217 -0
  22. data/lib/pulpcore_client/models/data_repair7465.rb +217 -0
  23. data/lib/pulpcore_client/models/distribution_response.rb +27 -6
  24. data/lib/pulpcore_client/models/open_pgp_distribution.rb +1 -1
  25. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +12 -2
  26. data/lib/pulpcore_client/models/open_pgp_keyring.rb +27 -1
  27. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +27 -1
  28. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +1 -1
  29. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +27 -1
  30. data/lib/pulpcore_client/models/repository_response.rb +27 -1
  31. data/lib/pulpcore_client/version.rb +1 -1
  32. data/lib/pulpcore_client.rb +4 -0
  33. data/spec/api/datarepair7272_api_spec.rb +48 -0
  34. data/spec/api/datarepair7465_api_spec.rb +48 -0
  35. data/spec/api/repositories_api_spec.rb +9 -1
  36. data/spec/api/repositories_openpgp_keyring_api_spec.rb +9 -1
  37. data/spec/models/artifact_distribution_response_spec.rb +20 -8
  38. data/spec/models/data_repair7272_spec.rb +36 -0
  39. data/spec/models/data_repair7465_spec.rb +36 -0
  40. data/spec/models/distribution_response_spec.rb +12 -0
  41. data/spec/models/open_pgp_distribution_response_spec.rb +6 -0
  42. data/spec/models/open_pgp_keyring_response_spec.rb +6 -0
  43. data/spec/models/open_pgp_keyring_spec.rb +6 -0
  44. data/spec/models/patched_open_pgp_keyring_spec.rb +6 -0
  45. data/spec/models/repository_response_spec.rb +6 -0
  46. metadata +17 -1
@@ -0,0 +1,93 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class Datarepair7465Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Add Repository Version Content IDs (Issue #7465)
23
+ # Trigger an asynchronous task that adds missing repository version content_ids cache to all repository versions (Issue #7465).
24
+ # @param data_repair7465 [DataRepair7465]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
+ # @return [AsyncOperationResponse]
28
+ def post(data_repair7465, opts = {})
29
+ data, _status_code, _headers = post_with_http_info(data_repair7465, opts)
30
+ data
31
+ end
32
+
33
+ # Add Repository Version Content IDs (Issue #7465)
34
+ # Trigger an asynchronous task that adds missing repository version content_ids cache to all repository versions (Issue #7465).
35
+ # @param data_repair7465 [DataRepair7465]
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
38
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
+ def post_with_http_info(data_repair7465, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: Datarepair7465Api.post ...'
42
+ end
43
+ # verify the required parameter 'data_repair7465' is set
44
+ if @api_client.config.client_side_validation && data_repair7465.nil?
45
+ fail ArgumentError, "Missing the required parameter 'data_repair7465' when calling Datarepair7465Api.post"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp/api/v3/datarepair/7465/'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+
53
+ # header parameters
54
+ header_params = opts[:header_params] || {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
57
+ # HTTP header 'Content-Type'
58
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
59
+ if !content_type.nil?
60
+ header_params['Content-Type'] = content_type
61
+ end
62
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(data_repair7465)
69
+
70
+ # return_type
71
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :operation => :"Datarepair7465Api.post",
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => return_type
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: Datarepair7465Api#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+ end
93
+ end
@@ -35,7 +35,7 @@ module PulpcoreClient
35
35
  # @option opts [String] :name__regex Filter results where name matches regex value
36
36
  # @option opts [String] :name__startswith Filter results where name starts with value
37
37
  # @option opts [Integer] :offset The initial index from which to return the results.
38
- # @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)
38
+ # @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;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
39
39
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
40
40
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
41
41
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -44,6 +44,14 @@ module PulpcoreClient
44
44
  # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
45
45
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
46
46
  # @option opts [String] :remote
47
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
48
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
49
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
50
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
51
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
52
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
53
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
54
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
47
55
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
48
56
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
49
57
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -77,7 +85,7 @@ module PulpcoreClient
77
85
  # @option opts [String] :name__regex Filter results where name matches regex value
78
86
  # @option opts [String] :name__startswith Filter results where name starts with value
79
87
  # @option opts [Integer] :offset The initial index from which to return the results.
80
- # @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)
88
+ # @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;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
81
89
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
82
90
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
83
91
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -86,6 +94,14 @@ module PulpcoreClient
86
94
  # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
87
95
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
88
96
  # @option opts [String] :remote
97
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
98
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
99
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
100
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
101
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
102
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
103
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
104
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
89
105
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
90
106
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
91
107
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -102,7 +118,7 @@ module PulpcoreClient
102
118
  if @api_client.config.debugging
103
119
  @api_client.config.logger.debug 'Calling API: RepositoriesApi.list ...'
104
120
  end
105
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
121
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
106
122
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
107
123
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
108
124
  end
@@ -140,6 +156,14 @@ module PulpcoreClient
140
156
  query_params[:'pulp_type__in'] = @api_client.build_collection_param(opts[:'pulp_type__in'], :csv) if !opts[:'pulp_type__in'].nil?
141
157
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
142
158
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
159
+ query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
160
+ query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
161
+ query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
162
+ query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
163
+ query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
164
+ query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
165
+ query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
166
+ query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
143
167
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
144
168
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
145
169
  query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
@@ -249,13 +249,21 @@ module PulpcoreClient
249
249
  # @option opts [String] :name__regex Filter results where name matches regex value
250
250
  # @option opts [String] :name__startswith Filter results where name starts with value
251
251
  # @option opts [Integer] :offset The initial index from which to return the results.
252
- # @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)
252
+ # @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;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
253
253
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
254
254
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
255
255
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
256
256
  # @option opts [String] :pulp_label_select Filter labels by search string
257
257
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
258
258
  # @option opts [String] :remote
259
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
260
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
261
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
262
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
263
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
264
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
265
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
266
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
259
267
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
260
268
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
261
269
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -289,13 +297,21 @@ module PulpcoreClient
289
297
  # @option opts [String] :name__regex Filter results where name matches regex value
290
298
  # @option opts [String] :name__startswith Filter results where name starts with value
291
299
  # @option opts [Integer] :offset The initial index from which to return the results.
292
- # @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)
300
+ # @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;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
293
301
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
294
302
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
295
303
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
296
304
  # @option opts [String] :pulp_label_select Filter labels by search string
297
305
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
298
306
  # @option opts [String] :remote
307
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
308
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
309
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
310
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
311
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
312
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
313
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
314
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
299
315
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
300
316
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
301
317
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -312,7 +328,7 @@ module PulpcoreClient
312
328
  if @api_client.config.debugging
313
329
  @api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.list ...'
314
330
  end
315
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
331
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
316
332
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
317
333
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
318
334
  end
@@ -340,6 +356,14 @@ module PulpcoreClient
340
356
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
341
357
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
342
358
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
359
+ query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
360
+ query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
361
+ query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
362
+ query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
363
+ query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
364
+ query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
365
+ query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
366
+ query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
343
367
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
344
368
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
345
369
  query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
@@ -19,48 +19,56 @@ module PulpcoreClient
19
19
  # Whether this distribution should be shown in the content app.
20
20
  attr_accessor :hidden
21
21
 
22
- attr_accessor :pulp_labels
23
-
24
22
  # The URL for accessing the publication as defined by this distribution.
25
23
  attr_accessor :base_url
26
24
 
27
- attr_accessor :pulp_href
28
-
29
- # 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.
30
- attr_accessor :pulp_last_updated
25
+ attr_accessor :pulp_labels
31
26
 
32
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.
33
28
  attr_accessor :no_content_change_since
34
29
 
30
+ # RepositoryVersion to be served
31
+ attr_accessor :repository_version
32
+
35
33
  # A unique name. Ex, `rawhide` and `stable`.
36
34
  attr_accessor :name
37
35
 
38
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
39
- attr_accessor :base_path
36
+ attr_accessor :pulp_href
40
37
 
41
- # Timestamp of creation.
42
- attr_accessor :pulp_created
38
+ # The Pulp Resource Name (PRN).
39
+ attr_accessor :prn
40
+
41
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
42
+ attr_accessor :content_guard_prn
43
43
 
44
44
  # An optional content-guard.
45
45
  attr_accessor :content_guard
46
46
 
47
- # The Pulp Resource Name (PRN).
48
- attr_accessor :prn
47
+ # Timestamp of creation.
48
+ attr_accessor :pulp_created
49
+
50
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
51
+ attr_accessor :base_path
52
+
53
+ # 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.
54
+ attr_accessor :pulp_last_updated
49
55
 
50
56
  # Attribute mapping from ruby-style variable name to JSON key.
51
57
  def self.attribute_map
52
58
  {
53
59
  :'hidden' => :'hidden',
54
- :'pulp_labels' => :'pulp_labels',
55
60
  :'base_url' => :'base_url',
56
- :'pulp_href' => :'pulp_href',
57
- :'pulp_last_updated' => :'pulp_last_updated',
61
+ :'pulp_labels' => :'pulp_labels',
58
62
  :'no_content_change_since' => :'no_content_change_since',
63
+ :'repository_version' => :'repository_version',
59
64
  :'name' => :'name',
60
- :'base_path' => :'base_path',
61
- :'pulp_created' => :'pulp_created',
65
+ :'pulp_href' => :'pulp_href',
66
+ :'prn' => :'prn',
67
+ :'content_guard_prn' => :'content_guard_prn',
62
68
  :'content_guard' => :'content_guard',
63
- :'prn' => :'prn'
69
+ :'pulp_created' => :'pulp_created',
70
+ :'base_path' => :'base_path',
71
+ :'pulp_last_updated' => :'pulp_last_updated'
64
72
  }
65
73
  end
66
74
 
@@ -73,22 +81,25 @@ module PulpcoreClient
73
81
  def self.openapi_types
74
82
  {
75
83
  :'hidden' => :'Boolean',
76
- :'pulp_labels' => :'Hash<String, String>',
77
84
  :'base_url' => :'String',
78
- :'pulp_href' => :'String',
79
- :'pulp_last_updated' => :'Time',
85
+ :'pulp_labels' => :'Hash<String, String>',
80
86
  :'no_content_change_since' => :'String',
87
+ :'repository_version' => :'String',
81
88
  :'name' => :'String',
82
- :'base_path' => :'String',
83
- :'pulp_created' => :'Time',
89
+ :'pulp_href' => :'String',
90
+ :'prn' => :'String',
91
+ :'content_guard_prn' => :'String',
84
92
  :'content_guard' => :'String',
85
- :'prn' => :'String'
93
+ :'pulp_created' => :'Time',
94
+ :'base_path' => :'String',
95
+ :'pulp_last_updated' => :'Time'
86
96
  }
87
97
  end
88
98
 
89
99
  # List of attributes with nullable: true
90
100
  def self.openapi_nullable
91
101
  Set.new([
102
+ :'repository_version',
92
103
  :'content_guard',
93
104
  ])
94
105
  end
@@ -114,50 +125,58 @@ module PulpcoreClient
114
125
  self.hidden = false
115
126
  end
116
127
 
117
- if attributes.key?(:'pulp_labels')
118
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
119
- self.pulp_labels = value
120
- end
121
- end
122
-
123
128
  if attributes.key?(:'base_url')
124
129
  self.base_url = attributes[:'base_url']
125
130
  end
126
131
 
127
- if attributes.key?(:'pulp_href')
128
- self.pulp_href = attributes[:'pulp_href']
129
- end
130
-
131
- if attributes.key?(:'pulp_last_updated')
132
- self.pulp_last_updated = attributes[:'pulp_last_updated']
132
+ if attributes.key?(:'pulp_labels')
133
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
134
+ self.pulp_labels = value
135
+ end
133
136
  end
134
137
 
135
138
  if attributes.key?(:'no_content_change_since')
136
139
  self.no_content_change_since = attributes[:'no_content_change_since']
137
140
  end
138
141
 
142
+ if attributes.key?(:'repository_version')
143
+ self.repository_version = attributes[:'repository_version']
144
+ end
145
+
139
146
  if attributes.key?(:'name')
140
147
  self.name = attributes[:'name']
141
148
  else
142
149
  self.name = nil
143
150
  end
144
151
 
145
- if attributes.key?(:'base_path')
146
- self.base_path = attributes[:'base_path']
147
- else
148
- self.base_path = nil
152
+ if attributes.key?(:'pulp_href')
153
+ self.pulp_href = attributes[:'pulp_href']
149
154
  end
150
155
 
151
- if attributes.key?(:'pulp_created')
152
- self.pulp_created = attributes[:'pulp_created']
156
+ if attributes.key?(:'prn')
157
+ self.prn = attributes[:'prn']
158
+ end
159
+
160
+ if attributes.key?(:'content_guard_prn')
161
+ self.content_guard_prn = attributes[:'content_guard_prn']
153
162
  end
154
163
 
155
164
  if attributes.key?(:'content_guard')
156
165
  self.content_guard = attributes[:'content_guard']
157
166
  end
158
167
 
159
- if attributes.key?(:'prn')
160
- self.prn = attributes[:'prn']
168
+ if attributes.key?(:'pulp_created')
169
+ self.pulp_created = attributes[:'pulp_created']
170
+ end
171
+
172
+ if attributes.key?(:'base_path')
173
+ self.base_path = attributes[:'base_path']
174
+ else
175
+ self.base_path = nil
176
+ end
177
+
178
+ if attributes.key?(:'pulp_last_updated')
179
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
161
180
  end
162
181
  end
163
182
 
@@ -192,16 +211,18 @@ module PulpcoreClient
192
211
  return true if self.equal?(o)
193
212
  self.class == o.class &&
194
213
  hidden == o.hidden &&
195
- pulp_labels == o.pulp_labels &&
196
214
  base_url == o.base_url &&
197
- pulp_href == o.pulp_href &&
198
- pulp_last_updated == o.pulp_last_updated &&
215
+ pulp_labels == o.pulp_labels &&
199
216
  no_content_change_since == o.no_content_change_since &&
217
+ repository_version == o.repository_version &&
200
218
  name == o.name &&
201
- base_path == o.base_path &&
202
- pulp_created == o.pulp_created &&
219
+ pulp_href == o.pulp_href &&
220
+ prn == o.prn &&
221
+ content_guard_prn == o.content_guard_prn &&
203
222
  content_guard == o.content_guard &&
204
- prn == o.prn
223
+ pulp_created == o.pulp_created &&
224
+ base_path == o.base_path &&
225
+ pulp_last_updated == o.pulp_last_updated
205
226
  end
206
227
 
207
228
  # @see the `==` method
@@ -213,7 +234,7 @@ module PulpcoreClient
213
234
  # Calculates hash code according to all attributes.
214
235
  # @return [Integer] Hash code
215
236
  def hash
216
- [hidden, pulp_labels, base_url, pulp_href, pulp_last_updated, no_content_change_since, name, base_path, pulp_created, content_guard, prn].hash
237
+ [hidden, base_url, pulp_labels, no_content_change_since, repository_version, name, pulp_href, prn, content_guard_prn, content_guard, pulp_created, base_path, pulp_last_updated].hash
217
238
  end
218
239
 
219
240
  # Builds the object from hash