pulp_certguard_client 0.1.0rc3.dev01581432076

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.

Potentially problematic release.


This version of pulp_certguard_client might be problematic. Click here for more details.

@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b8b4be69c707d19d23688a1422d2d5e22061dfa39fa58a972d71257906c9238a
4
+ data.tar.gz: 9128c04d0ec537dae5445f1e8e4cec217eecb64ff318ab849e267dde02a8f4a4
5
+ SHA512:
6
+ metadata.gz: e79547bd6c5fdce7b50e23e9eb41cd3d6ad1ea183719278baa80bed6cbc997603efd1947199ddb616244a7c8036b0df129b06517b42f7409e931c847dda91a84
7
+ data.tar.gz: 2305d1040b914a5b7596ebddde6fbbc57bcb6615c761f903ad9232c33e500f9070b7f983033ef45253071524e05575ee076be68292b6f562f62b040f3f3765e4
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
@@ -0,0 +1,109 @@
1
+ # pulp_certguard_client
2
+
3
+ PulpCertguardClient - the Ruby gem for the Pulp 3 API
4
+
5
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: v3
10
+ - Package version: 0.1.0rc3.dev01581432076
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build pulp_certguard_client.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./pulp_certguard_client-0.1.0rc3.dev01581432076.gem
27
+ ```
28
+
29
+ (for development, run `gem install --dev ./pulp_certguard_client-0.1.0rc3.dev01581432076.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'pulp_certguard_client', '~> 0.1.0rc3.dev01581432076'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
+
41
+ gem 'pulp_certguard_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+
55
+ ```ruby
56
+ # Load the gem
57
+ require 'pulp_certguard_client'
58
+
59
+ # Setup authorization
60
+ PulpCertguardClient.configure do |config|
61
+ # Configure HTTP basic authorization: Basic
62
+ config.username = 'YOUR_USERNAME'
63
+ config.password = 'YOUR_PASSWORD'
64
+ end
65
+
66
+ api_instance = PulpCertguardClient::ContentguardsX509Api.new
67
+ name = 'name_example' # String | The unique name.
68
+ ca_certificate = File.new('/path/to/file') # File | The Certificate Authority (CA) certificate.
69
+ opts = {
70
+ description: 'description_example' # String | An optional description.
71
+ }
72
+
73
+ begin
74
+ #Create a x509 cert guard
75
+ result = api_instance.create(name, ca_certificate, opts)
76
+ p result
77
+ rescue PulpCertguardClient::ApiError => e
78
+ puts "Exception when calling ContentguardsX509Api->create: #{e}"
79
+ end
80
+
81
+ ```
82
+
83
+ ## Documentation for API Endpoints
84
+
85
+ All URIs are relative to *http://localhost:24817*
86
+
87
+ Class | Method | HTTP request | Description
88
+ ------------ | ------------- | ------------- | -------------
89
+ *PulpCertguardClient::ContentguardsX509Api* | [**create**](docs/ContentguardsX509Api.md#create) | **POST** /pulp/api/v3/contentguards/certguard/x509/ | Create a x509 cert guard
90
+ *PulpCertguardClient::ContentguardsX509Api* | [**delete**](docs/ContentguardsX509Api.md#delete) | **DELETE** {x509_cert_guard_href} | Delete a x509 cert guard
91
+ *PulpCertguardClient::ContentguardsX509Api* | [**list**](docs/ContentguardsX509Api.md#list) | **GET** /pulp/api/v3/contentguards/certguard/x509/ | List x509 cert guards
92
+ *PulpCertguardClient::ContentguardsX509Api* | [**partial_update**](docs/ContentguardsX509Api.md#partial_update) | **PATCH** {x509_cert_guard_href} | Partially update a x509 cert guard
93
+ *PulpCertguardClient::ContentguardsX509Api* | [**read**](docs/ContentguardsX509Api.md#read) | **GET** {x509_cert_guard_href} | Inspect a x509 cert guard
94
+ *PulpCertguardClient::ContentguardsX509Api* | [**update**](docs/ContentguardsX509Api.md#update) | **PUT** {x509_cert_guard_href} | Update a x509 cert guard
95
+
96
+
97
+ ## Documentation for Models
98
+
99
+ - [PulpCertguardClient::CertguardX509CertGuard](docs/CertguardX509CertGuard.md)
100
+ - [PulpCertguardClient::InlineResponse200](docs/InlineResponse200.md)
101
+
102
+
103
+ ## Documentation for Authorization
104
+
105
+
106
+ ### Basic
107
+
108
+ - **Type**: HTTP basic authentication
109
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,23 @@
1
+ # PulpCertguardClient::CertguardX509CertGuard
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **name** | **String** | The unique name. |
10
+ **description** | **String** | An optional description. | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpCertguardClient'
16
+
17
+ instance = PulpCertguardClient::CertguardX509CertGuard.new(pulp_href: null,
18
+ pulp_created: null,
19
+ name: null,
20
+ description: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,371 @@
1
+ # PulpCertguardClient::ContentguardsX509Api
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
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
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
13
+
14
+
15
+
16
+ ## create
17
+
18
+ > CertguardX509CertGuard create(name, ca_certificate, opts)
19
+
20
+ Create a x509 cert guard
21
+
22
+ X509CertGuard API Viewsets.
23
+
24
+ ### Example
25
+
26
+ ```ruby
27
+ # load the gem
28
+ require 'pulp_certguard_client'
29
+ # setup authorization
30
+ PulpCertguardClient.configure do |config|
31
+ # Configure HTTP basic authorization: Basic
32
+ config.username = 'YOUR USERNAME'
33
+ config.password = 'YOUR PASSWORD'
34
+ end
35
+
36
+ api_instance = PulpCertguardClient::ContentguardsX509Api.new
37
+ name = 'name_example' # String | The unique name.
38
+ ca_certificate = File.new('/path/to/file') # File | The Certificate Authority (CA) certificate.
39
+ opts = {
40
+ description: 'description_example' # String | An optional description.
41
+ }
42
+
43
+ begin
44
+ #Create a x509 cert guard
45
+ result = api_instance.create(name, ca_certificate, opts)
46
+ p result
47
+ rescue PulpCertguardClient::ApiError => e
48
+ puts "Exception when calling ContentguardsX509Api->create: #{e}"
49
+ end
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+
55
+ Name | Type | Description | Notes
56
+ ------------- | ------------- | ------------- | -------------
57
+ **name** | **String**| The unique name. |
58
+ **ca_certificate** | **File**| The Certificate Authority (CA) certificate. |
59
+ **description** | **String**| An optional description. | [optional]
60
+
61
+ ### Return type
62
+
63
+ [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
64
+
65
+ ### Authorization
66
+
67
+ [Basic](../README.md#Basic)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
72
+ - **Accept**: application/json
73
+
74
+
75
+ ## delete
76
+
77
+ > delete(x509_cert_guard_href)
78
+
79
+ Delete a x509 cert guard
80
+
81
+ X509CertGuard API Viewsets.
82
+
83
+ ### Example
84
+
85
+ ```ruby
86
+ # load the gem
87
+ require 'pulp_certguard_client'
88
+ # setup authorization
89
+ PulpCertguardClient.configure do |config|
90
+ # Configure HTTP basic authorization: Basic
91
+ config.username = 'YOUR USERNAME'
92
+ config.password = 'YOUR PASSWORD'
93
+ end
94
+
95
+ api_instance = PulpCertguardClient::ContentguardsX509Api.new
96
+ x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
97
+
98
+ begin
99
+ #Delete a x509 cert guard
100
+ api_instance.delete(x509_cert_guard_href)
101
+ rescue PulpCertguardClient::ApiError => e
102
+ puts "Exception when calling ContentguardsX509Api->delete: #{e}"
103
+ end
104
+ ```
105
+
106
+ ### Parameters
107
+
108
+
109
+ Name | Type | Description | Notes
110
+ ------------- | ------------- | ------------- | -------------
111
+ **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
112
+
113
+ ### Return type
114
+
115
+ nil (empty response body)
116
+
117
+ ### Authorization
118
+
119
+ [Basic](../README.md#Basic)
120
+
121
+ ### HTTP request headers
122
+
123
+ - **Content-Type**: Not defined
124
+ - **Accept**: Not defined
125
+
126
+
127
+ ## list
128
+
129
+ > InlineResponse200 list(opts)
130
+
131
+ List x509 cert guards
132
+
133
+ X509CertGuard API Viewsets.
134
+
135
+ ### Example
136
+
137
+ ```ruby
138
+ # load the gem
139
+ require 'pulp_certguard_client'
140
+ # setup authorization
141
+ PulpCertguardClient.configure do |config|
142
+ # Configure HTTP basic authorization: Basic
143
+ config.username = 'YOUR USERNAME'
144
+ config.password = 'YOUR PASSWORD'
145
+ end
146
+
147
+ api_instance = PulpCertguardClient::ContentguardsX509Api.new
148
+ opts = {
149
+ name: 'name_example', # String |
150
+ name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
151
+ limit: 56, # Integer | Number of results to return per page.
152
+ offset: 56, # Integer | The initial index from which to return the results.
153
+ fields: 'fields_example', # String | A list of fields to include in the response.
154
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
155
+ }
156
+
157
+ begin
158
+ #List x509 cert guards
159
+ result = api_instance.list(opts)
160
+ p result
161
+ rescue PulpCertguardClient::ApiError => e
162
+ puts "Exception when calling ContentguardsX509Api->list: #{e}"
163
+ end
164
+ ```
165
+
166
+ ### Parameters
167
+
168
+
169
+ Name | Type | Description | Notes
170
+ ------------- | ------------- | ------------- | -------------
171
+ **name** | **String**| | [optional]
172
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
173
+ **limit** | **Integer**| Number of results to return per page. | [optional]
174
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
175
+ **fields** | **String**| A list of fields to include in the response. | [optional]
176
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
177
+
178
+ ### Return type
179
+
180
+ [**InlineResponse200**](InlineResponse200.md)
181
+
182
+ ### Authorization
183
+
184
+ [Basic](../README.md#Basic)
185
+
186
+ ### HTTP request headers
187
+
188
+ - **Content-Type**: Not defined
189
+ - **Accept**: application/json
190
+
191
+
192
+ ## partial_update
193
+
194
+ > CertguardX509CertGuard partial_update(x509_cert_guard_href, name, ca_certificate, opts)
195
+
196
+ Partially update a x509 cert guard
197
+
198
+ X509CertGuard API Viewsets.
199
+
200
+ ### Example
201
+
202
+ ```ruby
203
+ # load the gem
204
+ require 'pulp_certguard_client'
205
+ # setup authorization
206
+ PulpCertguardClient.configure do |config|
207
+ # Configure HTTP basic authorization: Basic
208
+ config.username = 'YOUR USERNAME'
209
+ config.password = 'YOUR PASSWORD'
210
+ end
211
+
212
+ api_instance = PulpCertguardClient::ContentguardsX509Api.new
213
+ x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
214
+ name = 'name_example' # String | The unique name.
215
+ ca_certificate = File.new('/path/to/file') # File | The Certificate Authority (CA) certificate.
216
+ opts = {
217
+ description: 'description_example' # String | An optional description.
218
+ }
219
+
220
+ begin
221
+ #Partially update a x509 cert guard
222
+ result = api_instance.partial_update(x509_cert_guard_href, name, ca_certificate, opts)
223
+ p result
224
+ rescue PulpCertguardClient::ApiError => e
225
+ puts "Exception when calling ContentguardsX509Api->partial_update: #{e}"
226
+ end
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+
232
+ Name | Type | Description | Notes
233
+ ------------- | ------------- | ------------- | -------------
234
+ **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
235
+ **name** | **String**| The unique name. |
236
+ **ca_certificate** | **File**| The Certificate Authority (CA) certificate. |
237
+ **description** | **String**| An optional description. | [optional]
238
+
239
+ ### Return type
240
+
241
+ [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
242
+
243
+ ### Authorization
244
+
245
+ [Basic](../README.md#Basic)
246
+
247
+ ### HTTP request headers
248
+
249
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
250
+ - **Accept**: application/json
251
+
252
+
253
+ ## read
254
+
255
+ > CertguardX509CertGuard read(x509_cert_guard_href, opts)
256
+
257
+ Inspect a x509 cert guard
258
+
259
+ X509CertGuard API Viewsets.
260
+
261
+ ### Example
262
+
263
+ ```ruby
264
+ # load the gem
265
+ require 'pulp_certguard_client'
266
+ # setup authorization
267
+ PulpCertguardClient.configure do |config|
268
+ # Configure HTTP basic authorization: Basic
269
+ config.username = 'YOUR USERNAME'
270
+ config.password = 'YOUR PASSWORD'
271
+ end
272
+
273
+ api_instance = PulpCertguardClient::ContentguardsX509Api.new
274
+ x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
275
+ opts = {
276
+ fields: 'fields_example', # String | A list of fields to include in the response.
277
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
278
+ }
279
+
280
+ begin
281
+ #Inspect a x509 cert guard
282
+ result = api_instance.read(x509_cert_guard_href, opts)
283
+ p result
284
+ rescue PulpCertguardClient::ApiError => e
285
+ puts "Exception when calling ContentguardsX509Api->read: #{e}"
286
+ end
287
+ ```
288
+
289
+ ### Parameters
290
+
291
+
292
+ Name | Type | Description | Notes
293
+ ------------- | ------------- | ------------- | -------------
294
+ **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
295
+ **fields** | **String**| A list of fields to include in the response. | [optional]
296
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
297
+
298
+ ### Return type
299
+
300
+ [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
301
+
302
+ ### Authorization
303
+
304
+ [Basic](../README.md#Basic)
305
+
306
+ ### HTTP request headers
307
+
308
+ - **Content-Type**: Not defined
309
+ - **Accept**: application/json
310
+
311
+
312
+ ## update
313
+
314
+ > CertguardX509CertGuard update(x509_cert_guard_href, name, ca_certificate, opts)
315
+
316
+ Update a x509 cert guard
317
+
318
+ X509CertGuard API Viewsets.
319
+
320
+ ### Example
321
+
322
+ ```ruby
323
+ # load the gem
324
+ require 'pulp_certguard_client'
325
+ # setup authorization
326
+ PulpCertguardClient.configure do |config|
327
+ # Configure HTTP basic authorization: Basic
328
+ config.username = 'YOUR USERNAME'
329
+ config.password = 'YOUR PASSWORD'
330
+ end
331
+
332
+ api_instance = PulpCertguardClient::ContentguardsX509Api.new
333
+ x509_cert_guard_href = 'x509_cert_guard_href_example' # String | URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/
334
+ name = 'name_example' # String | The unique name.
335
+ ca_certificate = File.new('/path/to/file') # File | The Certificate Authority (CA) certificate.
336
+ opts = {
337
+ description: 'description_example' # String | An optional description.
338
+ }
339
+
340
+ begin
341
+ #Update a x509 cert guard
342
+ result = api_instance.update(x509_cert_guard_href, name, ca_certificate, opts)
343
+ p result
344
+ rescue PulpCertguardClient::ApiError => e
345
+ puts "Exception when calling ContentguardsX509Api->update: #{e}"
346
+ end
347
+ ```
348
+
349
+ ### Parameters
350
+
351
+
352
+ Name | Type | Description | Notes
353
+ ------------- | ------------- | ------------- | -------------
354
+ **x509_cert_guard_href** | **String**| URI of X509 Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/x509/1/ |
355
+ **name** | **String**| The unique name. |
356
+ **ca_certificate** | **File**| The Certificate Authority (CA) certificate. |
357
+ **description** | **String**| An optional description. | [optional]
358
+
359
+ ### Return type
360
+
361
+ [**CertguardX509CertGuard**](CertguardX509CertGuard.md)
362
+
363
+ ### Authorization
364
+
365
+ [Basic](../README.md#Basic)
366
+
367
+ ### HTTP request headers
368
+
369
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
370
+ - **Accept**: application/json
371
+