pulp_certguard_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -17
  3. data/docs/CertguardRHSMCertGuard.md +1 -5
  4. data/docs/CertguardRHSMCertGuardResponse.md +25 -0
  5. data/docs/CertguardX509CertGuard.md +1 -5
  6. data/docs/CertguardX509CertGuardResponse.md +25 -0
  7. data/docs/ContentguardsRhsmApi.md +55 -55
  8. data/docs/ContentguardsX509Api.md +55 -55
  9. data/docs/InlineResponse200.md +3 -3
  10. data/docs/InlineResponse2001.md +3 -3
  11. data/docs/PatchedcertguardRHSMCertGuard.md +21 -0
  12. data/docs/PatchedcertguardX509CertGuard.md +21 -0
  13. data/lib/pulp_certguard_client.rb +6 -2
  14. data/lib/pulp_certguard_client/api/contentguards_rhsm_api.rb +90 -90
  15. data/lib/pulp_certguard_client/api/contentguards_x509_api.rb +90 -90
  16. data/lib/pulp_certguard_client/api_client.rb +2 -2
  17. data/lib/pulp_certguard_client/api_error.rb +2 -2
  18. data/lib/pulp_certguard_client/configuration.rb +3 -3
  19. data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard.rb +4 -75
  20. data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard_response.rb +258 -0
  21. data/lib/pulp_certguard_client/models/certguard_x509_cert_guard.rb +4 -75
  22. data/lib/pulp_certguard_client/models/certguard_x509_cert_guard_response.rb +258 -0
  23. data/lib/pulp_certguard_client/models/inline_response200.rb +3 -13
  24. data/lib/pulp_certguard_client/models/inline_response2001.rb +3 -13
  25. data/lib/pulp_certguard_client/models/patchedcertguard_rhsm_cert_guard.rb +229 -0
  26. data/lib/pulp_certguard_client/models/patchedcertguard_x509_cert_guard.rb +229 -0
  27. data/lib/pulp_certguard_client/version.rb +3 -3
  28. data/pulp_certguard_client.gemspec +4 -4
  29. data/spec/api/contentguards_rhsm_api_spec.rb +17 -17
  30. data/spec/api/contentguards_x509_api_spec.rb +17 -17
  31. data/spec/api_client_spec.rb +2 -2
  32. data/spec/configuration_spec.rb +2 -2
  33. data/spec/models/certguard_rhsm_cert_guard_response_spec.rb +65 -0
  34. data/spec/models/certguard_rhsm_cert_guard_spec.rb +2 -14
  35. data/spec/models/certguard_x509_cert_guard_response_spec.rb +65 -0
  36. data/spec/models/certguard_x509_cert_guard_spec.rb +2 -14
  37. data/spec/models/inline_response2001_spec.rb +2 -2
  38. data/spec/models/inline_response200_spec.rb +2 -2
  39. data/spec/models/patchedcertguard_rhsm_cert_guard_spec.rb +53 -0
  40. data/spec/models/patchedcertguard_x509_cert_guard_spec.rb +53 -0
  41. data/spec/spec_helper.rb +2 -2
  42. metadata +23 -7
