pulpcore_client 3.105.7 → 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 (48) 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/Purge.md +1 -1
  14. data/docs/RepositoriesApi.md +18 -2
  15. data/docs/RepositoriesOpenpgpKeyringApi.md +18 -2
  16. data/docs/RepositoryResponse.md +2 -0
  17. data/lib/pulpcore_client/api/datarepair7272_api.rb +93 -0
  18. data/lib/pulpcore_client/api/datarepair7465_api.rb +93 -0
  19. data/lib/pulpcore_client/api/repositories_api.rb +27 -3
  20. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +27 -3
  21. data/lib/pulpcore_client/models/artifact_distribution_response.rb +78 -57
  22. data/lib/pulpcore_client/models/data_repair7272.rb +217 -0
  23. data/lib/pulpcore_client/models/data_repair7465.rb +217 -0
  24. data/lib/pulpcore_client/models/distribution_response.rb +27 -6
  25. data/lib/pulpcore_client/models/open_pgp_distribution.rb +1 -1
  26. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +12 -2
  27. data/lib/pulpcore_client/models/open_pgp_keyring.rb +27 -1
  28. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +27 -1
  29. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +1 -1
  30. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +27 -1
  31. data/lib/pulpcore_client/models/purge.rb +1 -1
  32. data/lib/pulpcore_client/models/repository_response.rb +27 -1
  33. data/lib/pulpcore_client/version.rb +1 -1
  34. data/lib/pulpcore_client.rb +4 -0
  35. data/spec/api/datarepair7272_api_spec.rb +48 -0
  36. data/spec/api/datarepair7465_api_spec.rb +48 -0
  37. data/spec/api/repositories_api_spec.rb +9 -1
  38. data/spec/api/repositories_openpgp_keyring_api_spec.rb +9 -1
  39. data/spec/models/artifact_distribution_response_spec.rb +22 -10
  40. data/spec/models/data_repair7272_spec.rb +36 -0
  41. data/spec/models/data_repair7465_spec.rb +36 -0
  42. data/spec/models/distribution_response_spec.rb +12 -0
  43. data/spec/models/open_pgp_distribution_response_spec.rb +6 -0
  44. data/spec/models/open_pgp_keyring_response_spec.rb +6 -0
  45. data/spec/models/open_pgp_keyring_spec.rb +6 -0
  46. data/spec/models/patched_open_pgp_keyring_spec.rb +6 -0
  47. data/spec/models/repository_response_spec.rb +6 -0
  48. metadata +208 -192
@@ -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?
@@ -16,51 +16,59 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
19
  # Whether this distribution should be shown in the content app.
23
20
  attr_accessor :hidden
24
21
 
25
- # The Pulp Resource Name (PRN).
26
- attr_accessor :prn
27
-
28
- # 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.
29
- attr_accessor :pulp_last_updated
22
+ # The URL for accessing the publication as defined by this distribution.
23
+ attr_accessor :base_url
30
24
 
31
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
32
- attr_accessor :base_path
25
+ attr_accessor :pulp_labels
33
26
 
34
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.
35
28
  attr_accessor :no_content_change_since
36
29
 
37
- attr_accessor :pulp_labels
30
+ # RepositoryVersion to be served
31
+ attr_accessor :repository_version
38
32
 
39
33
  # A unique name. Ex, `rawhide` and `stable`.
40
34
  attr_accessor :name
41
35
 
42
36
  attr_accessor :pulp_href
43
37
 
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
+
44
44
  # An optional content-guard.
45
45
  attr_accessor :content_guard
46
46
 
47
- # The URL for accessing the publication as defined by this distribution.
48
- attr_accessor :base_url
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
- :'pulp_created' => :'pulp_created',
54
59
  :'hidden' => :'hidden',
55
- :'prn' => :'prn',
56
- :'pulp_last_updated' => :'pulp_last_updated',
57
- :'base_path' => :'base_path',
58
- :'no_content_change_since' => :'no_content_change_since',
60
+ :'base_url' => :'base_url',
59
61
  :'pulp_labels' => :'pulp_labels',
62
+ :'no_content_change_since' => :'no_content_change_since',
63
+ :'repository_version' => :'repository_version',
60
64
  :'name' => :'name',
61
65
  :'pulp_href' => :'pulp_href',
66
+ :'prn' => :'prn',
67
+ :'content_guard_prn' => :'content_guard_prn',
62
68
  :'content_guard' => :'content_guard',
