pulp_certguard_client 0.1.0rc4
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +113 -0
- data/Rakefile +10 -0
- data/docs/CertguardRHSMCertGuard.md +25 -0
- data/docs/CertguardX509CertGuard.md +25 -0
- data/docs/ContentguardsRhsmApi.md +355 -0
- data/docs/ContentguardsX509Api.md +355 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/git_push.sh +58 -0
- data/lib/pulp_certguard_client/api/contentguards_rhsm_api.rb +431 -0
- data/lib/pulp_certguard_client/api/contentguards_x509_api.rb +431 -0
- data/lib/pulp_certguard_client/api_client.rb +402 -0
- data/lib/pulp_certguard_client/api_error.rb +57 -0
- data/lib/pulp_certguard_client/configuration.rb +243 -0
- data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard.rb +310 -0
- data/lib/pulp_certguard_client/models/certguard_x509_cert_guard.rb +310 -0
- data/lib/pulp_certguard_client/models/inline_response200.rb +247 -0
- data/lib/pulp_certguard_client/models/inline_response2001.rb +247 -0
- data/lib/pulp_certguard_client/version.rb +15 -0
- data/lib/pulp_certguard_client.rb +45 -0
- data/pulp_certguard_client.gemspec +39 -0
- data/spec/api/contentguards_rhsm_api_spec.rb +117 -0
- data/spec/api/contentguards_x509_api_spec.rb +117 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/certguard_rhsm_cert_guard_spec.rb +65 -0
- data/spec/models/certguard_x509_cert_guard_spec.rb +65 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/spec_helper.rb +111 -0
- metadata +137 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 526a2b2316611c9a21831749cd197f7c36a562dd1cb679a5e8e3e22170377de9
|
4
|
+
data.tar.gz: 7d1234381eaba524a30f7b75871fa995e61716a21a37dbfdc6914864a9c4be1b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f4eea585b6851fb5533c2227641db397a17b8cb092f940f66a36c88145be87986264927d7a49258b8b1a2c2bdf153ae93957d0c4bbaacf387ab46c2f4fff22cd
|
7
|
+
data.tar.gz: e437d7be27eeff4374cab0efd09af25a8caaff0817311ea0b369258aeefecb33fc743bbd123ef92658003dbcdbdc596a8b89b1029ff97dc354d0d39fc0e950b4
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,113 @@
|
|
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.0rc4
|
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.0rc4.gem
|
27
|
+
```
|
28
|
+
|
29
|
+
(for development, run `gem install --dev ./pulp_certguard_client-0.1.0rc4.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.0rc4'
|
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::ContentguardsRhsmApi.new
|
67
|
+
data = PulpCertguardClient::CertguardRHSMCertGuard.new # CertguardRHSMCertGuard |
|
68
|
+
|
69
|
+
begin
|
70
|
+
#Create a rhsm cert guard
|
71
|
+
result = api_instance.create(data)
|
72
|
+
p result
|
73
|
+
rescue PulpCertguardClient::ApiError => e
|
74
|
+
puts "Exception when calling ContentguardsRhsmApi->create: #{e}"
|
75
|
+
end
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
## Documentation for API Endpoints
|
80
|
+
|
81
|
+
All URIs are relative to *http://localhost:24817*
|
82
|
+
|
83
|
+
Class | Method | HTTP request | Description
|
84
|
+
------------ | ------------- | ------------- | -------------
|
85
|
+
*PulpCertguardClient::ContentguardsRhsmApi* | [**create**](docs/ContentguardsRhsmApi.md#create) | **POST** /pulp/api/v3/contentguards/certguard/rhsm/ | Create a rhsm cert guard
|
86
|
+
*PulpCertguardClient::ContentguardsRhsmApi* | [**delete**](docs/ContentguardsRhsmApi.md#delete) | **DELETE** {r_h_s_m_cert_guard_href} | Delete a rhsm cert guard
|
87
|
+
*PulpCertguardClient::ContentguardsRhsmApi* | [**list**](docs/ContentguardsRhsmApi.md#list) | **GET** /pulp/api/v3/contentguards/certguard/rhsm/ | List rhsm cert guards
|
88
|
+
*PulpCertguardClient::ContentguardsRhsmApi* | [**partial_update**](docs/ContentguardsRhsmApi.md#partial_update) | **PATCH** {r_h_s_m_cert_guard_href} | Partially update a rhsm cert guard
|
89
|
+
*PulpCertguardClient::ContentguardsRhsmApi* | [**read**](docs/ContentguardsRhsmApi.md#read) | **GET** {r_h_s_m_cert_guard_href} | Inspect a rhsm cert guard
|
90
|
+
*PulpCertguardClient::ContentguardsRhsmApi* | [**update**](docs/ContentguardsRhsmApi.md#update) | **PUT** {r_h_s_m_cert_guard_href} | Update a rhsm cert guard
|
91
|
+
*PulpCertguardClient::ContentguardsX509Api* | [**create**](docs/ContentguardsX509Api.md#create) | **POST** /pulp/api/v3/contentguards/certguard/x509/ | Create a x509 cert guard
|
92
|
+
*PulpCertguardClient::ContentguardsX509Api* | [**delete**](docs/ContentguardsX509Api.md#delete) | **DELETE** {x509_cert_guard_href} | Delete a x509 cert guard
|
93
|
+
*PulpCertguardClient::ContentguardsX509Api* | [**list**](docs/ContentguardsX509Api.md#list) | **GET** /pulp/api/v3/contentguards/certguard/x509/ | List x509 cert guards
|
94
|
+
*PulpCertguardClient::ContentguardsX509Api* | [**partial_update**](docs/ContentguardsX509Api.md#partial_update) | **PATCH** {x509_cert_guard_href} | Partially update a x509 cert guard
|
95
|
+
*PulpCertguardClient::ContentguardsX509Api* | [**read**](docs/ContentguardsX509Api.md#read) | **GET** {x509_cert_guard_href} | Inspect a x509 cert guard
|
96
|
+
*PulpCertguardClient::ContentguardsX509Api* | [**update**](docs/ContentguardsX509Api.md#update) | **PUT** {x509_cert_guard_href} | Update a x509 cert guard
|
97
|
+
|
98
|
+
|
99
|
+
## Documentation for Models
|
100
|
+
|
101
|
+
- [PulpCertguardClient::CertguardRHSMCertGuard](docs/CertguardRHSMCertGuard.md)
|
102
|
+
- [PulpCertguardClient::CertguardX509CertGuard](docs/CertguardX509CertGuard.md)
|
103
|
+
- [PulpCertguardClient::InlineResponse200](docs/InlineResponse200.md)
|
104
|
+
- [PulpCertguardClient::InlineResponse2001](docs/InlineResponse2001.md)
|
105
|
+
|
106
|
+
|
107
|
+
## Documentation for Authorization
|
108
|
+
|
109
|
+
|
110
|
+
### Basic
|
111
|
+
|
112
|
+
- **Type**: HTTP basic authentication
|
113
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# PulpCertguardClient::CertguardRHSMCertGuard
|
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
|
+
**ca_certificate** | **String** | The Certificate Authority (CA) certificate. |
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpCertguardClient'
|
17
|
+
|
18
|
+
instance = PulpCertguardClient::CertguardRHSMCertGuard.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
20
|
+
name: null,
|
21
|
+
description: null,
|
22
|
+
ca_certificate: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,25 @@
|
|
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
|
+
**ca_certificate** | **String** | The Certificate Authority (CA) certificate. |
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpCertguardClient'
|
17
|
+
|
18
|
+
instance = PulpCertguardClient::CertguardX509CertGuard.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
20
|
+
name: null,
|
21
|
+
description: null,
|
22
|
+
ca_certificate: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,355 @@
|
|
1
|
+
# PulpCertguardClient::ContentguardsRhsmApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](ContentguardsRhsmApi.md#create) | **POST** /pulp/api/v3/contentguards/certguard/rhsm/ | Create a rhsm cert guard
|
8
|
+
[**delete**](ContentguardsRhsmApi.md#delete) | **DELETE** {r_h_s_m_cert_guard_href} | Delete a rhsm cert guard
|
9
|
+
[**list**](ContentguardsRhsmApi.md#list) | **GET** /pulp/api/v3/contentguards/certguard/rhsm/ | List rhsm cert guards
|
10
|
+
[**partial_update**](ContentguardsRhsmApi.md#partial_update) | **PATCH** {r_h_s_m_cert_guard_href} | Partially update a rhsm cert guard
|
11
|
+
[**read**](ContentguardsRhsmApi.md#read) | **GET** {r_h_s_m_cert_guard_href} | Inspect a rhsm cert guard
|
12
|
+
[**update**](ContentguardsRhsmApi.md#update) | **PUT** {r_h_s_m_cert_guard_href} | Update a rhsm cert guard
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## create
|
17
|
+
|
18
|
+
> CertguardRHSMCertGuard create(data)
|
19
|
+
|
20
|
+
Create a rhsm cert guard
|
21
|
+
|
22
|
+
RHSMCertGuard 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::ContentguardsRhsmApi.new
|
37
|
+
data = PulpCertguardClient::CertguardRHSMCertGuard.new # CertguardRHSMCertGuard |
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a rhsm cert guard
|
41
|
+
result = api_instance.create(data)
|
42
|
+
p result
|
43
|
+
rescue PulpCertguardClient::ApiError => e
|
44
|
+
puts "Exception when calling ContentguardsRhsmApi->create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**data** | [**CertguardRHSMCertGuard**](CertguardRHSMCertGuard.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**CertguardRHSMCertGuard**](CertguardRHSMCertGuard.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[Basic](../README.md#Basic)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## delete
|
70
|
+
|
71
|
+
> delete(r_h_s_m_cert_guard_href)
|
72
|
+
|
73
|
+
Delete a rhsm cert guard
|
74
|
+
|
75
|
+
RHSMCertGuard API Viewsets.
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulp_certguard_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpCertguardClient.configure do |config|
|
84
|
+
# Configure HTTP basic authorization: Basic
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpCertguardClient::ContentguardsRhsmApi.new
|
90
|
+
r_h_s_m_cert_guard_href = 'r_h_s_m_cert_guard_href_example' # String | URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a rhsm cert guard
|
94
|
+
api_instance.delete(r_h_s_m_cert_guard_href)
|
95
|
+
rescue PulpCertguardClient::ApiError => e
|
96
|
+
puts "Exception when calling ContentguardsRhsmApi->delete: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**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/ |
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
nil (empty response body)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[Basic](../README.md#Basic)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: Not defined
|
119
|
+
|
120
|
+
|
121
|
+
## list
|
122
|
+
|
123
|
+
> InlineResponse200 list(opts)
|
124
|
+
|
125
|
+
List rhsm cert guards
|
126
|
+
|
127
|
+
RHSMCertGuard API Viewsets.
|
128
|
+
|
129
|
+
### Example
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
# load the gem
|
133
|
+
require 'pulp_certguard_client'
|
134
|
+
# setup authorization
|
135
|
+
PulpCertguardClient.configure do |config|
|
136
|
+
# Configure HTTP basic authorization: Basic
|
137
|
+
config.username = 'YOUR USERNAME'
|
138
|
+
config.password = 'YOUR PASSWORD'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = PulpCertguardClient::ContentguardsRhsmApi.new
|
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
|
+
limit: 56, # Integer | Number of results to return per page.
|
147
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
148
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
149
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
150
|
+
}
|
151
|
+
|
152
|
+
begin
|
153
|
+
#List rhsm cert guards
|
154
|
+
result = api_instance.list(opts)
|
155
|
+
p result
|
156
|
+
rescue PulpCertguardClient::ApiError => e
|
157
|
+
puts "Exception when calling ContentguardsRhsmApi->list: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
|
164
|
+
Name | Type | Description | Notes
|
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
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
170
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
171
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
172
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
173
|
+
|
174
|
+
### Return type
|
175
|
+
|
176
|
+
[**InlineResponse200**](InlineResponse200.md)
|
177
|
+
|
178
|
+
### Authorization
|
179
|
+
|
180
|
+
[Basic](../README.md#Basic)
|
181
|
+
|
182
|
+
### HTTP request headers
|
183
|
+
|
184
|
+
- **Content-Type**: Not defined
|
185
|
+
- **Accept**: application/json
|
186
|
+
|
187
|
+
|
188
|
+
## partial_update
|
189
|
+
|
190
|
+
> CertguardRHSMCertGuard partial_update(r_h_s_m_cert_guard_href, data)
|
191
|
+
|
192
|
+
Partially update a rhsm cert guard
|
193
|
+
|
194
|
+
RHSMCertGuard API Viewsets.
|
195
|
+
|
196
|
+
### Example
|
197
|
+
|
198
|
+
```ruby
|
199
|
+
# load the gem
|
200
|
+
require 'pulp_certguard_client'
|
201
|
+
# setup authorization
|
202
|
+
PulpCertguardClient.configure do |config|
|
203
|
+
# Configure HTTP basic authorization: Basic
|
204
|
+
config.username = 'YOUR USERNAME'
|
205
|
+
config.password = 'YOUR PASSWORD'
|
206
|
+
end
|
207
|
+
|
208
|
+
api_instance = PulpCertguardClient::ContentguardsRhsmApi.new
|
209
|
+
r_h_s_m_cert_guard_href = 'r_h_s_m_cert_guard_href_example' # String | URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
|
210
|
+
data = PulpCertguardClient::CertguardRHSMCertGuard.new # CertguardRHSMCertGuard |
|
211
|
+
|
212
|
+
begin
|
213
|
+
#Partially update a rhsm cert guard
|
214
|
+
result = api_instance.partial_update(r_h_s_m_cert_guard_href, data)
|
215
|
+
p result
|
216
|
+
rescue PulpCertguardClient::ApiError => e
|
217
|
+
puts "Exception when calling ContentguardsRhsmApi->partial_update: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
|
224
|
+
Name | Type | Description | Notes
|
225
|
+
------------- | ------------- | ------------- | -------------
|
226
|
+
**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/ |
|
227
|
+
**data** | [**CertguardRHSMCertGuard**](CertguardRHSMCertGuard.md)| |
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**CertguardRHSMCertGuard**](CertguardRHSMCertGuard.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
[Basic](../README.md#Basic)
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: application/json
|
240
|
+
- **Accept**: application/json
|
241
|
+
|
242
|
+
|
243
|
+
## read
|
244
|
+
|
245
|
+
> CertguardRHSMCertGuard read(r_h_s_m_cert_guard_href, opts)
|
246
|
+
|
247
|
+
Inspect a rhsm cert guard
|
248
|
+
|
249
|
+
RHSMCertGuard API Viewsets.
|
250
|
+
|
251
|
+
### Example
|
252
|
+
|
253
|
+
```ruby
|
254
|
+
# load the gem
|
255
|
+
require 'pulp_certguard_client'
|
256
|
+
# setup authorization
|
257
|
+
PulpCertguardClient.configure do |config|
|
258
|
+
# Configure HTTP basic authorization: Basic
|
259
|
+
config.username = 'YOUR USERNAME'
|
260
|
+
config.password = 'YOUR PASSWORD'
|
261
|
+
end
|
262
|
+
|
263
|
+
api_instance = PulpCertguardClient::ContentguardsRhsmApi.new
|
264
|
+
r_h_s_m_cert_guard_href = 'r_h_s_m_cert_guard_href_example' # String | URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
|
265
|
+
opts = {
|
266
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
267
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
268
|
+
}
|
269
|
+
|
270
|
+
begin
|
271
|
+
#Inspect a rhsm cert guard
|
272
|
+
result = api_instance.read(r_h_s_m_cert_guard_href, opts)
|
273
|
+
p result
|
274
|
+
rescue PulpCertguardClient::ApiError => e
|
275
|
+
puts "Exception when calling ContentguardsRhsmApi->read: #{e}"
|
276
|
+
end
|
277
|
+
```
|
278
|
+
|
279
|
+
### Parameters
|
280
|
+
|
281
|
+
|
282
|
+
Name | Type | Description | Notes
|
283
|
+
------------- | ------------- | ------------- | -------------
|
284
|
+
**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/ |
|
285
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
286
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
287
|
+
|
288
|
+
### Return type
|
289
|
+
|
290
|
+
[**CertguardRHSMCertGuard**](CertguardRHSMCertGuard.md)
|
291
|
+
|
292
|
+
### Authorization
|
293
|
+
|
294
|
+
[Basic](../README.md#Basic)
|
295
|
+
|
296
|
+
### HTTP request headers
|
297
|
+
|
298
|
+
- **Content-Type**: Not defined
|
299
|
+
- **Accept**: application/json
|
300
|
+
|
301
|
+
|
302
|
+
## update
|
303
|
+
|
304
|
+
> CertguardRHSMCertGuard update(r_h_s_m_cert_guard_href, data)
|
305
|
+
|
306
|
+
Update a rhsm cert guard
|
307
|
+
|
308
|
+
RHSMCertGuard API Viewsets.
|
309
|
+
|
310
|
+
### Example
|
311
|
+
|
312
|
+
```ruby
|
313
|
+
# load the gem
|
314
|
+
require 'pulp_certguard_client'
|
315
|
+
# setup authorization
|
316
|
+
PulpCertguardClient.configure do |config|
|
317
|
+
# Configure HTTP basic authorization: Basic
|
318
|
+
config.username = 'YOUR USERNAME'
|
319
|
+
config.password = 'YOUR PASSWORD'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = PulpCertguardClient::ContentguardsRhsmApi.new
|
323
|
+
r_h_s_m_cert_guard_href = 'r_h_s_m_cert_guard_href_example' # String | URI of R H S M Cert Guard. e.g.: /pulp/api/v3/contentguards/certguard/rhsm/1/
|
324
|
+
data = PulpCertguardClient::CertguardRHSMCertGuard.new # CertguardRHSMCertGuard |
|
325
|
+
|
326
|
+
begin
|
327
|
+
#Update a rhsm cert guard
|
328
|
+
result = api_instance.update(r_h_s_m_cert_guard_href, data)
|
329
|
+
p result
|
330
|
+
rescue PulpCertguardClient::ApiError => e
|
331
|
+
puts "Exception when calling ContentguardsRhsmApi->update: #{e}"
|
332
|
+
end
|
333
|
+
```
|
334
|
+
|
335
|
+
### Parameters
|
336
|
+
|
337
|
+
|
338
|
+
Name | Type | Description | Notes
|
339
|
+
------------- | ------------- | ------------- | -------------
|
340
|
+
**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/ |
|
341
|
+
**data** | [**CertguardRHSMCertGuard**](CertguardRHSMCertGuard.md)| |
|
342
|
+
|
343
|
+
### Return type
|
344
|
+
|
345
|
+
[**CertguardRHSMCertGuard**](CertguardRHSMCertGuard.md)
|
346
|
+
|
347
|
+
### Authorization
|
348
|
+
|
349
|
+
[Basic](../README.md#Basic)
|
350
|
+
|
351
|
+
### HTTP request headers
|
352
|
+
|
353
|
+
- **Content-Type**: application/json
|
354
|
+
- **Accept**: application/json
|
355
|
+
|