pulpcore_client 3.65.0 → 3.66.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +68 -4
- data/docs/AccessPoliciesApi.md +4 -4
- data/docs/ArtifactDistributionResponse.md +15 -15
- data/docs/ContentApi.md +4 -4
- data/docs/ContentOpenpgpPublickeyApi.md +212 -0
- data/docs/ContentOpenpgpPublicsubkeyApi.md +150 -0
- data/docs/ContentOpenpgpSignatureApi.md +150 -0
- data/docs/ContentOpenpgpUserattributeApi.md +150 -0
- data/docs/ContentOpenpgpUseridApi.md +166 -0
- data/docs/DistributionsApi.md +4 -4
- data/docs/DistributionsOpenpgpApi.md +478 -0
- data/docs/FilesystemExportResponse.md +1 -1
- data/docs/ImportResponse.md +1 -1
- data/docs/NestedOpenPGPPublicSubkey.md +19 -0
- data/docs/NestedOpenPGPPublicSubkeyResponse.md +21 -0
- data/docs/NestedOpenPGPSignature.md +27 -0
- data/docs/NestedOpenPGPSignatureResponse.md +29 -0
- data/docs/NestedOpenPGPUserAttribute.md +17 -0
- data/docs/NestedOpenPGPUserAttributeResponse.md +19 -0
- data/docs/NestedOpenPGPUserID.md +17 -0
- data/docs/NestedOpenPGPUserIDResponse.md +19 -0
- data/docs/OpenPGPDistribution.md +29 -0
- data/docs/OpenPGPDistributionResponse.md +41 -0
- data/docs/OpenPGPKeyring.md +25 -0
- data/docs/OpenPGPKeyringResponse.md +37 -0
- data/docs/OpenPGPPublicKey.md +23 -0
- data/docs/OpenPGPPublicKeyResponse.md +33 -0
- data/docs/OpenPGPPublicSubkeyResponse.md +31 -0
- data/docs/OpenPGPSignatureResponse.md +39 -0
- data/docs/OpenPGPUserAttributeResponse.md +29 -0
- data/docs/OpenPGPUserIDResponse.md +29 -0
- data/docs/PaginatedOpenPGPDistributionResponseList.md +23 -0
- data/docs/PaginatedOpenPGPKeyringResponseList.md +23 -0
- data/docs/PaginatedOpenPGPPublicKeyResponseList.md +23 -0
- data/docs/PaginatedOpenPGPPublicSubkeyResponseList.md +23 -0
- data/docs/PaginatedOpenPGPSignatureResponseList.md +23 -0
- data/docs/PaginatedOpenPGPUserAttributeResponseList.md +23 -0
- data/docs/PaginatedOpenPGPUserIDResponseList.md +23 -0
- data/docs/PatchedOpenPGPDistribution.md +29 -0
- data/docs/PatchedOpenPGPKeyring.md +25 -0
- data/docs/PulpExportResponse.md +3 -3
- data/docs/RepositoriesApi.md +4 -4
- data/docs/RepositoriesOpenpgpKeyringApi.md +802 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TaskResponse.md +1 -1
- data/docs/TasksApi.md +2 -2
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +8 -8
- data/lib/pulpcore_client/api/content_api.rb +6 -6
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +266 -0
- data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +216 -0
- data/lib/pulpcore_client/api/distributions_api.rb +6 -6
- data/lib/pulpcore_client/api/distributions_openpgp_api.rb +592 -0
- data/lib/pulpcore_client/api/repositories_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +992 -0
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +64 -64
- data/lib/pulpcore_client/models/filesystem_export_response.rb +1 -1
- data/lib/pulpcore_client/models/import_response.rb +1 -1
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey.rb +254 -0
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey_response.rb +256 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +305 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +290 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute.rb +240 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute_response.rb +242 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_id.rb +231 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_id_response.rb +223 -0
- data/lib/pulpcore_client/models/open_pgp_distribution.rb +322 -0
- data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +343 -0
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +306 -0
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +329 -0
- data/lib/pulpcore_client/models/open_pgp_public_key.rb +253 -0
- data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +303 -0
- data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +304 -0
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +338 -0
- data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +290 -0
- data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +271 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +247 -0
- data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +304 -0
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +297 -0
- data/lib/pulpcore_client/models/pulp_export_response.rb +3 -3
- data/lib/pulpcore_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulpcore_client/models/set_label.rb +252 -0
- data/lib/pulpcore_client/models/set_label_response.rb +243 -0
- data/lib/pulpcore_client/models/task_response.rb +1 -1
- data/lib/pulpcore_client/models/unset_label.rb +242 -0
- data/lib/pulpcore_client/models/unset_label_response.rb +242 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +39 -0
- data/spec/api/access_policies_api_spec.rb +4 -4
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/content_openpgp_publickey_api_spec.rb +89 -0
- data/spec/api/content_openpgp_publicsubkey_api_spec.rb +74 -0
- data/spec/api/content_openpgp_signature_api_spec.rb +74 -0
- data/spec/api/content_openpgp_userattribute_api_spec.rb +74 -0
- data/spec/api/content_openpgp_userid_api_spec.rb +82 -0
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_openpgp_api_spec.rb +148 -0
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_openpgp_keyring_api_spec.rb +233 -0
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/models/artifact_distribution_response_spec.rb +9 -9
- data/spec/models/nested_open_pgp_public_subkey_response_spec.rb +53 -0
- data/spec/models/nested_open_pgp_public_subkey_spec.rb +47 -0
- data/spec/models/nested_open_pgp_signature_response_spec.rb +77 -0
- data/spec/models/nested_open_pgp_signature_spec.rb +71 -0
- data/spec/models/nested_open_pgp_user_attribute_response_spec.rb +47 -0
- data/spec/models/nested_open_pgp_user_attribute_spec.rb +41 -0
- data/spec/models/nested_open_pgp_user_id_response_spec.rb +47 -0
- data/spec/models/nested_open_pgp_user_id_spec.rb +41 -0
- data/spec/models/open_pgp_distribution_response_spec.rb +113 -0
- data/spec/models/open_pgp_distribution_spec.rb +77 -0
- data/spec/models/open_pgp_keyring_response_spec.rb +101 -0
- data/spec/models/open_pgp_keyring_spec.rb +65 -0
- data/spec/models/open_pgp_public_key_response_spec.rb +89 -0
- data/spec/models/open_pgp_public_key_spec.rb +59 -0
- data/spec/models/open_pgp_public_subkey_response_spec.rb +83 -0
- data/spec/models/open_pgp_signature_response_spec.rb +107 -0
- data/spec/models/open_pgp_user_attribute_response_spec.rb +77 -0
- data/spec/models/open_pgp_user_id_response_spec.rb +77 -0
- data/spec/models/paginated_open_pgp_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_keyring_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_public_key_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_public_subkey_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_signature_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_user_attribute_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_user_id_response_list_spec.rb +59 -0
- data/spec/models/patched_open_pgp_distribution_spec.rb +77 -0
- data/spec/models/patched_open_pgp_keyring_spec.rb +65 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +311 -155
@@ -0,0 +1,192 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class ContentOpenpgpPublicsubkeyApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List open pgp public subkeys
|
23
|
+
# Content viewset that supports only GET by default.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :fingerprint Filter results where fingerprint matches value
|
26
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
27
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
28
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
29
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
30
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
31
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
32
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
33
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
34
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
35
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
36
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
37
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
38
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
39
|
+
# @return [PaginatedOpenPGPPublicSubkeyResponseList]
|
40
|
+
def list(opts = {})
|
41
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
42
|
+
data
|
43
|
+
end
|
44
|
+
|
45
|
+
# List open pgp public subkeys
|
46
|
+
# Content viewset that supports only GET by default.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @option opts [String] :fingerprint Filter results where fingerprint matches value
|
49
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
50
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
51
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
52
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
53
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
54
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
56
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
57
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
58
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
59
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
60
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
|
+
# @return [Array<(PaginatedOpenPGPPublicSubkeyResponseList, Integer, Hash)>] PaginatedOpenPGPPublicSubkeyResponseList data, response status code and response headers
|
63
|
+
def list_with_http_info(opts = {})
|
64
|
+
if @api_client.config.debugging
|
65
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpPublicsubkeyApi.list ...'
|
66
|
+
end
|
67
|
+
allowable_values = ["-created", "-fingerprint", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-raw_data", "-timestamp_of_interest", "-upstream_id", "created", "fingerprint", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "raw_data", "timestamp_of_interest", "upstream_id"]
|
68
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
69
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
70
|
+
end
|
71
|
+
# resource path
|
72
|
+
local_var_path = '/pulp/api/v3/content/core/openpgp_publicsubkey/'
|
73
|
+
|
74
|
+
# query parameters
|
75
|
+
query_params = opts[:query_params] || {}
|
76
|
+
query_params[:'fingerprint'] = opts[:'fingerprint'] if !opts[:'fingerprint'].nil?
|
77
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
78
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
79
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
80
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
81
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
82
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
83
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
84
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
85
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
86
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
87
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
88
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
89
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
90
|
+
|
91
|
+
# header parameters
|
92
|
+
header_params = opts[:header_params] || {}
|
93
|
+
# HTTP header 'Accept' (if needed)
|
94
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
95
|
+
|
96
|
+
# form parameters
|
97
|
+
form_params = opts[:form_params] || {}
|
98
|
+
|
99
|
+
# http body (model)
|
100
|
+
post_body = opts[:body]
|
101
|
+
|
102
|
+
# return_type
|
103
|
+
return_type = opts[:return_type] || 'PaginatedOpenPGPPublicSubkeyResponseList'
|
104
|
+
|
105
|
+
# auth_names
|
106
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
107
|
+
|
108
|
+
new_options = opts.merge(
|
109
|
+
:header_params => header_params,
|
110
|
+
:query_params => query_params,
|
111
|
+
:form_params => form_params,
|
112
|
+
:body => post_body,
|
113
|
+
:auth_names => auth_names,
|
114
|
+
:return_type => return_type
|
115
|
+
)
|
116
|
+
|
117
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpPublicsubkeyApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
120
|
+
end
|
121
|
+
return data, status_code, headers
|
122
|
+
end
|
123
|
+
|
124
|
+
# Inspect an open pgp public subkey
|
125
|
+
# Content viewset that supports only GET by default.
|
126
|
+
# @param open_p_g_p_public_subkey_href [String]
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
129
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
130
|
+
# @return [OpenPGPPublicSubkeyResponse]
|
131
|
+
def read(open_p_g_p_public_subkey_href, opts = {})
|
132
|
+
data, _status_code, _headers = read_with_http_info(open_p_g_p_public_subkey_href, opts)
|
133
|
+
data
|
134
|
+
end
|
135
|
+
|
136
|
+
# Inspect an open pgp public subkey
|
137
|
+
# Content viewset that supports only GET by default.
|
138
|
+
# @param open_p_g_p_public_subkey_href [String]
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
141
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
142
|
+
# @return [Array<(OpenPGPPublicSubkeyResponse, Integer, Hash)>] OpenPGPPublicSubkeyResponse data, response status code and response headers
|
143
|
+
def read_with_http_info(open_p_g_p_public_subkey_href, opts = {})
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpPublicsubkeyApi.read ...'
|
146
|
+
end
|
147
|
+
# verify the required parameter 'open_p_g_p_public_subkey_href' is set
|
148
|
+
if @api_client.config.client_side_validation && open_p_g_p_public_subkey_href.nil?
|
149
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_public_subkey_href' when calling ContentOpenpgpPublicsubkeyApi.read"
|
150
|
+
end
|
151
|
+
# resource path
|
152
|
+
local_var_path = '{open_p_g_p_public_subkey_href}'.sub('{' + 'open_p_g_p_public_subkey_href' + '}', CGI.escape(open_p_g_p_public_subkey_href.to_s).gsub('%2F', '/'))
|
153
|
+
|
154
|
+
# query parameters
|
155
|
+
query_params = opts[:query_params] || {}
|
156
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
157
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = opts[:header_params] || {}
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
163
|
+
|
164
|
+
# form parameters
|
165
|
+
form_params = opts[:form_params] || {}
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
post_body = opts[:body]
|
169
|
+
|
170
|
+
# return_type
|
171
|
+
return_type = opts[:return_type] || 'OpenPGPPublicSubkeyResponse'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:header_params => header_params,
|
178
|
+
:query_params => query_params,
|
179
|
+
:form_params => form_params,
|
180
|
+
:body => post_body,
|
181
|
+
:auth_names => auth_names,
|
182
|
+
:return_type => return_type
|
183
|
+
)
|
184
|
+
|
185
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
186
|
+
if @api_client.config.debugging
|
187
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpPublicsubkeyApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
188
|
+
end
|
189
|
+
return data, status_code, headers
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
@@ -0,0 +1,192 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class ContentOpenpgpSignatureApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List open pgp signatures
|
23
|
+
# Content viewset that supports only GET by default.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :issuer Filter results where issuer matches value
|
26
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
27
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
28
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `signature_type` - Signature type * `-signature_type` - Signature type (descending) * `created` - Created * `-created` - Created (descending) * `expiration_time` - Expiration time * `-expiration_time` - Expiration time (descending) * `key_expiration_time` - Key expiration time * `-key_expiration_time` - Key expiration time (descending) * `issuer` - Issuer * `-issuer` - Issuer (descending) * `signers_user_id` - Signers user id * `-signers_user_id` - Signers user id (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
29
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
30
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
31
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
32
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
33
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
34
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
35
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
36
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
37
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
38
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
39
|
+
# @return [PaginatedOpenPGPSignatureResponseList]
|
40
|
+
def list(opts = {})
|
41
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
42
|
+
data
|
43
|
+
end
|
44
|
+
|
45
|
+
# List open pgp signatures
|
46
|
+
# Content viewset that supports only GET by default.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @option opts [String] :issuer Filter results where issuer matches value
|
49
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
50
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
51
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `signature_type` - Signature type * `-signature_type` - Signature type (descending) * `created` - Created * `-created` - Created (descending) * `expiration_time` - Expiration time * `-expiration_time` - Expiration time (descending) * `key_expiration_time` - Key expiration time * `-key_expiration_time` - Key expiration time (descending) * `issuer` - Issuer * `-issuer` - Issuer (descending) * `signers_user_id` - Signers user id * `-signers_user_id` - Signers user id (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
52
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
53
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
54
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
56
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
57
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
58
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
59
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
60
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
|
+
# @return [Array<(PaginatedOpenPGPSignatureResponseList, Integer, Hash)>] PaginatedOpenPGPSignatureResponseList data, response status code and response headers
|
63
|
+
def list_with_http_info(opts = {})
|
64
|
+
if @api_client.config.debugging
|
65
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpSignatureApi.list ...'
|
66
|
+
end
|
67
|
+
allowable_values = ["-created", "-expiration_time", "-issuer", "-key_expiration_time", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-raw_data", "-sha256", "-signature_type", "-signers_user_id", "-timestamp_of_interest", "-upstream_id", "created", "expiration_time", "issuer", "key_expiration_time", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "raw_data", "sha256", "signature_type", "signers_user_id", "timestamp_of_interest", "upstream_id"]
|
68
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
69
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
70
|
+
end
|
71
|
+
# resource path
|
72
|
+
local_var_path = '/pulp/api/v3/content/core/openpgp_signature/'
|
73
|
+
|
74
|
+
# query parameters
|
75
|
+
query_params = opts[:query_params] || {}
|
76
|
+
query_params[:'issuer'] = opts[:'issuer'] if !opts[:'issuer'].nil?
|
77
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
78
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
79
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
80
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
81
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
82
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
83
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
84
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
85
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
86
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
87
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
88
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
89
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
90
|
+
|
91
|
+
# header parameters
|
92
|
+
header_params = opts[:header_params] || {}
|
93
|
+
# HTTP header 'Accept' (if needed)
|
94
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
95
|
+
|
96
|
+
# form parameters
|
97
|
+
form_params = opts[:form_params] || {}
|
98
|
+
|
99
|
+
# http body (model)
|
100
|
+
post_body = opts[:body]
|
101
|
+
|
102
|
+
# return_type
|
103
|
+
return_type = opts[:return_type] || 'PaginatedOpenPGPSignatureResponseList'
|
104
|
+
|
105
|
+
# auth_names
|
106
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
107
|
+
|
108
|
+
new_options = opts.merge(
|
109
|
+
:header_params => header_params,
|
110
|
+
:query_params => query_params,
|
111
|
+
:form_params => form_params,
|
112
|
+
:body => post_body,
|
113
|
+
:auth_names => auth_names,
|
114
|
+
:return_type => return_type
|
115
|
+
)
|
116
|
+
|
117
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpSignatureApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
120
|
+
end
|
121
|
+
return data, status_code, headers
|
122
|
+
end
|
123
|
+
|
124
|
+
# Inspect an open pgp signature
|
125
|
+
# Content viewset that supports only GET by default.
|
126
|
+
# @param open_p_g_p_signature_href [String]
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
129
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
130
|
+
# @return [OpenPGPSignatureResponse]
|
131
|
+
def read(open_p_g_p_signature_href, opts = {})
|
132
|
+
data, _status_code, _headers = read_with_http_info(open_p_g_p_signature_href, opts)
|
133
|
+
data
|
134
|
+
end
|
135
|
+
|
136
|
+
# Inspect an open pgp signature
|
137
|
+
# Content viewset that supports only GET by default.
|
138
|
+
# @param open_p_g_p_signature_href [String]
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
141
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
142
|
+
# @return [Array<(OpenPGPSignatureResponse, Integer, Hash)>] OpenPGPSignatureResponse data, response status code and response headers
|
143
|
+
def read_with_http_info(open_p_g_p_signature_href, opts = {})
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpSignatureApi.read ...'
|
146
|
+
end
|
147
|
+
# verify the required parameter 'open_p_g_p_signature_href' is set
|
148
|
+
if @api_client.config.client_side_validation && open_p_g_p_signature_href.nil?
|
149
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_signature_href' when calling ContentOpenpgpSignatureApi.read"
|
150
|
+
end
|
151
|
+
# resource path
|
152
|
+
local_var_path = '{open_p_g_p_signature_href}'.sub('{' + 'open_p_g_p_signature_href' + '}', CGI.escape(open_p_g_p_signature_href.to_s).gsub('%2F', '/'))
|
153
|
+
|
154
|
+
# query parameters
|
155
|
+
query_params = opts[:query_params] || {}
|
156
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
157
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = opts[:header_params] || {}
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
163
|
+
|
164
|
+
# form parameters
|
165
|
+
form_params = opts[:form_params] || {}
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
post_body = opts[:body]
|
169
|
+
|
170
|
+
# return_type
|
171
|
+
return_type = opts[:return_type] || 'OpenPGPSignatureResponse'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:header_params => header_params,
|
178
|
+
:query_params => query_params,
|
179
|
+
:form_params => form_params,
|
180
|
+
:body => post_body,
|
181
|
+
:auth_names => auth_names,
|
182
|
+
:return_type => return_type
|
183
|
+
)
|
184
|
+
|
185
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
186
|
+
if @api_client.config.debugging
|
187
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpSignatureApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
188
|
+
end
|
189
|
+
return data, status_code, headers
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
@@ -0,0 +1,192 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class ContentOpenpgpUserattributeApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List open pgp user attributes
|
23
|
+
# Content viewset that supports only GET by default.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
26
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
28
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
29
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
30
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
31
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
32
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
33
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
34
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
35
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
36
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
37
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
38
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
39
|
+
# @return [PaginatedOpenPGPUserAttributeResponseList]
|
40
|
+
def list(opts = {})
|
41
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
42
|
+
data
|
43
|
+
end
|
44
|
+
|
45
|
+
# List open pgp user attributes
|
46
|
+
# Content viewset that supports only GET by default.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
49
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
50
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
51
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
52
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
53
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
54
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
56
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
57
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
58
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
59
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
60
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
|
+
# @return [Array<(PaginatedOpenPGPUserAttributeResponseList, Integer, Hash)>] PaginatedOpenPGPUserAttributeResponseList data, response status code and response headers
|
63
|
+
def list_with_http_info(opts = {})
|
64
|
+
if @api_client.config.debugging
|
65
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpUserattributeApi.list ...'
|
66
|
+
end
|
67
|
+
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-raw_data", "-sha256", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "raw_data", "sha256", "timestamp_of_interest", "upstream_id"]
|
68
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
69
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
70
|
+
end
|
71
|
+
# resource path
|
72
|
+
local_var_path = '/pulp/api/v3/content/core/openpgp_userattribute/'
|
73
|
+
|
74
|
+
# query parameters
|
75
|
+
query_params = opts[:query_params] || {}
|
76
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
77
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
78
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
79
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
80
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
81
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
82
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
83
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
84
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
85
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
86
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
87
|
+
query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
88
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
89
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
90
|
+
|
91
|
+
# header parameters
|
92
|
+
header_params = opts[:header_params] || {}
|
93
|
+
# HTTP header 'Accept' (if needed)
|
94
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
95
|
+
|
96
|
+
# form parameters
|
97
|
+
form_params = opts[:form_params] || {}
|
98
|
+
|
99
|
+
# http body (model)
|
100
|
+
post_body = opts[:body]
|
101
|
+
|
102
|
+
# return_type
|
103
|
+
return_type = opts[:return_type] || 'PaginatedOpenPGPUserAttributeResponseList'
|
104
|
+
|
105
|
+
# auth_names
|
106
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
107
|
+
|
108
|
+
new_options = opts.merge(
|
109
|
+
:header_params => header_params,
|
110
|
+
:query_params => query_params,
|
111
|
+
:form_params => form_params,
|
112
|
+
:body => post_body,
|
113
|
+
:auth_names => auth_names,
|
114
|
+
:return_type => return_type
|
115
|
+
)
|
116
|
+
|
117
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpUserattributeApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
120
|
+
end
|
121
|
+
return data, status_code, headers
|
122
|
+
end
|
123
|
+
|
124
|
+
# Inspect an open pgp user attribute
|
125
|
+
# Content viewset that supports only GET by default.
|
126
|
+
# @param open_p_g_p_user_attribute_href [String]
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
129
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
130
|
+
# @return [OpenPGPUserAttributeResponse]
|
131
|
+
def read(open_p_g_p_user_attribute_href, opts = {})
|
132
|
+
data, _status_code, _headers = read_with_http_info(open_p_g_p_user_attribute_href, opts)
|
133
|
+
data
|
134
|
+
end
|
135
|
+
|
136
|
+
# Inspect an open pgp user attribute
|
137
|
+
# Content viewset that supports only GET by default.
|
138
|
+
# @param open_p_g_p_user_attribute_href [String]
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
141
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
142
|
+
# @return [Array<(OpenPGPUserAttributeResponse, Integer, Hash)>] OpenPGPUserAttributeResponse data, response status code and response headers
|
143
|
+
def read_with_http_info(open_p_g_p_user_attribute_href, opts = {})
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpUserattributeApi.read ...'
|
146
|
+
end
|
147
|
+
# verify the required parameter 'open_p_g_p_user_attribute_href' is set
|
148
|
+
if @api_client.config.client_side_validation && open_p_g_p_user_attribute_href.nil?
|
149
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_user_attribute_href' when calling ContentOpenpgpUserattributeApi.read"
|
150
|
+
end
|
151
|
+
# resource path
|
152
|
+
local_var_path = '{open_p_g_p_user_attribute_href}'.sub('{' + 'open_p_g_p_user_attribute_href' + '}', CGI.escape(open_p_g_p_user_attribute_href.to_s).gsub('%2F', '/'))
|
153
|
+
|
154
|
+
# query parameters
|
155
|
+
query_params = opts[:query_params] || {}
|
156
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
157
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = opts[:header_params] || {}
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
163
|
+
|
164
|
+
# form parameters
|
165
|
+
form_params = opts[:form_params] || {}
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
post_body = opts[:body]
|
169
|
+
|
170
|
+
# return_type
|
171
|
+
return_type = opts[:return_type] || 'OpenPGPUserAttributeResponse'
|
172
|
+
|
173
|
+
# auth_names
|
174
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
175
|
+
|
176
|
+
new_options = opts.merge(
|
177
|
+
:header_params => header_params,
|
178
|
+
:query_params => query_params,
|
179
|
+
:form_params => form_params,
|
180
|
+
:body => post_body,
|
181
|
+
:auth_names => auth_names,
|
182
|
+
:return_type => return_type
|
183
|
+
)
|
184
|
+
|
185
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
186
|
+
if @api_client.config.debugging
|
187
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpUserattributeApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
188
|
+
end
|
189
|
+
return data, status_code, headers
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|