pulpcore_client 3.65.0 → 3.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +68 -4
  3. data/docs/AccessPoliciesApi.md +4 -4
  4. data/docs/ArtifactDistributionResponse.md +15 -15
  5. data/docs/ContentApi.md +4 -4
  6. data/docs/ContentOpenpgpPublickeyApi.md +212 -0
  7. data/docs/ContentOpenpgpPublicsubkeyApi.md +150 -0
  8. data/docs/ContentOpenpgpSignatureApi.md +150 -0
  9. data/docs/ContentOpenpgpUserattributeApi.md +150 -0
  10. data/docs/ContentOpenpgpUseridApi.md +166 -0
  11. data/docs/DistributionsApi.md +4 -4
  12. data/docs/DistributionsOpenpgpApi.md +478 -0
  13. data/docs/NestedOpenPGPPublicSubkey.md +19 -0
  14. data/docs/NestedOpenPGPPublicSubkeyResponse.md +21 -0
  15. data/docs/NestedOpenPGPSignature.md +27 -0
  16. data/docs/NestedOpenPGPSignatureResponse.md +29 -0
  17. data/docs/NestedOpenPGPUserAttribute.md +17 -0
  18. data/docs/NestedOpenPGPUserAttributeResponse.md +19 -0
  19. data/docs/NestedOpenPGPUserID.md +17 -0
  20. data/docs/NestedOpenPGPUserIDResponse.md +19 -0
  21. data/docs/OpenPGPDistribution.md +29 -0
  22. data/docs/OpenPGPDistributionResponse.md +41 -0
  23. data/docs/OpenPGPKeyring.md +25 -0
  24. data/docs/OpenPGPKeyringResponse.md +37 -0
  25. data/docs/OpenPGPPublicKey.md +23 -0
  26. data/docs/OpenPGPPublicKeyResponse.md +33 -0
  27. data/docs/OpenPGPPublicSubkeyResponse.md +31 -0
  28. data/docs/OpenPGPSignatureResponse.md +39 -0
  29. data/docs/OpenPGPUserAttributeResponse.md +29 -0
  30. data/docs/OpenPGPUserIDResponse.md +29 -0
  31. data/docs/PaginatedOpenPGPDistributionResponseList.md +23 -0
  32. data/docs/PaginatedOpenPGPKeyringResponseList.md +23 -0
  33. data/docs/PaginatedOpenPGPPublicKeyResponseList.md +23 -0
  34. data/docs/PaginatedOpenPGPPublicSubkeyResponseList.md +23 -0
  35. data/docs/PaginatedOpenPGPSignatureResponseList.md +23 -0
  36. data/docs/PaginatedOpenPGPUserAttributeResponseList.md +23 -0
  37. data/docs/PaginatedOpenPGPUserIDResponseList.md +23 -0
  38. data/docs/PatchedOpenPGPDistribution.md +29 -0
  39. data/docs/PatchedOpenPGPKeyring.md +25 -0
  40. data/docs/RepositoriesApi.md +4 -4
  41. data/docs/RepositoriesOpenpgpKeyringApi.md +802 -0
  42. data/docs/RepositoryAddRemoveContent.md +21 -0
  43. data/docs/SetLabel.md +19 -0
  44. data/docs/SetLabelResponse.md +19 -0
  45. data/docs/TasksApi.md +2 -2
  46. data/docs/UnsetLabel.md +17 -0
  47. data/docs/UnsetLabelResponse.md +19 -0
  48. data/lib/pulpcore_client/api/access_policies_api.rb +8 -8
  49. data/lib/pulpcore_client/api/content_api.rb +6 -6
  50. data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +266 -0
  51. data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +192 -0
  52. data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +192 -0
  53. data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +192 -0
  54. data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +216 -0
  55. data/lib/pulpcore_client/api/distributions_api.rb +6 -6
  56. data/lib/pulpcore_client/api/distributions_openpgp_api.rb +592 -0
  57. data/lib/pulpcore_client/api/repositories_api.rb +6 -6
  58. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +992 -0
  59. data/lib/pulpcore_client/api/tasks_api.rb +3 -3
  60. data/lib/pulpcore_client/models/artifact_distribution_response.rb +69 -69
  61. data/lib/pulpcore_client/models/nested_open_pgp_public_subkey.rb +254 -0
  62. data/lib/pulpcore_client/models/nested_open_pgp_public_subkey_response.rb +256 -0
  63. data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +305 -0
  64. data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +290 -0
  65. data/lib/pulpcore_client/models/nested_open_pgp_user_attribute.rb +240 -0
  66. data/lib/pulpcore_client/models/nested_open_pgp_user_attribute_response.rb +242 -0
  67. data/lib/pulpcore_client/models/nested_open_pgp_user_id.rb +231 -0
  68. data/lib/pulpcore_client/models/nested_open_pgp_user_id_response.rb +223 -0
  69. data/lib/pulpcore_client/models/open_pgp_distribution.rb +322 -0
  70. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +343 -0
  71. data/lib/pulpcore_client/models/open_pgp_keyring.rb +306 -0
  72. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +329 -0
  73. data/lib/pulpcore_client/models/open_pgp_public_key.rb +253 -0
  74. data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +303 -0
  75. data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +304 -0
  76. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +338 -0
  77. data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +290 -0
  78. data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +271 -0
  79. data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +247 -0
  80. data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +247 -0
  81. data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +247 -0
  82. data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +247 -0
  83. data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +247 -0
  84. data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +247 -0
  85. data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +247 -0
  86. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +304 -0
  87. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +297 -0
  88. data/lib/pulpcore_client/models/remote_response.rb +20 -20
  89. data/lib/pulpcore_client/models/repository_add_remove_content.rb +232 -0
  90. data/lib/pulpcore_client/models/set_label.rb +252 -0
  91. data/lib/pulpcore_client/models/set_label_response.rb +243 -0
  92. data/lib/pulpcore_client/models/unset_label.rb +242 -0
  93. data/lib/pulpcore_client/models/unset_label_response.rb +242 -0
  94. data/lib/pulpcore_client/version.rb +1 -1
  95. data/lib/pulpcore_client.rb +39 -0
  96. data/spec/api/access_policies_api_spec.rb +4 -4
  97. data/spec/api/content_api_spec.rb +2 -2
  98. data/spec/api/content_openpgp_publickey_api_spec.rb +89 -0
  99. data/spec/api/content_openpgp_publicsubkey_api_spec.rb +74 -0
  100. data/spec/api/content_openpgp_signature_api_spec.rb +74 -0
  101. data/spec/api/content_openpgp_userattribute_api_spec.rb +74 -0
  102. data/spec/api/content_openpgp_userid_api_spec.rb +82 -0
  103. data/spec/api/distributions_api_spec.rb +2 -2
  104. data/spec/api/distributions_openpgp_api_spec.rb +148 -0
  105. data/spec/api/repositories_api_spec.rb +2 -2
  106. data/spec/api/repositories_openpgp_keyring_api_spec.rb +233 -0
  107. data/spec/api/tasks_api_spec.rb +1 -1
  108. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  109. data/spec/models/nested_open_pgp_public_subkey_response_spec.rb +53 -0
  110. data/spec/models/nested_open_pgp_public_subkey_spec.rb +47 -0
  111. data/spec/models/nested_open_pgp_signature_response_spec.rb +77 -0
  112. data/spec/models/nested_open_pgp_signature_spec.rb +71 -0
  113. data/spec/models/nested_open_pgp_user_attribute_response_spec.rb +47 -0
  114. data/spec/models/nested_open_pgp_user_attribute_spec.rb +41 -0
  115. data/spec/models/nested_open_pgp_user_id_response_spec.rb +47 -0
  116. data/spec/models/nested_open_pgp_user_id_spec.rb +41 -0
  117. data/spec/models/open_pgp_distribution_response_spec.rb +113 -0
  118. data/spec/models/open_pgp_distribution_spec.rb +77 -0
  119. data/spec/models/open_pgp_keyring_response_spec.rb +101 -0
  120. data/spec/models/open_pgp_keyring_spec.rb +65 -0
  121. data/spec/models/open_pgp_public_key_response_spec.rb +89 -0
  122. data/spec/models/open_pgp_public_key_spec.rb +59 -0
  123. data/spec/models/open_pgp_public_subkey_response_spec.rb +83 -0
  124. data/spec/models/open_pgp_signature_response_spec.rb +107 -0
  125. data/spec/models/open_pgp_user_attribute_response_spec.rb +77 -0
  126. data/spec/models/open_pgp_user_id_response_spec.rb +77 -0
  127. data/spec/models/paginated_open_pgp_distribution_response_list_spec.rb +59 -0
  128. data/spec/models/paginated_open_pgp_keyring_response_list_spec.rb +59 -0
  129. data/spec/models/paginated_open_pgp_public_key_response_list_spec.rb +59 -0
  130. data/spec/models/paginated_open_pgp_public_subkey_response_list_spec.rb +59 -0
  131. data/spec/models/paginated_open_pgp_signature_response_list_spec.rb +59 -0
  132. data/spec/models/paginated_open_pgp_user_attribute_response_list_spec.rb +59 -0
  133. data/spec/models/paginated_open_pgp_user_id_response_list_spec.rb +59 -0
  134. data/spec/models/patched_open_pgp_distribution_spec.rb +77 -0
  135. data/spec/models/patched_open_pgp_keyring_spec.rb +65 -0
  136. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  137. data/spec/models/set_label_response_spec.rb +47 -0
  138. data/spec/models/set_label_spec.rb +47 -0
  139. data/spec/models/unset_label_response_spec.rb +47 -0
  140. data/spec/models/unset_label_spec.rb +41 -0
  141. metadata +314 -158
@@ -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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;raw_data&#x60; - Raw data * &#x60;-raw_data&#x60; - Raw data (descending) * &#x60;user_id&#x60; - User id * &#x60;-user_id&#x60; - User id (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;raw_data&#x60; - Raw data * &#x60;-raw_data&#x60; - Raw data (descending) * &#x60;user_id&#x60; - User id * &#x60;-user_id&#x60; - User id (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;core.artifact&#x60; - core.artifact * &#x60;file.file&#x60; - file.file
46
- # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.artifact&#x60; - core.artifact * &#x60;file.file&#x60; - file.file
45
+ # @option opts [String] :pulp_type Pulp type * &#x60;core.artifact&#x60; - core.artifact * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
46
+ # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.artifact&#x60; - core.artifact * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - 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 * &#x60;core.artifact&#x60; - core.artifact * &#x60;file.file&#x60; - file.file
83
- # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.artifact&#x60; - core.artifact * &#x60;file.file&#x60; - file.file
82
+ # @option opts [String] :pulp_type Pulp type * &#x60;core.artifact&#x60; - core.artifact * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
83
+ # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.artifact&#x60; - core.artifact * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - 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