63
- :'base_url' => :'base_url'
69
+ :'pulp_created' => :'pulp_created',
70
+ :'base_path' => :'base_path',
71
+ :'pulp_last_updated' => :'pulp_last_updated'
64
72
  }
65
73
  end
66
74
 
@@ -72,23 +80,26 @@ module PulpcoreClient
72
80
  # Attribute type mapping.
73
81
  def self.openapi_types
74
82
  {
75
- :'pulp_created' => :'Time',
76
83
  :'hidden' => :'Boolean',
77
- :'prn' => :'String',
78
- :'pulp_last_updated' => :'Time',
79
- :'base_path' => :'String',
80
- :'no_content_change_since' => :'String',
84
+ :'base_url' => :'String',
81
85
  :'pulp_labels' => :'Hash<String, String>',
86
+ :'no_content_change_since' => :'String',
87
+ :'repository_version' => :'String',
82
88
  :'name' => :'String',
83
89
  :'pulp_href' => :'String',
90
+ :'prn' => :'String',
91
+ :'content_guard_prn' => :'String',
84
92
  :'content_guard' => :'String',
85
- :'base_url' => :'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
@@ -108,38 +119,28 @@ module PulpcoreClient
108
119
  h[k.to_sym] = v
109
120
  }
110
121
 
111
- if attributes.key?(:'pulp_created')
112
- self.pulp_created = attributes[:'pulp_created']
113
- end
114
-
115
122
  if attributes.key?(:'hidden')
116
123
  self.hidden = attributes[:'hidden']
117
124
  else
118
125
  self.hidden = false
119
126
  end
120
127
 
121
- if attributes.key?(:'prn')
122
- self.prn = attributes[:'prn']
123
- end
124
-
125
- if attributes.key?(:'pulp_last_updated')
126
- self.pulp_last_updated = attributes[:'pulp_last_updated']
128
+ if attributes.key?(:'base_url')
129
+ self.base_url = attributes[:'base_url']
127
130
  end
128
131
 
129
- if attributes.key?(:'base_path')
130
- self.base_path = attributes[:'base_path']
131
- else
132
- self.base_path = nil
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
 
139
- if attributes.key?(:'pulp_labels')
140
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
141
- self.pulp_labels = value
142
- end
142
+ if attributes.key?(:'repository_version')
143
+ self.repository_version = attributes[:'repository_version']
143
144
  end
144
145
 
145
146
  if attributes.key?(:'name')
@@ -152,12 +153,30 @@ module PulpcoreClient
152
153
  self.pulp_href = attributes[:'pulp_href']
153
154
  end
154
155
 
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']
162
+ end
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?(:'base_url')
160
- self.base_url = attributes[:'base_url']
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
 
@@ -166,14 +185,14 @@ module PulpcoreClient
166
185
  def list_invalid_properties
167
186
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
168
187
  invalid_properties = Array.new
169
- if @base_path.nil?
170
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
171
- end
172
-
173
188
  if @name.nil?
174
189
  invalid_properties.push('invalid value for "name", name cannot be nil.')
175
190
  end
176
191
 
192
+ if @base_path.nil?
193
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
194
+ end
195
+
177
196
  invalid_properties
178
197
  end
179
198
 
@@ -181,8 +200,8 @@ module PulpcoreClient
181
200
  # @return true if the model is valid
182
201
  def valid?
183
202
  warn '[DEPRECATED] the `valid?` method is obsolete'
184
- return false if @base_path.nil?
185
203
  return false if @name.nil?
204
+ return false if @base_path.nil?
186
205
  true
187
206
  end
188
207
 
@@ -191,17 +210,19 @@ module PulpcoreClient
191
210
  def ==(o)
192
211
  return true if self.equal?(o)
193
212
  self.class == o.class &&
194
- pulp_created == o.pulp_created &&
195
213
  hidden == o.hidden &&
196
- prn == o.prn &&
197
- pulp_last_updated == o.pulp_last_updated &&
198
- base_path == o.base_path &&
199
- no_content_change_since == o.no_content_change_since &&
214
+ base_url == o.base_url &&
200
215
  pulp_labels == o.pulp_labels &&
216
+ no_content_change_since == o.no_content_change_since &&
217
+ repository_version == o.repository_version &&
201
218
  name == o.name &&
202
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
- base_url == o.base_url
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
- [pulp_created, hidden, prn, pulp_last_updated, base_path, no_content_change_since, pulp_labels, name, pulp_href, content_guard, base_url].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