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,216 @@
|
|
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 ContentOpenpgpUseridApi
|
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 ids
|
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) * `user_id` - User id * `-user_id` - User id (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] :user_id Filter results where user_id matches value
|
37
|
+
# @option opts [String] :user_id__contains Filter results where user_id contains value
|
38
|
+
# @option opts [String] :user_id__icontains Filter results where user_id contains value
|
39
|
+
# @option opts [String] :user_id__iexact Filter results where user_id matches value
|
40
|
+
# @option opts [Array<String>] :user_id__in Filter results where user_id is in a comma-separated list of values
|
41
|
+
# @option opts [String] :user_id__iregex Filter results where user_id matches regex value
|
42
|
+
# @option opts [String] :user_id__istartswith Filter results where user_id starts with value
|
43
|
+
# @option opts [String] :user_id__regex Filter results where user_id matches regex value
|
44
|
+
# @option opts [String] :user_id__startswith Filter results where user_id starts with value
|
45
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
46
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
47
|
+
# @return [PaginatedOpenPGPUserIDResponseList]
|
48
|
+
def list(opts = {})
|
49
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
50
|
+
data
|
51
|
+
end
|
52
|
+
|
53
|
+
# List open pgp user ids
|
54
|
+
# Content viewset that supports only GET by default.
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
57
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
58
|
+
# @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) * `user_id` - User id * `-user_id` - User id (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
59
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
60
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
61
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
62
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
63
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
64
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
65
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
66
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
67
|
+
# @option opts [String] :user_id Filter results where user_id matches value
|
68
|
+
# @option opts [String] :user_id__contains Filter results where user_id contains value
|
69
|
+
# @option opts [String] :user_id__icontains Filter results where user_id contains value
|
70
|
+
# @option opts [String] :user_id__iexact Filter results where user_id matches value
|
71
|
+
# @option opts [Array<String>] :user_id__in Filter results where user_id is in a comma-separated list of values
|
72
|
+
# @option opts [String] :user_id__iregex Filter results where user_id matches regex value
|
73
|
+
# @option opts [String] :user_id__istartswith Filter results where user_id starts with value
|
74
|
+
# @option opts [String] :user_id__regex Filter results where user_id matches regex value
|
75
|
+
# @option opts [String] :user_id__startswith Filter results where user_id starts with value
|
76
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
77
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
78
|
+
# @return [Array<(PaginatedOpenPGPUserIDResponseList, Integer, Hash)>] PaginatedOpenPGPUserIDResponseList data, response status code and response headers
|
79
|
+
def list_with_http_info(opts = {})
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpUseridApi.list ...'
|
82
|
+
end
|
83
|
+
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-raw_data", "-timestamp_of_interest", "-upstream_id", "-user_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "raw_data", "timestamp_of_interest", "upstream_id", "user_id"]
|
84
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
85
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
86
|
+
end
|
87
|
+
# resource path
|
88
|
+
local_var_path = '/pulp/api/v3/content/core/openpgp_userid/'
|
89
|
+
|
90
|
+
# query parameters
|
91
|
+
query_params = opts[:query_params] || {}
|
92
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
93
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
94
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
95
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
96
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
97
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
98
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
99
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
100
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
101
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
102
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
103
|
+
query_params[:'user_id'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
104
|
+
query_params[:'user_id__contains'] = opts[:'user_id__contains'] if !opts[:'user_id__contains'].nil?
|
105
|
+
query_params[:'user_id__icontains'] = opts[:'user_id__icontains'] if !opts[:'user_id__icontains'].nil?
|
106
|
+
query_params[:'user_id__iexact'] = opts[:'user_id__iexact'] if !opts[:'user_id__iexact'].nil?
|
107
|
+
query_params[:'user_id__in'] = @api_client.build_collection_param(opts[:'user_id__in'], :csv) if !opts[:'user_id__in'].nil?
|
108
|
+
query_params[:'user_id__iregex'] = opts[:'user_id__iregex'] if !opts[:'user_id__iregex'].nil?
|
109
|
+
query_params[:'user_id__istartswith'] = opts[:'user_id__istartswith'] if !opts[:'user_id__istartswith'].nil?
|
110
|
+
query_params[:'user_id__regex'] = opts[:'user_id__regex'] if !opts[:'user_id__regex'].nil?
|
111
|
+
query_params[:'user_id__startswith'] = opts[:'user_id__startswith'] if !opts[:'user_id__startswith'].nil?
|
112
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
113
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:body]
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:return_type] || 'PaginatedOpenPGPUserIDResponseList'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:header_params => header_params,
|
134
|
+
:query_params => query_params,
|
135
|
+
:form_params => form_params,
|
136
|
+
:body => post_body,
|
137
|
+
:auth_names => auth_names,
|
138
|
+
:return_type => return_type
|
139
|
+
)
|
140
|
+
|
141
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpUseridApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
|
148
|
+
# Inspect an open pgp user id
|
149
|
+
# Content viewset that supports only GET by default.
|
150
|
+
# @param open_p_g_p_user_i_d_href [String]
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
153
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
154
|
+
# @return [OpenPGPUserIDResponse]
|
155
|
+
def read(open_p_g_p_user_i_d_href, opts = {})
|
156
|
+
data, _status_code, _headers = read_with_http_info(open_p_g_p_user_i_d_href, opts)
|
157
|
+
data
|
158
|
+
end
|
159
|
+
|
160
|
+
# Inspect an open pgp user id
|
161
|
+
# Content viewset that supports only GET by default.
|
162
|
+
# @param open_p_g_p_user_i_d_href [String]
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
165
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
166
|
+
# @return [Array<(OpenPGPUserIDResponse, Integer, Hash)>] OpenPGPUserIDResponse data, response status code and response headers
|
167
|
+
def read_with_http_info(open_p_g_p_user_i_d_href, opts = {})
|
168
|
+
if @api_client.config.debugging
|
169
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpUseridApi.read ...'
|
170
|
+
end
|
171
|
+
# verify the required parameter 'open_p_g_p_user_i_d_href' is set
|
172
|
+
if @api_client.config.client_side_validation && open_p_g_p_user_i_d_href.nil?
|
173
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_user_i_d_href' when calling ContentOpenpgpUseridApi.read"
|
174
|
+
end
|
175
|
+
# resource path
|
176
|
+
local_var_path = '{open_p_g_p_user_i_d_href}'.sub('{' + 'open_p_g_p_user_i_d_href' + '}', CGI.escape(open_p_g_p_user_i_d_href.to_s).gsub('%2F', '/'))
|
177
|
+
|
178
|
+
# query parameters
|
179
|
+
query_params = opts[:query_params] || {}
|
180
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
181
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
182
|
+
|
183
|
+
# header parameters
|
184
|
+
header_params = opts[:header_params] || {}
|
185
|
+
# HTTP header 'Accept' (if needed)
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
187
|
+
|
188
|
+
# form parameters
|
189
|
+
form_params = opts[:form_params] || {}
|
190
|
+
|
191
|
+
# http body (model)
|
192
|
+
post_body = opts[:body]
|
193
|
+
|
194
|
+
# return_type
|
195
|
+
return_type = opts[:return_type] || 'OpenPGPUserIDResponse'
|
196
|
+
|
197
|
+
# auth_names
|
198
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
199
|
+
|
200
|
+
new_options = opts.merge(
|
201
|
+
:header_params => header_params,
|
202
|
+
:query_params => query_params,
|
203
|
+
:form_params => form_params,
|
204
|
+
:body => post_body,
|
205
|
+
:auth_names => auth_names,
|
206
|
+
:return_type => return_type
|
207
|
+
)
|
208
|
+
|
209
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
210
|
+
if @api_client.config.debugging
|
211
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpUseridApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
|
+
end
|
213
|
+
return data, status_code, headers
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
@@ -42,8 +42,8 @@ module PulpcoreClient
|
|
42
42
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
43
43
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
44
44
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
45
|
-
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact * `file.file` - file.file
|
46
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact * `file.file` - file.file
|
45
|
+
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact * `core.openpgp` - core.openpgp * `file.file` - file.file
|
46
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact * `core.openpgp` - core.openpgp * `file.file` - file.file
|
47
47
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
48
48
|
# @option opts [String] :repository Filter results where repository matches value
|
49
49
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
@@ -79,8 +79,8 @@ module PulpcoreClient
|
|
79
79
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
80
80
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
81
81
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
82
|
-
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact * `file.file` - file.file
|
83
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact * `file.file` - file.file
|
82
|
+
# @option opts [String] :pulp_type Pulp type * `core.artifact` - core.artifact * `core.openpgp` - core.openpgp * `file.file` - file.file
|
83
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.artifact` - core.artifact * `core.openpgp` - core.openpgp * `file.file` - file.file
|
84
84
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
85
85
|
# @option opts [String] :repository Filter results where repository matches value
|
86
86
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
@@ -96,11 +96,11 @@ module PulpcoreClient
|
|
96
96
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
97
97
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
98
98
|
end
|
99
|
-
allowable_values = ["core.artifact", "file.file"]
|
99
|
+
allowable_values = ["core.artifact", "core.openpgp", "file.file"]
|
100
100
|
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
101
101
|
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
102
102
|
end
|
103
|
-
allowable_values = ["core.artifact", "file.file"]
|
103
|
+
allowable_values = ["core.artifact", "core.openpgp", "file.file"]
|
104
104
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
105
105
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
106
106
|
end
|