pulp_certguard_client 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
- data/README.md +22 -17
- data/docs/CertguardRHSMCertGuard.md +1 -5
- data/docs/CertguardRHSMCertGuardResponse.md +25 -0
- data/docs/CertguardX509CertGuard.md +1 -5
- data/docs/CertguardX509CertGuardResponse.md +25 -0
- data/docs/ContentguardsRhsmApi.md +55 -55
- data/docs/ContentguardsX509Api.md +55 -55
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/PatchedcertguardRHSMCertGuard.md +21 -0
- data/docs/PatchedcertguardX509CertGuard.md +21 -0
- data/lib/pulp_certguard_client.rb +6 -2
- data/lib/pulp_certguard_client/api/contentguards_rhsm_api.rb +90 -90
- data/lib/pulp_certguard_client/api/contentguards_x509_api.rb +90 -90
- data/lib/pulp_certguard_client/api_client.rb +2 -2
- data/lib/pulp_certguard_client/api_error.rb +2 -2
- data/lib/pulp_certguard_client/configuration.rb +3 -3
- data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard.rb +4 -75
- data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard_response.rb +258 -0
- data/lib/pulp_certguard_client/models/certguard_x509_cert_guard.rb +4 -75
- data/lib/pulp_certguard_client/models/certguard_x509_cert_guard_response.rb +258 -0
- data/lib/pulp_certguard_client/models/inline_response200.rb +3 -13
- data/lib/pulp_certguard_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_certguard_client/models/patchedcertguard_rhsm_cert_guard.rb +229 -0
- data/lib/pulp_certguard_client/models/patchedcertguard_x509_cert_guard.rb +229 -0
- data/lib/pulp_certguard_client/version.rb +3 -3
- data/pulp_certguard_client.gemspec +4 -4
- data/spec/api/contentguards_rhsm_api_spec.rb +17 -17
- data/spec/api/contentguards_x509_api_spec.rb +17 -17
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/certguard_rhsm_cert_guard_response_spec.rb +65 -0
- data/spec/models/certguard_rhsm_cert_guard_spec.rb +2 -14
- data/spec/models/certguard_x509_cert_guard_response_spec.rb +65 -0
- data/spec/models/certguard_x509_cert_guard_spec.rb +2 -14
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedcertguard_rhsm_cert_guard_spec.rb +53 -0
- data/spec/models/patchedcertguard_x509_cert_guard_spec.rb +53 -0
- data/spec/spec_helper.rb +2 -2
- metadata +23 -7
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -21,26 +21,26 @@ module PulpCertguardClient
|
|
21
21
|
end
|
22
22
|
# Create a x509 cert guard
|
23
23
|
# X509CertGuard API Viewsets.
|
24
|
-
# @param
|
24
|
+
# @param certguard_x509_cert_guard [CertguardX509CertGuard]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
26
|
+
# @return [CertguardX509CertGuardResponse]
|
27
|
+
def create(certguard_x509_cert_guard, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(certguard_x509_cert_guard, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create a x509 cert guard
|
33
33
|
# X509CertGuard API Viewsets.
|
34
|
-
# @param
|
34
|
+
# @param certguard_x509_cert_guard [CertguardX509CertGuard]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
36
|
+
# @return [Array<(CertguardX509CertGuardResponse, Integer, Hash)>] CertguardX509CertGuardResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(certguard_x509_cert_guard, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: ContentguardsX509Api.create ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'certguard_x509_cert_guard' is set
|
42
|
+
if @api_client.config.client_side_validation && certguard_x509_cert_guard.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'certguard_x509_cert_guard' when calling ContentguardsX509Api.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/contentguards/certguard/x509/'
|
@@ -53,19 +53,19 @@ module PulpCertguardClient
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
55
|
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
57
|
|
58
58
|
# form parameters
|
59
59
|
form_params = opts[:form_params] || {}
|
60
60
|
|
61
61
|
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(certguard_x509_cert_guard)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'CertguardX509CertGuardResponse'
|
66
66
|
|
67
67
|
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
69
|
|
70
70
|
new_options = opts.merge(
|
71
71
|
:header_params => header_params,
|
@@ -85,29 +85,29 @@ module PulpCertguardClient
|
|
85
85
|
|
86
86
|
# Delete a x509 cert guard
|
87
87
|
# X509CertGuard API Viewsets.
|
88
|
-
# @param
|
88
|
+
# @param certguard_x509_cert_guard_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [nil]
|
91
|
-
def delete(
|
92
|
-
delete_with_http_info(
|
91
|
+
def delete(certguard_x509_cert_guard_href, opts = {})
|
92
|
+
delete_with_http_info(certguard_x509_cert_guard_href, opts)
|
93
93
|
nil
|
94
94
|
end
|
95
95
|
|
96
96
|
# Delete a x509 cert guard
|
97
97
|
# X509CertGuard API Viewsets.
|
98
|
-
# @param
|
98
|
+
# @param certguard_x509_cert_guard_href [String]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
|
-
def delete_with_http_info(
|
101
|
+
def delete_with_http_info(certguard_x509_cert_guard_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
103
|
@api_client.config.logger.debug 'Calling API: ContentguardsX509Api.delete ...'
|
104
104
|
end
|
105
|
-
# verify the required parameter '
|
106
|
-
if @api_client.config.client_side_validation &&
|
107
|
-
fail ArgumentError, "Missing the required parameter '
|
105
|
+
# verify the required parameter 'certguard_x509_cert_guard_href' is set
|
106
|
+
if @api_client.config.client_side_validation && certguard_x509_cert_guard_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'certguard_x509_cert_guard_href' when calling ContentguardsX509Api.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{
|
110
|
+
local_var_path = '{certguard_x509_cert_guard_href}'.sub('{' + 'certguard_x509_cert_guard_href' + '}', CGI.escape(certguard_x509_cert_guard_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -125,7 +125,7 @@ module PulpCertguardClient
|
|
125
125
|
return_type = opts[:return_type]
|
126
126
|
|
127
127
|
# auth_names
|
128
|
-
auth_names = opts[:auth_names] || ['
|
128
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
129
129
|
|
130
130
|
new_options = opts.merge(
|
131
131
|
:header_params => header_params,
|
@@ -146,11 +146,11 @@ module PulpCertguardClient
|
|
146
146
|
# List x509 cert guards
|
147
147
|
# X509CertGuard API Viewsets.
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
150
|
-
# @option opts [String] :name
|
151
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
152
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
150
|
+
# @option opts [String] :name name
|
151
|
+
# @option opts [String] :name__in name__in
|
153
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
154
154
|
# @option opts [String] :fields A list of fields to include in the response.
|
155
155
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
156
156
|
# @return [InlineResponse2001]
|
@@ -162,11 +162,11 @@ module PulpCertguardClient
|
|
162
162
|
# List x509 cert guards
|
163
163
|
# X509CertGuard API Viewsets.
|
164
164
|
# @param [Hash] opts the optional parameters
|
165
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
|
-
# @option opts [String] :name
|
167
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
168
165
|
# @option opts [Integer] :limit Number of results to return per page.
|
166
|
+
# @option opts [String] :name name
|
167
|
+
# @option opts [String] :name__in name__in
|
169
168
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
169
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
170
170
|
# @option opts [String] :fields A list of fields to include in the response.
|
171
171
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
172
172
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
@@ -179,11 +179,11 @@ module PulpCertguardClient
|
|
179
179
|
|
180
180
|
# query parameters
|
181
181
|
query_params = opts[:query_params] || {}
|
182
|
-
query_params[:'
|
182
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
183
183
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
184
184
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
185
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
186
185
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
186
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
187
187
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
188
188
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
189
189
|
|
@@ -202,7 +202,7 @@ module PulpCertguardClient
|
|
202
202
|
return_type = opts[:return_type] || 'InlineResponse2001'
|
203
203
|
|
204
204
|
# auth_names
|
205
|
-
auth_names = opts[:auth_names] || ['
|
205
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
206
206
|
|
207
207
|
new_options = opts.merge(
|
208
208
|
:header_params => header_params,
|
@@ -220,37 +220,37 @@ module PulpCertguardClient
|
|
220
220
|
return data, status_code, headers
|
221
221
|
end
|
222
222
|
|
223
|
-
#
|
223
|
+
# Update a x509 cert guard
|
224
224
|
# X509CertGuard API Viewsets.
|
225
|
-
# @param
|
226
|
-
# @param
|
225
|
+
# @param certguard_x509_cert_guard_href [String]
|
226
|
+
# @param patchedcertguard_x509_cert_guard [PatchedcertguardX509CertGuard]
|
227
227
|
# @param [Hash] opts the optional parameters
|
228
|
-
# @return [
|
229
|
-
def partial_update(
|
230
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
228
|
+
# @return [CertguardX509CertGuardResponse]
|
229
|
+
def partial_update(certguard_x509_cert_guard_href, patchedcertguard_x509_cert_guard, opts = {})
|
230
|
+
data, _status_code, _headers = partial_update_with_http_info(certguard_x509_cert_guard_href, patchedcertguard_x509_cert_guard, opts)
|
231
231
|
data
|
232
232
|
end
|
233
233
|
|
234
|
-
#
|
234
|
+
# Update a x509 cert guard
|
235
235
|
# X509CertGuard API Viewsets.
|
236
|
-
# @param
|
237
|
-
# @param
|
236
|
+
# @param certguard_x509_cert_guard_href [String]
|
237
|
+
# @param patchedcertguard_x509_cert_guard [PatchedcertguardX509CertGuard]
|
238
238
|
# @param [Hash] opts the optional parameters
|
239
|
-
# @return [Array<(
|
240
|
-
def partial_update_with_http_info(
|
239
|
+
# @return [Array<(CertguardX509CertGuardResponse, Integer, Hash)>] CertguardX509CertGuardResponse data, response status code and response headers
|
240
|
+
def partial_update_with_http_info(certguard_x509_cert_guard_href, patchedcertguard_x509_cert_guard, opts = {})
|
241
241
|
if @api_client.config.debugging
|
242
242
|
@api_client.config.logger.debug 'Calling API: ContentguardsX509Api.partial_update ...'
|
243
243
|
end
|
244
|
-
# verify the required parameter '
|
245
|
-
if @api_client.config.client_side_validation &&
|
246
|
-
fail ArgumentError, "Missing the required parameter '
|
244
|
+
# verify the required parameter 'certguard_x509_cert_guard_href' is set
|
245
|
+
if @api_client.config.client_side_validation && certguard_x509_cert_guard_href.nil?
|
246
|
+
fail ArgumentError, "Missing the required parameter 'certguard_x509_cert_guard_href' when calling ContentguardsX509Api.partial_update"
|
247
247
|
end
|
248
|
-
# verify the required parameter '
|
249
|
-
if @api_client.config.client_side_validation &&
|
250
|
-
fail ArgumentError, "Missing the required parameter '
|
248
|
+
# verify the required parameter 'patchedcertguard_x509_cert_guard' is set
|
249
|
+
if @api_client.config.client_side_validation && patchedcertguard_x509_cert_guard.nil?
|
250
|
+
fail ArgumentError, "Missing the required parameter 'patchedcertguard_x509_cert_guard' when calling ContentguardsX509Api.partial_update"
|
251
251
|
end
|
252
252
|
# resource path
|
253
|
-
local_var_path = '{
|
253
|
+
local_var_path = '{certguard_x509_cert_guard_href}'.sub('{' + 'certguard_x509_cert_guard_href' + '}', CGI.escape(certguard_x509_cert_guard_href.to_s).gsub('%2F', '/'))
|
254
254
|
|
255
255
|
# query parameters
|
256
256
|
query_params = opts[:query_params] || {}
|
@@ -260,19 +260,19 @@ module PulpCertguardClient
|
|
260
260
|
# HTTP header 'Accept' (if needed)
|
261
261
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
262
262
|
# HTTP header 'Content-Type'
|
263
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
263
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
264
264
|
|
265
265
|
# form parameters
|
266
266
|
form_params = opts[:form_params] || {}
|
267
267
|
|
268
268
|
# http body (model)
|
269
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
269
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedcertguard_x509_cert_guard)
|
270
270
|
|
271
271
|
# return_type
|
272
|
-
return_type = opts[:return_type] || '
|
272
|
+
return_type = opts[:return_type] || 'CertguardX509CertGuardResponse'
|
273
273
|
|
274
274
|
# auth_names
|
275
|
-
auth_names = opts[:auth_names] || ['
|
275
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
276
276
|
|
277
277
|
new_options = opts.merge(
|
278
278
|
:header_params => header_params,
|
@@ -292,33 +292,33 @@ module PulpCertguardClient
|
|
292
292
|
|
293
293
|
# Inspect a x509 cert guard
|
294
294
|
# X509CertGuard API Viewsets.
|
295
|
-
# @param
|
295
|
+
# @param certguard_x509_cert_guard_href [String]
|
296
296
|
# @param [Hash] opts the optional parameters
|
297
297
|
# @option opts [String] :fields A list of fields to include in the response.
|
298
298
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
299
|
-
# @return [
|
300
|
-
def read(
|
301
|
-
data, _status_code, _headers = read_with_http_info(
|
299
|
+
# @return [CertguardX509CertGuardResponse]
|
300
|
+
def read(certguard_x509_cert_guard_href, opts = {})
|
301
|
+
data, _status_code, _headers = read_with_http_info(certguard_x509_cert_guard_href, opts)
|
302
302
|
data
|
303
303
|
end
|
304
304
|
|
305
305
|
# Inspect a x509 cert guard
|
306
306
|
# X509CertGuard API Viewsets.
|
307
|
-
# @param
|
307
|
+
# @param certguard_x509_cert_guard_href [String]
|
308
308
|
# @param [Hash] opts the optional parameters
|
309
309
|
# @option opts [String] :fields A list of fields to include in the response.
|
310
310
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
311
|
-
# @return [Array<(
|
312
|
-
def read_with_http_info(
|
311
|
+
# @return [Array<(CertguardX509CertGuardResponse, Integer, Hash)>] CertguardX509CertGuardResponse data, response status code and response headers
|
312
|
+
def read_with_http_info(certguard_x509_cert_guard_href, opts = {})
|
313
313
|
if @api_client.config.debugging
|
314
314
|
@api_client.config.logger.debug 'Calling API: ContentguardsX509Api.read ...'
|
315
315
|
end
|
316
|
-
# verify the required parameter '
|
317
|
-
if @api_client.config.client_side_validation &&
|
318
|
-
fail ArgumentError, "Missing the required parameter '
|
316
|
+
# verify the required parameter 'certguard_x509_cert_guard_href' is set
|
317
|
+
if @api_client.config.client_side_validation && certguard_x509_cert_guard_href.nil?
|
318
|
+
fail ArgumentError, "Missing the required parameter 'certguard_x509_cert_guard_href' when calling ContentguardsX509Api.read"
|
319
319
|
end
|
320
320
|
# resource path
|
321
|
-
local_var_path = '{
|
321
|
+
local_var_path = '{certguard_x509_cert_guard_href}'.sub('{' + 'certguard_x509_cert_guard_href' + '}', CGI.escape(certguard_x509_cert_guard_href.to_s).gsub('%2F', '/'))
|
322
322
|
|
323
323
|
# query parameters
|
324
324
|
query_params = opts[:query_params] || {}
|
@@ -337,10 +337,10 @@ module PulpCertguardClient
|
|
337
337
|
post_body = opts[:body]
|
338
338
|
|
339
339
|
# return_type
|
340
|
-
return_type = opts[:return_type] || '
|
340
|
+
return_type = opts[:return_type] || 'CertguardX509CertGuardResponse'
|
341
341
|
|
342
342
|
# auth_names
|
343
|
-
auth_names = opts[:auth_names] || ['
|
343
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
344
344
|
|
345
345
|
new_options = opts.merge(
|
346
346
|
:header_params => header_params,
|
@@ -360,35 +360,35 @@ module PulpCertguardClient
|
|
360
360
|
|
361
361
|
# Update a x509 cert guard
|
362
362
|
# X509CertGuard API Viewsets.
|
363
|
-
# @param
|
364
|
-
# @param
|
363
|
+
# @param certguard_x509_cert_guard_href [String]
|
364
|
+
# @param certguard_x509_cert_guard [CertguardX509CertGuard]
|
365
365
|
# @param [Hash] opts the optional parameters
|
366
|
-
# @return [
|
367
|
-
def update(
|
368
|
-
data, _status_code, _headers = update_with_http_info(
|
366
|
+
# @return [CertguardX509CertGuardResponse]
|
367
|
+
def update(certguard_x509_cert_guard_href, certguard_x509_cert_guard, opts = {})
|
368
|
+
data, _status_code, _headers = update_with_http_info(certguard_x509_cert_guard_href, certguard_x509_cert_guard, opts)
|
369
369
|
data
|
370
370
|
end
|
371
371
|
|
372
372
|
# Update a x509 cert guard
|
373
373
|
# X509CertGuard API Viewsets.
|
374
|
-
# @param
|
375
|
-
# @param
|
374
|
+
# @param certguard_x509_cert_guard_href [String]
|
375
|
+
# @param certguard_x509_cert_guard [CertguardX509CertGuard]
|
376
376
|
# @param [Hash] opts the optional parameters
|
377
|
-
# @return [Array<(
|
378
|
-
def update_with_http_info(
|
377
|
+
# @return [Array<(CertguardX509CertGuardResponse, Integer, Hash)>] CertguardX509CertGuardResponse data, response status code and response headers
|
378
|
+
def update_with_http_info(certguard_x509_cert_guard_href, certguard_x509_cert_guard, opts = {})
|
379
379
|
if @api_client.config.debugging
|
380
380
|
@api_client.config.logger.debug 'Calling API: ContentguardsX509Api.update ...'
|
381
381
|
end
|
382
|
-
# verify the required parameter '
|
383
|
-
if @api_client.config.client_side_validation &&
|
384
|
-
fail ArgumentError, "Missing the required parameter '
|
382
|
+
# verify the required parameter 'certguard_x509_cert_guard_href' is set
|
383
|
+
if @api_client.config.client_side_validation && certguard_x509_cert_guard_href.nil?
|
384
|
+
fail ArgumentError, "Missing the required parameter 'certguard_x509_cert_guard_href' when calling ContentguardsX509Api.update"
|
385
385
|
end
|
386
|
-
# verify the required parameter '
|
387
|
-
if @api_client.config.client_side_validation &&
|
388
|
-
fail ArgumentError, "Missing the required parameter '
|
386
|
+
# verify the required parameter 'certguard_x509_cert_guard' is set
|
387
|
+
if @api_client.config.client_side_validation && certguard_x509_cert_guard.nil?
|
388
|
+
fail ArgumentError, "Missing the required parameter 'certguard_x509_cert_guard' when calling ContentguardsX509Api.update"
|
389
389
|
end
|
390
390
|
# resource path
|
391
|
-
local_var_path = '{
|
391
|
+
local_var_path = '{certguard_x509_cert_guard_href}'.sub('{' + 'certguard_x509_cert_guard_href' + '}', CGI.escape(certguard_x509_cert_guard_href.to_s).gsub('%2F', '/'))
|
392
392
|
|
393
393
|
# query parameters
|
394
394
|
query_params = opts[:query_params] || {}
|
@@ -398,19 +398,19 @@ module PulpCertguardClient
|
|
398
398
|
# HTTP header 'Accept' (if needed)
|
399
399
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
400
400
|
# HTTP header 'Content-Type'
|
401
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
401
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
402
402
|
|
403
403
|
# form parameters
|
404
404
|
form_params = opts[:form_params] || {}
|
405
405
|
|
406
406
|
# http body (model)
|
407
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
407
|
+
post_body = opts[:body] || @api_client.object_to_http_body(certguard_x509_cert_guard)
|
408
408
|
|
409
409
|
# return_type
|
410
|
-
return_type = opts[:return_type] || '
|
410
|
+
return_type = opts[:return_type] || 'CertguardX509CertGuardResponse'
|
411
411
|
|
412
412
|
# auth_names
|
413
|
-
auth_names = opts[:auth_names] || ['
|
413
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
414
414
|
|
415
415
|
new_options = opts.merge(
|
416
416
|
:header_params => header_params,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -188,7 +188,7 @@ module PulpCertguardClient
|
|
188
188
|
# Returns Auth Settings hash for api client.
|
189
189
|
def auth_settings
|
190
190
|
{
|
191
|
-
'
|
191
|
+
'basicAuth' =>
|
192
192
|
{
|
193
193
|
type: 'basic',
|
194
194
|
in: 'header',
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,12 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpCertguardClient
|
16
|
+
# RHSM Content Guard Serializer.
|
16
17
|
class CertguardRHSMCertGuard
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
18
|
# The unique name.
|
23
19
|
attr_accessor :name
|
24
20
|
|
@@ -31,8 +27,6 @@ module PulpCertguardClient
|
|
31
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
28
|
def self.attribute_map
|
33
29
|
{
|
34
|
-
:'pulp_href' => :'pulp_href',
|
35
|
-
:'pulp_created' => :'pulp_created',
|
36
30
|
:'name' => :'name',
|
37
31
|
:'description' => :'description',
|
38
32
|
:'ca_certificate' => :'ca_certificate'
|
@@ -42,8 +36,6 @@ module PulpCertguardClient
|
|
42
36
|
# Attribute type mapping.
|
43
37
|
def self.openapi_types
|
44
38
|
{
|
45
|
-
:'pulp_href' => :'String',
|
46
|
-
:'pulp_created' => :'DateTime',
|
47
39
|
:'name' => :'String',
|
48
40
|
:'description' => :'String',
|
49
41
|
:'ca_certificate' => :'String'
|
@@ -72,14 +64,6 @@ module PulpCertguardClient
|
|
72
64
|
h[k.to_sym] = v
|
73
65
|
}
|
74
66
|
|
75
|
-
if attributes.key?(:'pulp_href')
|
76
|
-
self.pulp_href = attributes[:'pulp_href']
|
77
|
-
end
|
78
|
-
|
79
|
-
if attributes.key?(:'pulp_created')
|
80
|
-
self.pulp_created = attributes[:'pulp_created']
|
81
|
-
end
|
82
|
-
|
83
67
|
if attributes.key?(:'name')
|
84
68
|
self.name = attributes[:'name']
|
85
69
|
end
|
@@ -101,22 +85,10 @@ module PulpCertguardClient
|
|
101
85
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
102
86
|
end
|
103
87
|
|
104
|
-
if @name.to_s.length < 1
|
105
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
106
|
-
end
|
107
|
-
|
108
|
-
if !@description.nil? && @description.to_s.length < 1
|
109
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
110
|
-
end
|
111
|
-
|
112
88
|
if @ca_certificate.nil?
|
113
89
|
invalid_properties.push('invalid value for "ca_certificate", ca_certificate cannot be nil.')
|
114
90
|
end
|
115
91
|
|
116
|
-
if @ca_certificate.to_s.length < 1
|
117
|
-
invalid_properties.push('invalid value for "ca_certificate", the character length must be great than or equal to 1.')
|
118
|
-
end
|
119
|
-
|
120
92
|
invalid_properties
|
121
93
|
end
|
122
94
|
|
@@ -124,58 +96,15 @@ module PulpCertguardClient
|
|
124
96
|
# @return true if the model is valid
|
125
97
|
def valid?
|
126
98
|
return false if @name.nil?
|
127
|
-
return false if @name.to_s.length < 1
|
128
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
129
99
|
return false if @ca_certificate.nil?
|
130
|
-
return false if @ca_certificate.to_s.length < 1
|
131
100
|
true
|
132
101
|
end
|
133
102
|
|
134
|
-
# Custom attribute writer method with validation
|
135
|
-
# @param [Object] name Value to be assigned
|
136
|
-
def name=(name)
|
137
|
-
if name.nil?
|
138
|
-
fail ArgumentError, 'name cannot be nil'
|
139
|
-
end
|
140
|
-
|
141
|
-
if name.to_s.length < 1
|
142
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
143
|
-
end
|
144
|
-
|
145
|
-
@name = name
|
146
|
-
end
|
147
|
-
|
148
|
-
# Custom attribute writer method with validation
|
149
|
-
# @param [Object] description Value to be assigned
|
150
|
-
def description=(description)
|
151
|
-
if !description.nil? && description.to_s.length < 1
|
152
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
153
|
-
end
|
154
|
-
|
155
|
-
@description = description
|
156
|
-
end
|
157
|
-
|
158
|
-
# Custom attribute writer method with validation
|
159
|
-
# @param [Object] ca_certificate Value to be assigned
|
160
|
-
def ca_certificate=(ca_certificate)
|
161
|
-
if ca_certificate.nil?
|
162
|
-
fail ArgumentError, 'ca_certificate cannot be nil'
|
163
|
-
end
|
164
|
-
|
165
|
-
if ca_certificate.to_s.length < 1
|
166
|
-
fail ArgumentError, 'invalid value for "ca_certificate", the character length must be great than or equal to 1.'
|
167
|
-
end
|
168
|
-
|
169
|
-
@ca_certificate = ca_certificate
|
170
|
-
end
|
171
|
-
|
172
103
|
# Checks equality by comparing each attribute.
|
173
104
|
# @param [Object] Object to be compared
|
174
105
|
def ==(o)
|
175
106
|
return true if self.equal?(o)
|
176
107
|
self.class == o.class &&
|
177
|
-
pulp_href == o.pulp_href &&
|
178
|
-
pulp_created == o.pulp_created &&
|
179
108
|
name == o.name &&
|
180
109
|
description == o.description &&
|
181
110
|
ca_certificate == o.ca_certificate
|
@@ -190,7 +119,7 @@ module PulpCertguardClient
|
|
190
119
|
# Calculates hash code according to all attributes.
|
191
120
|
# @return [Integer] Hash code
|
192
121
|
def hash
|
193
|
-
[
|
122
|
+
[name, description, ca_certificate].hash
|
194
123
|
end
|
195
124
|
|
196
125
|
# Builds the object from hash
|