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,592 @@
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 DistributionsOpenpgpApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an open pgp distribution
23
+ # Trigger an asynchronous create task
24
+ # @param open_pgp_distribution [OpenPGPDistribution]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def create(open_pgp_distribution, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(open_pgp_distribution, opts)
29
+ data
30
+ end
31
+
32
+ # Create an open pgp distribution
33
+ # Trigger an asynchronous create task
34
+ # @param open_pgp_distribution [OpenPGPDistribution]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
+ def create_with_http_info(open_pgp_distribution, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.create ...'
40
+ end
41
+ # verify the required parameter 'open_pgp_distribution' is set
42
+ if @api_client.config.client_side_validation && open_pgp_distribution.nil?
43
+ fail ArgumentError, "Missing the required parameter 'open_pgp_distribution' when calling DistributionsOpenpgpApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/distributions/core/openpgp/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(open_pgp_distribution)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete an open pgp distribution
87
+ # Trigger an asynchronous delete task
88
+ # @param open_p_g_p_distribution_href [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [AsyncOperationResponse]
91
+ def delete(open_p_g_p_distribution_href, opts = {})
92
+ data, _status_code, _headers = delete_with_http_info(open_p_g_p_distribution_href, opts)
93
+ data
94
+ end
95
+
96
+ # Delete an open pgp distribution
97
+ # Trigger an asynchronous delete task
98
+ # @param open_p_g_p_distribution_href [String]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
+ def delete_with_http_info(open_p_g_p_distribution_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.delete ...'
104
+ end
105
+ # verify the required parameter 'open_p_g_p_distribution_href' is set
106
+ if @api_client.config.client_side_validation && open_p_g_p_distribution_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'open_p_g_p_distribution_href' when calling DistributionsOpenpgpApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{open_p_g_p_distribution_href}'.sub('{' + 'open_p_g_p_distribution_href' + '}', CGI.escape(open_p_g_p_distribution_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
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] || 'AsyncOperationResponse'
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(:DELETE, local_var_path, new_options)
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # List open pgp distributions
149
+ # Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
150
+ # @param [Hash] opts the optional parameters
151
+ # @option opts [Integer] :limit Number of results to return per page.
152
+ # @option opts [Integer] :offset The initial index from which to return the results.
153
+ # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
154
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
155
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
156
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
157
+ # @option opts [String] :pulp_label_select Filter labels by search string
158
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
159
+ # @option opts [String] :repository_version Filter results where repository_version matches value
160
+ # @option opts [String] :with_content Filter distributions based on the content served by them
161
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
162
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
163
+ # @return [PaginatedOpenPGPDistributionResponseList]
164
+ def list(opts = {})
165
+ data, _status_code, _headers = list_with_http_info(opts)
166
+ data
167
+ end
168
+
169
+ # List open pgp distributions
170
+ # Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
171
+ # @param [Hash] opts the optional parameters
172
+ # @option opts [Integer] :limit Number of results to return per page.
173
+ # @option opts [Integer] :offset The initial index from which to return the results.
174
+ # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
175
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
176
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
177
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
178
+ # @option opts [String] :pulp_label_select Filter labels by search string
179
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
180
+ # @option opts [String] :repository_version Filter results where repository_version matches value
181
+ # @option opts [String] :with_content Filter distributions based on the content served by them
182
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
183
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
184
+ # @return [Array<(PaginatedOpenPGPDistributionResponseList, Integer, Hash)>] PaginatedOpenPGPDistributionResponseList data, response status code and response headers
185
+ def list_with_http_info(opts = {})
186
+ if @api_client.config.debugging
187
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.list ...'
188
+ end
189
+ allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
190
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
191
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
192
+ end
193
+ # resource path
194
+ local_var_path = '/pulp/api/v3/distributions/core/openpgp/'
195
+
196
+ # query parameters
197
+ query_params = opts[:query_params] || {}
198
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
199
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
201
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
202
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
203
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
204
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
205
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
206
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
207
+ query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
208
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
209
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
210
+
211
+ # header parameters
212
+ header_params = opts[:header_params] || {}
213
+ # HTTP header 'Accept' (if needed)
214
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
215
+
216
+ # form parameters
217
+ form_params = opts[:form_params] || {}
218
+
219
+ # http body (model)
220
+ post_body = opts[:body]
221
+
222
+ # return_type
223
+ return_type = opts[:return_type] || 'PaginatedOpenPGPDistributionResponseList'
224
+
225
+ # auth_names
226
+ auth_names = opts[:auth_names] || ['basicAuth']
227
+
228
+ new_options = opts.merge(
229
+ :header_params => header_params,
230
+ :query_params => query_params,
231
+ :form_params => form_params,
232
+ :body => post_body,
233
+ :auth_names => auth_names,
234
+ :return_type => return_type
235
+ )
236
+
237
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
238
+ if @api_client.config.debugging
239
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
240
+ end
241
+ return data, status_code, headers
242
+ end
243
+
244
+ # Update an open pgp distribution
245
+ # Trigger an asynchronous partial update task
246
+ # @param open_p_g_p_distribution_href [String]
247
+ # @param patched_open_pgp_distribution [PatchedOpenPGPDistribution]
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [AsyncOperationResponse]
250
+ def partial_update(open_p_g_p_distribution_href, patched_open_pgp_distribution, opts = {})
251
+ data, _status_code, _headers = partial_update_with_http_info(open_p_g_p_distribution_href, patched_open_pgp_distribution, opts)
252
+ data
253
+ end
254
+
255
+ # Update an open pgp distribution
256
+ # Trigger an asynchronous partial update task
257
+ # @param open_p_g_p_distribution_href [String]
258
+ # @param patched_open_pgp_distribution [PatchedOpenPGPDistribution]
259
+ # @param [Hash] opts the optional parameters
260
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
261
+ def partial_update_with_http_info(open_p_g_p_distribution_href, patched_open_pgp_distribution, opts = {})
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.partial_update ...'
264
+ end
265
+ # verify the required parameter 'open_p_g_p_distribution_href' is set
266
+ if @api_client.config.client_side_validation && open_p_g_p_distribution_href.nil?
267
+ fail ArgumentError, "Missing the required parameter 'open_p_g_p_distribution_href' when calling DistributionsOpenpgpApi.partial_update"
268
+ end
269
+ # verify the required parameter 'patched_open_pgp_distribution' is set
270
+ if @api_client.config.client_side_validation && patched_open_pgp_distribution.nil?
271
+ fail ArgumentError, "Missing the required parameter 'patched_open_pgp_distribution' when calling DistributionsOpenpgpApi.partial_update"
272
+ end
273
+ # resource path
274
+ local_var_path = '{open_p_g_p_distribution_href}'.sub('{' + 'open_p_g_p_distribution_href' + '}', CGI.escape(open_p_g_p_distribution_href.to_s).gsub('%2F', '/'))
275
+
276
+ # query parameters
277
+ query_params = opts[:query_params] || {}
278
+
279
+ # header parameters
280
+ header_params = opts[:header_params] || {}
281
+ # HTTP header 'Accept' (if needed)
282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
283
+ # HTTP header 'Content-Type'
284
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
285
+
286
+ # form parameters
287
+ form_params = opts[:form_params] || {}
288
+
289
+ # http body (model)
290
+ post_body = opts[:body] || @api_client.object_to_http_body(patched_open_pgp_distribution)
291
+
292
+ # return_type
293
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
294
+
295
+ # auth_names
296
+ auth_names = opts[:auth_names] || ['basicAuth']
297
+
298
+ new_options = opts.merge(
299
+ :header_params => header_params,
300
+ :query_params => query_params,
301
+ :form_params => form_params,
302
+ :body => post_body,
303
+ :auth_names => auth_names,
304
+ :return_type => return_type
305
+ )
306
+
307
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
310
+ end
311
+ return data, status_code, headers
312
+ end
313
+
314
+ # Inspect an open pgp distribution
315
+ # Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
316
+ # @param open_p_g_p_distribution_href [String]
317
+ # @param [Hash] opts the optional parameters
318
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
319
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
320
+ # @return [OpenPGPDistributionResponse]
321
+ def read(open_p_g_p_distribution_href, opts = {})
322
+ data, _status_code, _headers = read_with_http_info(open_p_g_p_distribution_href, opts)
323
+ data
324
+ end
325
+
326
+ # Inspect an open pgp distribution
327
+ # Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
328
+ # @param open_p_g_p_distribution_href [String]
329
+ # @param [Hash] opts the optional parameters
330
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
331
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
332
+ # @return [Array<(OpenPGPDistributionResponse, Integer, Hash)>] OpenPGPDistributionResponse data, response status code and response headers
333
+ def read_with_http_info(open_p_g_p_distribution_href, opts = {})
334
+ if @api_client.config.debugging
335
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.read ...'
336
+ end
337
+ # verify the required parameter 'open_p_g_p_distribution_href' is set
338
+ if @api_client.config.client_side_validation && open_p_g_p_distribution_href.nil?
339
+ fail ArgumentError, "Missing the required parameter 'open_p_g_p_distribution_href' when calling DistributionsOpenpgpApi.read"
340
+ end
341
+ # resource path
342
+ local_var_path = '{open_p_g_p_distribution_href}'.sub('{' + 'open_p_g_p_distribution_href' + '}', CGI.escape(open_p_g_p_distribution_href.to_s).gsub('%2F', '/'))
343
+
344
+ # query parameters
345
+ query_params = opts[:query_params] || {}
346
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
347
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
348
+
349
+ # header parameters
350
+ header_params = opts[:header_params] || {}
351
+ # HTTP header 'Accept' (if needed)
352
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
353
+
354
+ # form parameters
355
+ form_params = opts[:form_params] || {}
356
+
357
+ # http body (model)
358
+ post_body = opts[:body]
359
+
360
+ # return_type
361
+ return_type = opts[:return_type] || 'OpenPGPDistributionResponse'
362
+
363
+ # auth_names
364
+ auth_names = opts[:auth_names] || ['basicAuth']
365
+
366
+ new_options = opts.merge(
367
+ :header_params => header_params,
368
+ :query_params => query_params,
369
+ :form_params => form_params,
370
+ :body => post_body,
371
+ :auth_names => auth_names,
372
+ :return_type => return_type
373
+ )
374
+
375
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
378
+ end
379
+ return data, status_code, headers
380
+ end
381
+
382
+ # Set a label
383
+ # Set a single pulp_label on the object to a specific value or null.
384
+ # @param open_p_g_p_distribution_href [String]
385
+ # @param set_label [SetLabel]
386
+ # @param [Hash] opts the optional parameters
387
+ # @return [SetLabelResponse]
388
+ def set_label(open_p_g_p_distribution_href, set_label, opts = {})
389
+ data, _status_code, _headers = set_label_with_http_info(open_p_g_p_distribution_href, set_label, opts)
390
+ data
391
+ end
392
+
393
+ # Set a label
394
+ # Set a single pulp_label on the object to a specific value or null.
395
+ # @param open_p_g_p_distribution_href [String]
396
+ # @param set_label [SetLabel]
397
+ # @param [Hash] opts the optional parameters
398
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
399
+ def set_label_with_http_info(open_p_g_p_distribution_href, set_label, opts = {})
400
+ if @api_client.config.debugging
401
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.set_label ...'
402
+ end
403
+ # verify the required parameter 'open_p_g_p_distribution_href' is set
404
+ if @api_client.config.client_side_validation && open_p_g_p_distribution_href.nil?
405
+ fail ArgumentError, "Missing the required parameter 'open_p_g_p_distribution_href' when calling DistributionsOpenpgpApi.set_label"
406
+ end
407
+ # verify the required parameter 'set_label' is set
408
+ if @api_client.config.client_side_validation && set_label.nil?
409
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsOpenpgpApi.set_label"
410
+ end
411
+ # resource path
412
+ local_var_path = '{open_p_g_p_distribution_href}set_label/'.sub('{' + 'open_p_g_p_distribution_href' + '}', CGI.escape(open_p_g_p_distribution_href.to_s).gsub('%2F', '/'))
413
+
414
+ # query parameters
415
+ query_params = opts[:query_params] || {}
416
+
417
+ # header parameters
418
+ header_params = opts[:header_params] || {}
419
+ # HTTP header 'Accept' (if needed)
420
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
421
+ # HTTP header 'Content-Type'
422
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
423
+
424
+ # form parameters
425
+ form_params = opts[:form_params] || {}
426
+
427
+ # http body (model)
428
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
429
+
430
+ # return_type
431
+ return_type = opts[:return_type] || 'SetLabelResponse'
432
+
433
+ # auth_names
434
+ auth_names = opts[:auth_names] || ['basicAuth']
435
+
436
+ new_options = opts.merge(
437
+ :header_params => header_params,
438
+ :query_params => query_params,
439
+ :form_params => form_params,
440
+ :body => post_body,
441
+ :auth_names => auth_names,
442
+ :return_type => return_type
443
+ )
444
+
445
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
448
+ end
449
+ return data, status_code, headers
450
+ end
451
+
452
+ # Unset a label
453
+ # Unset a single pulp_label on the object.
454
+ # @param open_p_g_p_distribution_href [String]
455
+ # @param unset_label [UnsetLabel]
456
+ # @param [Hash] opts the optional parameters
457
+ # @return [UnsetLabelResponse]
458
+ def unset_label(open_p_g_p_distribution_href, unset_label, opts = {})
459
+ data, _status_code, _headers = unset_label_with_http_info(open_p_g_p_distribution_href, unset_label, opts)
460
+ data
461
+ end
462
+
463
+ # Unset a label
464
+ # Unset a single pulp_label on the object.
465
+ # @param open_p_g_p_distribution_href [String]
466
+ # @param unset_label [UnsetLabel]
467
+ # @param [Hash] opts the optional parameters
468
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
469
+ def unset_label_with_http_info(open_p_g_p_distribution_href, unset_label, opts = {})
470
+ if @api_client.config.debugging
471
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.unset_label ...'
472
+ end
473
+ # verify the required parameter 'open_p_g_p_distribution_href' is set
474
+ if @api_client.config.client_side_validation && open_p_g_p_distribution_href.nil?
475
+ fail ArgumentError, "Missing the required parameter 'open_p_g_p_distribution_href' when calling DistributionsOpenpgpApi.unset_label"
476
+ end
477
+ # verify the required parameter 'unset_label' is set
478
+ if @api_client.config.client_side_validation && unset_label.nil?
479
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsOpenpgpApi.unset_label"
480
+ end
481
+ # resource path
482
+ local_var_path = '{open_p_g_p_distribution_href}unset_label/'.sub('{' + 'open_p_g_p_distribution_href' + '}', CGI.escape(open_p_g_p_distribution_href.to_s).gsub('%2F', '/'))
483
+
484
+ # query parameters
485
+ query_params = opts[:query_params] || {}
486
+
487
+ # header parameters
488
+ header_params = opts[:header_params] || {}
489
+ # HTTP header 'Accept' (if needed)
490
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
491
+ # HTTP header 'Content-Type'
492
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
493
+
494
+ # form parameters
495
+ form_params = opts[:form_params] || {}
496
+
497
+ # http body (model)
498
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
499
+
500
+ # return_type
501
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
502
+
503
+ # auth_names
504
+ auth_names = opts[:auth_names] || ['basicAuth']
505
+
506
+ new_options = opts.merge(
507
+ :header_params => header_params,
508
+ :query_params => query_params,
509
+ :form_params => form_params,
510
+ :body => post_body,
511
+ :auth_names => auth_names,
512
+ :return_type => return_type
513
+ )
514
+
515
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
516
+ if @api_client.config.debugging
517
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
518
+ end
519
+ return data, status_code, headers
520
+ end
521
+
522
+ # Update an open pgp distribution
523
+ # Trigger an asynchronous update task
524
+ # @param open_p_g_p_distribution_href [String]
525
+ # @param open_pgp_distribution [OpenPGPDistribution]
526
+ # @param [Hash] opts the optional parameters
527
+ # @return [AsyncOperationResponse]
528
+ def update(open_p_g_p_distribution_href, open_pgp_distribution, opts = {})
529
+ data, _status_code, _headers = update_with_http_info(open_p_g_p_distribution_href, open_pgp_distribution, opts)
530
+ data
531
+ end
532
+
533
+ # Update an open pgp distribution
534
+ # Trigger an asynchronous update task
535
+ # @param open_p_g_p_distribution_href [String]
536
+ # @param open_pgp_distribution [OpenPGPDistribution]
537
+ # @param [Hash] opts the optional parameters
538
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
539
+ def update_with_http_info(open_p_g_p_distribution_href, open_pgp_distribution, opts = {})
540
+ if @api_client.config.debugging
541
+ @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.update ...'
542
+ end
543
+ # verify the required parameter 'open_p_g_p_distribution_href' is set
544
+ if @api_client.config.client_side_validation && open_p_g_p_distribution_href.nil?
545
+ fail ArgumentError, "Missing the required parameter 'open_p_g_p_distribution_href' when calling DistributionsOpenpgpApi.update"
546
+ end
547
+ # verify the required parameter 'open_pgp_distribution' is set
548
+ if @api_client.config.client_side_validation && open_pgp_distribution.nil?
549
+ fail ArgumentError, "Missing the required parameter 'open_pgp_distribution' when calling DistributionsOpenpgpApi.update"
550
+ end
551
+ # resource path
552
+ local_var_path = '{open_p_g_p_distribution_href}'.sub('{' + 'open_p_g_p_distribution_href' + '}', CGI.escape(open_p_g_p_distribution_href.to_s).gsub('%2F', '/'))
553
+
554
+ # query parameters
555
+ query_params = opts[:query_params] || {}
556
+
557
+ # header parameters
558
+ header_params = opts[:header_params] || {}
559
+ # HTTP header 'Accept' (if needed)
560
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
561
+ # HTTP header 'Content-Type'
562
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
563
+
564
+ # form parameters
565
+ form_params = opts[:form_params] || {}
566
+
567
+ # http body (model)
568
+ post_body = opts[:body] || @api_client.object_to_http_body(open_pgp_distribution)
569
+
570
+ # return_type
571
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
572
+
573
+ # auth_names
574
+ auth_names = opts[:auth_names] || ['basicAuth']
575
+
576
+ new_options = opts.merge(
577
+ :header_params => header_params,
578
+ :query_params => query_params,
579
+ :form_params => form_params,
580
+ :body => post_body,
581
+ :auth_names => auth_names,
582
+ :return_type => return_type
583
+ )
584
+
585
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
586
+ if @api_client.config.debugging
587
+ @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
588
+ end
589
+ return data, status_code, headers
590
+ end
591
+ end
592
+ end
@@ -39,8 +39,8 @@ module PulpcoreClient
39
39
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
40
40
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
41
41
  # @option opts [String] :pulp_label_select Filter labels by search string
42
- # @option opts [String] :pulp_type Pulp type * &#x60;file.file&#x60; - file.file
43
- # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;file.file&#x60; - file.file
42
+ # @option opts [String] :pulp_type Pulp type * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
43
+ # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
44
44
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
45
45
  # @option opts [String] :remote Foreign Key referenced by HREF
46
46
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
@@ -80,8 +80,8 @@ module PulpcoreClient
80
80
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
81
81
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
82
82
  # @option opts [String] :pulp_label_select Filter labels by search string
83
- # @option opts [String] :pulp_type Pulp type * &#x60;file.file&#x60; - file.file
84
- # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;file.file&#x60; - file.file
83
+ # @option opts [String] :pulp_type Pulp type * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
84
+ # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
85
85
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
86
86
  # @option opts [String] :remote Foreign Key referenced by HREF
87
87
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
@@ -104,11 +104,11 @@ module PulpcoreClient
104
104
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
105
105
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
106
106
  end
107
- allowable_values = ["file.file"]
107
+ allowable_values = ["core.openpgp", "file.file"]
108
108
  if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
109
109
  fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
110
110
  end
111
- allowable_values = ["file.file"]
111
+ allowable_values = ["core.openpgp", "file.file"]
112
112
  if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
113
113
  fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
114
114
  end