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,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 * &#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;fingerprint&#x60; - Fingerprint * &#x60;-fingerprint&#x60; - Fingerprint (descending) * &#x60;created&#x60; - Created * &#x60;-created&#x60; - Created (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#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;fingerprint&#x60; - Fingerprint * &#x60;-fingerprint&#x60; - Fingerprint (descending) * &#x60;created&#x60; - Created * &#x60;-created&#x60; - Created (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#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;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;signature_type&#x60; - Signature type * &#x60;-signature_type&#x60; - Signature type (descending) * &#x60;created&#x60; - Created * &#x60;-created&#x60; - Created (descending) * &#x60;expiration_time&#x60; - Expiration time * &#x60;-expiration_time&#x60; - Expiration time (descending) * &#x60;key_expiration_time&#x60; - Key expiration time * &#x60;-key_expiration_time&#x60; - Key expiration time (descending) * &#x60;issuer&#x60; - Issuer * &#x60;-issuer&#x60; - Issuer (descending) * &#x60;signers_user_id&#x60; - Signers user id * &#x60;-signers_user_id&#x60; - Signers user id (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#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;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;signature_type&#x60; - Signature type * &#x60;-signature_type&#x60; - Signature type (descending) * &#x60;created&#x60; - Created * &#x60;-created&#x60; - Created (descending) * &#x60;expiration_time&#x60; - Expiration time * &#x60;-expiration_time&#x60; - Expiration time (descending) * &#x60;key_expiration_time&#x60; - Key expiration time * &#x60;-key_expiration_time&#x60; - Key expiration time (descending) * &#x60;issuer&#x60; - Issuer * &#x60;-issuer&#x60; - Issuer (descending) * &#x60;signers_user_id&#x60; - Signers user id * &#x60;-signers_user_id&#x60; - Signers user id (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#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;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (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] :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 * &#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;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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