@@ -5,17 +5,17 @@ All URIs are relative to *http://pulp*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**create**](ContentguardsX509Api.md#create) | **POST** /pulp/api/v3/contentguards/certguard/x509/ | Create a x509 cert guard
8
- [**delete**](ContentguardsX509Api.md#delete) | **DELETE** {x509_cert_guard_href} | Delete a x509 cert guard
8
+ [**delete**](ContentguardsX509Api.md#delete) | **DELETE** {certguard_x509_cert_guard_href} | Delete a x509 cert guard
9
9
  [**list**](ContentguardsX509Api.md#list) | **GET** /pulp/api/v3/contentguards/certguard/x509/ | List x509 cert guards
10
- [**partial_update**](ContentguardsX509Api.md#partial_update) | **PATCH** {x509_cert_guard_href} | Partially update a x509 cert guard
11
- [**read**](ContentguardsX509Api.md#read) | **GET** {x509_cert_guard_href} | Inspect a x509 cert guard
12
- [**update**](ContentguardsX509Api.md#update) | **PUT** {x509_cert_guard_href} | Update a x509 cert guard
10
+ [**partial_update**](ContentguardsX509Api.md#partial_update) | **PATCH** {certguard_x509_cert_guard_href} | Update a x509 cert guard
11
+ [**read**](ContentguardsX509Api.md#read) | **GET** {certguard_x509_cert_guard_href} | Inspect a x509 cert guard
12
+ [**update**](ContentguardsX509Api.md#update) | **PUT** {certguard_x509_cert_guard_href} | Update a x509 cert guard
13
13
 
14
14
 
15
15
 
16
16
  ## create
17
17
 
18
- > CertguardX509CertGuard create(data)
18
+ > CertguardX509CertGuardResponse create(certguard_x509_cert_guard)
19
19
 
20
20
  Create a x509 cert guard
21
21
 
@@ -28,17 +28,17 @@ X509CertGuard API Viewsets.
28
28
  require 'pulp_certguard_client'
29
29
  # setup authorization
30
30
  PulpCertguardClient.configure do |config|
31
- # Configure HTTP basic authorization: Basic
31
+ # Configure HTTP basic authorization: basicAuth
32
32
  config.username = 'YOUR USERNAME'
33
33
  config.password = 'YOUR PASSWORD'
34
34
  end
35
35
 
36
36
  api_instance = PulpCertguardClient::ContentguardsX509Api.new
37
- data = PulpCertguardClient::CertguardX509CertGuard.new # CertguardX509CertGuard |
37
+ certguard_x509_cert_guard = PulpCertguardClient::CertguardX509CertGuard.new # CertguardX509CertGuard |
38
38
 
39
39
  begin
40
40
  #Create a x509 cert guard
41
- result = api_instance.create(data)
41
+ result = api_instance.create(certguard_x509_cert_guard)
42
42
  p result
43
43
  rescue PulpCertguardClient::ApiError => e
44
44
  puts "Exception when calling ContentguardsX509Api->create: #{e}"
@@ -50,25 +50,25 @@ end
50
50
 
51
51
  Name | Type | Description | Notes
52
52
  ------------- | ------------- | ------------- | -------------
53
- **data** | [**CertguardX509CertGuard**](CertguardX509CertGuard.md)| |
53
+ **certguard_x509_cert_guard** | [**CertguardX509CertGuard**](CertguardX509CertGuard.md)| |
54
54
 
55
55
  ### Return type
56
56
 
57
- [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
57
+ [**CertguardX509CertGuardResponse**](CertguardX509CertGuardResponse.md)
58
58
 
59
59
  ### Authorization
60
60
 
61
- [Basic](../README.md#Basic)
61
+ [basicAuth](../README.md#basicAuth)
62
62
 
63
63
  ### HTTP request headers
64
64
 
65
- - **Content-Type**: application/json
65
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
66
66
  - **Accept**: application/json
67
67
 
68
68
 
69
69
  ## delete
70
70
 
71
- > delete(x509_cert_guard_href)
71
+ > delete(certguard_x509_cert_guard_href)
72
72
 
73
73
  Delete a x509 cert guard
74
74
 
@@ -81,17 +81,17 @@ X509CertGuard API Viewsets.
81
81
  require 'pulp_certguard_client'
82
82
  # setup authorization
83
83
  PulpCertguardClient.configure do |config|
84
- # Configure HTTP basic authorization: Basic
84
+ # Configure HTTP basic authorization: basicAuth
85
85
  config.username = 'YOUR USERNAME'
86
86
  config.password = 'YOUR PASSWORD'
87
87
  end
88
88
 
89
89
  api_instance = PulpCertguardClient::ContentguardsX509Api.new
90
- x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
90
+ certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String |
91
91
 
92
92
  begin
93
93
  #Delete a x509 cert guard
94
- api_instance.delete(x509_cert_guard_href)
94
+ api_instance.delete(certguard_x509_cert_guard_href)
95
95
  rescue PulpCertguardClient::ApiError => e
96
96
  puts "Exception when calling ContentguardsX509Api->delete: #{e}"
97
97
  end
@@ -102,7 +102,7 @@ end
102
102
 
103
103
  Name | Type | Description | Notes
104
104
  ------------- | ------------- | ------------- | -------------
105
- **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
105
+ **certguard_x509_cert_guard_href** | **String**| |
106
106
 
107
107
  ### Return type
108
108
 
@@ -110,7 +110,7 @@ nil (empty response body)
110
110
 
111
111
  ### Authorization
112
112
 
113
- [Basic](../README.md#Basic)
113
+ [basicAuth](../README.md#basicAuth)
114
114
 
115
115
  ### HTTP request headers
116
116
 
@@ -133,18 +133,18 @@ X509CertGuard API Viewsets.
133
133
  require 'pulp_certguard_client'
134
134
  # setup authorization
135
135
  PulpCertguardClient.configure do |config|
136
- # Configure HTTP basic authorization: Basic
136
+ # Configure HTTP basic authorization: basicAuth
137
137
  config.username = 'YOUR USERNAME'
138
138
  config.password = 'YOUR PASSWORD'
139
139
  end
140
140
 
141
141
  api_instance = PulpCertguardClient::ContentguardsX509Api.new
142
142
  opts = {
143
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
144
- name: 'name_example', # String |
145
- name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
146
143
  limit: 56, # Integer | Number of results to return per page.
144
+ name: 'name_example', # String | name
145
+ name__in: 'name__in_example', # String | name__in
147
146
  offset: 56, # Integer | The initial index from which to return the results.
147
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
148
148
  fields: 'fields_example', # String | A list of fields to include in the response.
149
149
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
150
150
  }
@@ -163,11 +163,11 @@ end
163
163
 
164
164
  Name | Type | Description | Notes
165
165
  ------------- | ------------- | ------------- | -------------
166
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
167
- **name** | **String**| | [optional]
168
- **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
169
166
  **limit** | **Integer**| Number of results to return per page. | [optional]
167
+ **name** | **String**| name | [optional]
168
+ **name__in** | **String**| name__in | [optional]
170
169
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
170
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
171
171
  **fields** | **String**| A list of fields to include in the response. | [optional]
172
172
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
173
173
 
@@ -177,7 +177,7 @@ Name | Type | Description | Notes
177
177
 
178
178
  ### Authorization
179
179
 
180
- [Basic](../README.md#Basic)
180
+ [basicAuth](../README.md#basicAuth)
181
181
 
182
182
  ### HTTP request headers
183
183
 
@@ -187,9 +187,9 @@ Name | Type | Description | Notes
187
187
 
188
188
  ## partial_update
189
189
 
190
- > CertguardX509CertGuard partial_update(x509_cert_guard_href, data)
190
+ > CertguardX509CertGuardResponse partial_update(certguard_x509_cert_guard_href, patchedcertguard_x509_cert_guard)
191
191
 
192
- Partially update a x509 cert guard
192
+ Update a x509 cert guard
193
193
 
194
194
  X509CertGuard API Viewsets.
195
195
 
@@ -200,18 +200,18 @@ X509CertGuard API Viewsets.
200
200
  require 'pulp_certguard_client'
201
201
  # setup authorization
202
202
  PulpCertguardClient.configure do |config|
203
- # Configure HTTP basic authorization: Basic
203
+ # Configure HTTP basic authorization: basicAuth
204
204
  config.username = 'YOUR USERNAME'
205
205
  config.password = 'YOUR PASSWORD'
206
206
  end
207
207
 
208
208
  api_instance = PulpCertguardClient::ContentguardsX509Api.new
209
- x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
210
- data = PulpCertguardClient::CertguardX509CertGuard.new # CertguardX509CertGuard |
209
+ certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String |
210
+ patchedcertguard_x509_cert_guard = PulpCertguardClient::PatchedcertguardX509CertGuard.new # PatchedcertguardX509CertGuard |
211
211
 
212
212
  begin
213
- #Partially update a x509 cert guard
214
- result = api_instance.partial_update(x509_cert_guard_href, data)
213
+ #Update a x509 cert guard
214
+ result = api_instance.partial_update(certguard_x509_cert_guard_href, patchedcertguard_x509_cert_guard)
215
215
  p result
216
216
  rescue PulpCertguardClient::ApiError => e
217
217
  puts "Exception when calling ContentguardsX509Api->partial_update: #{e}"
@@ -223,26 +223,26 @@ end
223
223
 
224
224
  Name | Type | Description | Notes
225
225
  ------------- | ------------- | ------------- | -------------
226
- **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
227
- **data** | [**CertguardX509CertGuard**](CertguardX509CertGuard.md)| |
226
+ **certguard_x509_cert_guard_href** | **String**| |
227
+ **patchedcertguard_x509_cert_guard** | [**PatchedcertguardX509CertGuard**](PatchedcertguardX509CertGuard.md)| |
228
228
 
229
229
  ### Return type
230
230
 
231
- [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
231
+ [**CertguardX509CertGuardResponse**](CertguardX509CertGuardResponse.md)
232
232
 
233
233
  ### Authorization
234
234
 
235
- [Basic](../README.md#Basic)
235
+ [basicAuth](../README.md#basicAuth)
236
236
 
237
237
  ### HTTP request headers
238
238
 
239
- - **Content-Type**: application/json
239
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
240
240
  - **Accept**: application/json
241
241
 
242
242
 
243
243
  ## read
244
244
 
245
- > CertguardX509CertGuard read(x509_cert_guard_href, opts)
245
+ > CertguardX509CertGuardResponse read(certguard_x509_cert_guard_href, opts)
246
246
 
247
247
  Inspect a x509 cert guard
248
248
 
@@ -255,13 +255,13 @@ X509CertGuard API Viewsets.
255
255
  require 'pulp_certguard_client'
256
256
  # setup authorization
257
257
  PulpCertguardClient.configure do |config|
258
- # Configure HTTP basic authorization: Basic
258
+ # Configure HTTP basic authorization: basicAuth
259
259
  config.username = 'YOUR USERNAME'
260
260
  config.password = 'YOUR PASSWORD'
261
261
  end
262
262
 
263
263
  api_instance = PulpCertguardClient::ContentguardsX509Api.new
264
- x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
264
+ certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String |
265
265
  opts = {
266
266
  fields: 'fields_example', # String | A list of fields to include in the response.
267
267
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
@@ -269,7 +269,7 @@ opts = {
269
269
 
270
270
  begin
271
271
  #Inspect a x509 cert guard
272
- result = api_instance.read(x509_cert_guard_href, opts)
272
+ result = api_instance.read(certguard_x509_cert_guard_href, opts)
273
273
  p result
274
274
  rescue PulpCertguardClient::ApiError => e
275
275
  puts "Exception when calling ContentguardsX509Api->read: #{e}"
@@ -281,17 +281,17 @@ end
281
281
 
282
282
  Name | Type | Description | Notes
283
283
  ------------- | ------------- | ------------- | -------------
284
- **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
284
+ **certguard_x509_cert_guard_href** | **String**| |
285
285
  **fields** | **String**| A list of fields to include in the response. | [optional]
286
286
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
287
287
 
288
288
  ### Return type
289
289
 
290
- [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
290
+ [**CertguardX509CertGuardResponse**](CertguardX509CertGuardResponse.md)
291
291
 
292
292
  ### Authorization
293
293
 
294
- [Basic](../README.md#Basic)
294
+ [basicAuth](../README.md#basicAuth)
295
295
 
296
296
  ### HTTP request headers
297
297
 
@@ -301,7 +301,7 @@ Name | Type | Description | Notes
301
301
 
302
302
  ## update
303
303
 
304
- > CertguardX509CertGuard update(x509_cert_guard_href, data)
304
+ > CertguardX509CertGuardResponse update(certguard_x509_cert_guard_href, certguard_x509_cert_guard)
305
305
 
306
306
  Update a x509 cert guard
307
307
 
@@ -314,18 +314,18 @@ X509CertGuard API Viewsets.
314
314
  require 'pulp_certguard_client'
315
315
  # setup authorization
316
316
  PulpCertguardClient.configure do |config|
317
- # Configure HTTP basic authorization: Basic
317
+ # Configure HTTP basic authorization: basicAuth
318
318
  config.username = 'YOUR USERNAME'
319
319
  config.password = 'YOUR PASSWORD'
320
320
  end
321
321
 
322
322
  api_instance = PulpCertguardClient::ContentguardsX509Api.new
323
- x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
324
- data = PulpCertguardClient::CertguardX509CertGuard.new # CertguardX509CertGuard |
323
+ certguard_x509_cert_guard_href = 'certguard_x509_cert_guard_href_example' # String |
324
+ certguard_x509_cert_guard = PulpCertguardClient::CertguardX509CertGuard.new # CertguardX509CertGuard |
325
325
 
326
326
  begin
327
327
  #Update a x509 cert guard
328
- result = api_instance.update(x509_cert_guard_href, data)
328
+ result = api_instance.update(certguard_x509_cert_guard_href, certguard_x509_cert_guard)
329
329
  p result
330
330
  rescue PulpCertguardClient::ApiError => e
331
331
  puts "Exception when calling ContentguardsX509Api->update: #{e}"
@@ -337,19 +337,19 @@ end
337
337
 
338
338
  Name | Type | Description | Notes
339
339
  ------------- | ------------- | ------------- | -------------
340
- **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
341
- **data** | [**CertguardX509CertGuard**](CertguardX509CertGuard.md)| |
340
+ **certguard_x509_cert_guard_href** | **String**| |
341
+ **certguard_x509_cert_guard** | [**CertguardX509CertGuard**](CertguardX509CertGuard.md)| |
342
342
 
343
343
  ### Return type
344
344
 
345
- [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
345
+ [**CertguardX509CertGuardResponse**](CertguardX509CertGuardResponse.md)
346
346
 
347
347
  ### Authorization
348
348
 
349
- [Basic](../README.md#Basic)
349
+ [basicAuth](../README.md#basicAuth)
350
350
 
351
351
  ### HTTP request headers
352
352
 
353
- - **Content-Type**: application/json
353
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
354
354
  - **Accept**: application/json
355
355
 
@@ -4,17 +4,17 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
7
+ **count** | **Integer** | | [optional]
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<CertguardRHSMCertGuard>**](CertguardRHSMCertGuard.md) | |
10
+ **results** | [**Array<CertguardRHSMCertGuardResponse>**](CertguardRHSMCertGuardResponse.md) | | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpCertguardClient'
16
16
 
17
- instance = PulpCertguardClient::InlineResponse200.new(count: null,
17
+ instance = PulpCertguardClient::InlineResponse200.new(count: 123,
18
18
  _next: null,
19
19
  previous: null,
20
20
  results: null)
@@ -4,17 +4,17 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
7
+ **count** | **Integer** | | [optional]
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<CertguardX509CertGuard>**](CertguardX509CertGuard.md) | |
10
+ **results** | [**Array<CertguardX509CertGuardResponse>**](CertguardX509CertGuardResponse.md) | | [optional]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpCertguardClient'
16
16
 
17
- instance = PulpCertguardClient::InlineResponse2001.new(count: null,
17
+ instance = PulpCertguardClient::InlineResponse2001.new(count: 123,
18
18
  _next: null,
19
19
  previous: null,
20
20
  results: null)
@@ -0,0 +1,21 @@
1
+ # PulpCertguardClient::PatchedcertguardRHSMCertGuard
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | The unique name. | [optional]
8
+ **description** | **String** | An optional description. | [optional]
9
+ **ca_certificate** | **String** | The Certificate Authority (CA) certificate. | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpCertguardClient'
15
+
16
+ instance = PulpCertguardClient::PatchedcertguardRHSMCertGuard.new(name: null,
17
+ description: null,
18
+ ca_certificate: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # PulpCertguardClient::PatchedcertguardX509CertGuard
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | The unique name. | [optional]
8
+ **description** | **String** | An optional description. | [optional]
9
+ **ca_certificate** | **String** | The Certificate Authority (CA) certificate. | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpCertguardClient'
15
+
16
+ instance = PulpCertguardClient::PatchedcertguardX509CertGuard.new(name: null,
17
+ description: null,
18
+ ca_certificate: null)
19
+ ```
20
+
21
+
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
 
@@ -18,9 +18,13 @@ require 'pulp_certguard_client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'pulp_certguard_client/models/certguard_rhsm_cert_guard'
21
+ require 'pulp_certguard_client/models/certguard_rhsm_cert_guard_response'
21
22
  require 'pulp_certguard_client/models/certguard_x509_cert_guard'
23
+ require 'pulp_certguard_client/models/certguard_x509_cert_guard_response'
22
24
  require 'pulp_certguard_client/models/inline_response200'
23
25
  require 'pulp_certguard_client/models/inline_response2001'
26
+ require 'pulp_certguard_client/models/patchedcertguard_rhsm_cert_guard'
27
+ require 'pulp_certguard_client/models/patchedcertguard_x509_cert_guard'
24
28
 
25
29
  # APIs
26
30
  require 'pulp_certguard_client/api/contentguards_rhsm_api'
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 rhsm cert guard
23
23
  # RHSMCertGuard API Viewsets.
24
- # @param data [CertguardRHSMCertGuard]
24
+ # @param certguard_rhsm_cert_guard [CertguardRHSMCertGuard]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [CertguardRHSMCertGuard]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [CertguardRHSMCertGuardResponse]
27
+ def create(certguard_rhsm_cert_guard, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(certguard_rhsm_cert_guard, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a rhsm cert guard
33
33
  # RHSMCertGuard API Viewsets.
34
- # @param data [CertguardRHSMCertGuard]
34
+ # @param certguard_rhsm_cert_guard [CertguardRHSMCertGuard]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(CertguardRHSMCertGuard, Integer, Hash)>] CertguardRHSMCertGuard data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(CertguardRHSMCertGuardResponse, Integer, Hash)>] CertguardRHSMCertGuardResponse data, response status code and response headers
37
+ def create_with_http_info(certguard_rhsm_cert_guard, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: ContentguardsRhsmApi.create ...'
40
40
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsRhsmApi.create"
41
+ # verify the required parameter 'certguard_rhsm_cert_guard' is set
42
+ if @api_client.config.client_side_validation && certguard_rhsm_cert_guard.nil?
43
+ fail ArgumentError, "Missing the required parameter 'certguard_rhsm_cert_guard' when calling ContentguardsRhsmApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/contentguards/certguard/rhsm/'
@@ -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(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(certguard_rhsm_cert_guard)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'CertguardRHSMCertGuard'
65
+ return_type = opts[:return_type] || 'CertguardRHSMCertGuardResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
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 rhsm cert guard
87
87
  # RHSMCertGuard API Viewsets.
88
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
88
+ # @param certguard_r_h_s_m_cert_guard_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
91
- def delete(r_h_s_m_cert_guard_href, opts = {})
92
- delete_with_http_info(r_h_s_m_cert_guard_href, opts)
91
+ def delete(certguard_r_h_s_m_cert_guard_href, opts = {})
92
+ delete_with_http_info(certguard_r_h_s_m_cert_guard_href, opts)
93
93
  nil
94
94
  end
95
95
 
96
96
  # Delete a rhsm cert guard
97
97
  # RHSMCertGuard API Viewsets.
98
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
98
+ # @param certguard_r_h_s_m_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(r_h_s_m_cert_guard_href, opts = {})
101
+ def delete_with_http_info(certguard_r_h_s_m_cert_guard_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: ContentguardsRhsmApi.delete ...'
104
104
  end
105
- # verify the required parameter 'r_h_s_m_cert_guard_href' is set
106
- if @api_client.config.client_side_validation && r_h_s_m_cert_guard_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.delete"
105
+ # verify the required parameter 'certguard_r_h_s_m_cert_guard_href' is set
106
+ if @api_client.config.client_side_validation && certguard_r_h_s_m_cert_guard_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'certguard_r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.delete"
108
108
  end
109
109
  # resource path
110
- local_var_path = '{r_h_s_m_cert_guard_href}'.sub('{' + 'r_h_s_m_cert_guard_href' + '}', CGI.escape(r_h_s_m_cert_guard_href.to_s).gsub('%2F', '/'))
110
+ local_var_path = '{certguard_r_h_s_m_cert_guard_href}'.sub('{' + 'certguard_r_h_s_m_cert_guard_href' + '}', CGI.escape(certguard_r_h_s_m_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] || ['Basic']
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 rhsm cert guards
147
147
  # RHSMCertGuard 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 [InlineResponse200]
@@ -162,11 +162,11 @@ module PulpCertguardClient
162
162
  # List rhsm cert guards
163
163
  # RHSMCertGuard 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<(InlineResponse200, Integer, Hash)>] InlineResponse200 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[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
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] || 'InlineResponse200'
203
203
 
204
204
  # auth_names
205
- auth_names = opts[:auth_names] || ['Basic']
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
- # Partially update a rhsm cert guard
223
+ # Update a rhsm cert guard
224
224
  # RHSMCertGuard API Viewsets.
225
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
226
- # @param data [CertguardRHSMCertGuard]
225
+ # @param certguard_r_h_s_m_cert_guard_href [String]
226
+ # @param patchedcertguard_rhsm_cert_guard [PatchedcertguardRHSMCertGuard]
227
227
  # @param [Hash] opts the optional parameters
228
- # @return [CertguardRHSMCertGuard]
229
- def partial_update(r_h_s_m_cert_guard_href, data, opts = {})
230
- data, _status_code, _headers = partial_update_with_http_info(r_h_s_m_cert_guard_href, data, opts)
228
+ # @return [CertguardRHSMCertGuardResponse]
229
+ def partial_update(certguard_r_h_s_m_cert_guard_href, patchedcertguard_rhsm_cert_guard, opts = {})
230
+ data, _status_code, _headers = partial_update_with_http_info(certguard_r_h_s_m_cert_guard_href, patchedcertguard_rhsm_cert_guard, opts)
231
231
  data
232
232
  end
233
233
 
234
- # Partially update a rhsm cert guard
234
+ # Update a rhsm cert guard
235
235
  # RHSMCertGuard API Viewsets.
236
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
237
- # @param data [CertguardRHSMCertGuard]
236
+ # @param certguard_r_h_s_m_cert_guard_href [String]
237
+ # @param patchedcertguard_rhsm_cert_guard [PatchedcertguardRHSMCertGuard]
238
238
  # @param [Hash] opts the optional parameters
239
- # @return [Array<(CertguardRHSMCertGuard, Integer, Hash)>] CertguardRHSMCertGuard data, response status code and response headers
240
- def partial_update_with_http_info(r_h_s_m_cert_guard_href, data, opts = {})
239
+ # @return [Array<(CertguardRHSMCertGuardResponse, Integer, Hash)>] CertguardRHSMCertGuardResponse data, response status code and response headers
240
+ def partial_update_with_http_info(certguard_r_h_s_m_cert_guard_href, patchedcertguard_rhsm_cert_guard, opts = {})
241
241
  if @api_client.config.debugging
242
242
  @api_client.config.logger.debug 'Calling API: ContentguardsRhsmApi.partial_update ...'
243
243
  end
244
- # verify the required parameter 'r_h_s_m_cert_guard_href' is set
245
- if @api_client.config.client_side_validation && r_h_s_m_cert_guard_href.nil?
246
- fail ArgumentError, "Missing the required parameter 'r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.partial_update"
244
+ # verify the required parameter 'certguard_r_h_s_m_cert_guard_href' is set
245
+ if @api_client.config.client_side_validation && certguard_r_h_s_m_cert_guard_href.nil?
246
+ fail ArgumentError, "Missing the required parameter 'certguard_r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.partial_update"
247
247
  end
248
- # verify the required parameter 'data' is set
249
- if @api_client.config.client_side_validation && data.nil?
250
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsRhsmApi.partial_update"
248
+ # verify the required parameter 'patchedcertguard_rhsm_cert_guard' is set
249
+ if @api_client.config.client_side_validation && patchedcertguard_rhsm_cert_guard.nil?
250
+ fail ArgumentError, "Missing the required parameter 'patchedcertguard_rhsm_cert_guard' when calling ContentguardsRhsmApi.partial_update"
251
251
  end
252
252
  # resource path
253
- local_var_path = '{r_h_s_m_cert_guard_href}'.sub('{' + 'r_h_s_m_cert_guard_href' + '}', CGI.escape(r_h_s_m_cert_guard_href.to_s).gsub('%2F', '/'))
253
+ local_var_path = '{certguard_r_h_s_m_cert_guard_href}'.sub('{' + 'certguard_r_h_s_m_cert_guard_href' + '}', CGI.escape(certguard_r_h_s_m_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(data)
269
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedcertguard_rhsm_cert_guard)
270
270
 
271
271
  # return_type
272
- return_type = opts[:return_type] || 'CertguardRHSMCertGuard'
272
+ return_type = opts[:return_type] || 'CertguardRHSMCertGuardResponse'
273
273
 
274
274
  # auth_names
275
- auth_names = opts[:auth_names] || ['Basic']
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 rhsm cert guard
294
294
  # RHSMCertGuard API Viewsets.
295
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
295
+ # @param certguard_r_h_s_m_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 [CertguardRHSMCertGuard]
300
- def read(r_h_s_m_cert_guard_href, opts = {})
301
- data, _status_code, _headers = read_with_http_info(r_h_s_m_cert_guard_href, opts)
299
+ # @return [CertguardRHSMCertGuardResponse]
300
+ def read(certguard_r_h_s_m_cert_guard_href, opts = {})
301
+ data, _status_code, _headers = read_with_http_info(certguard_r_h_s_m_cert_guard_href, opts)
302
302
  data
303
303
  end
304
304
 
305
305
  # Inspect a rhsm cert guard
306
306
  # RHSMCertGuard API Viewsets.
307
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
307
+ # @param certguard_r_h_s_m_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<(CertguardRHSMCertGuard, Integer, Hash)>] CertguardRHSMCertGuard data, response status code and response headers
312
- def read_with_http_info(r_h_s_m_cert_guard_href, opts = {})
311
+ # @return [Array<(CertguardRHSMCertGuardResponse, Integer, Hash)>] CertguardRHSMCertGuardResponse data, response status code and response headers
312
+ def read_with_http_info(certguard_r_h_s_m_cert_guard_href, opts = {})
313
313
  if @api_client.config.debugging
314
314
  @api_client.config.logger.debug 'Calling API: ContentguardsRhsmApi.read ...'
315
315
  end
316
- # verify the required parameter 'r_h_s_m_cert_guard_href' is set
317
- if @api_client.config.client_side_validation && r_h_s_m_cert_guard_href.nil?
318
- fail ArgumentError, "Missing the required parameter 'r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.read"
316
+ # verify the required parameter 'certguard_r_h_s_m_cert_guard_href' is set
317
+ if @api_client.config.client_side_validation && certguard_r_h_s_m_cert_guard_href.nil?
318
+ fail ArgumentError, "Missing the required parameter 'certguard_r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.read"
319
319
  end
320
320
  # resource path
321
- local_var_path = '{r_h_s_m_cert_guard_href}'.sub('{' + 'r_h_s_m_cert_guard_href' + '}', CGI.escape(r_h_s_m_cert_guard_href.to_s).gsub('%2F', '/'))
321
+ local_var_path = '{certguard_r_h_s_m_cert_guard_href}'.sub('{' + 'certguard_r_h_s_m_cert_guard_href' + '}', CGI.escape(certguard_r_h_s_m_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] || 'CertguardRHSMCertGuard'
340
+ return_type = opts[:return_type] || 'CertguardRHSMCertGuardResponse'
341
341
 
342
342
  # auth_names
343
- auth_names = opts[:auth_names] || ['Basic']
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 rhsm cert guard
362
362
  # RHSMCertGuard API Viewsets.
363
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
364
- # @param data [CertguardRHSMCertGuard]
363
+ # @param certguard_r_h_s_m_cert_guard_href [String]
364
+ # @param certguard_rhsm_cert_guard [CertguardRHSMCertGuard]
365
365
  # @param [Hash] opts the optional parameters
366
- # @return [CertguardRHSMCertGuard]
367
- def update(r_h_s_m_cert_guard_href, data, opts = {})
368
- data, _status_code, _headers = update_with_http_info(r_h_s_m_cert_guard_href, data, opts)
366
+ # @return [CertguardRHSMCertGuardResponse]
367
+ def update(certguard_r_h_s_m_cert_guard_href, certguard_rhsm_cert_guard, opts = {})
368
+ data, _status_code, _headers = update_with_http_info(certguard_r_h_s_m_cert_guard_href, certguard_rhsm_cert_guard, opts)
369
369
  data
370
370
  end
371
371
 
372
372
  # Update a rhsm cert guard
373
373
  # RHSMCertGuard API Viewsets.
374
- # @param r_h_s_m_cert_guard_href [String] URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
375
- # @param data [CertguardRHSMCertGuard]
374
+ # @param certguard_r_h_s_m_cert_guard_href [String]
375
+ # @param certguard_rhsm_cert_guard [CertguardRHSMCertGuard]
376
376
  # @param [Hash] opts the optional parameters
377
- # @return [Array<(CertguardRHSMCertGuard, Integer, Hash)>] CertguardRHSMCertGuard data, response status code and response headers
378
- def update_with_http_info(r_h_s_m_cert_guard_href, data, opts = {})
377
+ # @return [Array<(CertguardRHSMCertGuardResponse, Integer, Hash)>] CertguardRHSMCertGuardResponse data, response status code and response headers
378
+ def update_with_http_info(certguard_r_h_s_m_cert_guard_href, certguard_rhsm_cert_guard, opts = {})
379
379
  if @api_client.config.debugging
380
380
  @api_client.config.logger.debug 'Calling API: ContentguardsRhsmApi.update ...'
381
381
  end
382
- # verify the required parameter 'r_h_s_m_cert_guard_href' is set
383
- if @api_client.config.client_side_validation && r_h_s_m_cert_guard_href.nil?
384
- fail ArgumentError, "Missing the required parameter 'r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.update"
382
+ # verify the required parameter 'certguard_r_h_s_m_cert_guard_href' is set
383
+ if @api_client.config.client_side_validation && certguard_r_h_s_m_cert_guard_href.nil?
384
+ fail ArgumentError, "Missing the required parameter 'certguard_r_h_s_m_cert_guard_href' when calling ContentguardsRhsmApi.update"
385
385
  end
386
- # verify the required parameter 'data' is set
387
- if @api_client.config.client_side_validation && data.nil?
388
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsRhsmApi.update"
386
+ # verify the required parameter 'certguard_rhsm_cert_guard' is set
387
+ if @api_client.config.client_side_validation && certguard_rhsm_cert_guard.nil?
388
+ fail ArgumentError, "Missing the required parameter 'certguard_rhsm_cert_guard' when calling ContentguardsRhsmApi.update"
389
389
  end
390
390
  # resource path
391
- local_var_path = '{r_h_s_m_cert_guard_href}'.sub('{' + 'r_h_s_m_cert_guard_href' + '}', CGI.escape(r_h_s_m_cert_guard_href.to_s).gsub('%2F', '/'))
391
+ local_var_path = '{certguard_r_h_s_m_cert_guard_href}'.sub('{' + 'certguard_r_h_s_m_cert_guard_href' + '}', CGI.escape(certguard_r_h_s_m_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(data)
407
+ post_body = opts[:body] || @api_client.object_to_http_body(certguard_rhsm_cert_guard)
408
408
 
409
409
  # return_type
410
- return_type = opts[:return_type] || 'CertguardRHSMCertGuard'
410
+ return_type = opts[:return_type] || 'CertguardRHSMCertGuardResponse'
411
411
 
412
412
  # auth_names
413
- auth_names = opts[:auth_names] || ['Basic']
413
+ auth_names = opts[:auth_names] || ['basicAuth']
414
414
 
415
415
  new_options = opts.merge(
416
416
  :header_params => header_params,