pulp_rpm_client 3.16.2 → 3.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -12
- data/docs/AcsRpmApi.md +417 -0
- data/docs/CompsXml.md +21 -0
- data/docs/PaginatedrpmRpmAlternateContentSourceResponseList.md +23 -0
- data/docs/PatchedrpmRpmAlternateContentSource.md +23 -0
- data/docs/RpmCompsApi.md +68 -0
- data/docs/RpmRpmAlternateContentSource.md +23 -0
- data/docs/RpmRpmAlternateContentSourceResponse.md +27 -0
- data/docs/TaskGroupOperationResponse.md +17 -0
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +510 -0
- data/lib/pulp_rpm_client/api/rpm_comps_api.rb +93 -0
- data/lib/pulp_rpm_client/models/comps_xml.rb +233 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +237 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source.rb +256 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source.rb +270 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +270 -0
- data/lib/pulp_rpm_client/models/task_group_operation_response.rb +213 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +8 -0
- data/pulp_rpm_client.gemspec +1 -1
- data/spec/api/acs_rpm_api_spec.rb +132 -0
- data/spec/api/rpm_comps_api_spec.rb +49 -0
- data/spec/models/comps_xml_spec.rb +53 -0
- data/spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/patchedrpm_rpm_alternate_content_source_spec.rb +59 -0
- data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +71 -0
- data/spec/models/rpm_rpm_alternate_content_source_spec.rb +59 -0
- data/spec/models/task_group_operation_response_spec.rb +41 -0
- metadata +107 -69
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e2fcca39edfd5d860e22189720e0e686ccdf24488053f6059270894152fc193
|
4
|
+
data.tar.gz: 5e1eff3a43efce423b1a53205354b40874cfec67b05694e0a33f7683692842d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8dedb1df304a9dea2883ef20b019b2d38284f4ae1c0a0385c5b11326f1808bf7ba58885511e356b9b53a7220b5099396ea23482fa1e03531d475c2829fa9c00
|
7
|
+
data.tar.gz: 67b29b69228728b29b431d192a5dd5dfc8c65d749d2b966ca95a22bf77125d446640d7236d05e1f65d7cf3e6d8d6232b0c706c66c9d0ebfdd1cff748aab510f9
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.
|
10
|
+
- Package version: 3.17.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_rpm_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_rpm_client-3.
|
27
|
+
gem install ./pulp_rpm_client-3.17.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_rpm_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulp_rpm_client-3.17.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_rpm_client', '~> 3.
|
36
|
+
gem 'pulp_rpm_client', '~> 3.17.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -64,18 +64,15 @@ PulpRpmClient.configure do |config|
|
|
64
64
|
config.password = 'YOUR_PASSWORD'
|
65
65
|
end
|
66
66
|
|
67
|
-
api_instance = PulpRpmClient::
|
68
|
-
|
69
|
-
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
70
|
-
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
71
|
-
}
|
67
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
68
|
+
rpm_rpm_alternate_content_source = PulpRpmClient::RpmRpmAlternateContentSource.new # RpmRpmAlternateContentSource |
|
72
69
|
|
73
70
|
begin
|
74
|
-
#Create
|
75
|
-
result = api_instance.create(
|
71
|
+
#Create a rpm alternate content source
|
72
|
+
result = api_instance.create(rpm_rpm_alternate_content_source)
|
76
73
|
p result
|
77
74
|
rescue PulpRpmClient::ApiError => e
|
78
|
-
puts "Exception when calling
|
75
|
+
puts "Exception when calling AcsRpmApi->create: #{e}"
|
79
76
|
end
|
80
77
|
|
81
78
|
```
|
@@ -86,6 +83,13 @@ All URIs are relative to *https://pulp*
|
|
86
83
|
|
87
84
|
Class | Method | HTTP request | Description
|
88
85
|
------------ | ------------- | ------------- | -------------
|
86
|
+
*PulpRpmClient::AcsRpmApi* | [**create**](docs/AcsRpmApi.md#create) | **POST** /pulp/api/v3/acs/rpm/rpm/ | Create a rpm alternate content source
|
87
|
+
*PulpRpmClient::AcsRpmApi* | [**delete**](docs/AcsRpmApi.md#delete) | **DELETE** {rpm_rpm_alternate_content_source_href} | Delete a rpm alternate content source
|
88
|
+
*PulpRpmClient::AcsRpmApi* | [**list**](docs/AcsRpmApi.md#list) | **GET** /pulp/api/v3/acs/rpm/rpm/ | List rpm alternate content sources
|
89
|
+
*PulpRpmClient::AcsRpmApi* | [**partial_update**](docs/AcsRpmApi.md#partial_update) | **PATCH** {rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source
|
90
|
+
*PulpRpmClient::AcsRpmApi* | [**read**](docs/AcsRpmApi.md#read) | **GET** {rpm_rpm_alternate_content_source_href} | Inspect a rpm alternate content source
|
91
|
+
*PulpRpmClient::AcsRpmApi* | [**refresh**](docs/AcsRpmApi.md#refresh) | **POST** {rpm_rpm_alternate_content_source_href}refresh/ |
|
92
|
+
*PulpRpmClient::AcsRpmApi* | [**update**](docs/AcsRpmApi.md#update) | **PUT** {rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source
|
89
93
|
*PulpRpmClient::ContentAdvisoriesApi* | [**create**](docs/ContentAdvisoriesApi.md#create) | **POST** /pulp/api/v3/content/rpm/advisories/ | Create an update record
|
90
94
|
*PulpRpmClient::ContentAdvisoriesApi* | [**list**](docs/ContentAdvisoriesApi.md#list) | **GET** /pulp/api/v3/content/rpm/advisories/ | List update records
|
91
95
|
*PulpRpmClient::ContentAdvisoriesApi* | [**read**](docs/ContentAdvisoriesApi.md#read) | **GET** {rpm_update_record_href} | Inspect an update record
|
@@ -144,6 +148,7 @@ Class | Method | HTTP request | Description
|
|
144
148
|
*PulpRpmClient::RepositoriesRpmVersionsApi* | [**list**](docs/RepositoriesRpmVersionsApi.md#list) | **GET** {rpm_rpm_repository_href}versions/ | List repository versions
|
145
149
|
*PulpRpmClient::RepositoriesRpmVersionsApi* | [**read**](docs/RepositoriesRpmVersionsApi.md#read) | **GET** {rpm_rpm_repository_version_href} | Inspect a repository version
|
146
150
|
*PulpRpmClient::RepositoriesRpmVersionsApi* | [**repair**](docs/RepositoriesRpmVersionsApi.md#repair) | **POST** {rpm_rpm_repository_version_href}repair/ |
|
151
|
+
*PulpRpmClient::RpmCompsApi* | [**rpm_comps_upload**](docs/RpmCompsApi.md#rpm_comps_upload) | **POST** /pulp/api/v3/rpm/comps/ | Upload comps.xml
|
147
152
|
*PulpRpmClient::RpmCopyApi* | [**copy_content**](docs/RpmCopyApi.md#copy_content) | **POST** /pulp/api/v3/rpm/copy/ | Copy content
|
148
153
|
|
149
154
|
|
@@ -153,6 +158,7 @@ Class | Method | HTTP request | Description
|
|
153
158
|
- [PulpRpmClient::ArtifactResponse](docs/ArtifactResponse.md)
|
154
159
|
- [PulpRpmClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
155
160
|
- [PulpRpmClient::ChecksumResponse](docs/ChecksumResponse.md)
|
161
|
+
- [PulpRpmClient::CompsXml](docs/CompsXml.md)
|
156
162
|
- [PulpRpmClient::ContentSummary](docs/ContentSummary.md)
|
157
163
|
- [PulpRpmClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
158
164
|
- [PulpRpmClient::Copy](docs/Copy.md)
|
@@ -169,12 +175,14 @@ Class | Method | HTTP request | Description
|
|
169
175
|
- [PulpRpmClient::PaginatedrpmPackageLangpacksResponseList](docs/PaginatedrpmPackageLangpacksResponseList.md)
|
170
176
|
- [PulpRpmClient::PaginatedrpmPackageResponseList](docs/PaginatedrpmPackageResponseList.md)
|
171
177
|
- [PulpRpmClient::PaginatedrpmRepoMetadataFileResponseList](docs/PaginatedrpmRepoMetadataFileResponseList.md)
|
178
|
+
- [PulpRpmClient::PaginatedrpmRpmAlternateContentSourceResponseList](docs/PaginatedrpmRpmAlternateContentSourceResponseList.md)
|
172
179
|
- [PulpRpmClient::PaginatedrpmRpmDistributionResponseList](docs/PaginatedrpmRpmDistributionResponseList.md)
|
173
180
|
- [PulpRpmClient::PaginatedrpmRpmPublicationResponseList](docs/PaginatedrpmRpmPublicationResponseList.md)
|
174
181
|
- [PulpRpmClient::PaginatedrpmRpmRemoteResponseList](docs/PaginatedrpmRpmRemoteResponseList.md)
|
175
182
|
- [PulpRpmClient::PaginatedrpmRpmRepositoryResponseList](docs/PaginatedrpmRpmRepositoryResponseList.md)
|
176
183
|
- [PulpRpmClient::PaginatedrpmUlnRemoteResponseList](docs/PaginatedrpmUlnRemoteResponseList.md)
|
177
184
|
- [PulpRpmClient::PaginatedrpmUpdateRecordResponseList](docs/PaginatedrpmUpdateRecordResponseList.md)
|
185
|
+
- [PulpRpmClient::PatchedrpmRpmAlternateContentSource](docs/PatchedrpmRpmAlternateContentSource.md)
|
178
186
|
- [PulpRpmClient::PatchedrpmRpmDistribution](docs/PatchedrpmRpmDistribution.md)
|
179
187
|
- [PulpRpmClient::PatchedrpmRpmRemote](docs/PatchedrpmRpmRemote.md)
|
180
188
|
- [PulpRpmClient::PatchedrpmRpmRepository](docs/PatchedrpmRpmRepository.md)
|
@@ -196,6 +204,8 @@ Class | Method | HTTP request | Description
|
|
196
204
|
- [PulpRpmClient::RpmPackageResponse](docs/RpmPackageResponse.md)
|
197
205
|
- [PulpRpmClient::RpmRepoMetadataFileResponse](docs/RpmRepoMetadataFileResponse.md)
|
198
206
|
- [PulpRpmClient::RpmRepositorySyncURL](docs/RpmRepositorySyncURL.md)
|
207
|
+
- [PulpRpmClient::RpmRpmAlternateContentSource](docs/RpmRpmAlternateContentSource.md)
|
208
|
+
- [PulpRpmClient::RpmRpmAlternateContentSourceResponse](docs/RpmRpmAlternateContentSourceResponse.md)
|
199
209
|
- [PulpRpmClient::RpmRpmDistribution](docs/RpmRpmDistribution.md)
|
200
210
|
- [PulpRpmClient::RpmRpmDistributionResponse](docs/RpmRpmDistributionResponse.md)
|
201
211
|
- [PulpRpmClient::RpmRpmPublication](docs/RpmRpmPublication.md)
|
@@ -212,6 +222,7 @@ Class | Method | HTTP request | Description
|
|
212
222
|
- [PulpRpmClient::RpmUpdateRecordResponse](docs/RpmUpdateRecordResponse.md)
|
213
223
|
- [PulpRpmClient::SkipTypesEnum](docs/SkipTypesEnum.md)
|
214
224
|
- [PulpRpmClient::SyncPolicyEnum](docs/SyncPolicyEnum.md)
|
225
|
+
- [PulpRpmClient::TaskGroupOperationResponse](docs/TaskGroupOperationResponse.md)
|
215
226
|
- [PulpRpmClient::VariantResponse](docs/VariantResponse.md)
|
216
227
|
|
217
228
|
|
data/docs/AcsRpmApi.md
ADDED
@@ -0,0 +1,417 @@
|
|
1
|
+
# PulpRpmClient::AcsRpmApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](AcsRpmApi.md#create) | **POST** /pulp/api/v3/acs/rpm/rpm/ | Create a rpm alternate content source
|
8
|
+
[**delete**](AcsRpmApi.md#delete) | **DELETE** {rpm_rpm_alternate_content_source_href} | Delete a rpm alternate content source
|
9
|
+
[**list**](AcsRpmApi.md#list) | **GET** /pulp/api/v3/acs/rpm/rpm/ | List rpm alternate content sources
|
10
|
+
[**partial_update**](AcsRpmApi.md#partial_update) | **PATCH** {rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source
|
11
|
+
[**read**](AcsRpmApi.md#read) | **GET** {rpm_rpm_alternate_content_source_href} | Inspect a rpm alternate content source
|
12
|
+
[**refresh**](AcsRpmApi.md#refresh) | **POST** {rpm_rpm_alternate_content_source_href}refresh/ |
|
13
|
+
[**update**](AcsRpmApi.md#update) | **PUT** {rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## create
|
18
|
+
|
19
|
+
> RpmRpmAlternateContentSourceResponse create(rpm_rpm_alternate_content_source)
|
20
|
+
|
21
|
+
Create a rpm alternate content source
|
22
|
+
|
23
|
+
ViewSet for ACS.
|
24
|
+
|
25
|
+
### Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'pulp_rpm_client'
|
30
|
+
# setup authorization
|
31
|
+
PulpRpmClient.configure do |config|
|
32
|
+
# Configure HTTP basic authorization: basicAuth
|
33
|
+
config.username = 'YOUR USERNAME'
|
34
|
+
config.password = 'YOUR PASSWORD'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
38
|
+
rpm_rpm_alternate_content_source = PulpRpmClient::RpmRpmAlternateContentSource.new # RpmRpmAlternateContentSource |
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create a rpm alternate content source
|
42
|
+
result = api_instance.create(rpm_rpm_alternate_content_source)
|
43
|
+
p result
|
44
|
+
rescue PulpRpmClient::ApiError => e
|
45
|
+
puts "Exception when calling AcsRpmApi->create: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**rpm_rpm_alternate_content_source** | [**RpmRpmAlternateContentSource**](RpmRpmAlternateContentSource.md)| |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**RpmRpmAlternateContentSourceResponse**](RpmRpmAlternateContentSourceResponse.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[basicAuth](../README.md#basicAuth)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
## delete
|
71
|
+
|
72
|
+
> AsyncOperationResponse delete(rpm_rpm_alternate_content_source_href)
|
73
|
+
|
74
|
+
Delete a rpm alternate content source
|
75
|
+
|
76
|
+
Trigger an asynchronous delete ACS task
|
77
|
+
|
78
|
+
### Example
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'pulp_rpm_client'
|
83
|
+
# setup authorization
|
84
|
+
PulpRpmClient.configure do |config|
|
85
|
+
# Configure HTTP basic authorization: basicAuth
|
86
|
+
config.username = 'YOUR USERNAME'
|
87
|
+
config.password = 'YOUR PASSWORD'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
91
|
+
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # String |
|
92
|
+
|
93
|
+
begin
|
94
|
+
#Delete a rpm alternate content source
|
95
|
+
result = api_instance.delete(rpm_rpm_alternate_content_source_href)
|
96
|
+
p result
|
97
|
+
rescue PulpRpmClient::ApiError => e
|
98
|
+
puts "Exception when calling AcsRpmApi->delete: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**rpm_rpm_alternate_content_source_href** | **String**| |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[basicAuth](../README.md#basicAuth)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: Not defined
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
## list
|
124
|
+
|
125
|
+
> PaginatedrpmRpmAlternateContentSourceResponseList list(opts)
|
126
|
+
|
127
|
+
List rpm alternate content sources
|
128
|
+
|
129
|
+
ViewSet for ACS.
|
130
|
+
|
131
|
+
### Example
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'pulp_rpm_client'
|
136
|
+
# setup authorization
|
137
|
+
PulpRpmClient.configure do |config|
|
138
|
+
# Configure HTTP basic authorization: basicAuth
|
139
|
+
config.username = 'YOUR USERNAME'
|
140
|
+
config.password = 'YOUR PASSWORD'
|
141
|
+
end
|
142
|
+
|
143
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
144
|
+
opts = {
|
145
|
+
limit: 56, # Integer | Number of results to return per page.
|
146
|
+
name: 'name_example', # String |
|
147
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
148
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
149
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
150
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
151
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
152
|
+
ordering: 'ordering_example', # String | Which field to use when ordering 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 rpm alternate content sources
|
159
|
+
result = api_instance.list(opts)
|
160
|
+
p result
|
161
|
+
rescue PulpRpmClient::ApiError => e
|
162
|
+
puts "Exception when calling AcsRpmApi->list: #{e}"
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
### Parameters
|
167
|
+
|
168
|
+
|
169
|
+
Name | Type | Description | Notes
|
170
|
+
------------- | ------------- | ------------- | -------------
|
171
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
172
|
+
**name** | **String**| | [optional]
|
173
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
174
|
+
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
175
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
176
|
+
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
177
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
178
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
179
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
180
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
181
|
+
|
182
|
+
### Return type
|
183
|
+
|
184
|
+
[**PaginatedrpmRpmAlternateContentSourceResponseList**](PaginatedrpmRpmAlternateContentSourceResponseList.md)
|
185
|
+
|
186
|
+
### Authorization
|
187
|
+
|
188
|
+
[basicAuth](../README.md#basicAuth)
|
189
|
+
|
190
|
+
### HTTP request headers
|
191
|
+
|
192
|
+
- **Content-Type**: Not defined
|
193
|
+
- **Accept**: application/json
|
194
|
+
|
195
|
+
|
196
|
+
## partial_update
|
197
|
+
|
198
|
+
> AsyncOperationResponse partial_update(rpm_rpm_alternate_content_source_href, patchedrpm_rpm_alternate_content_source)
|
199
|
+
|
200
|
+
Update a rpm alternate content source
|
201
|
+
|
202
|
+
Trigger an asynchronous partial update task
|
203
|
+
|
204
|
+
### Example
|
205
|
+
|
206
|
+
```ruby
|
207
|
+
# load the gem
|
208
|
+
require 'pulp_rpm_client'
|
209
|
+
# setup authorization
|
210
|
+
PulpRpmClient.configure do |config|
|
211
|
+
# Configure HTTP basic authorization: basicAuth
|
212
|
+
config.username = 'YOUR USERNAME'
|
213
|
+
config.password = 'YOUR PASSWORD'
|
214
|
+
end
|
215
|
+
|
216
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
217
|
+
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # String |
|
218
|
+
patchedrpm_rpm_alternate_content_source = PulpRpmClient::PatchedrpmRpmAlternateContentSource.new # PatchedrpmRpmAlternateContentSource |
|
219
|
+
|
220
|
+
begin
|
221
|
+
#Update a rpm alternate content source
|
222
|
+
result = api_instance.partial_update(rpm_rpm_alternate_content_source_href, patchedrpm_rpm_alternate_content_source)
|
223
|
+
p result
|
224
|
+
rescue PulpRpmClient::ApiError => e
|
225
|
+
puts "Exception when calling AcsRpmApi->partial_update: #{e}"
|
226
|
+
end
|
227
|
+
```
|
228
|
+
|
229
|
+
### Parameters
|
230
|
+
|
231
|
+
|
232
|
+
Name | Type | Description | Notes
|
233
|
+
------------- | ------------- | ------------- | -------------
|
234
|
+
**rpm_rpm_alternate_content_source_href** | **String**| |
|
235
|
+
**patchedrpm_rpm_alternate_content_source** | [**PatchedrpmRpmAlternateContentSource**](PatchedrpmRpmAlternateContentSource.md)| |
|
236
|
+
|
237
|
+
### Return type
|
238
|
+
|
239
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
240
|
+
|
241
|
+
### Authorization
|
242
|
+
|
243
|
+
[basicAuth](../README.md#basicAuth)
|
244
|
+
|
245
|
+
### HTTP request headers
|
246
|
+
|
247
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
248
|
+
- **Accept**: application/json
|
249
|
+
|
250
|
+
|
251
|
+
## read
|
252
|
+
|
253
|
+
> RpmRpmAlternateContentSourceResponse read(rpm_rpm_alternate_content_source_href, opts)
|
254
|
+
|
255
|
+
Inspect a rpm alternate content source
|
256
|
+
|
257
|
+
ViewSet for ACS.
|
258
|
+
|
259
|
+
### Example
|
260
|
+
|
261
|
+
```ruby
|
262
|
+
# load the gem
|
263
|
+
require 'pulp_rpm_client'
|
264
|
+
# setup authorization
|
265
|
+
PulpRpmClient.configure do |config|
|
266
|
+
# Configure HTTP basic authorization: basicAuth
|
267
|
+
config.username = 'YOUR USERNAME'
|
268
|
+
config.password = 'YOUR PASSWORD'
|
269
|
+
end
|
270
|
+
|
271
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
272
|
+
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # String |
|
273
|
+
opts = {
|
274
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
275
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
276
|
+
}
|
277
|
+
|
278
|
+
begin
|
279
|
+
#Inspect a rpm alternate content source
|
280
|
+
result = api_instance.read(rpm_rpm_alternate_content_source_href, opts)
|
281
|
+
p result
|
282
|
+
rescue PulpRpmClient::ApiError => e
|
283
|
+
puts "Exception when calling AcsRpmApi->read: #{e}"
|
284
|
+
end
|
285
|
+
```
|
286
|
+
|
287
|
+
### Parameters
|
288
|
+
|
289
|
+
|
290
|
+
Name | Type | Description | Notes
|
291
|
+
------------- | ------------- | ------------- | -------------
|
292
|
+
**rpm_rpm_alternate_content_source_href** | **String**| |
|
293
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
294
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
295
|
+
|
296
|
+
### Return type
|
297
|
+
|
298
|
+
[**RpmRpmAlternateContentSourceResponse**](RpmRpmAlternateContentSourceResponse.md)
|
299
|
+
|
300
|
+
### Authorization
|
301
|
+
|
302
|
+
[basicAuth](../README.md#basicAuth)
|
303
|
+
|
304
|
+
### HTTP request headers
|
305
|
+
|
306
|
+
- **Content-Type**: Not defined
|
307
|
+
- **Accept**: application/json
|
308
|
+
|
309
|
+
|
310
|
+
## refresh
|
311
|
+
|
312
|
+
> TaskGroupOperationResponse refresh(rpm_rpm_alternate_content_source_href, rpm_rpm_alternate_content_source)
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
Trigger an asynchronous task to create Alternate Content Source content.
|
317
|
+
|
318
|
+
### Example
|
319
|
+
|
320
|
+
```ruby
|
321
|
+
# load the gem
|
322
|
+
require 'pulp_rpm_client'
|
323
|
+
# setup authorization
|
324
|
+
PulpRpmClient.configure do |config|
|
325
|
+
# Configure HTTP basic authorization: basicAuth
|
326
|
+
config.username = 'YOUR USERNAME'
|
327
|
+
config.password = 'YOUR PASSWORD'
|
328
|
+
end
|
329
|
+
|
330
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
331
|
+
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # String |
|
332
|
+
rpm_rpm_alternate_content_source = PulpRpmClient::RpmRpmAlternateContentSource.new # RpmRpmAlternateContentSource |
|
333
|
+
|
334
|
+
begin
|
335
|
+
result = api_instance.refresh(rpm_rpm_alternate_content_source_href, rpm_rpm_alternate_content_source)
|
336
|
+
p result
|
337
|
+
rescue PulpRpmClient::ApiError => e
|
338
|
+
puts "Exception when calling AcsRpmApi->refresh: #{e}"
|
339
|
+
end
|
340
|
+
```
|
341
|
+
|
342
|
+
### Parameters
|
343
|
+
|
344
|
+
|
345
|
+
Name | Type | Description | Notes
|
346
|
+
------------- | ------------- | ------------- | -------------
|
347
|
+
**rpm_rpm_alternate_content_source_href** | **String**| |
|
348
|
+
**rpm_rpm_alternate_content_source** | [**RpmRpmAlternateContentSource**](RpmRpmAlternateContentSource.md)| |
|
349
|
+
|
350
|
+
### Return type
|
351
|
+
|
352
|
+
[**TaskGroupOperationResponse**](TaskGroupOperationResponse.md)
|
353
|
+
|
354
|
+
### Authorization
|
355
|
+
|
356
|
+
[basicAuth](../README.md#basicAuth)
|
357
|
+
|
358
|
+
### HTTP request headers
|
359
|
+
|
360
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
361
|
+
- **Accept**: application/json
|
362
|
+
|
363
|
+
|
364
|
+
## update
|
365
|
+
|
366
|
+
> AsyncOperationResponse update(rpm_rpm_alternate_content_source_href, rpm_rpm_alternate_content_source)
|
367
|
+
|
368
|
+
Update a rpm alternate content source
|
369
|
+
|
370
|
+
Trigger an asynchronous update task
|
371
|
+
|
372
|
+
### Example
|
373
|
+
|
374
|
+
```ruby
|
375
|
+
# load the gem
|
376
|
+
require 'pulp_rpm_client'
|
377
|
+
# setup authorization
|
378
|
+
PulpRpmClient.configure do |config|
|
379
|
+
# Configure HTTP basic authorization: basicAuth
|
380
|
+
config.username = 'YOUR USERNAME'
|
381
|
+
config.password = 'YOUR PASSWORD'
|
382
|
+
end
|
383
|
+
|
384
|
+
api_instance = PulpRpmClient::AcsRpmApi.new
|
385
|
+
rpm_rpm_alternate_content_source_href = 'rpm_rpm_alternate_content_source_href_example' # String |
|
386
|
+
rpm_rpm_alternate_content_source = PulpRpmClient::RpmRpmAlternateContentSource.new # RpmRpmAlternateContentSource |
|
387
|
+
|
388
|
+
begin
|
389
|
+
#Update a rpm alternate content source
|
390
|
+
result = api_instance.update(rpm_rpm_alternate_content_source_href, rpm_rpm_alternate_content_source)
|
391
|
+
p result
|
392
|
+
rescue PulpRpmClient::ApiError => e
|
393
|
+
puts "Exception when calling AcsRpmApi->update: #{e}"
|
394
|
+
end
|
395
|
+
```
|
396
|
+
|
397
|
+
### Parameters
|
398
|
+
|
399
|
+
|
400
|
+
Name | Type | Description | Notes
|
401
|
+
------------- | ------------- | ------------- | -------------
|
402
|
+
**rpm_rpm_alternate_content_source_href** | **String**| |
|
403
|
+
**rpm_rpm_alternate_content_source** | [**RpmRpmAlternateContentSource**](RpmRpmAlternateContentSource.md)| |
|
404
|
+
|
405
|
+
### Return type
|
406
|
+
|
407
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
408
|
+
|
409
|
+
### Authorization
|
410
|
+
|
411
|
+
[basicAuth](../README.md#basicAuth)
|
412
|
+
|
413
|
+
### HTTP request headers
|
414
|
+
|
415
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
416
|
+
- **Accept**: application/json
|
417
|
+
|
data/docs/CompsXml.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpRpmClient::CompsXml
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**file** | **File** | Full path of a comps.xml file that may be parsed into comps.xml Content units. |
|
8
|
+
**repository** | **String** | URI of an RPM repository the comps.xml content units should be associated to. | [optional]
|
9
|
+
**replace** | **Boolean** | If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository. | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'PulpRpmClient'
|
15
|
+
|
16
|
+
instance = PulpRpmClient::CompsXml.new(file: null,
|
17
|
+
repository: null,
|
18
|
+
replace: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpRpmClient::PaginatedrpmRpmAlternateContentSourceResponseList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | | [optional]
|
8
|
+
**_next** | **String** | | [optional]
|
9
|
+
**previous** | **String** | | [optional]
|
10
|
+
**results** | [**Array<RpmRpmAlternateContentSourceResponse>**](RpmRpmAlternateContentSourceResponse.md) | | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpRpmClient'
|
16
|
+
|
17
|
+
instance = PulpRpmClient::PaginatedrpmRpmAlternateContentSourceResponseList.new(count: 123,
|
18
|
+
_next: http://api.example.org/accounts/?offset=400&limit=100,
|
19
|
+
previous: http://api.example.org/accounts/?offset=200&limit=100,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpRpmClient::PatchedrpmRpmAlternateContentSource
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | Name of Alternate Content Source. | [optional]
|
8
|
+
**last_refreshed** | **DateTime** | Date of last refresh of AlternateContentSource. | [optional]
|
9
|
+
**paths** | **Array<String>** | List of paths that will be appended to the Remote url when searching for content. | [optional]
|
10
|
+
**remote** | **String** | The remote to provide alternate content source. | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpRpmClient'
|
16
|
+
|
17
|
+
instance = PulpRpmClient::PatchedrpmRpmAlternateContentSource.new(name: null,
|
18
|
+
last_refreshed: null,
|
19
|
+
paths: null,
|
20
|
+
remote: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/docs/RpmCompsApi.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# PulpRpmClient::RpmCompsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**rpm_comps_upload**](RpmCompsApi.md#rpm_comps_upload) | **POST** /pulp/api/v3/rpm/comps/ | Upload comps.xml
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## rpm_comps_upload
|
12
|
+
|
13
|
+
> AsyncOperationResponse rpm_comps_upload(file, opts)
|
14
|
+
|
15
|
+
Upload comps.xml
|
16
|
+
|
17
|
+
Trigger an asynchronous task to upload a comps.xml file.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_rpm_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpRpmClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: basicAuth
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = PulpRpmClient::RpmCompsApi.new
|
32
|
+
file = File.new('/path/to/file') # File | Full path of a comps.xml file that may be parsed into comps.xml Content units.
|
33
|
+
opts = {
|
34
|
+
repository: 'repository_example', # String | URI of an RPM repository the comps.xml content units should be associated to.
|
35
|
+
replace: true # Boolean | If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Upload comps.xml
|
40
|
+
result = api_instance.rpm_comps_upload(file, opts)
|
41
|
+
p result
|
42
|
+
rescue PulpRpmClient::ApiError => e
|
43
|
+
puts "Exception when calling RpmCompsApi->rpm_comps_upload: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**file** | **File**| Full path of a comps.xml file that may be parsed into comps.xml Content units. |
|
53
|
+
**repository** | **String**| URI of an RPM repository the comps.xml content units should be associated to. | [optional]
|
54
|
+
**replace** | **Boolean**| If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository. | [optional]
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[basicAuth](../README.md#basicAuth)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
67
|
+
- **Accept**: application/json
|
68
|
+
|