pulpcore_client 3.65.0 → 3.67.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +68 -4
- data/docs/AccessPoliciesApi.md +4 -4
- data/docs/ArtifactDistributionResponse.md +12 -12
- data/docs/ContentApi.md +4 -4
- data/docs/ContentOpenpgpPublickeyApi.md +212 -0
- data/docs/ContentOpenpgpPublicsubkeyApi.md +150 -0
- data/docs/ContentOpenpgpSignatureApi.md +150 -0
- data/docs/ContentOpenpgpUserattributeApi.md +150 -0
- data/docs/ContentOpenpgpUseridApi.md +166 -0
- data/docs/DistributionsApi.md +4 -4
- data/docs/DistributionsOpenpgpApi.md +478 -0
- data/docs/FilesystemExportResponse.md +1 -1
- data/docs/ImportResponse.md +1 -1
- data/docs/NestedOpenPGPPublicSubkey.md +19 -0
- data/docs/NestedOpenPGPPublicSubkeyResponse.md +21 -0
- data/docs/NestedOpenPGPSignature.md +27 -0
- data/docs/NestedOpenPGPSignatureResponse.md +29 -0
- data/docs/NestedOpenPGPUserAttribute.md +17 -0
- data/docs/NestedOpenPGPUserAttributeResponse.md +19 -0
- data/docs/NestedOpenPGPUserID.md +17 -0
- data/docs/NestedOpenPGPUserIDResponse.md +19 -0
- data/docs/OpenPGPDistribution.md +29 -0
- data/docs/OpenPGPDistributionResponse.md +41 -0
- data/docs/OpenPGPKeyring.md +25 -0
- data/docs/OpenPGPKeyringResponse.md +37 -0
- data/docs/OpenPGPPublicKey.md +23 -0
- data/docs/OpenPGPPublicKeyResponse.md +33 -0
- data/docs/OpenPGPPublicSubkeyResponse.md +31 -0
- data/docs/OpenPGPSignatureResponse.md +39 -0
- data/docs/OpenPGPUserAttributeResponse.md +29 -0
- data/docs/OpenPGPUserIDResponse.md +29 -0
- data/docs/PaginatedOpenPGPDistributionResponseList.md +23 -0
- data/docs/PaginatedOpenPGPKeyringResponseList.md +23 -0
- data/docs/PaginatedOpenPGPPublicKeyResponseList.md +23 -0
- data/docs/PaginatedOpenPGPPublicSubkeyResponseList.md +23 -0
- data/docs/PaginatedOpenPGPSignatureResponseList.md +23 -0
- data/docs/PaginatedOpenPGPUserAttributeResponseList.md +23 -0
- data/docs/PaginatedOpenPGPUserIDResponseList.md +23 -0
- data/docs/PatchedOpenPGPDistribution.md +29 -0
- data/docs/PatchedOpenPGPKeyring.md +25 -0
- data/docs/PulpExportResponse.md +3 -3
- data/docs/RepositoriesApi.md +4 -4
- data/docs/RepositoriesOpenpgpKeyringApi.md +802 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TaskResponse.md +1 -1
- data/docs/TasksApi.md +2 -2
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +8 -8
- data/lib/pulpcore_client/api/content_api.rb +6 -6
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +266 -0
- data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +216 -0
- data/lib/pulpcore_client/api/distributions_api.rb +6 -6
- data/lib/pulpcore_client/api/distributions_openpgp_api.rb +592 -0
- data/lib/pulpcore_client/api/repositories_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +992 -0
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +58 -58
- data/lib/pulpcore_client/models/filesystem_export_response.rb +1 -1
- data/lib/pulpcore_client/models/import_response.rb +1 -1
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey.rb +254 -0
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey_response.rb +256 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +305 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +290 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute.rb +240 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute_response.rb +242 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_id.rb +231 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_id_response.rb +223 -0
- data/lib/pulpcore_client/models/open_pgp_distribution.rb +322 -0
- data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +343 -0
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +306 -0
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +329 -0
- data/lib/pulpcore_client/models/open_pgp_public_key.rb +253 -0
- data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +303 -0
- data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +304 -0
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +338 -0
- data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +290 -0
- data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +271 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +247 -0
- data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +304 -0
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +297 -0
- data/lib/pulpcore_client/models/pulp_export_response.rb +3 -3
- data/lib/pulpcore_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulpcore_client/models/set_label.rb +252 -0
- data/lib/pulpcore_client/models/set_label_response.rb +243 -0
- data/lib/pulpcore_client/models/task_response.rb +1 -1
- data/lib/pulpcore_client/models/unset_label.rb +242 -0
- data/lib/pulpcore_client/models/unset_label_response.rb +242 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +39 -0
- data/spec/api/access_policies_api_spec.rb +4 -4
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/content_openpgp_publickey_api_spec.rb +89 -0
- data/spec/api/content_openpgp_publicsubkey_api_spec.rb +74 -0
- data/spec/api/content_openpgp_signature_api_spec.rb +74 -0
- data/spec/api/content_openpgp_userattribute_api_spec.rb +74 -0
- data/spec/api/content_openpgp_userid_api_spec.rb +82 -0
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_openpgp_api_spec.rb +148 -0
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_openpgp_keyring_api_spec.rb +233 -0
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/models/artifact_distribution_response_spec.rb +10 -10
- data/spec/models/nested_open_pgp_public_subkey_response_spec.rb +53 -0
- data/spec/models/nested_open_pgp_public_subkey_spec.rb +47 -0
- data/spec/models/nested_open_pgp_signature_response_spec.rb +77 -0
- data/spec/models/nested_open_pgp_signature_spec.rb +71 -0
- data/spec/models/nested_open_pgp_user_attribute_response_spec.rb +47 -0
- data/spec/models/nested_open_pgp_user_attribute_spec.rb +41 -0
- data/spec/models/nested_open_pgp_user_id_response_spec.rb +47 -0
- data/spec/models/nested_open_pgp_user_id_spec.rb +41 -0
- data/spec/models/open_pgp_distribution_response_spec.rb +113 -0
- data/spec/models/open_pgp_distribution_spec.rb +77 -0
- data/spec/models/open_pgp_keyring_response_spec.rb +101 -0
- data/spec/models/open_pgp_keyring_spec.rb +65 -0
- data/spec/models/open_pgp_public_key_response_spec.rb +89 -0
- data/spec/models/open_pgp_public_key_spec.rb +59 -0
- data/spec/models/open_pgp_public_subkey_response_spec.rb +83 -0
- data/spec/models/open_pgp_signature_response_spec.rb +107 -0
- data/spec/models/open_pgp_user_attribute_response_spec.rb +77 -0
- data/spec/models/open_pgp_user_id_response_spec.rb +77 -0
- data/spec/models/paginated_open_pgp_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_keyring_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_public_key_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_public_subkey_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_signature_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_user_attribute_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_user_id_response_list_spec.rb +59 -0
- data/spec/models/patched_open_pgp_distribution_spec.rb +77 -0
- data/spec/models/patched_open_pgp_keyring_spec.rb +65 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +311 -155
@@ -0,0 +1,992 @@
|
|
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 RepositoriesOpenpgpKeyringApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Add a role
|
23
|
+
# Add a role for this object to users/groups.
|
24
|
+
# @param open_p_g_p_keyring_href [String]
|
25
|
+
# @param nested_role [NestedRole]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [NestedRoleResponse]
|
28
|
+
def add_role(open_p_g_p_keyring_href, nested_role, opts = {})
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(open_p_g_p_keyring_href, nested_role, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add a role
|
34
|
+
# Add a role for this object to users/groups.
|
35
|
+
# @param open_p_g_p_keyring_href [String]
|
36
|
+
# @param nested_role [NestedRole]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
|
+
def add_role_with_http_info(open_p_g_p_keyring_href, nested_role, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.add_role ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
44
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.add_role"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'nested_role' is set
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesOpenpgpKeyringApi.add_role"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{open_p_g_p_keyring_href}add_role/'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# Create an open pgp keyring
|
93
|
+
# A ViewSet for an ordinary repository.
|
94
|
+
# @param open_pgp_keyring [OpenPGPKeyring]
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [OpenPGPKeyringResponse]
|
97
|
+
def create(open_pgp_keyring, opts = {})
|
98
|
+
data, _status_code, _headers = create_with_http_info(open_pgp_keyring, opts)
|
99
|
+
data
|
100
|
+
end
|
101
|
+
|
102
|
+
# Create an open pgp keyring
|
103
|
+
# A ViewSet for an ordinary repository.
|
104
|
+
# @param open_pgp_keyring [OpenPGPKeyring]
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(OpenPGPKeyringResponse, Integer, Hash)>] OpenPGPKeyringResponse data, response status code and response headers
|
107
|
+
def create_with_http_info(open_pgp_keyring, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.create ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'open_pgp_keyring' is set
|
112
|
+
if @api_client.config.client_side_validation && open_pgp_keyring.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'open_pgp_keyring' when calling RepositoriesOpenpgpKeyringApi.create"
|
114
|
+
end
|
115
|
+
# resource path
|
116
|
+
local_var_path = '/pulp/api/v3/repositories/core/openpgp_keyring/'
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = opts[:query_params] || {}
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = opts[:header_params] || {}
|
123
|
+
# HTTP header 'Accept' (if needed)
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
125
|
+
# HTTP header 'Content-Type'
|
126
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = opts[:form_params] || {}
|
130
|
+
|
131
|
+
# http body (model)
|
132
|
+
post_body = opts[:body] || @api_client.object_to_http_body(open_pgp_keyring)
|
133
|
+
|
134
|
+
# return_type
|
135
|
+
return_type = opts[:return_type] || 'OpenPGPKeyringResponse'
|
136
|
+
|
137
|
+
# auth_names
|
138
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
139
|
+
|
140
|
+
new_options = opts.merge(
|
141
|
+
:header_params => header_params,
|
142
|
+
:query_params => query_params,
|
143
|
+
:form_params => form_params,
|
144
|
+
:body => post_body,
|
145
|
+
:auth_names => auth_names,
|
146
|
+
:return_type => return_type
|
147
|
+
)
|
148
|
+
|
149
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
|
156
|
+
# Delete an open pgp keyring
|
157
|
+
# Trigger an asynchronous delete task
|
158
|
+
# @param open_p_g_p_keyring_href [String]
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [AsyncOperationResponse]
|
161
|
+
def delete(open_p_g_p_keyring_href, opts = {})
|
162
|
+
data, _status_code, _headers = delete_with_http_info(open_p_g_p_keyring_href, opts)
|
163
|
+
data
|
164
|
+
end
|
165
|
+
|
166
|
+
# Delete an open pgp keyring
|
167
|
+
# Trigger an asynchronous delete task
|
168
|
+
# @param open_p_g_p_keyring_href [String]
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
171
|
+
def delete_with_http_info(open_p_g_p_keyring_href, opts = {})
|
172
|
+
if @api_client.config.debugging
|
173
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.delete ...'
|
174
|
+
end
|
175
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
176
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
177
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.delete"
|
178
|
+
end
|
179
|
+
# resource path
|
180
|
+
local_var_path = '{open_p_g_p_keyring_href}'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
181
|
+
|
182
|
+
# query parameters
|
183
|
+
query_params = opts[:query_params] || {}
|
184
|
+
|
185
|
+
# header parameters
|
186
|
+
header_params = opts[:header_params] || {}
|
187
|
+
# HTTP header 'Accept' (if needed)
|
188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
189
|
+
|
190
|
+
# form parameters
|
191
|
+
form_params = opts[:form_params] || {}
|
192
|
+
|
193
|
+
# http body (model)
|
194
|
+
post_body = opts[:body]
|
195
|
+
|
196
|
+
# return_type
|
197
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
198
|
+
|
199
|
+
# auth_names
|
200
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
201
|
+
|
202
|
+
new_options = opts.merge(
|
203
|
+
:header_params => header_params,
|
204
|
+
:query_params => query_params,
|
205
|
+
:form_params => form_params,
|
206
|
+
:body => post_body,
|
207
|
+
:auth_names => auth_names,
|
208
|
+
:return_type => return_type
|
209
|
+
)
|
210
|
+
|
211
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
214
|
+
end
|
215
|
+
return data, status_code, headers
|
216
|
+
end
|
217
|
+
|
218
|
+
# List open pgp keyrings
|
219
|
+
# A ViewSet for an ordinary repository.
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
222
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
223
|
+
# @option opts [String] :name Filter results where name matches value
|
224
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
225
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
226
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
227
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
228
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
229
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
230
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
231
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
232
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
233
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
234
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
235
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
236
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
237
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
238
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
239
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
240
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
241
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
242
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
243
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
244
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
245
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
246
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
247
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
248
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
249
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
250
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
251
|
+
# @return [PaginatedOpenPGPKeyringResponseList]
|
252
|
+
def list(opts = {})
|
253
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
254
|
+
data
|
255
|
+
end
|
256
|
+
|
257
|
+
# List open pgp keyrings
|
258
|
+
# A ViewSet for an ordinary repository.
|
259
|
+
# @param [Hash] opts the optional parameters
|
260
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
261
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
262
|
+
# @option opts [String] :name Filter results where name matches value
|
263
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
264
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
265
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
266
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
267
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
268
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
269
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
270
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
271
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
272
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
273
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
274
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
275
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
276
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
277
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
278
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
279
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
280
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
281
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
282
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
283
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
284
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
285
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
286
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
287
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
288
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
289
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
290
|
+
# @return [Array<(PaginatedOpenPGPKeyringResponseList, Integer, Hash)>] PaginatedOpenPGPKeyringResponseList data, response status code and response headers
|
291
|
+
def list_with_http_info(opts = {})
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.list ...'
|
294
|
+
end
|
295
|
+
allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
|
296
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
297
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
298
|
+
end
|
299
|
+
# resource path
|
300
|
+
local_var_path = '/pulp/api/v3/repositories/core/openpgp_keyring/'
|
301
|
+
|
302
|
+
# query parameters
|
303
|
+
query_params = opts[:query_params] || {}
|
304
|
+
query_params[:'latest_with_content'] = opts[:'latest_with_content'] if !opts[:'latest_with_content'].nil?
|
305
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
306
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
307
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
308
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
309
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
310
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
311
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
312
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
313
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
314
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
315
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
316
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
317
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
318
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
319
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
320
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
321
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
322
|
+
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
323
|
+
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
324
|
+
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
325
|
+
query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
|
326
|
+
query_params[:'retain_repo_versions__isnull'] = opts[:'retain_repo_versions__isnull'] if !opts[:'retain_repo_versions__isnull'].nil?
|
327
|
+
query_params[:'retain_repo_versions__lt'] = opts[:'retain_repo_versions__lt'] if !opts[:'retain_repo_versions__lt'].nil?
|
328
|
+
query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
|
329
|
+
query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
|
330
|
+
query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
|
331
|
+
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
332
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
333
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
334
|
+
|
335
|
+
# header parameters
|
336
|
+
header_params = opts[:header_params] || {}
|
337
|
+
# HTTP header 'Accept' (if needed)
|
338
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
339
|
+
|
340
|
+
# form parameters
|
341
|
+
form_params = opts[:form_params] || {}
|
342
|
+
|
343
|
+
# http body (model)
|
344
|
+
post_body = opts[:body]
|
345
|
+
|
346
|
+
# return_type
|
347
|
+
return_type = opts[:return_type] || 'PaginatedOpenPGPKeyringResponseList'
|
348
|
+
|
349
|
+
# auth_names
|
350
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
351
|
+
|
352
|
+
new_options = opts.merge(
|
353
|
+
:header_params => header_params,
|
354
|
+
:query_params => query_params,
|
355
|
+
:form_params => form_params,
|
356
|
+
:body => post_body,
|
357
|
+
:auth_names => auth_names,
|
358
|
+
:return_type => return_type
|
359
|
+
)
|
360
|
+
|
361
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
364
|
+
end
|
365
|
+
return data, status_code, headers
|
366
|
+
end
|
367
|
+
|
368
|
+
# List roles
|
369
|
+
# List roles assigned to this object.
|
370
|
+
# @param open_p_g_p_keyring_href [String]
|
371
|
+
# @param [Hash] opts the optional parameters
|
372
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
373
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
374
|
+
# @return [ObjectRolesResponse]
|
375
|
+
def list_roles(open_p_g_p_keyring_href, opts = {})
|
376
|
+
data, _status_code, _headers = list_roles_with_http_info(open_p_g_p_keyring_href, opts)
|
377
|
+
data
|
378
|
+
end
|
379
|
+
|
380
|
+
# List roles
|
381
|
+
# List roles assigned to this object.
|
382
|
+
# @param open_p_g_p_keyring_href [String]
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
385
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
386
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
387
|
+
def list_roles_with_http_info(open_p_g_p_keyring_href, opts = {})
|
388
|
+
if @api_client.config.debugging
|
389
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.list_roles ...'
|
390
|
+
end
|
391
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
392
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.list_roles"
|
394
|
+
end
|
395
|
+
# resource path
|
396
|
+
local_var_path = '{open_p_g_p_keyring_href}list_roles/'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
397
|
+
|
398
|
+
# query parameters
|
399
|
+
query_params = opts[:query_params] || {}
|
400
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
401
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
402
|
+
|
403
|
+
# header parameters
|
404
|
+
header_params = opts[:header_params] || {}
|
405
|
+
# HTTP header 'Accept' (if needed)
|
406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
407
|
+
|
408
|
+
# form parameters
|
409
|
+
form_params = opts[:form_params] || {}
|
410
|
+
|
411
|
+
# http body (model)
|
412
|
+
post_body = opts[:body]
|
413
|
+
|
414
|
+
# return_type
|
415
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
416
|
+
|
417
|
+
# auth_names
|
418
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
419
|
+
|
420
|
+
new_options = opts.merge(
|
421
|
+
:header_params => header_params,
|
422
|
+
:query_params => query_params,
|
423
|
+
:form_params => form_params,
|
424
|
+
:body => post_body,
|
425
|
+
:auth_names => auth_names,
|
426
|
+
:return_type => return_type
|
427
|
+
)
|
428
|
+
|
429
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
430
|
+
if @api_client.config.debugging
|
431
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
432
|
+
end
|
433
|
+
return data, status_code, headers
|
434
|
+
end
|
435
|
+
|
436
|
+
# Modify Repository Content
|
437
|
+
# Trigger an asynchronous task to create a new repository version.
|
438
|
+
# @param open_p_g_p_keyring_href [String]
|
439
|
+
# @param repository_add_remove_content [RepositoryAddRemoveContent]
|
440
|
+
# @param [Hash] opts the optional parameters
|
441
|
+
# @return [AsyncOperationResponse]
|
442
|
+
def modify(open_p_g_p_keyring_href, repository_add_remove_content, opts = {})
|
443
|
+
data, _status_code, _headers = modify_with_http_info(open_p_g_p_keyring_href, repository_add_remove_content, opts)
|
444
|
+
data
|
445
|
+
end
|
446
|
+
|
447
|
+
# Modify Repository Content
|
448
|
+
# Trigger an asynchronous task to create a new repository version.
|
449
|
+
# @param open_p_g_p_keyring_href [String]
|
450
|
+
# @param repository_add_remove_content [RepositoryAddRemoveContent]
|
451
|
+
# @param [Hash] opts the optional parameters
|
452
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
453
|
+
def modify_with_http_info(open_p_g_p_keyring_href, repository_add_remove_content, opts = {})
|
454
|
+
if @api_client.config.debugging
|
455
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.modify ...'
|
456
|
+
end
|
457
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
458
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
459
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.modify"
|
460
|
+
end
|
461
|
+
# verify the required parameter 'repository_add_remove_content' is set
|
462
|
+
if @api_client.config.client_side_validation && repository_add_remove_content.nil?
|
463
|
+
fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesOpenpgpKeyringApi.modify"
|
464
|
+
end
|
465
|
+
# resource path
|
466
|
+
local_var_path = '{open_p_g_p_keyring_href}modify/'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
467
|
+
|
468
|
+
# query parameters
|
469
|
+
query_params = opts[:query_params] || {}
|
470
|
+
|
471
|
+
# header parameters
|
472
|
+
header_params = opts[:header_params] || {}
|
473
|
+
# HTTP header 'Accept' (if needed)
|
474
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
475
|
+
# HTTP header 'Content-Type'
|
476
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
477
|
+
|
478
|
+
# form parameters
|
479
|
+
form_params = opts[:form_params] || {}
|
480
|
+
|
481
|
+
# http body (model)
|
482
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_add_remove_content)
|
483
|
+
|
484
|
+
# return_type
|
485
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
486
|
+
|
487
|
+
# auth_names
|
488
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
489
|
+
|
490
|
+
new_options = opts.merge(
|
491
|
+
:header_params => header_params,
|
492
|
+
:query_params => query_params,
|
493
|
+
:form_params => form_params,
|
494
|
+
:body => post_body,
|
495
|
+
:auth_names => auth_names,
|
496
|
+
:return_type => return_type
|
497
|
+
)
|
498
|
+
|
499
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
500
|
+
if @api_client.config.debugging
|
501
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#modify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
502
|
+
end
|
503
|
+
return data, status_code, headers
|
504
|
+
end
|
505
|
+
|
506
|
+
# List user permissions
|
507
|
+
# List permissions available to the current user on this object.
|
508
|
+
# @param open_p_g_p_keyring_href [String]
|
509
|
+
# @param [Hash] opts the optional parameters
|
510
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
511
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
512
|
+
# @return [MyPermissionsResponse]
|
513
|
+
def my_permissions(open_p_g_p_keyring_href, opts = {})
|
514
|
+
data, _status_code, _headers = my_permissions_with_http_info(open_p_g_p_keyring_href, opts)
|
515
|
+
data
|
516
|
+
end
|
517
|
+
|
518
|
+
# List user permissions
|
519
|
+
# List permissions available to the current user on this object.
|
520
|
+
# @param open_p_g_p_keyring_href [String]
|
521
|
+
# @param [Hash] opts the optional parameters
|
522
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
523
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
524
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
525
|
+
def my_permissions_with_http_info(open_p_g_p_keyring_href, opts = {})
|
526
|
+
if @api_client.config.debugging
|
527
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.my_permissions ...'
|
528
|
+
end
|
529
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
530
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
531
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.my_permissions"
|
532
|
+
end
|
533
|
+
# resource path
|
534
|
+
local_var_path = '{open_p_g_p_keyring_href}my_permissions/'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
535
|
+
|
536
|
+
# query parameters
|
537
|
+
query_params = opts[:query_params] || {}
|
538
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
539
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
540
|
+
|
541
|
+
# header parameters
|
542
|
+
header_params = opts[:header_params] || {}
|
543
|
+
# HTTP header 'Accept' (if needed)
|
544
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
545
|
+
|
546
|
+
# form parameters
|
547
|
+
form_params = opts[:form_params] || {}
|
548
|
+
|
549
|
+
# http body (model)
|
550
|
+
post_body = opts[:body]
|
551
|
+
|
552
|
+
# return_type
|
553
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
554
|
+
|
555
|
+
# auth_names
|
556
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
557
|
+
|
558
|
+
new_options = opts.merge(
|
559
|
+
:header_params => header_params,
|
560
|
+
:query_params => query_params,
|
561
|
+
:form_params => form_params,
|
562
|
+
:body => post_body,
|
563
|
+
:auth_names => auth_names,
|
564
|
+
:return_type => return_type
|
565
|
+
)
|
566
|
+
|
567
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
568
|
+
if @api_client.config.debugging
|
569
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
570
|
+
end
|
571
|
+
return data, status_code, headers
|
572
|
+
end
|
573
|
+
|
574
|
+
# Update an open pgp keyring
|
575
|
+
# Trigger an asynchronous partial update task
|
576
|
+
# @param open_p_g_p_keyring_href [String]
|
577
|
+
# @param patched_open_pgp_keyring [PatchedOpenPGPKeyring]
|
578
|
+
# @param [Hash] opts the optional parameters
|
579
|
+
# @return [AsyncOperationResponse]
|
580
|
+
def partial_update(open_p_g_p_keyring_href, patched_open_pgp_keyring, opts = {})
|
581
|
+
data, _status_code, _headers = partial_update_with_http_info(open_p_g_p_keyring_href, patched_open_pgp_keyring, opts)
|
582
|
+
data
|
583
|
+
end
|
584
|
+
|
585
|
+
# Update an open pgp keyring
|
586
|
+
# Trigger an asynchronous partial update task
|
587
|
+
# @param open_p_g_p_keyring_href [String]
|
588
|
+
# @param patched_open_pgp_keyring [PatchedOpenPGPKeyring]
|
589
|
+
# @param [Hash] opts the optional parameters
|
590
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
591
|
+
def partial_update_with_http_info(open_p_g_p_keyring_href, patched_open_pgp_keyring, opts = {})
|
592
|
+
if @api_client.config.debugging
|
593
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.partial_update ...'
|
594
|
+
end
|
595
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
596
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
597
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.partial_update"
|
598
|
+
end
|
599
|
+
# verify the required parameter 'patched_open_pgp_keyring' is set
|
600
|
+
if @api_client.config.client_side_validation && patched_open_pgp_keyring.nil?
|
601
|
+
fail ArgumentError, "Missing the required parameter 'patched_open_pgp_keyring' when calling RepositoriesOpenpgpKeyringApi.partial_update"
|
602
|
+
end
|
603
|
+
# resource path
|
604
|
+
local_var_path = '{open_p_g_p_keyring_href}'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
605
|
+
|
606
|
+
# query parameters
|
607
|
+
query_params = opts[:query_params] || {}
|
608
|
+
|
609
|
+
# header parameters
|
610
|
+
header_params = opts[:header_params] || {}
|
611
|
+
# HTTP header 'Accept' (if needed)
|
612
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
613
|
+
# HTTP header 'Content-Type'
|
614
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
615
|
+
|
616
|
+
# form parameters
|
617
|
+
form_params = opts[:form_params] || {}
|
618
|
+
|
619
|
+
# http body (model)
|
620
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_open_pgp_keyring)
|
621
|
+
|
622
|
+
# return_type
|
623
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
624
|
+
|
625
|
+
# auth_names
|
626
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
627
|
+
|
628
|
+
new_options = opts.merge(
|
629
|
+
:header_params => header_params,
|
630
|
+
:query_params => query_params,
|
631
|
+
:form_params => form_params,
|
632
|
+
:body => post_body,
|
633
|
+
:auth_names => auth_names,
|
634
|
+
:return_type => return_type
|
635
|
+
)
|
636
|
+
|
637
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
638
|
+
if @api_client.config.debugging
|
639
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
640
|
+
end
|
641
|
+
return data, status_code, headers
|
642
|
+
end
|
643
|
+
|
644
|
+
# Inspect an open pgp keyring
|
645
|
+
# A ViewSet for an ordinary repository.
|
646
|
+
# @param open_p_g_p_keyring_href [String]
|
647
|
+
# @param [Hash] opts the optional parameters
|
648
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
649
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
650
|
+
# @return [OpenPGPKeyringResponse]
|
651
|
+
def read(open_p_g_p_keyring_href, opts = {})
|
652
|
+
data, _status_code, _headers = read_with_http_info(open_p_g_p_keyring_href, opts)
|
653
|
+
data
|
654
|
+
end
|
655
|
+
|
656
|
+
# Inspect an open pgp keyring
|
657
|
+
# A ViewSet for an ordinary repository.
|
658
|
+
# @param open_p_g_p_keyring_href [String]
|
659
|
+
# @param [Hash] opts the optional parameters
|
660
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
661
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
662
|
+
# @return [Array<(OpenPGPKeyringResponse, Integer, Hash)>] OpenPGPKeyringResponse data, response status code and response headers
|
663
|
+
def read_with_http_info(open_p_g_p_keyring_href, opts = {})
|
664
|
+
if @api_client.config.debugging
|
665
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.read ...'
|
666
|
+
end
|
667
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
668
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
669
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.read"
|
670
|
+
end
|
671
|
+
# resource path
|
672
|
+
local_var_path = '{open_p_g_p_keyring_href}'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
673
|
+
|
674
|
+
# query parameters
|
675
|
+
query_params = opts[:query_params] || {}
|
676
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
677
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
678
|
+
|
679
|
+
# header parameters
|
680
|
+
header_params = opts[:header_params] || {}
|
681
|
+
# HTTP header 'Accept' (if needed)
|
682
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
683
|
+
|
684
|
+
# form parameters
|
685
|
+
form_params = opts[:form_params] || {}
|
686
|
+
|
687
|
+
# http body (model)
|
688
|
+
post_body = opts[:body]
|
689
|
+
|
690
|
+
# return_type
|
691
|
+
return_type = opts[:return_type] || 'OpenPGPKeyringResponse'
|
692
|
+
|
693
|
+
# auth_names
|
694
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
695
|
+
|
696
|
+
new_options = opts.merge(
|
697
|
+
:header_params => header_params,
|
698
|
+
:query_params => query_params,
|
699
|
+
:form_params => form_params,
|
700
|
+
:body => post_body,
|
701
|
+
:auth_names => auth_names,
|
702
|
+
:return_type => return_type
|
703
|
+
)
|
704
|
+
|
705
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
706
|
+
if @api_client.config.debugging
|
707
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
708
|
+
end
|
709
|
+
return data, status_code, headers
|
710
|
+
end
|
711
|
+
|
712
|
+
# Remove a role
|
713
|
+
# Remove a role for this object from users/groups.
|
714
|
+
# @param open_p_g_p_keyring_href [String]
|
715
|
+
# @param nested_role [NestedRole]
|
716
|
+
# @param [Hash] opts the optional parameters
|
717
|
+
# @return [NestedRoleResponse]
|
718
|
+
def remove_role(open_p_g_p_keyring_href, nested_role, opts = {})
|
719
|
+
data, _status_code, _headers = remove_role_with_http_info(open_p_g_p_keyring_href, nested_role, opts)
|
720
|
+
data
|
721
|
+
end
|
722
|
+
|
723
|
+
# Remove a role
|
724
|
+
# Remove a role for this object from users/groups.
|
725
|
+
# @param open_p_g_p_keyring_href [String]
|
726
|
+
# @param nested_role [NestedRole]
|
727
|
+
# @param [Hash] opts the optional parameters
|
728
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
729
|
+
def remove_role_with_http_info(open_p_g_p_keyring_href, nested_role, opts = {})
|
730
|
+
if @api_client.config.debugging
|
731
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.remove_role ...'
|
732
|
+
end
|
733
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
734
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
735
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.remove_role"
|
736
|
+
end
|
737
|
+
# verify the required parameter 'nested_role' is set
|
738
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
739
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesOpenpgpKeyringApi.remove_role"
|
740
|
+
end
|
741
|
+
# resource path
|
742
|
+
local_var_path = '{open_p_g_p_keyring_href}remove_role/'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
743
|
+
|
744
|
+
# query parameters
|
745
|
+
query_params = opts[:query_params] || {}
|
746
|
+
|
747
|
+
# header parameters
|
748
|
+
header_params = opts[:header_params] || {}
|
749
|
+
# HTTP header 'Accept' (if needed)
|
750
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
751
|
+
# HTTP header 'Content-Type'
|
752
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
753
|
+
|
754
|
+
# form parameters
|
755
|
+
form_params = opts[:form_params] || {}
|
756
|
+
|
757
|
+
# http body (model)
|
758
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
759
|
+
|
760
|
+
# return_type
|
761
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
762
|
+
|
763
|
+
# auth_names
|
764
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
765
|
+
|
766
|
+
new_options = opts.merge(
|
767
|
+
:header_params => header_params,
|
768
|
+
:query_params => query_params,
|
769
|
+
:form_params => form_params,
|
770
|
+
:body => post_body,
|
771
|
+
:auth_names => auth_names,
|
772
|
+
:return_type => return_type
|
773
|
+
)
|
774
|
+
|
775
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
776
|
+
if @api_client.config.debugging
|
777
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
778
|
+
end
|
779
|
+
return data, status_code, headers
|
780
|
+
end
|
781
|
+
|
782
|
+
# Set a label
|
783
|
+
# Set a single pulp_label on the object to a specific value or null.
|
784
|
+
# @param open_p_g_p_keyring_href [String]
|
785
|
+
# @param set_label [SetLabel]
|
786
|
+
# @param [Hash] opts the optional parameters
|
787
|
+
# @return [SetLabelResponse]
|
788
|
+
def set_label(open_p_g_p_keyring_href, set_label, opts = {})
|
789
|
+
data, _status_code, _headers = set_label_with_http_info(open_p_g_p_keyring_href, set_label, opts)
|
790
|
+
data
|
791
|
+
end
|
792
|
+
|
793
|
+
# Set a label
|
794
|
+
# Set a single pulp_label on the object to a specific value or null.
|
795
|
+
# @param open_p_g_p_keyring_href [String]
|
796
|
+
# @param set_label [SetLabel]
|
797
|
+
# @param [Hash] opts the optional parameters
|
798
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
799
|
+
def set_label_with_http_info(open_p_g_p_keyring_href, set_label, opts = {})
|
800
|
+
if @api_client.config.debugging
|
801
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.set_label ...'
|
802
|
+
end
|
803
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
804
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
805
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.set_label"
|
806
|
+
end
|
807
|
+
# verify the required parameter 'set_label' is set
|
808
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
809
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesOpenpgpKeyringApi.set_label"
|
810
|
+
end
|
811
|
+
# resource path
|
812
|
+
local_var_path = '{open_p_g_p_keyring_href}set_label/'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
813
|
+
|
814
|
+
# query parameters
|
815
|
+
query_params = opts[:query_params] || {}
|
816
|
+
|
817
|
+
# header parameters
|
818
|
+
header_params = opts[:header_params] || {}
|
819
|
+
# HTTP header 'Accept' (if needed)
|
820
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
821
|
+
# HTTP header 'Content-Type'
|
822
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
823
|
+
|
824
|
+
# form parameters
|
825
|
+
form_params = opts[:form_params] || {}
|
826
|
+
|
827
|
+
# http body (model)
|
828
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
829
|
+
|
830
|
+
# return_type
|
831
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
832
|
+
|
833
|
+
# auth_names
|
834
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
835
|
+
|
836
|
+
new_options = opts.merge(
|
837
|
+
:header_params => header_params,
|
838
|
+
:query_params => query_params,
|
839
|
+
:form_params => form_params,
|
840
|
+
:body => post_body,
|
841
|
+
:auth_names => auth_names,
|
842
|
+
:return_type => return_type
|
843
|
+
)
|
844
|
+
|
845
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
846
|
+
if @api_client.config.debugging
|
847
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
848
|
+
end
|
849
|
+
return data, status_code, headers
|
850
|
+
end
|
851
|
+
|
852
|
+
# Unset a label
|
853
|
+
# Unset a single pulp_label on the object.
|
854
|
+
# @param open_p_g_p_keyring_href [String]
|
855
|
+
# @param unset_label [UnsetLabel]
|
856
|
+
# @param [Hash] opts the optional parameters
|
857
|
+
# @return [UnsetLabelResponse]
|
858
|
+
def unset_label(open_p_g_p_keyring_href, unset_label, opts = {})
|
859
|
+
data, _status_code, _headers = unset_label_with_http_info(open_p_g_p_keyring_href, unset_label, opts)
|
860
|
+
data
|
861
|
+
end
|
862
|
+
|
863
|
+
# Unset a label
|
864
|
+
# Unset a single pulp_label on the object.
|
865
|
+
# @param open_p_g_p_keyring_href [String]
|
866
|
+
# @param unset_label [UnsetLabel]
|
867
|
+
# @param [Hash] opts the optional parameters
|
868
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
869
|
+
def unset_label_with_http_info(open_p_g_p_keyring_href, unset_label, opts = {})
|
870
|
+
if @api_client.config.debugging
|
871
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.unset_label ...'
|
872
|
+
end
|
873
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
874
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
875
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.unset_label"
|
876
|
+
end
|
877
|
+
# verify the required parameter 'unset_label' is set
|
878
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
879
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesOpenpgpKeyringApi.unset_label"
|
880
|
+
end
|
881
|
+
# resource path
|
882
|
+
local_var_path = '{open_p_g_p_keyring_href}unset_label/'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
883
|
+
|
884
|
+
# query parameters
|
885
|
+
query_params = opts[:query_params] || {}
|
886
|
+
|
887
|
+
# header parameters
|
888
|
+
header_params = opts[:header_params] || {}
|
889
|
+
# HTTP header 'Accept' (if needed)
|
890
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
891
|
+
# HTTP header 'Content-Type'
|
892
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
893
|
+
|
894
|
+
# form parameters
|
895
|
+
form_params = opts[:form_params] || {}
|
896
|
+
|
897
|
+
# http body (model)
|
898
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
899
|
+
|
900
|
+
# return_type
|
901
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
902
|
+
|
903
|
+
# auth_names
|
904
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
905
|
+
|
906
|
+
new_options = opts.merge(
|
907
|
+
:header_params => header_params,
|
908
|
+
:query_params => query_params,
|
909
|
+
:form_params => form_params,
|
910
|
+
:body => post_body,
|
911
|
+
:auth_names => auth_names,
|
912
|
+
:return_type => return_type
|
913
|
+
)
|
914
|
+
|
915
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
916
|
+
if @api_client.config.debugging
|
917
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
918
|
+
end
|
919
|
+
return data, status_code, headers
|
920
|
+
end
|
921
|
+
|
922
|
+
# Update an open pgp keyring
|
923
|
+
# Trigger an asynchronous update task
|
924
|
+
# @param open_p_g_p_keyring_href [String]
|
925
|
+
# @param open_pgp_keyring [OpenPGPKeyring]
|
926
|
+
# @param [Hash] opts the optional parameters
|
927
|
+
# @return [AsyncOperationResponse]
|
928
|
+
def update(open_p_g_p_keyring_href, open_pgp_keyring, opts = {})
|
929
|
+
data, _status_code, _headers = update_with_http_info(open_p_g_p_keyring_href, open_pgp_keyring, opts)
|
930
|
+
data
|
931
|
+
end
|
932
|
+
|
933
|
+
# Update an open pgp keyring
|
934
|
+
# Trigger an asynchronous update task
|
935
|
+
# @param open_p_g_p_keyring_href [String]
|
936
|
+
# @param open_pgp_keyring [OpenPGPKeyring]
|
937
|
+
# @param [Hash] opts the optional parameters
|
938
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
939
|
+
def update_with_http_info(open_p_g_p_keyring_href, open_pgp_keyring, opts = {})
|
940
|
+
if @api_client.config.debugging
|
941
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.update ...'
|
942
|
+
end
|
943
|
+
# verify the required parameter 'open_p_g_p_keyring_href' is set
|
944
|
+
if @api_client.config.client_side_validation && open_p_g_p_keyring_href.nil?
|
945
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_keyring_href' when calling RepositoriesOpenpgpKeyringApi.update"
|
946
|
+
end
|
947
|
+
# verify the required parameter 'open_pgp_keyring' is set
|
948
|
+
if @api_client.config.client_side_validation && open_pgp_keyring.nil?
|
949
|
+
fail ArgumentError, "Missing the required parameter 'open_pgp_keyring' when calling RepositoriesOpenpgpKeyringApi.update"
|
950
|
+
end
|
951
|
+
# resource path
|
952
|
+
local_var_path = '{open_p_g_p_keyring_href}'.sub('{' + 'open_p_g_p_keyring_href' + '}', CGI.escape(open_p_g_p_keyring_href.to_s).gsub('%2F', '/'))
|
953
|
+
|
954
|
+
# query parameters
|
955
|
+
query_params = opts[:query_params] || {}
|
956
|
+
|
957
|
+
# header parameters
|
958
|
+
header_params = opts[:header_params] || {}
|
959
|
+
# HTTP header 'Accept' (if needed)
|
960
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
961
|
+
# HTTP header 'Content-Type'
|
962
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
963
|
+
|
964
|
+
# form parameters
|
965
|
+
form_params = opts[:form_params] || {}
|
966
|
+
|
967
|
+
# http body (model)
|
968
|
+
post_body = opts[:body] || @api_client.object_to_http_body(open_pgp_keyring)
|
969
|
+
|
970
|
+
# return_type
|
971
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
972
|
+
|
973
|
+
# auth_names
|
974
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
975
|
+
|
976
|
+
new_options = opts.merge(
|
977
|
+
:header_params => header_params,
|
978
|
+
:query_params => query_params,
|
979
|
+
:form_params => form_params,
|
980
|
+
:body => post_body,
|
981
|
+
:auth_names => auth_names,
|
982
|
+
:return_type => return_type
|
983
|
+
)
|
984
|
+
|
985
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
986
|
+
if @api_client.config.debugging
|
987
|
+
@api_client.config.logger.debug "API called: RepositoriesOpenpgpKeyringApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
988
|
+
end
|
989
|
+
return data, status_code, headers
|
990
|
+
end
|
991
|
+
end
|
992
|
+
end
|