pulpcore_client 3.105.0 → 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.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/docs/ArtifactDistributionResponse.md +15 -11
- data/docs/DataRepair7272.md +18 -0
- data/docs/DataRepair7465.md +18 -0
- data/docs/Datarepair7272Api.md +82 -0
- data/docs/Datarepair7465Api.md +82 -0
- data/docs/DistributionResponse.md +5 -1
- data/docs/OpenPGPDistributionResponse.md +2 -0
- data/docs/OpenPGPKeyring.md +2 -0
- data/docs/OpenPGPKeyringResponse.md +2 -0
- data/docs/PatchedOpenPGPKeyring.md +2 -0
- data/docs/Purge.md +1 -1
- data/docs/RepositoriesApi.md +18 -2
- data/docs/RepositoriesOpenpgpKeyringApi.md +18 -2
- data/docs/RepositoryResponse.md +2 -0
- data/lib/pulpcore_client/api/datarepair7272_api.rb +93 -0
- data/lib/pulpcore_client/api/datarepair7465_api.rb +93 -0
- data/lib/pulpcore_client/api/repositories_api.rb +27 -3
- data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +27 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +71 -50
- data/lib/pulpcore_client/models/data_repair7272.rb +217 -0
- data/lib/pulpcore_client/models/data_repair7465.rb +217 -0
- data/lib/pulpcore_client/models/distribution_response.rb +27 -6
- data/lib/pulpcore_client/models/open_pgp_distribution.rb +1 -1
- data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +12 -2
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +27 -1
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +27 -1
- data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +1 -1
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +27 -1
- data/lib/pulpcore_client/models/purge.rb +1 -1
- data/lib/pulpcore_client/models/repository_response.rb +27 -1
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +4 -0
- data/spec/api/datarepair7272_api_spec.rb +48 -0
- data/spec/api/datarepair7465_api_spec.rb +48 -0
- data/spec/api/repositories_api_spec.rb +9 -1
- data/spec/api/repositories_openpgp_keyring_api_spec.rb +9 -1
- data/spec/models/artifact_distribution_response_spec.rb +22 -10
- data/spec/models/data_repair7272_spec.rb +36 -0
- data/spec/models/data_repair7465_spec.rb +36 -0
- data/spec/models/distribution_response_spec.rb +12 -0
- data/spec/models/open_pgp_distribution_response_spec.rb +6 -0
- data/spec/models/open_pgp_keyring_response_spec.rb +6 -0
- data/spec/models/open_pgp_keyring_spec.rb +6 -0
- data/spec/models/patched_open_pgp_keyring_spec.rb +6 -0
- data/spec/models/repository_response_spec.rb +6 -0
- metadata +18 -2
|
@@ -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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
38
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - 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. * `core.openpgp` - core.openpgp * `file.file` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
88
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - 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. * `core.openpgp` - core.openpgp * `file.file` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
252
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
300
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - 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,27 +16,36 @@ require 'time'
|
|
|
16
16
|
module PulpcoreClient
|
|
17
17
|
# A serializer for ArtifactDistribution.
|
|
18
18
|
class ArtifactDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Whether this distribution should be shown in the content app.
|
|
20
|
+
attr_accessor :hidden
|
|
21
|
+
|
|
22
|
+
# The URL for accessing the publication as defined by this distribution.
|
|
23
|
+
attr_accessor :base_url
|
|
24
|
+
|
|
25
|
+
attr_accessor :pulp_labels
|
|
21
26
|
|
|
22
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.
|
|
23
28
|
attr_accessor :no_content_change_since
|
|
24
29
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
30
|
+
# RepositoryVersion to be served
|
|
31
|
+
attr_accessor :repository_version
|
|
32
|
+
|
|
33
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
34
|
+
attr_accessor :name
|
|
27
35
|
|
|
28
36
|
attr_accessor :pulp_href
|
|
29
37
|
|
|
30
38
|
# The Pulp Resource Name (PRN).
|
|
31
39
|
attr_accessor :prn
|
|
32
40
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
41
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
42
|
+
attr_accessor :content_guard_prn
|
|
35
43
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
44
|
+
# An optional content-guard.
|
|
45
|
+
attr_accessor :content_guard
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
# Timestamp of creation.
|
|
48
|
+
attr_accessor :pulp_created
|
|
40
49
|
|
|
41
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\")
|
|
42
51
|
attr_accessor :base_path
|
|
@@ -44,23 +53,22 @@ module PulpcoreClient
|
|
|
44
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.
|
|
45
54
|
attr_accessor :pulp_last_updated
|
|
46
55
|
|
|
47
|
-
# An optional content-guard.
|
|
48
|
-
attr_accessor :content_guard
|
|
49
|
-
|
|
50
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
57
|
def self.attribute_map
|
|
52
58
|
{
|
|
53
|
-
:'name' => :'name',
|
|
54
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
55
59
|
:'hidden' => :'hidden',
|
|
60
|
+
:'base_url' => :'base_url',
|
|
61
|
+
:'pulp_labels' => :'pulp_labels',
|
|
62
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
63
|
+
:'repository_version' => :'repository_version',
|
|
64
|
+
:'name' => :'name',
|
|
56
65
|
:'pulp_href' => :'pulp_href',
|
|
57
66
|
:'prn' => :'prn',
|
|
67
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
68
|
+
:'content_guard' => :'content_guard',
|
|
58
69
|
:'pulp_created' => :'pulp_created',
|
|
59
|
-
:'base_url' => :'base_url',
|
|
60
|
-
:'pulp_labels' => :'pulp_labels',
|
|
61
70
|
:'base_path' => :'base_path',
|
|
62
|
-
:'pulp_last_updated' => :'pulp_last_updated'
|
|
63
|
-
:'content_guard' => :'content_guard'
|
|
71
|
+
:'pulp_last_updated' => :'pulp_last_updated'
|
|
64
72
|
}
|
|
65
73
|
end
|
|
66
74
|
|
|
@@ -72,24 +80,27 @@ module PulpcoreClient
|
|
|
72
80
|
# Attribute type mapping.
|
|
73
81
|
def self.openapi_types
|
|
74
82
|
{
|
|
75
|
-
:'name' => :'String',
|
|
76
|
-
:'no_content_change_since' => :'String',
|
|
77
83
|
:'hidden' => :'Boolean',
|
|
84
|
+
:'base_url' => :'String',
|
|
85
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
86
|
+
:'no_content_change_since' => :'String',
|
|
87
|
+
:'repository_version' => :'String',
|
|
88
|
+
:'name' => :'String',
|
|
78
89
|
:'pulp_href' => :'String',
|
|
79
90
|
:'prn' => :'String',
|
|
91
|
+
:'content_guard_prn' => :'String',
|
|
92
|
+
:'content_guard' => :'String',
|
|
80
93
|
:'pulp_created' => :'Time',
|
|
81
|
-
:'base_url' => :'String',
|
|
82
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
83
94
|
:'base_path' => :'String',
|
|
84
|
-
:'pulp_last_updated' => :'Time'
|
|
85
|
-
:'content_guard' => :'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([
|
|
92
|
-
:'
|
|
102
|
+
:'repository_version',
|
|
103
|
+
:'content_guard',
|
|
93
104
|
])
|
|
94
105
|
end
|
|
95
106
|
|
|
@@ -108,20 +119,34 @@ module PulpcoreClient
|
|
|
108
119
|
h[k.to_sym] = v
|
|
109
120
|
}
|
|
110
121
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
122
|
+
if attributes.key?(:'hidden')
|
|
123
|
+
self.hidden = attributes[:'hidden']
|
|
113
124
|
else
|
|
114
|
-
self.
|
|
125
|
+
self.hidden = false
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'base_url')
|
|
129
|
+
self.base_url = attributes[:'base_url']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'pulp_labels')
|
|
133
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
134
|
+
self.pulp_labels = value
|
|
135
|
+
end
|
|
115
136
|
end
|
|
116
137
|
|
|
117
138
|
if attributes.key?(:'no_content_change_since')
|
|
118
139
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
119
140
|
end
|
|
120
141
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
142
|
+
if attributes.key?(:'repository_version')
|
|
143
|
+
self.repository_version = attributes[:'repository_version']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'name')
|
|
147
|
+
self.name = attributes[:'name']
|
|
123
148
|
else
|
|
124
|
-
self.
|
|
149
|
+
self.name = nil
|
|
125
150
|
end
|
|
126
151
|
|
|
127
152
|
if attributes.key?(:'pulp_href')
|
|
@@ -132,18 +157,16 @@ module PulpcoreClient
|
|
|
132
157
|
self.prn = attributes[:'prn']
|
|
133
158
|
end
|
|
134
159
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
160
|
+
if attributes.key?(:'content_guard_prn')
|
|
161
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
137
162
|
end
|
|
138
163
|
|
|
139
|
-
if attributes.key?(:'
|
|
140
|
-
self.
|
|
164
|
+
if attributes.key?(:'content_guard')
|
|
165
|
+
self.content_guard = attributes[:'content_guard']
|
|
141
166
|
end
|
|
142
167
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
|
|
145
|
-
self.pulp_labels = value
|
|
146
|
-
end
|
|
168
|
+
if attributes.key?(:'pulp_created')
|
|
169
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
147
170
|
end
|
|
148
171
|
|
|
149
172
|
if attributes.key?(:'base_path')
|
|
@@ -155,10 +178,6 @@ module PulpcoreClient
|
|
|
155
178
|
if attributes.key?(:'pulp_last_updated')
|
|
156
179
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
157
180
|
end
|
|
158
|
-
|
|
159
|
-
if attributes.key?(:'content_guard')
|
|
160
|
-
self.content_guard = attributes[:'content_guard']
|
|
161
|
-
end
|
|
162
181
|
end
|
|
163
182
|
|
|
164
183
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -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
|
-
name == o.name &&
|
|
195
|
-
no_content_change_since == o.no_content_change_since &&
|
|
196
213
|
hidden == o.hidden &&
|
|
214
|
+
base_url == o.base_url &&
|
|
215
|
+
pulp_labels == o.pulp_labels &&
|
|
216
|
+
no_content_change_since == o.no_content_change_since &&
|
|
217
|
+
repository_version == o.repository_version &&
|
|
218
|
+
name == o.name &&
|
|
197
219
|
pulp_href == o.pulp_href &&
|
|
198
220
|
prn == o.prn &&
|
|
221
|
+
content_guard_prn == o.content_guard_prn &&
|
|
222
|
+
content_guard == o.content_guard &&
|
|
199
223
|
pulp_created == o.pulp_created &&
|
|
200
|
-
base_url == o.base_url &&
|
|
201
|
-
pulp_labels == o.pulp_labels &&
|
|
202
224
|
base_path == o.base_path &&
|
|
203
|
-
pulp_last_updated == o.pulp_last_updated
|
|
204
|
-
content_guard == o.content_guard
|
|
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
|
-
[
|
|
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
|